From c87aaca24edb3e2d90276c2e2c85568cceb6e783 Mon Sep 17 00:00:00 2001 From: sparkyx Date: Mon, 17 Sep 2007 14:40:25 +0000 Subject: [PATCH] Code cleaning --- include/jrn.php | 64 ------------------------------------------------- 1 file changed, 64 deletions(-) diff --git a/include/jrn.php b/include/jrn.php index e677fc025..43ca0d9ee 100644 --- a/include/jrn.php +++ b/include/jrn.php @@ -1121,68 +1121,4 @@ function display_table_ca($p_cn,$p_seq,$p_jid,$p_own,$p_mode,$p_amount) { return ""; } -/* -function display_table_ca2($p_cn,$p_jid,$p_own,$p_mode) { - $r=""; - $head_ca=""; - $plan=new PlanAnalytic($p_cn); - $a_plan=$plan->get_list(); - foreach ($a_plan as $r_plan) - { - $head_ca.=""; - } - $head_ca.=""; - - - $r.=$head_ca.''; - - // show form - $op=new operation($p_cn); - $null=($p_own->MY_ANALYTIC=='op')?1:0; - - // $r.=$op->display_form_plan($null,"form",$i,round($fiche_with_vat,2)); - - $plan=new PlanAnalytic($p_cn); - $a_plan=$plan->get_list(); - $max_plan=$plan->count(); - // Get all the operation - $op=new operation($p_cn); - $op_array=$op->get_by_jid($p_jid); - echo_debug(__FILE__.':'.__LINE__, "array is ",$op_array); - $count_plan=0; - $r.=""; - foreach ($op_array as $row) - { - - - $array=make_array($p_cn, - "select po_id as value,". - " po_name as label from poste_analytique ". - " where pa_id = ".$row->pa_id. - " order by po_name",$null); - - - $select = new widget("select","","plan_".$row->pa_id."_".$p_jid,$array); - - $select->selected=$row->po_id; - - $select->table=0; - echo_debug(__FILE__.":".__LINE__,"select ",$select); - $select->readonly=($p_mode==0)?true:false; - $r.=''; - $count_plan++; - if ( $count_plan == $max_plan) { - $ca_amount=new widget("text"); - $r.=""; - $r.=""; - $count_plan=0; - } - - } - $r.="
".$r_plan['name']."Montant
'.$select->IOValue().'".$ca_amount->IOValue("amount",$row->oa_amount); - $r.="
"; - - return $r; -} -*/ ?>