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


PHP controlAdminForm::inputCheckbox方法代码示例

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


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

示例1: array

echo $cF->displayDiv('Birthday', $data);
$name = 'exp_work';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '3');
$value = $rowDetail[$name];
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties);
echo $cF->displayDiv('Số năm kinh nghiệm', $data);
$name = 'courses_id';
if ($rowDetail[$name] != '') {
    $valueCheck = $rowDetail[$name];
} else {
    $valueCheck = '';
}
$arr = array('select' => '`id`, `name`', 'from' => '`web_header`', 'where' => '`type_id`=3 AND `properties`=2 AND `status`=1', 'order' => '`name`');
$values = $c->_model->_select($arr);
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkBoxItem', 1);
$value = $rowDetail[$name];
$data .= $cF->inputHidden($name, $value, 'ad_field listValueItem');
echo $cF->displayDiv('Lĩnh vực đào tạo', '<div class="listCheckBox2">' . $data . '</div>');
$name = 'yourself';
$value = $rowDetail[$name];
$name = 'ckeditor_yourself';
$properties = array();
$properties[] = array('propertie' => 'type', 'value' => 'ckeditor');
$others = $cF->ckeditorStandard($name);
$data = $cF->textArea($name, $value, 'ad_field', $properties, $others);
echo $cF->displayDiv('Giới thiệu bản thân', $data);
$name = 'diploma';
$value = $rowDetail[$name];
$name = 'ckeditor_diploma';
$properties = array();
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_mn_trainer_ac.php

示例2: 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 = 'rule_view';
$values = $c->_model->_listMenuAdmin();
if (!isset($_POST[$name])) {
    $valueCheck = $rowDetail[$name];
} else {
    $valueCheck = $_POST[$name];
}
$dataView = '<b>Quyền xem</b><br />' . $cF->inputCheckbox($name, $values, $valueCheck, 'checkboxView', 1);
if (!isset($_POST[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = $_POST[$name];
}
$dataView .= $cF->inputHidden($name, $value, 'input_medium valueRuleView');
$name = 'rule_action';
$values = $c->_model->_listMenuAdmin();
if (!isset($_POST[$name])) {
    $valueCheck = $rowDetail[$name];
} else {
    $valueCheck = $_POST[$name];
}
$dataAction = '<b>Quyền chỉnh sửa</b><br />' . $cF->inputCheckbox($name, $values, $valueCheck, 'checkboxAction', 1);
if (!isset($_POST[$name])) {
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_users_ac.php

示例3: array

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);
$name = 'position_id';
if ($rowHeader[$name] != '') {
    $valueCheck = $rowHeader[$name];
} else {
    $valueCheck = '';
}
$values = $c->_model->_webPositionList(2);
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkbox checkBoxPosition', 1);
$values = $c->_model->_webPositionList(1);
$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 = 'type_id';
$values = $c->_model->_webTypeList(1);
if ($rowHeader[$name] != '') {
    $valueCheck = $rowHeader[$name];
} else {
    $valueCheck = 20;
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio', 1);
echo $cF->displayTable('Loại menu', $data);
$name = 'order';
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_header_menu_ac.php

示例4: array

    $valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field insertListRole adRadio');
echo $cF->displayDiv('Quyền edit', $data);
$name = 'action_delete';
$values = array();
$values[] = array('name' => 'Yes', 'id' => '1');
$values[] = array('name' => 'No', 'id' => '0');
if ($rowDetail[$name] == '') {
    $valueCheck = 1;
} else {
    $valueCheck = $rowDetail[$name];
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field insertListRole adRadio');
echo $cF->displayDiv('Quyền delete', $data);
$name = 'btnViewListRole';
$values = $c->_model->_listTable('web_admin', '`type`, `_order`');
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkBoxRole');
$data = $cF->displayDiv('Chọn quyền', '<div class="listCheckBox2">' . $data . '</div>');
$btn = $cF->inputSubmit($name, 'Thêm nhiều quyền cùng 1 lúc, ấn vào đây', 'adBtnSmall bgColorGreen corner8');
echo $cF->displayDiv(' ', $btn);
$btn2 = $cF->inputSubmit('closeListRole', 'Đóng danh sách', 'adBtnSmall bgColorGray corner8');
$btn2 = $cF->displayDiv(' ', $btn2);
echo '<div id="listRole" style="display:none">' . $data . $btn2 . '</div>';
$name = 'btnCancel';
$btnCancel = $cF->btnCancel($name, 'Back');
$name = 'btnSubmitAjaxRole';
$btnSubmit = $cF->inputSubmit($name, $arrAction['lable'], 'adBtnLarge bgColorBlue1 corner8');
$name = 'btnSubmitAjaxRoleList';
$btnSubmit2 = $cF->inputSubmit($name, 'Thêm', 'adBtnLarge bgColorBlue1 corner8 adHidden');
echo $cF->displayDiv(' ', $btnSubmit . $btnSubmit2 . $btnCancel);
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_web_users_role_ac.php

示例5: array

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=20)";
$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 = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$value = $rowHeader[$name];
$data = $cF->inputText($name, $value, 'input_medium', $properties);
echo $cF->displayTable('Name', $data);
$name = 'name_alias';
$properties = array();
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_header_article_ac.php


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