key->getp('id')); $name=HtmlInput::default_value_post("name_key",$this->key->getp('name')); $description_text=HtmlInput::default_value_post("description_key",$this->key->getp('description')); ?>
input(); ?>
css_size='70%'; echo $description->input(); ?>

make_array("select po_id,po_name from poste_analytique where pa_id=$1", 1, array($plan[$i]['pa_id'])); $select=new ISelect('po_id['.$j.'][]'); $select->value=$a_poste; $value=$cn->get_array('select po_id,ke_percent from key_distribution_activity as ka join key_distribution_detail using (ke_id) join key_distribution using (kd_id) left join poste_analytique using(po_id) where ke_id=$1 and ka.pa_id=$2 ', array($a_row[$j]['ke_id'],$plan[$i]['pa_id'])); $selected=-1; if (sizeof($value)==1) { $selected=$value[0]['po_id']; } if (isset($_POST['po_id'])) { $a_po_id=HtmlInput::default_value_post('po_id', array()); $selected=$a_po_id[$j][$i]; $a_percent=HtmlInput::default_value_post('percent', array()); $percent=$a_percent[$j]; } $select->selected=$selected; ?>
input(); ?> javascript=' onchange="format_number(this,2);anc_key_compute_table();"'; $inum_percent->value=sprintf("%.2f",$percent); echo $inum_percent->input(); ?>
%

key->getp("id") == -1 ) { // for a new key $jrn=$cn->get_array('select null as kl_id,jrn_def_id,jrn_def_name,jrn_def_description from jrn_def order by jrn_def_name '); }else { // for an existing one $jrn=$cn->get_array('select kl_id,jrn_def_id,jrn_def_name,jrn_def_description from jrn_def left join key_distribution_ledger using (jrn_def_id) where kd_id=$1 or kd_id is null order by jrn_def_name ', array($this->key->getp('id'))); } $post_jrn=HtmlInput::default_value_post("jrn",-1); ?>
value=$jrn[$i]['jrn_def_id']; ?> selected=false; if ( ($post_jrn == -1 && $jrn[$i]['kl_id']<>"" ) || (is_array($post_jrn) && in_array($jrn[$i]['jrn_def_id'], $post_jrn))) { $checkbox->selected=true; } ?> input(); ?>
key->getp('id')); if ($this->key->getp('id') != -1) echo HtmlInput::submit('delete_key', _('Effacer'),'onclick="return confirm_box(\'anc_key_input_frm\',\''._('Confirmer effacement?').'\')"'); ?>