示例#1
0
 public function __construct()
 {
     parent::__construct();
     $this->data['style'] = ['bootstrap3-wysihtml5.min', 'editor'];
     $this->data['script'] = ['bootstrap3-wysihtml5.all.min', 'editor'];
     $this->data['form'] = [['name' => 'post_title', 'label' => 'Title', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'post_content', 'label' => 'Content', 'type' => 'wysiwyg', 'items' => NULL, 'rules' => 'required']];
 }
示例#2
0
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'action_name', 'label' => 'Action Name', 'type' => 'input', 'rules' => 'required|max_length[100]'], ['name' => 'action_alias', 'label' => 'Alias', 'type' => 'input', 'rules' => 'required|max_length[50]|is_unique[actions.action_alias]'], ['name' => 'action_desc', 'label' => 'Description', 'type' => 'textarea', 'rules' => 'required'], ['name' => 'action_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'rules' => NULL]];
     $this->data['style'] = [];
     $this->data['script'] = [];
 }
示例#3
0
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'app_name', 'label' => 'Apps Name', 'type' => 'input', 'rules' => 'required|max_length[100]'], ['name' => 'app_desc', 'label' => 'Description', 'type' => 'textarea', 'rules' => NULL], ['name' => 'app_order', 'label' => 'Order', 'type' => 'input', 'rules' => 'required|numeric'], ['name' => 'app_icon', 'label' => 'Icon', 'type' => 'icon', 'rules' => 'max_length[255]'], ['name' => 'app_url', 'label' => 'Apps URL', 'type' => 'input', 'rules' => 'required|max_length[255]'], ['name' => 'app_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'rules' => NULL]];
     $this->data['style'] = [];
     $this->data['script'] = ['list-icon-modal'];
 }
示例#4
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Cntry');
     //$this->load->model('Test1');
     $this->model = $this->Cntry;
     //$this->relations = $this->Test1->option('rid', 'rnme');
 }
