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
76
77
78
79
|
<?php
$navig['webboard']="กระดานสนทนา"; $navig['postq']="ตั้งประเด็น"; navigator($navig); echo "<br>"; bar_header("ตั้งประเด็น"); // Bar_Header fieldset_top("กระดานสนทนา");
?>
<center> <font class="Menu1"><b>เชิญตั้งประเด็นได้ที่นี่</b></font> </font> <br>
<form method=post action="index.php?mod=post&path=webboard" name="add" id="add" onSubmit="return checkadd()">
<table border=0 cellpadding=0 cellspacing=0 width='95%' align=center> <tr height='40'> <td align=left width='20%'><img src='coremain/images/marker.gif'> <b>ประเด็นคำถาม</b></td> <td width="80%"><input type=text name="QTitle" maxlength=100 style="width: 100%;"></td> </tr>
<?php text_editor("445", "260", "รายละเอียด", 2, $data['fulltexts']); // Text Editor ?> <tr height='40'> <td align=left><img src='coremain/images/marker.gif'> <b>ผู้ตั้งประเด็น</b></td> <td><input type=text name="QName" maxlength=50 value='<?php echo $_SESSION['name_post'] ?>' style="width: 100%;"></td> </tr> <tr height='40'> <td align=left><img src='coremain/images/marker.gif'> <b>อีเมล์</b></td> <td><input type=text name="QEmail" maxlength=50 value='<?php echo $_SESSION['name_email'] ?>' style="width: 100%;"></td> </tr>
<tr height='40'> <td align=left><img src='coremain/images/marker.gif'> <b>รหัสลับ</b></td> <td><img src='coremain/module/webboard/login1_image.php' align='center' title='ป้อนตามที่เห็นในภาพ'></td> </tr>
<tr height='40'> <td align=left><img src='coremain/images/marker.gif'> <b>ป้อนรหัสลับ</b></td> <td><input type=text name='from_pic'> <img src='coremain/images/bu.gif' title='ป้อนรหัสลับตามที่ปรากฏ' onmouseover=this.style.cursor='hand'></td> </tr> </table> <br> <?php button_text('ตั้งประเด็น', 'submit', 0) ?> <!--<input type=submit value="ตั้งประเด็น" onmouseover=this.style.cursor='hand'>-->
</form>
</center>
<?php echo fieldset_down(); ?> <script language="javascript"> function checkadd() { if(document.add.QTitle.value=="") { alert("กรุณากรอก ประเด็นคำถาม !") ; document.add.QTitle.focus() ; return false ; }
else if(document.add.QName.value=="") { alert("กรุณากรอกผู้ตั้งประเด็น!") ; document.add.QName.focus() ; return false ; } else if(document.add.from_pic.value=="") { alert("กรุณาป้อนรหัสลับตามที่ปรากฏ!") ; document.add.from_pic.focus() ; return false ; }
else return true ; } </script>
|