7 <?php echo
h(dossier::name())?>
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%';
27 echo
Icon_Action::card(
"$('box_search_card').show();$('box_search_card').setStyle({'z-index':get_next_layer()})");
28 echo
'<div id="box_search_card" style="display:none;width:20rem;padding:0" class="inner_box">';
29 echo HtmlInput::title_box(
_(
'Recherche de fiches'),
"box_search_card",
"hide");
30 echo
'<p class="info p-1" >';
31 echo
_(
"Donnez une partie du nom, prénom, de la description, du poste comptable, du n° de TVA,quick code ... "
34 echo
'<p class="p-1">';
35 echo $search_card->input();
38 echo
'<ul class="aligned-block">';
41 HtmlInput::button_anchor(
_(
"Chercher"),
"javascript:void(0)",
"",
$search_card_js,
'button').
45 HtmlInput::button_anchor(
_(
"Créer fiche"),
"javascript:void(0)",
"",
$create_card_js,
'button').
49 HtmlInput::button_hide(
"box_search_card").
56if (
$cn->get_value(
"select count(*) from profile join profile_user using (p_id)
57 where user_name=$1 and with_direct_form=true",array($_SESSION[SESSION_KEY.
'g_user'])) ==1):
60 <form method=
"get" onsubmit=
"return document.getElementById('ac').value.trim()!='';">
61 <?php echo
$http->request(
'ac',
"string",
'')?>
62 <?php echo Dossier::hidden()?>
65 $direct=
new IText(
'ac');
66 $direct->style=
'class="input_text"';
67 $direct->placeholder=
_(
'Accès direct ou menu');
70 echo $direct->input();
73 <div
id=
"ac_choices" class=
"autocomplete" style=
"width:150px;z-index:1"></div>
75 echo HtmlInput::submit(
'go',
_(
'Aller'));
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" >';
106 $style=
"nav-item-module nav-item-slide";
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):
146 $style=
"nav-item-module ";
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'])
if(!headers_sent())
– pour utiliser unoconv démarrer un server libreoffice commande libreoffice –headless –accept="socket...
_("actif, passif,charge,...")
if( $delta< 0) elseif( $delta==0)