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