/home/banprang/domains/plai.go.th/public_html/coremain/module/boss_message/boss_message_add.php


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
<?php
$navig
['link_picture_add']="เพิ่มสาสน์ผู้บริหาร";
navigator($navig);
echo 
"<br>";
bar_header("เพิ่มสาสน์ผู้บริหาร"); // Bar_Header
fieldset_top($boss_msg->topic);
echo 
"<br/>";
?>
<form  name="add" action="index.php?mod=boss_msg_add_output&path=boss_message&id_top=<?php echo $_GET["id_top"]; ?>" method="post" enctype="multipart/form-data" onSubmit="return checkform();">
       <table width="100%" border="0" align="center" cellpadding="1" cellspacing="3">
    <tr height='35'>
      <td></td> 
      <td><img src='coremain/images/marker.gif'> <strong>หัวข้อ</strong></td> 
      <td><INPUT TYPE="text" NAME="topic" size="50" value=''></td> 
    </tr>
    <tr height='35'>
      <td></td> 
      <td><img src='coremain/images/marker.gif'> <strong>อัพโหลดรูปภาพ</strong></td> 
      <td><input name="picture_file" type="file" size="50"></td> 
    </tr>
    <?php
    text_editor
('445''300''เนื้อหา'3'''message');
    
?>
<!--    <tr height='35'>
      <td></td> 
      <td><img src='coremain/images/marker.gif'> <strong>เนื้อหา</strong></td> 
      <td>
        <?php
//        $oFCKeditor = new FCKeditor('message');
//        $oFCKeditor->BasePath = 'coremain/editor/';
//        $oFCKeditor->Width = '445';
//        $oFCKeditor->Height = '300';
//        $oFCKeditor->Create()
        
?> 
      </td> 
    </tr> -->
    <tr height='35'>
      <td></td> 
      <td><img src='coremain/images/marker.gif'> <strong>สาสน์จาก</strong></td> 
      <td><input name="owner" type="text"  size="50"></td> 
    </tr>
<!--    <td colspan='3' align="center">     
      <input type="submit" name="Submit" value="เพิ่มข้อมูล" onmouseover="this.style.cursor='hand'"></td> 
    </tr>-->
    <?php    button_text('เพิ่มข้อมูล''Submit'3); ?>
    
  </table>
</form>
<br/>
<?php
  fieldset_down
();
?>

<script language="javascript">
    function checkform(){
        form = document.add;
        
        if(form.topic.value==""){
            form.topic.focus();
            alert("กรุณากรอกหัวข้อ");
            return false;
        }
        else if(form.owner.value==""){
            alert("กรุณากรอกผู้ประกาศ");
            form.owner.focus();
            return false;
        }
        else
            return true;
    }
</script>