$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>';
} 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');
$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>';
$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);
$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);