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
|
<?php import_request_variables('pG', 'p_'); if($p_id_top!="") { $id_top=trim($p_id_top); }
$sql = "SELECT id_code FROM cms_code WHERE id_top='$id_top'"; $re = mysql_query($sql); $data = mysql_fetch_array($re); if ($data[0] == "") { $sql = "INSERT INTO `cms_code` (`id_code` ,`code` ,`id_top`)VALUES (NULL,'ใส่ Code ที่ต้องการ','$id_top')"; $re = mysql_query($sql); }
$sql = "SELECT * FROM cms_code WHERE id_top='$id_top'"; $re = mysql_query($sql); $data = mysql_fetch_array($re);
$navig['boss_message_edit'] = "แก้ไขข้อมูล"; navigator($navig); echo "<br>"; bar_header("แก้ไขข้อมูล"); // Bar_Header fieldset_top($boss_msg->topic); echo "<br/>"; ?>
<form name="add" action="index.php?mod=code_update_output&path=code&id_top=<?php echo $id_top; ?>&id_code=<?php echo $data[id_code]; ?>" method="post"> <table width="100%" border="0" align="center" cellpadding="1" cellspacing="3">
<?php text_editor('440', '250', 'ใส่ Code', 2, $data['code'], 'message'); button_text('แก้ไขข้อมูล', 'submit_edit'); ?> <!-- <tr height='35'> <td><?php // echo print_arr1(); ?> <strong>ใส่ Code</strong></td> <td> <?php // $oFCKeditor = new FCKeditor('message'); // $oFCKeditor->BasePath = 'coremain/editor/'; // $oFCKeditor->Width = '440'; // $oFCKeditor->Height = '250'; // $oFCKeditor->Value = $data[code]; // $oFCKeditor->Create() ?> </td> </tr> --> <!-- <tr height='35'>
<td colspan='2' align="center"> <input type="submit" name="submit_edit" value="แก้ไขข้อมูล" onmouseover="this.style.cursor='hand'"></td> </tr> --> </table> <input type="hidden" name="id_message" value="<?php echo $data_link->id_message; ?>"> </form>
|