9 <div
style=
"clear:both;"></div>
14if (
$cn->get_value(
"select count(*) from profile join profile_user using (p_id)
15 where user_name=$1 and with_calc=true",array($_SESSION[SESSION_KEY.
'g_user'])) ==1):
16 echo
'<div id="calc">';
22if (
$cn->get_value(
"select count(*) from profile join profile_user using (p_id)
23 where user_name=$1 and with_search_card=1",array($_SESSION[SESSION_KEY.
'g_user'])) ==1):
24 $search_card=
new IText(
'card_search');
25 $search_card->css_size=
'97%';
28 echo
'<div id="box_search_card" style="display:none;width:20rem" class="inner_box">';
30 echo _(
'Recherche de fiche');
31 echo
'<p class="info">';
32 echo _(
"Donnez une partie du nom, prénom, de la description, du poste comptable, du n° de TVA,quick code ... "
35 echo
'<p class="ml-1">';
36 echo $search_card->input();
39 echo
'<ul class="aligned-block">';
57if (
$cn->get_value(
"select count(*) from profile join profile_user using (p_id)
58 where user_name=$1 and with_direct_form=true",array($_SESSION[SESSION_KEY.
'g_user'])) ==1):
61 <form method=
"get" onsubmit=
"if (document.getElementById('ac').value.trim() =='') {return false;} else {return true;}">
62 <?php echo
$http->request(
'ac',
"string",
'')?>
66 $direct=
new IText(
'ac');
67 $direct->style=
'class="input_text"';
70 echo $direct->input();
73 <div
id=
"ac_choices" class=
"autocomplete" style=
"width:150"></div>
82 new Ajax.Autocompleter(
"ac",
"ac_choices",
"direct.php?gDossier=<?php echo $gDossier?>",
83 {paramName:
"acs",minChars:1,indicator:
null,
85 afterUpdateElement:
null});}
catch (e){$(
'info_div').innerHTML=e.message;};
94 <div
class=
"d-none d-md-block">
95 <ul
class=
"nav nav-pills nav-fill flex-row" >
97 foreach ($amodule as
$row):
100 if (
$row[
'me_code']==
'new_line')
103 echo
'<ul class="nav nav-pills nav-fill flex-row" >';
107 if (
$row[
'me_code']==$selected_module)
111 if (
$row[
'me_url']!=
'')
117 $url=
"javascript:void(0)";
119 $js=sprintf(
' onclick="%s"',$js_dossier);
123 $url=
"do.php?gDossier=".Dossier::id().
"&ac=".
$row[
'me_code'];
126 <li
class=
"<?php echo $style?>">
127 <a
class=
"nav-link" href=
"<?php echo $url?>" title=
"<?php echo _($row['me_description']??''); ?>" <?php echo
$js?> ><?php echo gettext(
$row[
'me_menu'])?></a>
135 <div
class=
"d-md-none navbar-light" >
136 <button
id=
"showmodule" class=
"navbar-toggler" onclick=
"toggleHideShow('navbarToggleExternalContent','showmodule')">
137 <
span class=
"navbar-toggler-icon"></
span>
139 <div
style=
"display:none;position:absolute;top:2px;left:2px;z-index:10" id=
"navbarToggleExternalContent">
140 <ul
class=
"nav nav-pills nav-fill flex-column bg-dark" >
142 foreach ($amodule as
$row):
147 if (
$row[
'me_code']==
'new_line')
151 if (
$row[
'me_code']==$selected_module)
155 if (
$row[
'me_url']!=
'')
161 $url=
"javascript:void(0)";
163 $js=sprintf(
' onclick="%s"',$js_dossier);
167 $url=
"do.php?gDossier=".Dossier::id().
"&ac=".
$row[
'me_code'];
170 <li
class=
"<?php echo $style?>">
171 <a
class=
"nav-link" href=
"<?php echo $url?>" title=
"<?php echo _($row['me_description']??"")?>" <?php echo
$js?> ><?php echo gettext(
$row[
'me_menu'])?></a>
183<div
style=
"clear:both;"></div>
span($p_string, $p_extra='')
noalyss_str_replace($search, $replace, $string)
if(isset($tot['tva'][$a]))($tot['tva'][$a])?></td ><?php else endforeach
h( $row[ 'oa_description'])
static id()
return the 'gDossier' value after a check
static hidden()
return a string to set gDossier into a FORM
if( $delta< 0) elseif( $delta==0)
foreach($amodule as $row) $style