Author: danydb
Date: 2011-11-23 14:49:36 +0100 (Wed, 23 Nov 2011)
New Revision: 4449

Modified:
   phpcompta/trunk/include/class_follow_up.php
Log:
#371 change type of document

Modified: phpcompta/trunk/include/class_follow_up.php
===================================================================
--- phpcompta/trunk/include/class_follow_up.php 2011-11-23 13:41:55 UTC (rev 
4448)
+++ phpcompta/trunk/include/class_follow_up.php 2011-11-23 13:49:36 UTC (rev 
4449)
@@ -145,11 +145,17 @@
         }
         else
         {
-            // Doc Type
+            /*// Doc Type
             $doc_type=new IHidden();
             $doc_type->name="dt_id";
             $doc_type->value=$this->dt_id;
-            $str_doc_type=$doc_type->input().$this->db->get_value("select 
dt_value from document_type where dt_id=".$this->dt_id);
+            $str_doc_type=$doc_type->input().$this->db->get_value("select 
dt_value from document_type where dt_id=".$this->dt_id);*/
+             $doc_type=new ISelect();
+            $doc_type->name="dt_id";
+            $doc_type->value=$this->db->make_array("select dt_id,dt_value from 
document_type");
+            $doc_type->selected=$this->dt_id;
+            $doc_type->readonly=false;
+            $str_doc_type=$doc_type->input();
         }
 
         // Description


_______________________________________________
Phpcompta-dev mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/phpcompta-dev

Reply via email to