1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
<?php // Status Package Module $status_module=select_query("status_module","cms_status_module","id","29"); if($status_module[0]!=1) { fieldset_no_module(); }
if(id_sub_permission(5)!=1){ permission_fail(); } $navig['faqs']="ถาม-ตอบ"; $navig['faqs_full']="แก้ไขข้อมูล";
navigator($navig); echo"<br>"; bar_header("แก้ไขข้อมูล"); // Bar_Header fieldset_top("ถาม-ตอบ");
import_request_variables('pG', 'p_'); if($p_id_faq_edit!="") { $id_faq_edit=trim($p_id_faq_edit); }
$sql="SELECT * FROM cms_faqs WHERE id='$id_faq_edit'"; $result=mysql_query($sql); $data=mysql_fetch_array($result);
?> <form action="index.php?mod=faqs_edit_output&path=faqs&id_faq_edit=<?php echo $id_faq_edit; ?>" method="post" enctype="multipart/form-data" name="add" id="add" onSubmit="return checkadd()">
<table width="98%" border="0" align="center" cellpadding="1" cellspacing="1">
<?php text_editor(450, 260, 'คำถาม', 2, $data['question'], 'question'); text_editor(450, 260, 'คำตอบ', 2, $data['ans'], 'ans'); button_text('แก้ไขข้อมูล'); ?> <!-- <tr> <td width=15% ><img src='coremain/images/marker.gif'> <strong>คำถาม</strong></td> <td width=85% ><? $oFCKeditor = new FCKeditor('question') ; $oFCKeditor->BasePath = 'coremain/editor/'; $oFCKeditor->Value = $data[question]; $oFCKeditor->Width = 450; $oFCKeditor->Height = 260; $oFCKeditor->Create() ; ?></td> </tr>
<tr> <td><img src='coremain/images/marker.gif'> <strong>คำตอบ</strong></td> <td><? $oFCKeditor = new FCKeditor('ans') ; $oFCKeditor->BasePath = 'coremain/editor/'; $oFCKeditor->Value = $data[ans]; $oFCKeditor->Width = 450; $oFCKeditor->Height = 260; $oFCKeditor->Create() ; ?></td> </tr>
<tr height='0'> <td colspan='2' align='center'><?text_button_update();?></td> </tr>-->
</table> </form> <?php fieldset_down();?>
|