当前位置: 首页>>代码示例>>PHP>>正文


PHP controlAdminForm::inputHidden方法代码示例

本文整理汇总了PHP中controlAdminForm::inputHidden方法的典型用法代码示例。如果您正苦于以下问题:PHP controlAdminForm::inputHidden方法的具体用法?PHP controlAdminForm::inputHidden怎么用?PHP controlAdminForm::inputHidden使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在controlAdminForm的用法示例。


在下文中一共展示了controlAdminForm::inputHidden方法的13个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: array

$name = 'address';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_medium', $properties);
echo $cF->displayTable('Địa chỉ', $data);
$name = 'message';
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = $_POST[$name];
}
$others = $cF->ckeditorCustom($name);
$data = $cF->textArea($name, $value, 'textarea', NULL, $others);
echo $cF->displayTable('Nội dung', $data);
$name = 'lang';
$data = $cF->inputHidden($name, $lang);
echo $data;
$name = 'id';
$data = $cF->inputHidden($name, $rowDetail[$name]);
echo $data;
$name = 'btnCancel';
$btnCancel = $cF->btnCancel($name);
$name = 'btnSubmit';
$btnSubmit = $cF->inputSubmit($name, $arrAction['lable'], 'submit');
echo $cF->displayTable('', $btnSubmit . $btnCancel);
echo '</table></form>';
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_contact_ac.php

示例2: array

    $change = '';
} else {
    $change = 'changeUser';
}
$others = $c->messageChange('', $change);
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_medium', $properties, $others);
echo $cF->displayTable('Username', $data);
if ($id == 0) {
    $name = 'password';
    $value = md5(CONS_ADMIN_PASSWORD_DEFAULT);
    $data = $cF->inputHidden($name, $value);
    echo $data;
} else {
    $name = 'password';
    $properties = array();
    $properties[] = array('propertie' => 'readonly', 'value' => 'readonly');
    $properties[] = $arrAction['disabled'];
    $value = md5(CONS_ADMIN_PASSWORD_DEFAULT);
    $data = $cF->inputText($name, $value, 'input_medium', $properties);
    echo $cF->displayTable('Reset pass', $data . '<a href="javascript:;" id="resetPass" class="change">Reset</a>');
}
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_users_ac.php

示例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);
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_mn_trainer_ac.php

示例4: controlAdminForm

<div class="clear30"></div>
<form id="imageForm" method="post" enctype="multipart/form-data" action="<?php 
echo CONS_BASE_URL;
?>
/ajax/" >
	<input type="hidden" name="uploadWebPicture" value="1" />
    <?php 
$cF = new controlAdminForm();
$name = 'id';
$id = $c->createEditData($table, $arrAction, $rowDetail);
$data = $cF->inputHidden($name, $id, 'ad_field');
echo $data;
$name = '_table';
$value = 'web_header';
$data = $cF->inputHidden($name, $value, '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('Ngày', $data);
$name = 'table_id';
$properties = array();
$properties[] = array('propertie' => 'check', 'value' => '1');
$properties[] = array('propertie' => 'message', 'value' => 'Chọn danh mục');
$other = '<span class="error adError"></span>';
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_web_picture_ac.php

示例5: 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('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);
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_web_tags_ac.php

示例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 = '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 --');
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_web_event_form_ac.php

示例7: array

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');
echo $cF->displayTable('Danh mục', '<div class="listCheckboxMedium">' . $data . '</div>');
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_medium', $properties);
echo $cF->displayTable('Tiêu đề', $data);
$name = 'img';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '150');
if (!isset($_POST[$name])) {
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_photo_ac.php

示例8: array

    $valueCheck = 35;
}
$data = $cF->select($name, $values, $valueCheck, 'input_medium', 1);
echo $cF->displayTable('Tỉnh thành', $data);
$name = 'district_id';
$values = $c->_model->_listTable('web_listdistrict', '`name`');
array_unshift($values, array('name' => '-- chọn quận huyện --', 'id' => '0'));
if ($rowDetail[$name] != '') {
    $valueCheck = $rowDetail[$name];
} else {
    $valueCheck = 0;
}
$data = $cF->select($name, $values, $valueCheck, 'input_medium', 1);
echo $cF->displayTable('Quận huyện', $data);
$name = 'lang';
$data = $cF->inputHidden($name, $lang);
echo $data;
if (isset($_GET['id']) && $_GET['id'] == 0) {
    $name = 'datetime';
    $data = $cF->inputHidden($name, date('Y-m-d H:i:s'));
    echo $data;
}
$name = 'id';
$data = $cF->inputHidden($name, $rowDetail[$name]);
echo $data;
$name = 'btnCancel';
$btnCancel = $cF->btnCancel($name);
$name = 'btnSubmit';
$btnSubmit = $cF->inputSubmit($name, $arrAction['lable'], 'submitAdmin');
echo $cF->displayTable('', $btnSubmit . $btnCancel);
echo '</table></form>';
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_web_construction_ac.php

