本文整理汇总了PHP中controlAdminForm类的典型用法代码示例。如果您正苦于以下问题:PHP controlAdminForm类的具体用法?PHP controlAdminForm怎么用?PHP controlAdminForm使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了controlAdminForm类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: controlAdminForm
<?php
$cF = new controlAdminForm();
$c->createEditData($table, $arrAction, $rowDetail);
echo '<form name="form_action" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if (!isset($_POST[$name])) {
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
} else {
$valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '30');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_medium', $properties);
echo $cF->displayTable('Tên biến', $data);
示例2: controlAdminForm
<div class="clear30"></div>
<?php
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowDetail);
$data = $cF->inputHidden('id', $id, 'ad_field');
echo $data;
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio');
echo $cF->displayDiv('Status', $data);
$name = 'menu_id';
$where = "(type_id=6)";
$values = $c->menuList($lang, $where);
$valueCheck = $rowDetail[$name];
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkBoxItem');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data .= $cF->inputHidden($name, $value, 'ad_field listValueItem');
echo $cF->displayDiv('Danh mục hiển thị', '<div class="listCheckBox">' . $data . '</div>');
$name = 'name';
$properties = array();
示例3: array
<div class="clear30"></div>
<?php
$type = array('0' => array('id' => 0, 'name' => 'No'), '1' => array('id' => 1, 'name' => 'Selected'), '2' => array('id' => 2, 'name' => 'Associate'), '3' => array('id' => 3, 'name' => 'Certified'), '4' => array('id' => 4, 'name' => 'Senior'), '5' => array('id' => 5, 'name' => 'Expert'));
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowDetail);
$data = $cF->inputHidden('id', $id, 'ad_field');
echo $data;
$name = 'status';
$values = array();
$values[] = array('name' => 'Enable', 'id' => '1');
$values[] = array('name' => 'Disable', 'id' => '0');
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio');
echo $cF->displayDiv('Status', $data);
$name = 'type';
$values = $type;
if ($rowDetail[$name] != '') {
$valueCheck = $rowDetail[$name];
} else {
$valueCheck = 0;
}
$properties = array();
if ($_SESSION['adminGroup'] != 5) {
$properties[] = array('propertie' => 'disabled', 'value' => 'disabled');
$properties[] = array('propertie' => 'style', 'value' => 'background-color:#EEE');
}
$data = $cF->select($name, $values, $valueCheck, 'ad_field adInput adTxtMedium', $properties);
示例4: controlAdminForm
<div class="clear30"></div>
<?php
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowDetail);
$data = $cF->inputHidden('id', $id, 'ad_field');
echo $data;
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio');
echo $cF->displayDiv('Status', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '30');
$properties[] = array('propertie' => 'check', 'value' => 'user');
$properties[] = array('propertie' => 'message', 'value' => 'Nhập name');
$value = $rowDetail[$name];
$other = '<span class="error adError"></span>';
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties, $other);
echo $cF->displayDiv('Name', $data);
$name = 'value';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$value = $rowDetail[$name];
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties);
示例5: controlAdminForm
<?php
$cF = new controlAdminForm();
$c->createEditData($table, $arrAction, $rowDetail);
echo '<form name="form_action" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'error', 'id' => '3');
$values[] = array('name' => 'check', 'id' => '2');
$values[] = array('name' => 'cancel', 'id' => '0');
$values[] = array('name' => 'success', 'id' => '1');
if (!isset($_POST[$name])) {
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
} else {
$valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'datetime';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
if (!isset($_POST[$name])) {
if ($rowDetail[$name] == 0) {
$value = date('Y-m-d H:i', time());
} else {
$value = date('Y-m-d H:i', $rowDetail[$name]);
示例6: controlAdminForm
<div class="clear30"></div>
<?php
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowDetail);
$data = $cF->inputHidden('id', $id, 'ad_field');
echo $data;
$name = 'status';
$values = array();
$values[] = array('name' => 'Enable', 'id' => '1');
$values[] = array('name' => 'Disable', 'id' => '0');
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio');
echo $cF->displayDiv('Status', $data);
$name = 'code';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '10');
$properties[] = array('propertie' => 'check', 'value' => '5');
$properties[] = array('propertie' => 'message', 'value' => 'Nhập mã môn học');
if ($arrAction['disabled'] != '') {
$properties[] = $arrAction['disabled'];
}
$other = '<span class="error adError"></span>';
$value = $rowDetail[$name];
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties, $other);
echo $cF->displayDiv('Mã môn học', $data);
$name = 'name';
$properties = array();
示例7: controlAdminForm
<?php
$cF = new controlAdminForm();
$c->createEditData($table, $arrAction, $rowDetail);
echo '<form name="form_action" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if (!isset($_POST[$name])) {
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
} else {
$valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
/*$name = 'menu_id';
$values = $c->selectFromMenu($lang, $table);
if(!isset($_POST[$name])){
$valueCheck=$rowDetail[$name];
}else $valueCheck=$_POST[$name];
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkboxItem', 1);
if(!isset($_POST[$name])) $value=$rowDetail[$name]; else $value=$_POST[$name];
$data .= $cF->inputHidden($name, $value, 'input_medium valueChecksBox');
echo $cF->displayTable('Danh mục', '<div class="listCheckboxMedium">'.$data.'</div>');*/
$name = 'position_id';
示例8: controlAdminForm
<div class="clear30"></div>
<?php
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowDetail);
$data = $cF->inputHidden('id', $id, 'ad_field');
echo $data;
$name = 'status';
$values = array();
$values[] = array('name' => 'Chưa phục hồi', 'id' => '0');
$values[] = array('name' => 'Đã phục hồi', 'id' => '1');
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio');
echo $cF->displayDiv('Status', $data);
echo $cF->displayDiv('Date', '<b class="label2">' . $c->viewDateTime($rowDetail['datetime']) . '</b>');
echo $cF->displayDiv('User', '<b class="label2">' . $rowDetail['username'] . '</b>');
echo $cF->displayDiv('Name', '<span class="label2">' . $rowDetail['name'] . '</span>');
echo $cF->displayDiv('Action', '<span class="label2">' . $rowDetail['action'] . '</span>');
echo $cF->displayDiv('Table', '<span class="label2">' . $rowDetail['_table'] . '</span>');
if (isset($rowDetail['content'])) {
echo '<div id="viewLog" class="seo tagsHidden">';
$data = explode('fields%%%values', $rowDetail['content']);
if (count($data) == 2) {
$data_keys = explode(',', $data[0]);
$data_values = explode('%%%', $data[1]);
for ($i = 0; $i < count($data_keys); $i++) {
$name = ucfirst(trim($data_keys[$i], '`'));
if (isset($data_values[$i])) {
示例9: controlAdminForm
<?php
$cF = new controlAdminForm();
$c->createEditData($table, $arrAction, $rowDetail);
echo '<div id="tableName" style="display:none">' . $table . '</div>
<form name="form_action" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if (!isset($_POST[$name])) {
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
} else {
$valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'datetime';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '30');
if (!isset($_POST[$name])) {
if ($rowDetail[$name] == 0) {
$value = date('Y-m-d H:i', time());
} else {
$value = date('Y-m-d H:i', $rowDetail[$name]);
}
示例10: controlAdminForm
<div class="clear30"></div>
<?php
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowDetail);
$data = $cF->inputHidden('id', $id, 'ad_field');
echo $data;
$name = 'datetime';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '16');
if ($rowDetail[$name] == 0) {
$value = date('Y-m-d H:i', time());
} else {
$value = date('Y-m-d H:i', $rowDetail[$name]);
}
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtSmall datetimepick', $properties);
echo $cF->displayDiv('Date đóng', $data);
$name = 'class_id';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '8');
$properties[] = array('propertie' => 'check', 'value' => '1');
$properties[] = array('propertie' => 'message', 'value' => 'Nhập ID lớp học');
$properties[] = array('propertie' => 'placeholder', 'value' => 'ID');
$properties[] = array('propertie' => 'style', 'value' => 'width:80px');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'ad_field adInput value_id', $properties);
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
示例11: array
<div class="clear30"></div>
<?php
$arrStatus = array(array('id' => '0', 'name' => 'Chưa gửi mail'), array('id' => '2', 'name' => 'Đã gửi mail'), array('id' => '1', 'name' => 'Đã xem'));
$arrBranch = array();
$data = $c->_model->_listTable('web_branch', 'id');
foreach ($data as $row) {
$arrBranch[$row['id']] = array('id' => $row['id'], 'name' => $row['name']);
}
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowDetail);
$data = $cF->inputHidden('id', $id, 'ad_field');
echo $data;
if (isset($rowDetail['type'])) {
echo $cF->displayDiv('Type', '<p class="adMessage label2">' . $cons_contact_type[$rowDetail['type']]['name'] . '</p>');
}
if ($rowDetail['header_id'] != '0' && $rowDetail['header_id'] != '') {
$data = $c->_model->_viewEditDetail('web_header', $rowDetail['header_id']);
echo $cF->displayDiv('Khóa học', '<p class="adMessage label2 header_id">' . $data['name'] . '</p>');
} else {
$name = 'course_name';
if ($rowDetail[$name] != '') {
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '150');
$value = $rowDetail[$name];
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties);
echo $cF->displayDiv('Khóa học', $data);
}
}
$name = 'branch';
if ($rowDetail[$name] != '') {
echo $cF->displayDiv('Nơi học', '<p class="adMessage label2 header_id">' . $arrBranch[$rowDetail[$name]]['name'] . '</p>');
示例12: controlAdminForm
<div id="dataAction"><span class="process">Lưu thành công</span></div>
<div id="dataActionBG"></div>
<?php
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowHeader);
echo '<div id="tableName" style="display:none">' . $table . '</div>
<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if ($rowHeader[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowHeader[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'datetime';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '16');
if ($rowHeader[$name] == 0) {
$value = date('Y-m-d H:i', time());
} else {
$value = date('Y-m-d H:i', $rowHeader[$name]);
}
$data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
echo $cF->displayTable('Ngày', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
示例13: controlAdminForm
<div class="clear30"></div>
<?php
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowDetail);
$data = $cF->inputHidden('id', $id, 'ad_field');
echo $data;
$name = 'status';
$values = array();
$values[] = array('name' => 'Enable', 'id' => '1');
$values[] = array('name' => 'Disable', 'id' => '0');
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio');
echo $cF->displayDiv('Status', $data);
$name = 'type';
$values = array();
$values[] = array('name' => 'Form dùng cho quản lý', 'id' => '2');
$values[] = array('name' => 'Form dùng cho Website', 'id' => '1');
if ($rowDetail[$name] == '') {
$valueCheck = 2;
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio form_type');
echo $cF->displayDiv('Loại', $data);
$name = 'type_id';
$values = array();
$values[] = array('id' => '', 'name' => '-- chọn form mẫu --');
示例14: controlAdminForm
<div class="clear30"></div>
<?php
$cF = new controlAdminForm();
$id = $c->createEditData($table, $arrAction, $rowDetail);
$data = $cF->inputHidden('id', $id, 'ad_field');
echo $data;
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio');
echo $cF->displayDiv('Status', $data);
$name = 'users_id';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '5');
$properties[] = array('propertie' => 'placeholder', 'value' => 'User ID');
$properties[] = array('propertie' => 'check', 'value' => '1');
$properties[] = array('propertie' => 'message', 'value' => 'Nhập ID');
$properties[] = array('propertie' => 'style', 'value' => 'width:70px');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$other = '<span class="error adError"></span>';
$data = $cF->inputText($name, $value, 'ad_field insertListRole adInput value_id', $properties, $other);
示例15: controlAdminForm
<?php
$cF = new controlAdminForm();
$c->createEditData($table, $arrAction, $rowDetail);
echo '<form name="form_action" method="post" action="">
<table width="100%" border="0" cellpadding="0" cellspacing="10" style="margin-bottom:50px">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Hiện', 'id' => '1');
$values[] = array('name' => 'Ẩn', 'id' => '0');
if (!isset($_POST[$name])) {
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
} else {
$valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'menu_id';
$where = "(type_id=1 OR type_id=5)";
$values = $c->selectFromMenu($lang, $table, $where);
if (!isset($_POST[$name])) {
$valueCheck = $rowDetail[$name];
} else {
$valueCheck = $_POST[$name];
}
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkboxItem', 1);
if (!isset($_POST[$name])) {