25<form method=
"post" action=
"do.php" style=
"display:inline">
31 $name=
$http->post(
"name_key",
"string",$this->key->getp(
'name'));
35 <div
style=
"width:30%;display:inline-block;min-height: 75px">
41 <div
style=
"width: 65%;display:inline-block;min-height: 75px">
49 <?php echo _(
'RĂ©partition'); ?>
51 <
table id=
"key_account_tb" class=
"result" style=
"margin-left: 8%;width:84%;margin-right:8%">
53 <
th><?php echo _(
'n°'); ?></
th>
56 for (
$i=0;
$i<count($plan);
$i++):
59 <?php echo $plan[
$i][
'pa_name']; ?>
66 <?php echo _(
'Pourcentage'); ?>
73 $a_row [0][
'ke_percent']=0;
82 <?php echo
$a_row[$j][
'ke_row']; ?>
89 for (
$i=0;
$i<count($plan);
$i++):
93 $a_poste=
$cn->make_array(
"select po_id,po_name from poste_analytique where pa_id=$1", 1, array($plan[
$i][
'pa_id']));
97 from key_distribution_activity as ka
98 join key_distribution_detail using (ke_id)
99 join key_distribution using (kd_id)
100 left join poste_analytique using(po_id)
102 where ke_id=$1 and ka.pa_id=$2 ', array(
$a_row[$j][
'ke_id'],$plan[
$i][
'pa_id']));
109 if (isset(
$_POST[
'po_id']))
111 $a_po_id=
$http->post(
'po_id',
"array",array());
113 $a_percent=
$http->post(
'percent',
"array", array());
129 $inum_percent->javascript=
' onchange="format_number(this,2);anc_key_compute_table();"';
138 <tfoot
style=
"font-weight: bolder">
140 <
td style=
"width: auto" colspan=
"<?php echo count($plan)+1;?>">
141 <?php echo _(
'Total')?>
149<input
type=
"button" class=
"smallbutton" value=
"<?php echo _('Ajout ligne')?>" onclick=
"add_row_key('key_account_tb');">
154 <?php echo _(
"Disponible dans les journaux "); ?>
157 <div
style=
"margin-left: 8%;width:84%;margin-right:8%">
160 if ( $this->key->getp(
"id") == -1 )
163 $jrn=
$cn->get_array(
'select null as kl_id,jrn_def_id,jrn_def_name,jrn_def_description
165 order by jrn_def_name ');
168 $jrn=
$cn->get_array(
'select kl_id,jrn_def_id,jrn_def_name,jrn_def_description
170 left join key_distribution_ledger using (jrn_def_id)
171 where kd_id=$1 or kd_id is null
172 order by jrn_def_name ', array($this->key->getp(
'id')));
176 <
table id=
"jrn_def_tb" class=
"result">
192 <?php echo
h(
$jrn[
$i][
'jrn_def_name']); ?>
195 <?php echo
h(
$jrn[
$i][
'jrn_def_description']); ?>
207<form
style=
"display:inline" action=
"do.php" id=
"anc_key_input_frm" method=
"post">
212 if ($this->key->getp(
'id') != -1) echo
HtmlInput::submit(
'delete_key', _(
'Effacer'),
'onclick="return confirm_box(\'anc_key_input_frm\',\''._(
'Confirmer effacement?').
'\')
"'); ?>
h2($p_string, $p_class="", $raw="")
th($p_string, $p_extra='', $raw='')
span($p_string, $p_extra='')
tr($p_string, $p_extra='')
nb($p_number)
format the number for the CSV export
td($p_string='', $p_extra='')
surround the string with td
h( $row[ 'oa_description'])
This class handles only the numeric input, the input will call a javascript to change comma to period...
Html Input , create a tag <SELECT> ... </SELECT> if readonly == true then display the label correspon...
static infobulle($p_comment)
Display a info in a bubble, text is in message_javascript.