示例9: 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('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>');
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_web_users_ac.php

示例10: array

echo $cF->displayTable('Title', $data);
$name = 'description';
$value = $rowHeader[$name];
$data = $cF->textArea($name, $value, 'textareaAdmin');
echo $cF->displayTable('Description', $data);
$name = 'tags';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$others = $c->messageChange(CONS_ADMIN_AUTO_TAGS);
$value = $rowHeader[$name];
$data = $cF->inputText($name, $value, 'input_medium', $properties, $others);
echo $cF->displayTable('Tags (keyword)', $data);
//img
$name = 'img';
$value = $rowHeader[$name];
echo $cF->inputHidden($name, $value, 'imgAdmin');
$data = ob_start();
include_once 'admin_upload.php';
$data = ob_get_clean();
echo $cF->displayTableColspan($data);
$name = 'parent';
$where = "`id`<>'{$id}'";
$values = $c->menuList($lang, $where);
array_unshift($values, array('name' => '-- chọn danh mục gốc --', 'id' => '0'));
if ($rowHeader[$name] != '') {
    $valueCheck = $rowHeader[$name];
} else {
    $valueCheck = 0;
}
$data = $cF->select($name, $values, $valueCheck, 'input_medium', 1);
echo $cF->displayTable('Danh mục gốc', $data);
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_header_menu_ac.php

示例11: 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 = 'date_start';
$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('Opening date', $data);
$name = 'date_end';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '16');
if ($rowDetail[$name] == 0) {
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_mn_class_ac.php

示例12: controlAdminForm

    }
    $table = 'web_content';
    $fields = array_keys($_POST);
    array_shift($fields);
    array_push($fields, 'btn');
    $values = array_values($_POST);
    array_shift($values);
    array_push($values, 'btn');
    $id = $ad->_getSql($type, $table, $fields, $values, $id);
    echo $id;
    return true;
}
/*end content insert data*/
if (isset($_POST['viewFrmContent'])) {
    $id = $c->_model->_changeDauNhay($_POST['viewFrmContent']);
    if (!is_numeric($id)) {
        return false;
    }
    $cF = new controlAdminForm();
    $dataContent = $c->_model->_webContentID($id);
    $name = 'content';
    $value = $dataContent[$name];
    $others = $cF->ckeditorFull($name);
    $data = $cF->textArea($name, $value, 'textarea', NULL, $others);
    echo $data;
    $name = 'idContent';
    $value = $dataContent['id'];
    $data = $cF->inputHidden($name, $value);
    echo $data;
    return true;
}
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:controlAjaxAdmin.php

示例13: date

} 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);
if (!isset($_POST[$name])) {
    $value = $rowHeader[$name];
} else {
    $value = $_POST[$name];
}
$data .= $cF->inputHidden($name, $value, 'input_medium valueCheckBoxMenuID');
echo $cF->displayTable('Danh mục hiển thị', '<div class="listCheckboxMedium" style="height:250px">' . $data . '</div>');
$name = 'position_id';
if ($rowHeader[$name] != '') {
    $valueCheck = $rowHeader[$name];
} else {
    $valueCheck = '';
}
$values = $c->_model->_webPositionList(0);
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkbox checkBoxPosition', 1);
$value = $rowHeader[$name];
$data .= $cF->inputHidden($name, $value, 'input_medium valueCheckBoxPosition');
echo $cF->displayTable('Vị trí hiển thị', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_header_slider_ac.php


注:本文中的controlAdminForm::inputHidden方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。