本文整理汇总了PHP中controlAdminForm::displayDiv方法的典型用法代码示例。如果您正苦于以下问题:PHP controlAdminForm::displayDiv方法的具体用法?PHP controlAdminForm::displayDiv怎么用?PHP controlAdminForm::displayDiv使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类controlAdminForm
的用法示例。
在下文中一共展示了controlAdminForm::displayDiv方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
<?php
$arrType = array(0 => array('id' => '', 'name' => '-- chọn loại --'), 1 => array('id' => '1', 'name' => 'Liên hệ'), 2 => array('id' => '2', 'name' => 'Đặt tour'), 3 => array('id' => '3', 'name' => 'Yêu cầu dịch vụ'));
/*$arrStatus = array(
1 => array('id'=>'0', 'name'=>'Chưa xem'),
2 => array('id'=>'2', 'name'=>'Đã hành động'),
3 => array('id'=>'3', 'name'=>'Đã phản hồi'),
4 => array('id'=>'1', 'name'=>'Hoàn thành'),
5 => array('id'=>'4', 'name'=>'Error'),
);*/
$arrStatus = array(1 => array('id' => '0', 'name' => 'Chưa xem'), 4 => array('id' => '1', 'name' => 'Đã xem'));
$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">' . $arrType[$rowDetail['type']]['name'] . '</p>');
}
if ($rowDetail['header_id'] != '0' && $rowDetail['header_id'] != '') {
$data = $c->_model->_viewEditDetail('web_header', $rowDetail['header_id']);
echo $cF->displayDiv('Tour', '<p class="adMessage label2 header_id">' . $data['name'] . '</p>');
}
echo $cF->displayDiv('Ngày liên hệ', '<b class="label2">' . $c->viewDateTime($rowDetail['datetime']) . '</b>');
$name = 'status';
$values = $arrStatus;
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio');
echo $cF->displayDiv('Trạng thái', $data);
示例2: controlAdminForm
<?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('Trạng thái', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '50');
$properties[] = array('propertie' => 'check', 'value' => '2');
$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('Mô tả', $data);
$name = 'title';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '60');
$value = $rowDetail[$name];
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties);
echo $cF->displayDiv('Title', $data);
示例3: controlAdminForm
<?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();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
示例4: controlAdminForm
<?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 --');
if ($rowDetail[$name] == '') {
示例5: controlAdminForm
<?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('Trạng thái', $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('Ngày', $data);
$name = 'menu_id';
$where = "(type_id=1 OR type_id=3)";
$values = $c->menuList($lang, $where);
$valueCheck = $rowDetail[$name];
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkBoxItem');
示例6: controlAdminForm
<?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 = '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', $data);
$name = 'menu_id';
$arr = array('select' => '`id`, `name`', 'from' => 'web_header', 'where' => '`properties`=1 AND `type_id`=4', 'order' => '_order');
$values = $c->_model->_select($arr);
$valueCheck = $rowDetail[$name];
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkBoxItem', 1);
示例7: controlAdminForm
<?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('Trạng thái', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
$properties[] = array('propertie' => 'check', 'value' => '2');
$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('Mô tả', $data);
$name = 'url';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '30');
$properties[] = array('propertie' => 'check', 'value' => 'user');
$properties[] = array('propertie' => 'message', 'value' => 'Url chưa đúng');
$value = $rowDetail[$name];
示例8: controlAdminForm
<?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('Trạng thái', $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('Ngày', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$properties[] = array('propertie' => 'check', 'value' => '2');
$properties[] = array('propertie' => 'message', 'value' => 'Nhập name');
示例9: controlAdminForm
<?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 = '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', $data);
$name = 'position_id';
if ($rowDetail[$name] != '') {
$valueCheck = $rowDetail[$name];
} else {
$valueCheck = '';
示例10: controlAdminForm
<?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('Trạng thái', $data);
$name = 'menu_id';
$where = "(type_id=10)";
$values = $c->menuList($lang, $where);
$valueCheck = $rowDetail[$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, 'ad_field listValueItem');
echo $cF->displayDiv('Danh mục hiển thị', '<div class="listCheckBox">' . $data . '</div>');
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
示例11: controlAdminForm
$cF = new controlAdminForm();
$name = 'subject';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$values = $rowEventForm[$name];
$data = $cF->inputText($name, $values, 'adInput adTxtMedium', $properties);
echo $cF->displayDiv('Subject', $data);
$arr = array('{_code}' => $rowContract['code'], '{_datecreate}' => date('F d, Y', $rowContract['datetime']), '{_datecreate_vi}' => 'ngày ' . date('d', $rowContract['datetime']) . ' tháng ' . date('m', $rowContract['datetime']) . ' năm ' . date('Y', $rowContract['datetime']) . '', '{_company}' => $rowContract['name'], '{_company_vi}' => $rowContract['name_vi'], '{_address}' => $rowContract['address'], '{_address_vi}' => $rowContract['address_vi'], '{_tel}' => $rowContract['phone'], '{_fax}' => $rowContract['fax'], '{_represented}' => $rowContract['represented'], '{_represented_vi}' => $rowContract['represented_vi'], '{_position}' => $rowContract['position'], '{_position_vi}' => $rowContract['position_vi'], '{_taxcode}' => $rowContract['taxcode'], '{_course}' => '', '{_course_vi}' => '', '{_quantity}' => $rowContract['quantity'], '{_quantity_vi}' => $rowContract['quantity_vi'], '{_duration}' => $rowContract['duration'], '{_duration_vi}' => $rowContract['duration_vi'], '{_trainer}' => ucwords($c->_model->_changeAlias($rowTrainer['name'], ' ')), '{_trainer_vi}' => $rowTrainer['name'], '{_daterequest_vi}' => '', '{_daterequest}' => '', '{_price}' => number_format($rowContract['price'], 0, ',', '.') . ' VNĐ', '{_price_vi}' => number_format($rowContract['price'], 0) . ' đồng');
$values = $c->contentReplace($rowEventForm['content'], $arr);
$name = 'content';
$others = $cF->ckeditorStandard($name);
$data = $cF->textArea($name, $values, 'textarea', NULL, $others);
echo $cF->displayDiv('', $data);
$cA = new modelAdmin();
$cF = new controlAdminForm();
echo $cF->displayDiv('Email nhận', '<b class="label2 adMessage" id="email">' . $rowContract['email'] . '</b>');
$name = 'email_bcc';
$values = $rowEventForm['email'];
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '60');
$data = $cF->inputText($name, $values, 'adInput adTxtMedium', $properties);
echo $cF->displayDiv('Email BCC', $data);
$name = 'btnSend';
$btnSend = $cF->inputButton($name, 'Gửi hợp đồng', 'adBtnLarge bgColorBlue1 corner8');
echo $cF->displayDiv(' ', $btnSend);
?>
<div id="loadingIframe"><div class="loading"></div></div>
</div>
<script type="text/javascript">
$(document).ready(function(e) {
$("#btnSend").live("click", function(){
示例12: array
}
echo '<div id="idFirst" style="display:none">' . $value . '</div>';
$value = '{"name":"header_id", "value":"' . $id . '"}';
echo '<div id="idSecond" style="display:none">' . $value . '</div>';
$name = 'content';
if (isset($rowContent[$name])) {
$value = $rowContent[$name];
} else {
$value = '';
}
$name = 'ckeditor_content';
$properties = array();
$properties[] = array('propertie' => 'type', 'value' => 'ckeditor');
$others = $cF->ckeditorFull($name);
$data = $cF->textArea($name, $value, 'ad_field_second', $properties, $others);
echo $cF->displayDiv('', $data);
//-----end web_content Second-----//
return true;
}
if (isset($_POST['searchID'])) {
$id = $c->_model->_changeDauNhay($_POST['searchID']);
$table = $c->_model->_changeDauNhay($_POST['table']);
$ad = new modelAdmin();
$data = $ad->_listTable($table, NULL, " AND `id`='{$id}' ");
foreach ($data as $row) {
echo $row['name'];
return true;
}
return true;
}
if (isset($_POST['searchName'])) {
示例13: controlAdminForm
<?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);
$properties = array();
示例14: 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>');
示例15: controlAdminForm
<?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('Trạng thái', $data);
$name = 'page';
$values = array();
$values[] = array('name' => 'Web', 'id' => '1');
$values[] = array('name' => 'Admin', 'id' => '2');
$values[] = array('name' => 'Manager', 'id' => '3');
if ($rowDetail[$name] == '') {
$valueCheck = 1;
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio');
echo $cF->displayDiv('Trang mặc định', $data);
/*if($rowDetail['group_id']!=3 && $id!=0){
echo $cF->displayDiv('Ngày đăng ký', '<b class="label2 adMessage">'.$c->viewDateTime($rowDetail['datetime']).'</b>');