本文整理汇总了PHP中controlAdminForm::inputText方法的典型用法代码示例。如果您正苦于以下问题:PHP controlAdminForm::inputText方法的具体用法?PHP controlAdminForm::inputText怎么用?PHP controlAdminForm::inputText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类controlAdminForm
的用法示例。
在下文中一共展示了controlAdminForm::inputText方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: array
$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])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_medium', $properties);
echo $cF->displayTable('Email', $data);
$name = 'phone';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '30');
if (!isset($_POST[$name])) {
示例2: array
echo $cF->displayTable('Trạng thái', $data);
if ($rowDetail['group_id'] != 3 && $id != 0) {
echo $cF->displayTable('Ngày đăng ký', '<p style="color:#00F; font-weight:bold; margin-top:3px">' . $c->viewDatetime($rowDetail['datetime']) . '</p>');
$name = 'date_expiration';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '30');
if (!isset($_POST[$name])) {
if ($rowDetail[$name] == 0) {
$value = date('Y-m-d H:i', time());
} else {
$value = date('Y-m-d H:i', $rowDetail[$name]);
}
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
echo $cF->displayTable('Ngày hết hạn', $data);
}
$name = 'group_id';
$values = $c->_model->_listUsersGroup();
array_unshift($values, array('name' => '-- chọn nhóm --', 'id' => '0'));
if (!isset($_POST[$name])) {
$valueCheck = $rowDetail[$name];
} else {
$valueCheck = $_POST[$name];
}
$data = $cF->select($name, $values, $valueCheck, 'input_medium', 1);
echo $cF->displayTable('Group', $data);
$name = 'username';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '32');
示例3: array
} 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);
if ($_SESSION['adminGroup'] == 5) {
$name = 'price_public';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '10');
$value = $rowDetail[$name];
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties);
echo $cF->displayDiv('Mức giá public', $data);
$name = 'price_business';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '10');
$value = $rowDetail[$name];
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties);
echo $cF->displayDiv('Mức giá doanh nghiệp', $data);
}
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '60');
$properties[] = array('propertie' => 'check', 'value' => '2');
$properties[] = array('propertie' => 'message', 'value' => 'Nhập name');
$other = '<span class="error adError"></span>';
$value = $rowDetail[$name];
示例4: modelAdmin
$rowCourse = $rowCourse['name'];
}
$cA = new modelAdmin();
$cF = new controlAdminForm();
echo $cF->displayDiv('Email nhận', '<b class="label2 adMessage" id="email">' . $rowDetail['email'] . '</b>');
$name = 'type_id';
$values = $cA->_listTable('web_event_form', NULL, 'AND `type`=2 AND `type_id`=1');
array_unshift($values, array('name' => '-- chọn form --', 'id' => ''));
$data = $cF->select($name, $values, '', 'adInput adTxtMedium');
$other = '<p class="adError error" id="type_id_error"></p>';
echo $cF->displayDiv('Chọn form mẫu', $data . $other);
$name = 'price';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '9');
$properties[] = array('propertie' => 'placeholder', 'value' => 'Giá cá nhân khóa Public');
$data = $cF->inputText($name, '', 'adInput adTxtMedium', $properties);
echo $cF->displayDiv('Giá', $data);
$name = 'totalusd';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '8');
$properties[] = array('propertie' => 'placeholder', 'value' => 'Tổng cộng chi phí USD');
$data = $cF->inputText($name, '', 'adInput adTxtMedium', $properties);
echo $cF->displayDiv('Total (USD)', $data);
$name = 'exchangerate';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '8');
$properties[] = array('propertie' => 'placeholder', 'value' => 'Tỷ giá đổi USD sang VNĐ ngày hôm nay: ' . date('d-m-Y'));
$data = $cF->inputText($name, '', 'adInput adTxtMedium', $properties);
echo $cF->displayDiv('Tỷ giá VNĐ', $data);
$name = 'subject';
$properties = array();
示例5: array
$data = $cF->inputCheckbox($name, $values, $valueCheck, 'checkBoxItem');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data .= $cF->inputHidden($name, $value, 'ad_field listValueItem');
echo $cF->displayDiv('Danh mục hiển thị', '<div class="listCheckBox">' . $data . '</div>');
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$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('Name', $data);
$name = 'question';
if (isset($rowDetail[$name])) {
$value = $rowDetail[$name];
} else {
$value = '';
}
$name = 'ckeditor_question';
$properties = array();
$properties[] = array('propertie' => 'type', 'value' => 'ckeditor');
$others = $cF->ckeditorBasic($name);
$data = $cF->textArea($name, $value, 'ad_field', $properties, $others);
echo $cF->displayDiv('Câu hỏi', $data);
$name = 'answers_1';
$properties = array();
示例6: array
}
$data = $cF->inputRadio($name, $values, $valueCheck, 'radio');
echo $cF->displayTable('Trạng thái', $data);
$name = 'datetime';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '30');
if (!isset($_POST[$name])) {
if ($rowDetail[$name] == 0) {
$value = date('Y-m-d H:i', time());
} else {
$value = date('Y-m-d H:i', $rowDetail[$name]);
}
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_large datetimepick', $properties);
echo $cF->displayTable('Ngày đăng', $data);
$name = 'tuyendung_cty_id';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '4');
$properties[] = array('propertie' => 'placeholder', 'value' => 'Nhập ID');
$properties[] = array('propertie' => 'style', 'value' => 'width:50px');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_large value_id', $properties);
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$properties[] = array('propertie' => 'placeholder', 'value' => 'Nhập tên công ty');
示例7: array
$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);
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
$properties[] = array('propertie' => 'placeholder', 'value' => 'Nhập tên');
$properties[] = array('propertie' => 'style', 'value' => 'width:260px; margin-left:5px');
$data .= $cF->inputText('', '', 'adInput value_name', $properties);
$data .= '<input type="button" value="Search" class="adBtnSmall bgColorBlue1 corner5 value_search" style="float:none; margin-left:5px" /> <p class="adError error value_name_error" style="margin-left:90px"></p>';
$data .= '<div class="value_view" table="web_users"></div>';
echo $cF->displayDiv('User ID', $data);
$name = 'admin_id';
$values = $c->_model->_listTable('web_admin', '`type`, `_order`');
array_unshift($values, array('name' => '-- chọn mục quản trị --', 'id' => ''));
$properties = array();
$properties[] = array('propertie' => 'check', 'value' => '1');
$properties[] = array('propertie' => 'message', 'value' => 'Chọn mục quản trị');
$other = '<span class="error adError"></span>';
示例8: array
$valueCheck = $_REQUEST['parent'];
} else {
$valueCheck = $rowDetail[$name];
}
$data = $cF->select($name, $values, $valueCheck, 'input_medium', 1);
echo $cF->displayTable('Danh mục gốc', $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('Tên hiển thị', $data);
$name = 'title';
$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 = 'name_alias';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
if ($arrAction['disabled'] != '') {
示例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 = '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('Date đóng', $data);
$name = 'class_id';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '8');
$properties[] = array('propertie' => 'check', 'value' => '1');
$properties[] = array('propertie' => 'message', 'value' => 'Nhập ID lớp học');
$properties[] = array('propertie' => 'placeholder', 'value' => 'ID');
$properties[] = array('propertie' => 'style', 'value' => 'width:80px');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'ad_field adInput value_id', $properties);
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
示例10: array
$data = $cF->inputText($name, $values, 'adInput adTxtMedium', $properties);
echo $cF->displayDiv('Subject', $data);
$arr = array('{_code}' => $rowContract['code'], '{_datecreate}' => date('F d, Y', $rowContract['datetime']), '{_datecreate_vi}' => 'ngày ' . date('d', $rowContract['datetime']) . ' tháng ' . date('m', $rowContract['datetime']) . ' năm ' . date('Y', $rowContract['datetime']) . '', '{_company}' => $rowContract['name'], '{_company_vi}' => $rowContract['name_vi'], '{_address}' => $rowContract['address'], '{_address_vi}' => $rowContract['address_vi'], '{_tel}' => $rowContract['phone'], '{_fax}' => $rowContract['fax'], '{_represented}' => $rowContract['represented'], '{_represented_vi}' => $rowContract['represented_vi'], '{_position}' => $rowContract['position'], '{_position_vi}' => $rowContract['position_vi'], '{_taxcode}' => $rowContract['taxcode'], '{_course}' => '', '{_course_vi}' => '', '{_quantity}' => $rowContract['quantity'], '{_quantity_vi}' => $rowContract['quantity_vi'], '{_duration}' => $rowContract['duration'], '{_duration_vi}' => $rowContract['duration_vi'], '{_trainer}' => ucwords($c->_model->_changeAlias($rowTrainer['name'], ' ')), '{_trainer_vi}' => $rowTrainer['name'], '{_daterequest_vi}' => '', '{_daterequest}' => '', '{_price}' => number_format($rowContract['price'], 0, ',', '.') . ' VNĐ', '{_price_vi}' => number_format($rowContract['price'], 0) . ' đồng');
$values = $c->contentReplace($rowEventForm['content'], $arr);
$name = 'content';
$others = $cF->ckeditorStandard($name);
$data = $cF->textArea($name, $values, 'textarea', NULL, $others);
echo $cF->displayDiv('', $data);
$cA = new modelAdmin();
$cF = new controlAdminForm();
echo $cF->displayDiv('Email nhận', '<b class="label2 adMessage" id="email">' . $rowContract['email'] . '</b>');
$name = 'email_bcc';
$values = $rowEventForm['email'];
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '60');
$data = $cF->inputText($name, $values, 'adInput adTxtMedium', $properties);
echo $cF->displayDiv('Email BCC', $data);
$name = 'btnSend';
$btnSend = $cF->inputButton($name, 'Gửi hợp đồng', 'adBtnLarge bgColorBlue1 corner8');
echo $cF->displayDiv(' ', $btnSend);
?>
<div id="loadingIframe"><div class="loading"></div></div>
</div>
<script type="text/javascript">
$(document).ready(function(e) {
$("#btnSend").live("click", function(){
$("#loadingIframe").show();
var fields = new Object();
fields['sendMailContract'] = '1';
fields['name'] = "<?php
示例11: array
} else {
$value = $_POST[$name];
}
$data .= $cF->inputHidden($name, $value, 'input_medium valueChecksBox');
echo $cF->displayTable('Danh mục', '<div class="listCheckboxMedium">' . $data . '</div>');
$name = 'article_id';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '4');
$properties[] = array('propertie' => 'placeholder', 'value' => 'Nhập ID');
$properties[] = array('propertie' => 'style', 'value' => 'width:50px');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
}
$data = $cF->inputText($name, $value, 'input_large value_id', $properties);
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$properties[] = array('propertie' => 'placeholder', 'value' => 'Nhập tên khóa học');
$properties[] = array('propertie' => 'style', 'value' => 'width:280px; margin-left:10px');
$data .= $cF->inputText('', '', 'input_medium value_name', $properties);
$data .= '<input type="button" value="Tìm kiếm" class="value_search" style="color:#666; margin-left:5px; padding:2px 5px" />';
$data .= '<div id="value_view" table="web_article"></div>';
echo $cF->displayTable('Khóa học', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];
} else {
$value = $_POST[$name];
示例12: controlAdminForm
<style>
.rightHeader, #fastAction{display:none !important}
</style>
<p class="clear30"></p>
<?php
$cF = new controlAdminForm();
$name = 'customer_id';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '8');
$properties[] = array('propertie' => 'placeholder', 'value' => 'ID k.hàng');
$properties[] = array('propertie' => 'style', 'value' => 'width:80px');
$value = '';
$data = $cF->inputText($name, $value, 'adInput value_id', $properties);
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '100');
$properties[] = array('propertie' => 'placeholder', 'value' => 'Tên khách hàng');
$properties[] = array('propertie' => 'style', 'value' => 'width:260px; margin-left:5px');
$data .= $cF->inputText('', '', 'adInput value_name', $properties);
$data .= '<input type="button" value="Tìm kiếm" class="adBtnSmall bgColorBlue1 corner5 value_search" style="float:none; margin-left:5px" /> <p class="adError error value_name_error"></p>';
$data .= '<div class="value_view" table="mn_customer"></div>';
echo $cF->displayDiv('ID khách hàng', $data);
echo $cF->displayDiv('OR', '<span class="adNotes label2">chọn 1 trong 2 khách hàng hoặc lớp học</span>');
$name = 'class_id';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '8');
$properties[] = array('propertie' => 'placeholder', 'value' => 'ID lớp học');
$properties[] = array('propertie' => 'style', 'value' => 'width:80px');
$value = '';
$data = $cF->inputText($name, $value, 'adInput value_id', $properties);
示例13: array
$properties[] = array('propertie' => 'style', 'value' => 'background-color:#F1F1F1');
if ($id == 0) {
$action = 'ad_field';
$arr = array('select' => '`code`', 'from' => '`mn_contract`', 'order' => '`code` DESC', 'limit' => '1');
$data = $c->_model->_select($arr);
$value = explode('-', $data[0]['code']);
$value = $value[0] + 1;
if ($value < 1000) {
$value = $value + 1000;
}
$value = $value . '-' . date('Y');
} else {
$action = '';
$value = $rowDetail[$name];
}
$data = $cF->inputText($name, $value, $action . ' adInput adTxtSmall', $properties);
echo $cF->displayDiv('Mã hợp đồng', $data . ' /STEVBROS');
$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 lập', $data);
$name = 'name';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$properties[] = array('propertie' => 'placeholder', 'value' => 'English');
示例14: array
if (!isset($_POST[$name])) {
$valueCheck = $rowDetail[$name];
} else {
$valueCheck = $_POST[$name];
}
$data = $cF->select($name, $values, $valueCheck, 'input_medium', 1);
echo $cF->displayTable('Tab product', $data);
$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 = 'name_alias';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
if ($arrAction['disabled'] != '') {
$properties[] = $arrAction['disabled'];
}
if ($arrAction['change'] == '') {
$change = '';
} else {
$change = 'changeAlias';
}
$others = $adA->messageChange(CONS_ADMIN_CHANGE_ALIAS, $change);
if (!isset($_POST[$name])) {
$value = $rowDetail[$name];