22if (!defined(
'ALLOWED'))
23 die(
'Appel direct ne sont pas permis');
55$selCurrency->value=
$cn->make_array(
"select id,cr_code_iso from currency where id > 0 order by cr_code_iso");
60if ( DEBUGNOALYSS > 1) { echo \Noalyss\Dbg::hidden_info(
"print_operation ",
$print_operation_currency->getData_operation());}
63$msg[
"all"]=_(
"Aucun filtre");
64$msg[
"by_card"]=_(
"Par fiche");
65$msg[
"by_accounting"]=_(
"Par poste comptable");
66$msg[
"by_category"]=_(
"Par catégorie de fiche");
68$select_box->add_javascript(_(
"Aucun filtre"),
"show_currency_type_search('all')",
true);
69$select_box->add_javascript(_(
"Par fiche"),
"show_currency_type_search('card_id')",
true);
70$select_box->add_javascript(_(
"Par poste comptable"),
"show_currency_type_search('account_id')",
true);
71$select_box->add_javascript(_(
"Par catégorie de fiche"),
"show_currency_type_search('card_category_div_id')",
true);
75 function show_currency_type_search(p_div)
77 let aDiv=[
"card_category_div_id",
"card_id",
"account_id"];
79 aDiv.forEach(a=>$(a).hide());
80 let showelt=document.getElementById(p_div);
85 $(
'search_type').value=
"all";
89 if ( p_div ==
'card_category_div_id')
90 { $(
'search_type').value=
"by_category";}
92 if ( p_div ==
'card_id')
93 { $(
'search_type').value=
"by_card";}
94 if ( p_div ==
'account_id')
95 { $(
'search_type').value=
"by_accounting";}
97 $(
'select_boxfilter_type').hide();
98 if ( document.getElementById(
"select_box_contentfilter_type")) {
99 document.getElementById(
"select_box_contentfilter_type").hide();
104<form method=
"get" action=
"<?=NOALYSS_URL?>/do.php" onsubmit=
"waiting_box();return true;">
106 <div
class=
"form-group ">
107 <
label for=
"from_date"><?=_(
"Depuis")?></
label>
113 <
label for=
"currency_code"><?=_(
"Devise")?></
label>
119 <div
id=
"account_id" style=
"display:<?=($search_type=="by_accounting
")?"block
":"none
"?>"><!-- comment -->
120 <div
class=
"form-group">
121 <
label for=
"from_account"><?=_(
"plage de postes comptables")?></
label>
124 <
label for=
"to_account"><?=_(
"jusque")?></
label>
129 <div
id=
"card_id" style=
"display:<?=($search_type=="by_card
")?"block
":"none
"?>"><!-- comment -->
130 <div
class=
"form-group">
135 $card->set_attribute(
"typecard",
"all");
136 $card->value=
$http->request(
"card",
"string",
"");
139 echo
$card->search();
144 <div
id=
"card_category_div_id" style=
"display:<?=($search_type=="by_category
")?"block
":"none
"?>"><!-- comment -->
145 <div
class=
"form-group">
146 <
label for=
"card_category_id"><?=_(
"Fiche")?></
label>
150 $card_category->value=
$cn->make_array(
"select fd_id , fd_label from fiche_def order by fd_label");
167 if (
$action !==
"print") {
return;}
172<div
class=
"content" style=
"margin-top:1rem;margin-bottom: 1rem;">
183 catch (Exception $exc)
185 echo
h2($exc->getMessage(),
'class="error"');
193<div
class=
"content" style=
"margin-top:1rem;margin-bottom: 1rem;">
194 <form method=
"get" id=
"export_csv" onsubmit=
"download_document_form(this);return false;" style=
"display:inline">
h2($p_string, $p_class="", $raw="")
static id()
return the 'gDossier' value after a check
static hidden()
return a string to set gDossier into a FORM
Input HTML for the card show buttons, in the file, you have to add card.js How to use :
Html Input : Input a date format dd.mm.yyyy The property title should be set to indicate what it is e...
show a button, for selecting a account and a input text for manually inserting an account the differe...
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
static echo_var($n_level, $msg, $print=true)
Display the value of a var if DEBUGNOALYSS is greater than $n_level, the debugging info has a certain...
static build($p_search)
build a Print_Operation_Currency Object thanks the http request ($_REQUEST) with the right Filter
Display a kind of select.
if(DEBUGNOALYSS > 1) $msg["all"]
$print_operation_currency