function field_html($args, $arrSlide = array())
 {
     switch ($args['type']) {
         case 'textarea':
             return text_area($args, $arrSlide);
         case 'checkbox':
             return checkbox_field($args, $arrSlide);
         case 'select':
             return select_field($args, $arrSlide);
         case 'image':
             return image_field($args, $arrSlide);
         default:
             return text_field($args, $arrSlide);
     }
 }
Ejemplo n.º 2
0
?>
		<?php 
$rows = $this->db->get("place")->result_array();
select_field("place_id", "ชือสถานที่ห้อง จัดสรร", $rows, "place_name", $row, 0);
?>
		
		      	<?php 
$rows = $this->db->get("material_categories")->result_array();
select_field("category_id", "หมวด", $rows, "category_name", $row, 1);
?>
		
		      	<?php 
$rows = $this->db->query("select company_id,concat(company_name,':',address)as company_name from company")->result_array();
select_field("company_id", "บริษัทที่ซื้อมา", $rows, "company_name", $row, 0);
?>
		  <?php 
text_field("responsible", "เจ้าหน้าที่รับผิดชอบ", $row, 1);
?>
		 
		<?php 
area_field("detail", "รายละเอียด", $row, 1, "width800 height100");
?>
        <?php 
image_field("thumbnail", "รูป", $row, 1);
?>
  
		<?php 
form_footer();
?>
          
          
Ejemplo n.º 3
0
$rows = $this->db->get("place")->result_array();
select_field("place_id", "ชือสถานที่ห้อง จัดสรร", $rows, "place_name", null, 0);
?>
		
		      	<?php 
$rows = $this->db->get("material_categories")->result_array();
select_field("category_id", "หมวด", $rows, "category_name", null, 1);
?>
		
		      	<?php 
$rows = $this->db->query("select company_id,concat(company_name,':',address)as company_name from company")->result_array();
select_field("company_id", "บริษัทที่ซื้อมา", $rows, "company_name", null, 0);
?>
		  <?php 
text_field("responsible", "เจ้าหน้าที่รับผิดชอบ", null, 1);
?>
		 
		<?php 
area_field("detail", "รายละเอียด", null, 1, "width800 height100");
?>
        <?php 
image_field("thumbnail", "รูป", null, 1);
?>
  
		<?php 
form_footer();
?>