<?php

/****
	views	: member/memberPermisionEditForm_view
	created	: 09-11-2015 11:09:06
	By		: Gunawan Wibisono
	Using 	: CI3 Main Model
****/
defined('BASEPATH') or exit('No direct script access allowed');
ob_start();
$module = "permision";
//change this
$data = $this->{$module}->getData($post['permit_id'], 'permit_id');
$id = dbIdReport('id', 'edit mujur_permision', $post['permit_id']);
$atr = array('id' => 'frmMain');
$hidden = array('type' => 'update', 'permit_id' => $post['permit_id']);
echo form_open('', $atr, $hidden);
echo bsInput("Nama", 'name', $data['name'], 'Nama Yang Jelas');
?>
 
	<?php 
$atr = array('onclick' => 'saveFormData()');
echo bsButton('Save', 0, 'btn-save', $atr);
?>
</form>
<?php 
$content = ob_get_contents();
ob_end_clean();
$result = array('body' => $content, 'title' => 'Update mujur_permision', 'footer' => ' ');
echo json_encode($result);
echo form_open('email/send', $atr, $hidden);
$atr = array('onclick' => 'saveFormData()');
echo bsButton('Save', 0, 'btn-save', $atr);
?>
 
	<?php 
echo bsInput("Menu", 'name', '', 'pendek');
$SQL = "select name from {$this->menu->tableIcon}";
//{$data['menu_parent']}";
$result = dbQuery($SQL, 1);
$i = 0;
$icons = array();
foreach ($result->result_array() as $row) {
    $icons[$row['name']] = $row['name'];
}
echo bsSelect("Icon", "icon", $icons, '');
?>
	<?php 
echo bsInput("Title", 'title', '', 'Nama yang Jelas');
?>
	<!--?=bsInput("Href",$name, $value='',$info='');?-->
	<?php 
$atr = array('onclick' => 'saveFormData()');
echo bsButton('Save', 0, 'btn-save', $atr);
?>
</form>
<?php 
$content = ob_get_contents();
ob_end_clean();
$result = array('body' => $content, 'title' => 'Menambah Menu Utama', 'footer' => '-');
echo json_encode($result);
<?php

/****
	views	: member/memberPermisionAddForm_view
	created	: 09-11-2015 11:09:06
	By		: Gunawan Wibisono
	Using 	: CI3 Main Model
****/
defined('BASEPATH') or exit('No direct script access allowed');
ob_start();
$atr = array('id' => 'frmMain');
$hidden = array('type' => 'save');
echo form_open('', $atr, $hidden);
echo bsInput("Nama", 'name', '', 'Nama Yang Jelas');
?>
 
	<?php 
$atr = array('onclick' => 'saveFormData()');
echo bsButton('Save', 0, 'btn-save', $atr);
?>
</form>
<?php 
$content = ob_get_contents();
ob_end_clean();
$result = array('body' => $content, 'title' => 'Menambah mujur_permision ', 'footer' => ' ');
echo json_encode($result);
예제 #4
0
****/
defined('BASEPATH') or exit('No direct script access allowed');
?>
<div   class='formGenerator'>
<?php 
if (isset($post['type'])) {
    echo bsText("Detail", 'detail', $detail, 10);
} else {
}
$atr = array('id' => 'frmMainMenu');
$hidden = array('type' => 'generate model');
echo form_open('', $atr, $hidden);
?>
	
<?php 
echo bsInput("Nama Model", 'name', '', 'nama model');
echo bsInput("Table id", 'tableid', 'id', 'table untuk counter');
echo bsInput("Table counter", 'counter', '100', 'counter');
$tables = array();
$table = $this->db->list_tables();
foreach ($table as $val) {
    if (strpos($val, "id_") === false) {
        $tables[$val] = $val;
    }
}
echo bsSelect("Table", "table", $tables, 101);
$atr = array('onclick' => 'saveFormData()');
echo bsButton('Go', 1, 'btn-save', $atr);
?>
	</div>
