29if ( ! defined (
'ALLOWED') ) die(
'Appel direct ne sont pas permis');
30require_once NOALYSS_INCLUDE.
'/lib/ac_common.php';
31require_once NOALYSS_INCLUDE.
'/lib/user_menu.php';
54 if (
$ledger->load() ==
false )
throw new Exception (_(
'Journal inexistant'));
58 }
catch (Exception
$e)
77 echo
'<div id="jrn_name_div">';
78 echo
'<h1 id="jrn_name">';
79 printf(_(
" %s est effacé"),
h(
$name));
103 $a[]=[
"key"=>
'p_jrn',
"value"=>
$ledger->get_ledger_id()];
128 $ledger->set_ledger_id(
$http->request(
'p_jrn',
"number"));
129 echo
'<div class="content">';
130 echo
'<form id="cfg_ledger_frm" method="POST">';
131 echo
$ledger->display_ledger();
133 echo
'<INPUT TYPE="SUBMIT" class="smallbutton" VALUE="'._(
"Sauve").
'" name="update" onClick="$(\'action_frm\').value=\'update\';return confirm_box(\'cfg_ledger_frm\',\'Valider ?\')">
134 <INPUT TYPE="RESET" class="smallbutton" VALUE="Reset">
135 <INPUT TYPE="submit" class="smallbutton" name="efface" value="'._(
"Efface").
'" onClick="$(\'action_frm\').value=\'delete\';return confirm_box(\'cfg_ledger_frm\',\'Vous effacez ce journal ?\')">';
136 $href=http_build_query(array(
'ac'=>
$http->request(
'ac'),
'gDossier'=>
$http->request(
'gDossier',
"number")));
137 echo
'<a style="display:inline" class="smallbutton" href="do.php?'.$href.
'">'._(
'Retour').
'</a>';
150 echo
'<div class="content">';
151 echo
'<FORM METHOD="POST">';
154 echo
'<INPUT TYPE="RESET" class="smallbutton" VALUE="Reset">';
164 echo
'<span style="float:right;margin-top:10px">';
166 echo
HtmlInput::anchor_action(_(
"Financier"),
'show_only_row(\'cfgledger_table_id\',\'ledger_type\',\'FIN\')',
'ledger_fin_bt',
'smallbutton ');
167 echo
HtmlInput::anchor_action(_(
"Achat"),
'show_only_row(\'cfgledger_table_id\',\'ledger_type\',\'ACH\')',
'ledger_ach_bt',
'smallbutton ');
168 echo
HtmlInput::anchor_action(_(
"Opérations Diverses"),
'show_only_row(\'cfgledger_table_id\',\'ledger_type\',\'ODS\')',
'ledger_ods_bt',
'smallbutton ');
169 echo
HtmlInput::anchor_action(_(
"Vente"),
'show_only_row(\'cfgledger_table_id\',\'ledger_type\',\'VEN\')',
'ledger_ven_bt',
'smallbutton ');
171 echo
'<div class="content">';
put_global($array)
Put in superglobal (get,post,request) the value contained in the parameter field (me_parameter)
record_log($p_message)
Record an error message into the log file of the server.
alert($p_msg, $buffer=false)
alert in javascript
h( $row[ 'oa_description'])