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); } }
echo \SKT_ADMIN_TXT_Field . $i; ?> </span></label> </div> <div class="col-md-4"> <input style="width: 100%; max-width: 100%;" name="<?php echo $FieldName; ?> " type="text" size="30" maxlength="100" value="<?php echo ListField($Lists_Fields->{$FieldName}); ?> " class="form-control"/> </div> <div class="col-md-3"> <?php echo select_field('Field_Type_Field' . $i, 'Field_Type_Field' . $i, $SKTListFieldType, ListFieldType($Lists_Fields->{$FieldName})); ?> </div> <div class="col-md-3"> <input style="width: 100%; max-width: 100%;" name="<?php echo $Field_Type_Opt; ?> " id="<?php echo $Field_Type_Opt; ?> " value="" type="text" class="form-control"/> </div> </div> </div> <?php if (ListField($Lists_Fields->{$FieldName}) != '') {
<?php form_head("admin/m_maintain_add/" . $row["material_id"], "บันทึกรายละเอียดงานซ่อมใหม่ ของ รหัสอ้างอิง " . $row["ref_code"] . " " . $row["name"]); ?> <?php $mtypes = $this->db->query("select * from maintain where category_id = " . $row["category_id"])->result_array(); select_field("maintain_id", "ชนิดงานซ่อม", $mtypes, "maintain_name", null); ?> <?php text_field("maintain_date", "วันทีซ่อม", null, 1, "date"); ?> <?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("price", "ราคาซ่อม", null, 1); ?> <?php text_field("responsible", "เจ้าหน้าที่รับผิดชอบ", null, 1); ?> <?php area_field("remark", "รายละเอียดงานซ่อม", null); ?> <?php form_footer(); ?>
function fools_select_field($name, $values = array(), $options = array()) { $default = "選択してください"; array_unshift($values, $default); $hash = array(); foreach ($values as $value) { $hash[$value] = $value; } $hash[$default] = ""; return select_field($name, $hash); }
text_field("username", "ชื่อผู้ใช้งาน", null, 1, "even"); ?> <?php text_field("password", "รหัสผ่าน", null, 1); ?> <?php text_field("firstname", "ชื่อจริง", null, 0, "even"); ?> <?php text_field("lastname", "นามสกุล", null, 1); ?> <?php text_field("email", "อีเมล์", null, 1, "even"); ?> <?php text_field("tel", "เบอร์โทร", null, 1); ?> <?php text_field("position", "ตำแหน่ง", null, 1, "even"); ?> <?php $rows = $this->db->get("roles")->result_array(); select_field("role_id", "ชนิดผู้ใช้งาน", $rows, "role_name", null, 0, "โปรดเลือก", "", 2); ?> </tbody> </table> <?php form_footer(); ?>
<div class="row"> <div class="col-md-10"> <input name="FileNewFileName" id="FileNewFileName" type="text" value="" class="form-control text-right" style="width: 100%"/> </div> <div class="col-md-2"> <input name="ExtensionFile" value="" id="ExtensionFile" type="text" maxlength="4" class="form-control text-left" style="text-align: left ! important; display: block; line-height: normal; float: left; padding: 0px; margin: 0px 0px 0px -16px; height: 31px;"> </div> </div> </div> </div> <div class="filesizechange" style="display: none;"> <div class="row"> <div class="col-md-12"> <label> <span>Medidas predefinidas:</span></label><br> <?php echo select_field('imagesizeDim', 'imagesizeDim', $SKT['MEDIA']['SIZE']); ?> <i id="MoreOptionFileXY" title="Custom Size" class="skt-iconlist-add" style="font-size: 20px; vertical-align: middle;"></i> </div> </div> <div id="OptionFileXY" class="row"> <div class="col-md-6"> <label> <span><?php echo \SKT_ADMIN_FileSystems_FileX; ?> </span></label><br> <input name="FileNewFileX" id="FileNewFileX" type="text" value="" class="form-control"/> </div> <div class="col-md-6"> <label> <span><?php
<h1>ชนิดงานซ่อม</h1> <?php form_head("admin/maintain_add", "เพิ่มชนิดงานซ่อมใหม่"); ?> <?php $rows = $this->db->get("material_categories")->result_array(); select_field("category_id", "หมวด", $rows, "category_name", null, 1); ?> <?php text_field("maintain_name", "ชื่องานซ่อมใหม่", null, 1); ?> <?php area_field("remark", "หมายเหตุ", null, 1); ?> <?php form_footer(); ?>
$rows = $this->db->query("select budget_id, concat(budget_name,'-', year) as budget_name from budgets")->result_array(); select_field("budget_id", "ชนิดงบประมาณ", $rows, "budget_name", $row, 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(); ?>
<?php $rows = $this->db->get("place")->result_array(); select_field("place_id", "ชือสถานที่ห้อง จัดสรร", $rows, "place_name", $filter, 0, "ทั้งหมด"); ?> <?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", $filter, 0, "ทั้งหมด"); ?> <?php $rows = $this->db->query("select year from budgets group by year")->result_array(); select_field("year", "ปีการศีกษา", $rows, "year", $filter, 0, "ทั้งหมด"); ?> <div class="cleaner"></div> <input style="margin-top:28px;padding:2px 10px;height:30px;" type="submit" value="filter" class="submit"> </fieldset> </form> <style> #content {} .form .field,.form .field select{
echo $i; ?> "> <td align="right" valign="middle"><label><span><?php echo \SKT_ADMIN_TXT_Field . $i; ?> </span></label></td> <td valign="middle"><input name="<?php echo $Add_FieldName; ?> " id="<?php echo $Add_FieldName; ?> " type="text" size="30" maxlength="100" value="" class="form-control"></td> <td valign="middle"><?php echo select_field($Add_Field_Type_Field, $Add_Field_Type_Field, $SKTListFieldType, 2); ?> </td> <td valign="middle"><input name="<?php echo $Add_Field_Type_Opt; ?> " id="<?php echo $Add_Field_Type_Opt; ?> " value="" type="text" class="form-control"/></td> </tr> <?php } ?> </tbody> <tfoot>