</form> 
예제 #5
0
$icons = array();
foreach ($result->result_array() as $row) {
    $name = $row['name'];
    $icons[$name] = $name;
}
echo bsSelect("Icon", "icon", $icons, $data['icon']);
?>
	
	<?php 
echo bsInput("Title", 'title', $data['title'], 'Nama yang Jelas');
?>
	<?php 
echo bsInput("Position", 'pos', $data['position'], '');
?>
	<?php 
echo bsInput("Href", 'href', $data['href'], '');
$SQL = "select permit_id id, permit_name name \n\tfrom {$this->permision->table} order by permit_name";
//{$data['menu_parent']}";
$result = dbQuery($SQL, 1);
$i = 0;
$shows = array();
foreach ($result->result_array() as $row) {
    $name = $row['name'];
    $shows[$row['id']] = $name;
}
echo bsSelect("Show Permision", "show", $shows, $data['show']);
?>
	
	<?php 
echo bsText("Detail", 'detail', $data['detail']);
?>
예제 #6
0
	<?php 
echo bsInput("Menu", 'name', '', 'pendek');
$SQL = "select name from {$this->menu->tableIcon}";
//{$data['menu_parent']}";
$result = dbQuery($SQL, 1);
$i = 0;
$icons = array();
foreach ($result->result_array() as $row) {
    $icons[$row['name']] = $row['name'];
}
echo bsSelect("Icon", "icon", $icons, '');
?>
	<?php 
echo bsInput("Title", 'title', '', 'Nama yang Jelas');
?>
	<?php 
echo bsInput("Href", 'href', '', '');
?>
	<?php 
echo bsText("Detail", 'detail');
?>
	<?php 
$atr = array('onclick' => 'saveFormData()');
echo bsButton('Save', 0, 'btn-save', $atr);
?>
</form>
<?php 
$content = ob_get_contents();
ob_end_clean();
$result = array('body' => $content, 'title' => 'Menambah Sub Menu ', 'footer' => '-');
echo json_encode($result);
예제 #7
0
<?php

/****
	views	: core/coreTablesAddForm_view
	created	: 13-11-2015 21:36:57
	By		: Gunawan Wibisono
	Using 	: CI3 Main Model
****/
defined('BASEPATH') or exit('No direct script access allowed');
ob_start();
$atr = array('id' => 'frmMain');
$hidden = array('type' => 'save');
echo form_open('', $atr, $hidden);
echo bsInput("prefix", 'prefix', '', 'Pendek');
echo bsInput("Nama", 'name', '', 'Nama Yang Jelas');
echo bsInput("Module", 'module', 'temp', '');
?>
	
	<?php 
$atr = array('onclick' => 'saveFormData()');
echo bsButton('Save', 0, 'btn-save', $atr);
?>
</form>
<?php 
$content = ob_get_contents();
ob_end_clean();
$result = array('body' => $content, 'title' => 'Menambah Data Table ', 'footer' => ' ');
echo json_encode($result);
예제 #8
0
		</td>
		</tr>
		<?php 
echo bsInput(lang('forex_agent'), 'agent', '', lang('forex_inputsuggestion'));
?>
	
		</table>
		</div>
		<div class="frame-form-basic">
		<h2>Contact Information</h2>
		<table class='formBasic' border="0"> 
			<?php 
echo bsInput(lang('forex_email'), 'email', '', lang('forex_inputsuggestion'));
?>
			<?php 
echo bsInput(lang('forex_phone'), 'phone', '', lang('forex_inputsuggestion'));
?>
		<tr>
			<td><label for="input_date">Date of Birth</label></td><td>&nbsp;</td>
			<td><div class="form-group">
			  <input name="dob1" value="<?php 
echo date("d", strtotime("-20 years"));
?>
" id="input_date" class="dob"  type="text"> -
			  <input name="dob2" value="<?php 
echo date("m", strtotime("-20 years"));
?>
" id="input_date2" class="dob"  type="text"> -
			  <input name="dob3" value="<?php 
echo date("Y", strtotime("-20 years"));
?>
예제 #9
0
<?php