示例#5
0
 public function __construct()
 {
     parent::__construct();
     $this->base = $this->router->fetch_module() . '/' . $this->router->fetch_class();
     $this->data['form'] = [['name' => 'user_name', 'label' => 'Username', 'type' => 'input', 'rules' => 'required|max_length[50]|is_unique[users.user_name]'], ['name' => 'user_firstname', 'label' => 'First Name', 'type' => 'input', 'rules' => 'required|max_length[50]'], ['name' => 'user_lastname', 'label' => 'Last Name', 'type' => 'input', 'rules' => 'max_length[50]'], ['name' => 'user_email', 'label' => 'Email', 'type' => 'email', 'rules' => 'required|max_length[100]'], ['name' => 'user_phone', 'label' => 'Phone', 'type' => 'input', 'rules' => 'max_length[15]'], ['name' => 'user_birthdate', 'label' => 'Birth Date', 'type' => 'date', 'rules' => ''], ['name' => 'user_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'rules' => NULL], ['name' => 'role_id[]', 'label' => 'Role(s)', 'type' => 'multiselect', 'items' => $this->role->multiselect('role_name'), 'rules' => NULL]];
     $this->data['style'] = [];
     $this->data['script'] = ['jquery.inputmask', 'jquery.inputmask.date.extensions', 'jquery.inputmask.extensions'];
 }
示例#6
0
 public function __construct()
 {
     parent::__construct();
     $this->base = $this->router->fetch_module() . '/' . $this->router->fetch_class();
     $this->data['recursive'] = ['menu_id', 'menu_parent', 'menu_name'];
     $this->data['form'] = [['name' => 'module_id', 'label' => 'Module', 'type' => 'dropdown', 'items' => $this->module->dropdown('module_name'), 'rules' => 'required'], ['name' => 'menu_name', 'label' => 'Menu Name', 'type' => 'input', 'items' => NULL, 'rules' => 'required|max_length[50]'], ['name' => 'menu_desc', 'label' => 'Description', 'type' => 'textarea', 'items' => NULL, 'rules' => 'required'], ['name' => 'menu_link', 'label' => 'Link', 'type' => 'input', 'items' => NULL, 'rules' => 'required|max_length[255]'], ['name' => 'menu_icon', 'label' => 'Icon', 'type' => 'icon', 'rules' => 'max_length[255]'], ['name' => 'menu_order', 'label' => 'Order', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'menu_parent', 'label' => 'Parent', 'type' => 'dropdown', 'items' => $this->menu->dropdown('menu_name'), 'rules' => 'required'], ['name' => 'menu_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
     $this->data['script'] = ['list-icon-modal', 'sso/menu'];
 }
示例#7
0
 public function __construct()
 {
     parent::__construct();
     $this->_building_plan_unit = ['I' => 'Unit I', 'II' => 'Unit II', 'III' => 'Unit III'];
     for ($i = 1; $i < 10; $i++) {
         $this->_building_plan_level[$i] = 'Level ' . $i;
     }
     $this->data['form'] = [['name' => 'building_plan_unit', 'label' => 'Unit', 'type' => 'dropdown', 'items' => $this->_building_plan_unit, 'rules' => 'required'], ['name' => 'building_plan_level', 'label' => 'Level (floor)', 'type' => 'dropdown', 'items' => $this->_building_plan_level, 'rules' => 'required'], ['name' => 'building_plan_description', 'label' => 'Description', 'type' => 'textarea', 'items' => NULL, 'rules' => 'required'], ['name' => 'building_plan_status', 'label' => 'Is Acitve?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
 }
示例#8
0
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'role_name', 'label' => 'Role Name', 'type' => 'input', 'rules' => 'required|max_length[100]'], ['name' => 'role_desc', 'label' => 'Description', 'type' => 'textarea', 'rules' => NULL], ['name' => 'role_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'rules' => NULL]];
 }
示例#9
0
 public function __construct()
 {
     parent::__construct();
     $this->data['recursive'] = ['category_id', 'category_parent', 'category_name'];
     $this->data['form'] = [['name' => 'category_parent', 'label' => 'Is Sub From', 'type' => 'dropdown', 'items' => $this->category->dropdown('category_name'), 'rules' => NULL], ['name' => 'category_name', 'label' => 'Name', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'category_description', 'label' => 'Description', 'type' => 'textarea', 'items' => NULL, 'rules' => 'required']];
 }
示例#10
0
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'vehicle_type_id', 'label' => 'Vehicle Type', 'type' => 'dropdown', 'items' => $this->vehicle_type->dropdown('vehicle_type_name'), 'rules' => 'required'], ['name' => 'vehicle_rate_6_hour', 'label' => '6 Hour', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'vehicle_rate_12_hour', 'label' => '12 Hour', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'vehicle_rate_24_hour', 'label' => '24 Hour', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'vehicle_rate_monthly', 'label' => 'Monthly', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'vehicle_rate_extend_hour', 'label' => 'Hourly Extend (%)', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'vehicle_rate_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
 }
示例#11
0
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'vehicle_type_id', 'label' => 'Vehicle Type', 'type' => 'dropdown', 'items' => $this->vehicle_type->dropdown('vehicle_type_name'), 'rules' => 'required'], ['name' => 'vehicle_police_number', 'label' => 'Police Number', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'vehicle_color', 'label' => 'Color', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'vehicle_chassis_number', 'label' => 'Chassis Number', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'vehicle_engine_number', 'label' => 'Engine Number', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'vehicle_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
 }
示例#12
0
文件: Sla.php 项目: soniibrol/package
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'sla_type_id', 'label' => 'Sla Type', 'type' => 'dropdown', 'items' => $this->sla_type->dropdown('sla_type_name'), 'rules' => 'required'], ['name' => 'item_id', 'label' => 'Item', 'type' => 'dropdown', 'items' => $this->item->dropdown('item_name'), 'rules' => 'required'], ['name' => 'sla_day', 'label' => 'Day', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'sla_spmb', 'label' => 'SPMB', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'sla_offering', 'label' => 'Offering', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'sla_approve_1', 'label' => 'First Approval', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'sla_approve_2', 'label' => 'Second Approval', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'sla_bs', 'label' => 'BS', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'sla_po', 'label' => 'PO', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'sla_production', 'label' => 'Production', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'sla_received', 'label' => 'REceived', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'sla_total_day', 'label' => 'Total Day', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'sla_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
 }
示例#13
0
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'item_type_name', 'label' => 'Name', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'item_type_desc', 'label' => 'Description', 'type' => 'textarea', 'items' => NULL, 'rules' => 'required'], ['name' => 'item_type_status', 'label' => 'Is Acitve?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
 }
示例#14
0
 public function __construct()
 {
     parent::__construct();
 }
示例#15
0
 public function __construct()
 {
     parent::__construct();
     $this->view = FALSE;
     $this->load->library('form_validation');
 }
示例#16
0
 public function __construct()
 {
     parent::__construct();
     $this->data['id'] = $this->item_type->primary_key;
     $this->data['form'] = [['name' => 'user_name', 'label' => 'Username', 'type' => 'input', 'rules' => 'required|max[50]|is_unique[users.user_name]'], ['name' => 'user_password', 'label' => 'Password', 'type' => 'password', 'rules' => 'required|min[8]|max[50]'], ['name' => 'user_firstname', 'label' => 'First Name', 'type' => 'input', 'rules' => 'required|max[50]'], ['name' => 'user_last', 'label' => 'Last Name', 'type' => 'input', 'rules' => 'max[50]'], ['name' => 'user_email', 'label' => 'Email', 'type' => 'email', 'rules' => 'required|max[100]'], ['name' => 'user_phone', 'label' => 'Phone', 'type' => 'input', 'rules' => 'max[15]'], ['name' => 'user_birthdate', 'label' => 'Birth Date', 'type' => 'date', 'rules' => ''], ['name' => 'user_status', 'label' => 'Is Acitve?', 'type' => 'checkbox', 'rules' => NULL]];
 }
示例#17
0
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'building_plan_id', 'label' => 'Building Plan', 'type' => 'dropdown', 'items' => $this->building_plan->dropdown('building_plan_unit'), 'rules' => 'required'], ['name' => 'room_name', 'label' => 'Name', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'room_capacity', 'label' => 'Capacity', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'room_number_of_seats', 'label' => 'Seats', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'room_have_whiteboard', 'label' => 'Have Whiteboard', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL], ['name' => 'room_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
 }
