當前位置: 首頁>>代碼示例>>PHP>>正文


PHP controlAdminForm::inputSubmit方法代碼示例

本文整理匯總了PHP中controlAdminForm::inputSubmit方法的典型用法代碼示例。如果您正苦於以下問題:PHP controlAdminForm::inputSubmit方法的具體用法?PHP controlAdminForm::inputSubmit怎麽用?PHP controlAdminForm::inputSubmit使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在controlAdminForm的用法示例。


在下文中一共展示了controlAdminForm::inputSubmit方法的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的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: round

}
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');
$data = $cF->inputText($name, '', 'adInput adTxtMedium value_id', $properties) . '<div class="clear10"></div>';
$name = 'class_name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
開發者ID:hieunhan1,項目名稱:all-website-v5,代碼行數:31,代碼來源:admin_mn_trainer_ac.php

示例3: 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>';
開發者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

$data = $cF->textArea($name, $value, 'ad_field_second', $properties, $others);
echo $cF->displayDiv('', $data);*/
//-----end web_content Second-----//
/*$name = 'other';
$values = array();
$values[] = array('name'=>'Doanh nghiệp', 'id'=>'1');
$values[] = array('name'=>'Cá nhân', 'id'=>'2');
$values[] = array('name'=>'No', 'id'=>'0');
if($rowDetail[$name]=='') $valueCheck=0;
else $valueCheck=$rowDetail[$name];
$data = $cF->inputRadio($name, $values, $valueCheck, 'ad_field adRadio');
echo $cF->displayDiv('Có form đăng ký', $data);*/
//upload images
$data = ob_start();
include_once 'admin_upload.php';
$data = ob_get_clean();
echo $cF->displayDiv('Upload ảnh', $data);
$name = 'properties';
$data = $cF->inputHidden($name, 1, 'ad_field');
echo $data;
$name = 'lang';
$data = $cF->inputHidden($name, $lang, 'ad_field');
echo $data;
echo '<div id="ajaxViewFrmContent"></div>';
$name = 'btnCancel';
$btnCancel = $cF->btnCancel($name, 'Back');
$name = 'btnViewFrmContent';
$btnContent = $cF->inputSubmit($name, 'Nhập nội dung', 'adBtnLarge bgColorGreen corner8');
$name = 'btnSubmitAjax';
$btnSubmit = $cF->inputSubmit($name, $arrAction['lable'], 'adBtnLarge bgColorBlue1 corner8');
echo $cF->displayDiv(' ', $btnSubmit . $btnContent . $btnCancel);
開發者ID:hieunhan1,項目名稱:all-website-v5,代碼行數:31,代碼來源:admin_web_menu_ac.php


注:本文中的controlAdminForm::inputSubmit方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。