22if (!defined(
'ALLOWED'))
23 die(
'Appel direct ne sont pas permis');
37 die ($exc->getMessage());
41echo
'<form method="GET" onsubmit="search_account_card(this);return false;"> ';
46 array(
"label"=>
"25",
"value"=>25),
47 array(
"label"=>
"50",
"value"=>50),
48 array(
"label"=>
"100",
"value"=>100),
49 array(
"label"=>_(
"Tout"),
"value"=>-1)
58echo
'<p class="text-muted">';
59echo _(
"Vous pouvez faire des opérations arithmétiques entre des postes comptables, des comptes analytiques et des fiches")
66 select quick_code as s_code,vw_name||' '
67 ||coalesce(vw_first_name,'') ||' '
68 ||coalesce(vw_description,'') as s_name,'C' as s_type from vw_fiche_attr vfa
69 where quick_code like upper('%'||$1||'%') or lower(vw_name) like '%'||$1||'%'
71 select pcm_val, pcm_lib ,'A' from tmp_pcmn tp
72 where pcm_val like '%'||$1||'%'
73 or lower(pcm_lib) like '%'||$1||'%'
75 select po_name ,po_description , 'N' from poste_analytique pa
77 po_name like '%'||$1||'%'
78 or po_description like '%'||$1||'%'
83echo
'<div id="search_account_card_result_div">';
84printf(
"Résultat %s",count(
$array));
88$close=
";document.getElementById('search_account_div').remove();";
95 echo
'<li class="list-group-item">';
96 switch ($item[
's_type'])
100 $js=sprintf(
'onclick="document.getElementById(\'%s\').value+=\'{{%s}}\' ;%s"',
$target,$item[
's_code'],
$close);
105 $js=sprintf(
'onclick="document.getElementById(\'%s\').value+=\'[%s]\' ;%s"',
$target,$item[
's_code'],
$close);
111 $js=sprintf(
'onclick="document.getElementById(\'%s\').value+=\'{%s}\' ;%s"',
$target,$item[
's_code'],
$close);
115 throw Exception (
"Invalid result");
118 echo
'<input type="checkbox" '.$js.
'>';
119 echo
h($item[
's_code']);
121 echo
h($item[
's_name']);
127<ul
class=
"aligned-block">
h( $row[ 'oa_description'])
static hidden()
return a string to set gDossier into a FORM
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...