$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();
$properties[] = array('propertie' => 'spellcheck', 'value' => 'false');
$value = $rowDetail[$name];
$data = $cF->textArea($name, $value, 'ad_field adInput adTextArea', $properties);
echo $cF->displayDiv('Answer 1', $data);
$name = 'answers_2';
$properties = array();
$properties[] = array('propertie' => 'spellcheck', 'value' => 'false');
$value = $rowDetail[$name];
$data = $cF->textArea($name, $value, 'ad_field adInput adTextArea', $properties);
echo $cF->displayDiv('Answer 2', $data);
$name = 'answers_3';
$properties = array();
$properties[] = array('propertie' => 'maxlength', 'value' => '200');
$others = $c->messageChange(CONS_ADMIN_AUTO_URL);
$value = $rowDetail[$name];
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties, $others);
echo $cF->displayDiv('Link', $data);
$name = 'description';
if (isset($rowDetail[$name])) {
    $value = $rowDetail[$name];
} else {
    $value = '';
}
$name = 'ckeditor_description';
$properties = array();
$properties[] = array('propertie' => 'type', 'value' => 'ckeditor');
$others = $cF->ckeditorBasic($name, "'Format'");
$data = $cF->textArea($name, $value, 'ad_field', $properties, $others);
echo $cF->displayDiv('Description', $data . '<div class="adNotes">Định dạng Slider HOME dùng H1 và H2, định dạng đặc biệt "Tô Đậm"</div>');
/*$name = 'code';
$properties = array();
$properties[] = array('propertie'=>'maxlength', 'value'=>'20');
$value=$rowDetail[$name];
$data = $cF->inputText($name, $value, 'ad_field adInput adTxtMedium', $properties);
echo $cF->displayDiv('Code', $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('Thứ tự', $data);
//upload images