本文整理汇总了PHP中controlAdminForm::displayTable方法的典型用法代码示例。如果您正苦于以下问题:PHP controlAdminForm::displayTable方法的具体用法?PHP controlAdminForm::displayTable怎么用?PHP controlAdminForm::displayTable使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类controlAdminForm
的用法示例。
在下文中一共展示了controlAdminForm::displayTable方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<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' => '100');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_medium', $properties);
echo $cF->displayTable('Tên gói', $data);
$name = 'price';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '10');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
示例2: array
<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])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data .= $cF->inputHidden($name, $value, 'input_medium valueChecksBox');
示例3: array
<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);
if ($rowDetail['group_id'] != 3 && $id != 0) {
echo $cF->displayTable('Ngày đăng ký', '<p style="color:#00F; font-weight:bold; margin-top:3px">' . $c->viewDatetime($rowDetail['datetime']) . '</p>');
$name = 'date_expiration';
$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]);
}
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
示例4: array
<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';
$values = $c->_model->_listSliderBannerPosition();
if (!isset($_POST[$name])) {
$valueCheck = $rowDetail[$name];
} else {
$valueCheck = $_POST[$name];
示例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">';
$name = 'status';
$values = array();
$values[] = array('name' => 'Chưa phục hồi', 'id' => '0');
$values[] = array('name' => 'Đã phục hồi', 'id' => '1');
$valueCheck = $rowDetail[$name];
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
echo $cF->displayTable('Date create', date('Y-m-d H:i:s', $rowDetail['datetime']));
echo $cF->displayTable('User create', $rowDetail['username']);
echo $cF->displayTable('Mô tả', $rowDetail['name']);
echo $cF->displayTable('Action', $rowDetail['action']);
echo $cF->displayTable('Table', $rowDetail['table']);
$btnSubmit = '';
if ($rowDetail['action'] == 'update' || $rowDetail['action'] == 'delete') {
if ($rowDetail['status'] == 1) {
echo $cF->displayTable('Date restore', date('Y-m-d H:i:s', $rowDetail['date_restore']));
echo $cF->displayTable('User restore', $rowDetail['user_restore']);
} else {
$name = 'btn_view_log';
$btnSubmit = $cF->inputButton($name, 'View log', 'submit');
}
} elseif ($rowDetail['action'] == 'status') {
echo $cF->displayTable('Values', $rowDetail['content']);
}
$name = 'btnCancel';
示例6: array
<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' => '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]);
}
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
echo $cF->displayTable('Ngày', $data);
$name = 'menu_id';
示例7: controlAdminForm
<?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 = 'menu_id';
$where = "(type_id=1 OR type_id=2 OR type_id=3)";
$values = $c->menuList($lang, $where);
$valueCheck = $rowHeader[$name];
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkBoxMenuID', 1);
示例8: controlAdminForm
<?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');
$value = $rowHeader[$name];
$data = $cF->inputText($name, $value, 'input_medium', $properties);
示例9: array
<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 = 'position_id';
$values = $c->_model->_listMenuPosition();
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('Vị trí hiển thị', $data);
示例10: 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">';
echo $cF->displayTable('Ngày liên hệ', '<p style="color:#00F; font-weight:bold; margin-top:3px">' . $c->viewDatetime($rowDetail['datetime']) . '</p>');
$name = 'status';
$values = array();
$values[] = array('name' => 'Chưa gửi', 'id' => '0');
$values[] = array('name' => 'Đã gửi', 'id' => '2');
$values[] = array('name' => 'Đã xem', 'id' => '1');
if (!isset($_POST[$name])) {
if ($rowDetail[$name] == '') {
$valueCheck = 0;
} else {
$valueCheck = $rowDetail[$name];
}
} else {
$valueCheck = $_POST[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'nhanvien_lienhe';
$values = $c->_model->_listDanhSachNhanVien();
array_unshift($values, array('name' => '-- chọn nhân viên --', 'id' => ''));
if (!isset($_POST[$name])) {
$valueCheck = $rowDetail[$name];
} else {
$valueCheck = $_POST[$name];
}
示例11: array
echo $data;
$name = 'tab_id';
$values = $adA->_model->_listMenuTab();
if (!isset($_POST[$name])) {
$valueCheck = $rowDetail[$name];
} else {
$valueCheck = $_POST[$name];
}
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkboxItemTab', 1);
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data .= $cF->inputHidden($name, $value, 'input_medium valueChecksBoxTab');
echo $cF->displayTable('Tab product', $data);
if ($id == 0 && $_REQUEST['parent'] == 0) {
$name = 'parent';
$data = $cF->inputHidden($name, '0');
echo $data;
} else {
$name = 'parent';
$where = "`id`<>'{$id}'";
$values = $adA->selectFromMenu($lang, $where);
array_unshift($values, array('name' => '-- chọn danh mục gốc --', 'id' => '0'));
if (isset($_REQUEST['parent'])) {
$valueCheck = $_REQUEST['parent'];
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->select($name, $values, $valueCheck, 'input_medium', 1);
示例12: array
$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]);
}
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
echo $cF->displayTable('Datetime', $data);
$name = 'name';
示例13: 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">';
echo $cF->displayTable('Ngày liên hệ', $c->viewDatetime($rowDetail['datetime']));
$name = 'status';
$values = array();
$values[] = array('name' => 'Chưa xem', 'id' => '0');
$values[] = array('name' => 'Đã xem', '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 = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_medium', $properties);