本文整理汇总了PHP中controlAdminForm::btnCancel方法的典型用法代码示例。如果您正苦于以下问题:PHP controlAdminForm::btnCancel方法的具体用法?PHP controlAdminForm::btnCancel怎么用?PHP controlAdminForm::btnCancel使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类controlAdminForm
的用法示例。
在下文中一共展示了controlAdminForm::btnCancel方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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>';
示例2: array
echo $cF->displayDiv('Answer 4', $data);
$name = 'correct';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '1');
$value = $rowDetail[$name];
$other = '<span class="adNotes">Gõ 1, 2, 3, 4</span>';
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties, $other);
echo $cF->displayDiv('Answer chính xác', $data);
$name = 'notes';
if (isset($rowDetail[$name])) {
$value = $rowDetail[$name];
} else {
$value = '';
}
$name = 'ckeditor_notes';
$properties = array();
$properties[] = array('propertie' => 'type', 'value' => 'ckeditor');
$others = $cF->ckeditorBasic($name);
$data = $cF->textArea($name, $value, 'ad_field', $properties, $others);
echo $cF->displayDiv('Giải thích', $data);
$name = '_order';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '3');
$value = $rowDetail[$name];
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties);
echo $cF->displayDiv('Order', $data);
$name = 'btnCancel';
$btnCancel = $cF->btnCancel($name, 'Back');
$name = 'btnSubmitAjax';
$btnSubmit = $cF->inputSubmit($name, $arrAction['lable'], 'adBtnLarge bgColorBlue1 corner8');
echo $cF->displayDiv(' ', $btnSubmit . $btnCancel);
示例3: round
foreach ($data as $row) {
$i++;
$rate += $row['rate'];
$str .= '<p class="item">' . $i . '. ' . $row['name'] . ' <b>(Mức ' . $row['rate'] . ')</b></p>';
}
if ($i != 0) {
$rate = round($rate / $i, 2);
$rate = '<p class="item">Điểm trung bình: <b>' . $rate . '</b></p>';
} else {
$rate = '';
}
$str = '<div id="listCustomer" class="label2">' . $str . $rate . '</div>';
$data = '<div class="seo">' . $cF->displayDiv('D.sách đánh giá', $str) . '</div>';
echo $data;
$name = 'btnCancel';
$btnCancel = $cF->btnCancel($name, 'Quay lại');
$name = 'btnAddRate';
$btnAddRate = $cF->inputButton($name, 'Đánh giá', 'adBtnLarge bgColorOranges corner8');
$name = 'btnSubmitAjax';
$btnSubmit = $cF->inputSubmit($name, $arrAction['lable'], 'adBtnLarge bgColorBlue1 corner8');
echo $cF->displayDiv(' ', $btnSubmit . $btnAddRate . $btnCancel);
?>
<script type="text/javascript">
$(document).ready(function(e) {
$("#btnAddRate").click(function(){
var str = '<?php
$name = 'class_id';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '10');
$properties[] = array('propertie' => 'placeholder', 'value' => 'ID lớp học');
示例4: array
$valueCheck = 20;
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio', 1);
echo $cF->displayTable('Loại menu', $data);
$name = 'order';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '5');
$value = $rowHeader[$name];
$data = $cF->inputText($name, $value, 'input_medium', $properties);
echo $cF->displayTable('Thứ tự', $data);
$name = 'properties';
$data = $cF->inputHidden($name, 1);
echo $data;
$name = 'lang';
$data = $cF->inputHidden($name, $lang);
echo $data;
/*
//id chuyen vao admin_upload.php
$name = 'id';
$data = $cF->inputHidden($name, $rowHeader[$name]);
echo $data;
*/
echo '<tr><td colspan="2" id="ajaxViewFrmContent"></td></tr>';
$name = 'btnSubmitAjax';
$data = $cF->inputSubmit($name, $arrAction['lable'], 'submitAdmin');
$name = 'btnCancel';
$data .= $cF->btnCancel($name, 'Quay lại');
$name = 'btnViewFrmContent';
$data .= $cF->inputSubmit($name, 'Nhập nội dung', 'submitAdmin');
echo $cF->displayTable('', $data);
echo '</table>';