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
|
<?php $navig['link_picture_add']="แก้ไขข้อมูล"; navigator($navig); echo "<br/>"; bar_header("แก้ไขข้อมูล"); // Bar_Header fieldset_top("ลิงค์"); echo "<br/>"; import_request_variables('pG', 'p_'); if($p_id_sponser!="") { $id_sponser=trim($p_id_sponser); }
$sql="SELECT * FROM cms_link_sponser WHERE id_sponser='$id_sponser'"; $re=mysql_query($sql); $data=mysql_fetch_array($re); $strings1=substr($data[pic_name],-4); $strings1=strtolower($strings1);
?>
<form name="add" action="index.php?mod=sponser_edit_output&path=sponser&id_sponser=<?php echo $id_sponser;?>" method="post" enctype="multipart/form-data" onSubmit=""> <table width="100%" border="0" align="center" cellpadding="1" cellspacing="1"> <tr height='40'> <td width='70'></td> <td><?php echo print_arr1(); ?> อัพโหลดรูปภาพ หรือ Flash <font color='ff0000'></font></td> <td><input name="userfile1" type="file" ></td> </tr> <?php if ($strings1 != ".swf") { ?> <tr height='40'> <td ></td> <td><?php echo print_arr1(); ?> คำอธิบายรูปภาพ</td> <td><input name="pic_description" type="text" size='35' value="<?php echo $data['pic_description'] ?>"></td> </tr>
<tr height='40'> <td ></td> <td><?php echo print_arr1(); ?> ลิงค์ไปที่</td> <td><input name="link_target" type="text" size='35' value="<?php echo $data['link'] ?>"></td> </tr> <?php } button_text('แก้ไขข้อมูล', 'Submit', 3); ?> <!-- <tr> <td colspan='3'> <input type="submit" name="Submit" value="แก้ไขข้อมูล" onmouseover="this.style.cursor='hand'"></td> </tr>--> </table> </form> <br/>
<?php fieldset_down(); ?>
|