/home/banprang/domains/plai.go.th/public_html/coremain/module/web/project/project_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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<?php
if(id_top_permission("a")!=1){    
    
permission_fail();            
}
// Status Package Module
$status_module=select_query("status_module","cms_status_module","id","18");
if(
$status_module[0]!=1)    {    
    
fieldset_no_module();
}

$navig['project']="ผลงานของเรา";
$navig['project_add']="เพิ่มข้อมูล";
navigator($navig);
echo
"<br>";
bar_header("เพิ่มข้อมูล"); // Bar_Header
fieldset_top("ผลงานของเรา");

if(
$p_id_type!="")                                {  $id_type=trim($p_id_type);            }
if(
$p_id_sub!="")                                {  $id_sub=trim($p_id_sub);                }
?>

<form  action="index.php?mod=project_output&path=project" method="post" enctype="multipart/form-data" name="add" onSubmit="return checkadd()">

<table width="98%" border="0" align="center" cellpadding="1" cellspacing="3">

    <tr height="40">
          
     <td width="150"><div align="left"><img src='coremain/images/marker.gif'> <strong>หัวข้อผลงาน</strong></div></td> 
     <td><div align="left"><input name="topic" type="text" size="60"></td> 
  </tr>

<?
        text_editor
("445","260",$data[fulltexts],"เนื้อหา"); // Text Editor
        
echo "<INPUT TYPE='hidden' name='id_type' value='$id_type'>";
        echo 
"<INPUT TYPE='hidden' name='id_sub' value='$id_sub'>";
?>
 
    <tr height="40">
    
     <td width="150"><div align="left"><img src='coremain/images/marker.gif'> <strong>งบประมาณ</strong></div></td> 
     <td><div align="left"><input name="price" type="text" size="60"></td> 
  </tr>

<!-- pic 1 -->
    <tr height="40">
     <td><div align="left"><img src='coremain/images/marker.gif'> <strong>Upload รูปที่1</strong></div></td> 
     <td><div align="left"><input name="userfile1" type="file" size="50"><?detail_pic();?></td> 
  </tr>

   
<!-- pic 2 -->
    <tr height="40">
     <td><div align="left"><img src='coremain/images/marker.gif'> <strong>Upload รูปที่2</strong></div></td> 
     <td><div align="left"><input name="userfile2" type="file" size="50"><?detail_pic();?></td> 
  </tr>

   

<!-- pic 3 -->
    <tr height="40">
     <td><div align="left"><img src='coremain/images/marker.gif'> <strong>Upload รูปที่3</strong></div></td> 
     <td><div align="left"><input name="userfile3" type="file" size="50"><?detail_pic();?></td> 
  </tr>

  <!-- pic 4 -->
    <tr height="40">
     <td><div align="left"><img src='coremain/images/marker.gif'> <strong>Upload รูปที่4</strong></div></td> 
     <td><div align="left"><input name="userfile4" type="file" size="50"><?detail_pic();?></td> 
  </tr>

   
  <!-- File -->
    <tr height="40">
     <td><div align="left"><img src='coremain/images/marker.gif'> <strong>File ประกอบ</strong></div></td> 
     <td><div align="left"><input name="userfile5" type="file" size="50"><?detail_file();?></td> 
  </tr>

    <tr height="40">
     <td></td> 
     <td><div align="left">       
            <?php text_button_insert();?>
        </td> 
  </tr>


</table>
</form>   
<?php fieldset_down();?>
<script language="javascript">
function checkadd() {
if(document.add.topic.value=="") {
alert("กรุณากรอกหัวข้อผลงาน !") ;
document.add.topic.focus() ;
return false ;
}
else 
return true ;
}
</script>