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
|
<?php
import_request_variables('pG', 'p_'); if($p_id_product!="") { $id_product=trim($p_id_product); } if($p_id_pic!="") { $id_pic=trim($p_id_pic); }
bar_header("แก้ไขข้อมูลผลิตภัณฑ์"); // Bar_Header $data_link = select_query_object("*","cms_product","id_product",$id_product);
echo "<br/>"; ?>
<form name="add" action="index.php?mod=product_edit_output&path=product" method="post" enctype="multipart/form-data" onSubmit=""> <table width="100%" border="0" align="center" cellpadding="1" cellspacing="3">
<tr height='35'> <td></td> <td><?php echo print_arr1();?> <strong>ชื่อผลิตภัณฑ์</strong></td> <td><INPUT TYPE="text" NAME="name" size="50" value='<?php echo $data_link->name; ?>'></td> </tr> <tr height='35'> <td></td> <td><?php echo print_arr1();?> รูปภาพปัจจุบัน</td> <td> <img src="<?php echo $_SESSION[web_name]."/module_product/picture_main/".$data_link->picture;?>"> </td> </tr> <tr height='35'> <td ></td> <td><?php echo print_arr1();?> <strong>อัพโหลดรูปภาพลิงค์ใหม่</strong></td> <td><input name="picture_file" type="file" size="50"></td> </tr>
<tr height='35'> <td></td> <td><?php echo print_arr1();?> <strong>รายละเอียด</strong></td> <td> <?php $oFCKeditor = new FCKeditor('description') ; $oFCKeditor->BasePath = 'coremain/editor/'; $oFCKeditor->Width = '456'; $oFCKeditor->Height = '250'; $oFCKeditor->Value = $data_link->description; $oFCKeditor->Create() ?> </td> </tr> <td colspan='3' align="center"> <input type="submit" name="submit_edit" value="แก้ไขข้อมูล" onmouseover="this.style.cursor='hand'"></td> </tr>
</table> <input type="hidden" name="id_product" value="<?php echo $id_product;?>"> </form>
<? echo "<br/>"; ?>
|