/****
	views	: core/coreMycontroller_view
	created	: 14-11-2015 10:09:00
	By		: Gunawan Wibisono
	Using 	: CI3 Main Model
****/
defined('BASEPATH') or exit('No direct script access allowed');
?>
<div style='' class='formGenerator'>
<?php 
if (isset($post['type'])) {
    echo bsText("Detail", 'detail', $detail, 10);
} else {
}
$atr = array('id' => 'frmMainMenu');
$hidden = array('type' => 'generate model');
echo form_open('', $atr, $hidden);
echo bsInput("Nama Controller", 'name1', '', 'nama controller');
echo bsInput("Nama Fungsi", 'name2', '', 'nama Function');
echo bsInput("Default Menu", 'default', 'temp', 'table untuk counter');
?>

<?php 
$atr = array('onclick' => 'saveFormData()');
echo bsButton('Go', 1, 'btn-save', $atr);
?>
	</div>
</form> 
예제 #10
0
 function data($params)
 {
     $CI = $this->CI;
     ob_start();
     extract($params);
     //-------DATA
     if ($group == 0) {
         $group = 62;
     } else {
     }
     if (!is_array($group)) {
         $group = array($group);
     }
     $valGroup = "'" . implode("','", $group) . "'";
     if ($post['id'] != 0) {
         $SQL = "select obj_id id, obj_group `group`\n\t\tFROM " . $CI->objProduct->table . "   \n\t\twhere `obj_group` in({$valGroup})\n\t\tand obj_id=" . $post['id'];
         $result = dbQuery($SQL, 1);
         $row0 = $result->row_array();
         $row = $CI->objProduct->detail($row0['id']);
         $groupData = $CI->group->detail($row0['group']);
         $catData = $CI->category->detail($row['category']);
     } else {
         $row = $groupData = $catData = array();
     }
     $oth = array('onclick' => 'saveCategory()');
     $form = array();
     if (isset($row['code'])) {
         $s = form_hidden('id', $post['id']);
         $s .= bsInput('Code', 'code', $row['code']);
         $s .= bsInput('Name', 'name1', $row['name0']);
         $s .= bsInput('Invoice Name', 'name2', $row['name']);
         $s .= bsInput('Entity', 'entity', $row['entity']);
         $s .= bsText('Detail', 'note', $row['detail']);
     } else {
         $s = form_hidden('id', $post['id']);
         $s .= bsInput('Code', 'code');
         $s .= bsInput('Name', 'name1');
         $s .= bsInput('Invoice Name', 'name2');
         $s .= bsInput('Entity', 'entity');
         $s .= bsText('Detail', 'note');
     }
     $form['object'] = $s;
     $s = '';
     if (!isset($groupData['name'])) {
         $groupData = $CI->group->detail($group[0]);
         $s .= "<h4>NEW INPUT FOR GROUP</h4>";
         if (count($groupData) > 1) {
             $s .= form_hidden('group', $group[0]);
         } else {
             $groupData = $CI->group->detail($group[1]);
             $s .= form_hidden('group', $group[1]);
         }
         //json_encode($group);
     } else {
     }
     $s .= "Name:" . $groupData['name'];
     $s .= "<br/>" . $groupData['detail'];
     $form['group'] = $s;
     $s = '';
     $data = $CI->category->listAll($group);
     ///=======category
     $category = isset($row['category']) ? $row['category'] : 0;
     $s .= bsSelect('Category', 'category', $data, $category);
     if (isset($catData['detail'])) {
         $s .= "<hr/> Name:" . $catData['name'];
         $s .= "<br/>" . $catData['detail'];
     } else {
     }
     $form['category'] = $s;
     $s = '';
     //=========result
     $txt = ob_get_contents();
     ob_end_clean();
     $responce['body'] = $form;
     if ($txt != '') {
         $responce['error'] = $txt;
     }
     $responce['footer'] = '';
     $responce['data'] = array('object' => $row, 'group' => $groupData, 'category' => $catData);
     return $responce;
 }