phpcompta-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Phpcompta-dev] r256 - trunk/coprop/include


From: phpcompta-dev
Subject: [Phpcompta-dev] r256 - trunk/coprop/include
Date: Thu, 5 Jan 2012 17:23:18 +0100 (CET)

Author: danydb
Date: 2012-01-05 17:23:18 +0100 (Thu, 05 Jan 2012)
New Revision: 256

Modified:
   trunk/coprop/include/class_budget.php
Log:
budget select clef

Modified: trunk/coprop/include/class_budget.php
===================================================================
--- trunk/coprop/include/class_budget.php       2012-01-05 16:20:40 UTC (rev 
255)
+++ trunk/coprop/include/class_budget.php       2012-01-05 16:23:18 UTC (rev 
256)
@@ -33,6 +33,7 @@
                 where b_id=$1",array($this->b_id));
             $a_input=array();
             $fiche_dep=$cn->make_list("select fd_id from fiche_def where 
frd_id=6");
+            $a_key=$cn->make_array(" select cr_id,cr_name from 
coprop.clef_repartition order by cr_name");
             for ($i=0;$i<count($array);$i++)
             {
                 $card=new ICard('f_id'.$i);
@@ -69,9 +70,15 @@
                 $amount=new INum("bt_amount[]");
                 $amount->value=round($array[$i]['bt_amount'],2);
                 $hidden=HtmlInput::hidden("bt_id[]",$array[$i]["bt_id"]);
+                
+                $ikey=new ISelect("key[]");
+                $ikey->value=$a_key;
+                $ikey->selected=$array[$i]['cr_id'];
+                
                 $a_input[$i]["amount"]=$amount->input();
                 $a_input[$i]["hidden"]=$hidden;
                 $a_input[$i]["card"]=$card->input();
+                $a_input[$i]['key']=$ikey->input();
                 
             }
             require_once 'template/bud_detail.php';




reply via email to

[Prev in Thread] Current Thread [Next in Thread]