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


PHP controlAdminForm::inputRadio方法代码示例

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


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

示例1: array

<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);
echo $cF->displayTable('Họ tên', $data);
$name = 'email';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
if (!isset($_POST[$name])) {
开发者ID:hieunhan1,项目名称:all-website4,代码行数:31,代码来源:admin_web_contact_ac.php

示例2: array

<?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);
echo $cF->displayDiv('Chức vụ', $data);
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_mn_trainer_ac.php

示例3: 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

示例4: array

$properties[] = array('propertie' => 'maxlength', 'value' => '15');
$properties[] = array('propertie' => 'check', 'value' => '14');
$properties[] = array('propertie' => 'message', 'value' => '**Upload hình ảnh');
$other = '<span class="error adError"></span>';
$value = $rowDetail[$name];
$data = $cF->inputHidden($name, $value, 'ad_field', $properties, $other);
$viewImg = '';
$optionImg = '';
if ($rowDetail[$name] != '') {
    $viewImg = '<div class="item"><div class="img"><img src="' . IMAGE_URL_THUMB . $rowDetail['img'] . '"/></div></div>';
} else {
    $name = 'original';
    $values = array();
    $values[] = array('name' => 'Yes', 'id' => '1');
    $values[] = array('name' => 'No', 'id' => '0');
    $valueCheck = 1;
    $optionImg .= '<div class="checkbox"><span class="b">Tự xử lý hình ảnh: </span>';
    $optionImg .= $cF->inputRadio($name, $values, $valueCheck, 'adRadio');
    $optionImg .= '</div> <div class="clear1"></div>
		<div id="imageloadstatus"><img src="themes/admin2/img/loader.gif" alt="Uploading..." /></div>
		<div id="imageloadbutton"><input type="file" name="photos[]" id="uploadWebPicture" /></div>';
}
$data = '<div id="optionImg">' . $optionImg . '</div>' . $data . '<div id="imageUpload">' . $viewImg . '</div>';
echo $cF->displayDiv('Upload ảnh', $data);
$name = 'btnCancel';
$btnCancel = $cF->btnCancel($name, 'Quay lại');
$name = 'btnSubmitAjax';
$btnSubmit = $cF->inputButton($name, $arrAction['lable'], 'adBtnLarge bgColorBlue1 corner8');
echo $cF->displayDiv(' ', $btnSubmit . $btnCancel);
?>
</form>
开发者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('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);
开发者ID:hieunhan1,项目名称:all-website-v5,代码行数:31,代码来源:admin_web_users_role_ac.php


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