示例#18
0
 public function __construct()
 {
     parent::__construct();
     $this->load->helper(['extension', 'string']);
     $this->view = FALSE;
 }
示例#19
0
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'app_id', 'label' => 'Apps', 'type' => 'dropdown', 'items' => $this->apps->dropdown('app_name'), 'rules' => 'required'], ['name' => 'module_name', 'label' => 'Modules', 'type' => 'input', 'items' => NULL, 'rules' => 'required|max_length[50]'], ['name' => 'module_desc', 'label' => 'Description', 'type' => 'textarea', 'items' => NULL, 'rules' => 'required'], ['name' => 'module_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
 }
示例#20
0
 public function __construct()
 {
     parent::__construct();
     $this->view = FALSE;
     $this->data['category'] = $this->category->get_all();
 }
示例#21
0
 public function __construct()
 {
     parent::__construct();
     $this->view = FALSE;
 }
示例#22
0
文件: Tag.php 项目: soniibrol/package
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [];
 }
示例#23
0
 public function __construct()
 {
     parent::__construct();
     $this->load->model('Prvnc');
 }
示例#24
0
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'vehicle_type_brand', 'label' => 'Brand', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'vehicle_type_name', 'label' => 'Name', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'vehicle_type_year', 'label' => 'Year', 'type' => 'input', 'items' => NULL, 'rules' => 'required|numeric'], ['name' => 'vehicle_type_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
 }
示例#25
0
 public function __construct()
 {
     parent::__construct();
     $this->_extention_type = ['fax' => 'Fax', 'direct' => 'Direct', 'hunting' => 'Hunting'];
     $this->data['form'] = [['name' => 'extention_type', 'label' => 'Type', 'type' => 'dropdown', 'items' => $this->_extention_type, 'rules' => 'required'], ['name' => 'extention_number', 'label' => 'Number', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'extention_status', 'label' => 'Is Acitve?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
 }
示例#26
0
 public function __construct()
 {
     parent::__construct();
     $this->data['form'] = [['name' => 'item_type_id', 'label' => 'Type', 'type' => 'dropdown', 'items' => $this->item_type->dropdown('item_type_name'), 'rules' => 'required'], ['name' => 'item_name', 'label' => 'Name', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'item_description', 'label' => 'Description', 'type' => 'textarea', 'items' => NULL, 'rules' => 'required'], ['name' => 'item_sku_number', 'label' => 'SKU Number', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'item_stock', 'label' => 'Stock', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'item_unit', 'label' => 'Unit', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'item_price', 'label' => 'Price', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'item_bun', 'label' => 'BUN', 'type' => 'input', 'items' => NULL, 'rules' => 'required'], ['name' => 'item_status', 'label' => 'Is Active?', 'type' => 'checkbox', 'items' => NULL, 'rules' => NULL]];
 }