Viewing file: AddDocument.php (5.52 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
if (session_is_registered("valid_user")&&session_is_registered("Priority") )
{
$Username = $valid_user;
$Password = $password;
include("../include/FunctionDB.php");
include("../include/Function.php");
include("admin_menu.php");
ConnectDB();
$sql = "Select * From personal_tb WHERE Username='$Username'";
$result = mysql_query($sql) or die(" Error").mysql_error();
$rss = mysql_fetch_array($result);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function browse()
{
form1.Imag1.src = form1.Img1.value;
}
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
function chk(c){
if (c.checked){
document.all.Prob1.disabled=false;
document.all.Prob2.disabled=false;
document.all.Prob3.disabled=false;
document.all.Prob4.disabled=false;
}
else{
document.all.Problem.disabled=false;
}
}
</script>
<style type="text/css">
<!--
.style1 {font-size: 14px}
-->
</style>
<table width="807" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="807"><br>
<fieldset>
<legend><span class="style1"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_manage.php" >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="DocumentList.php">ข้อมูลเอกสารงานสารบรรณ</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="AccTypeList.php">ข้อมูลหมวดเอกสาร</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />เพิ่มข้อมูลเอกสาร</font></span></legend>
<label><div align="center">
<form action="InsertDocument.php" method="post" enctype="multipart/form-data" name="form1" id="form1">
<p align="left"><font size="2" face="Tahoma"><img src="../picture/previous.gif" onclick="window.history.back()" width="85" height="22" border="0" /></font></p>
<table width="71%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#CCCCCC" style=" border:0px solid gray"size="12">
<tr bgcolor="#BFD0E6">
<td height="24" colspan="3" bgcolor="#FFFFFF"><div align="center" class="style1"><font color="#000000" face="Tahoma"><strong>เพิ่มข้อมูล เอกสารงานสารบรรณ </strong></font></div></td>
</tr>
<tr bgcolor="#eeeeee">
<td width="30%" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">รายการเอกสาร</font></div></td>
<td width="2%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
<td width="68%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"><input name="Docom_name" type="text" class="style1" id="Docom_name" size="50"></td>
</tr>
<tr bgcolor="#eeeeee">
<td height="20" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">หมวดเอกสาร</font></div></td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF" >
<select name="conditionId" id="conditionId">
<?php
$strSQL1 = "SELECT * FROM Docontion_tb ";
$result1= mysql_query($strSQL1);
while( $rs1 = mysql_fetch_array($result1))
{
echo"<option value=\"$rs1[conditionId]\" ><b>$rs1[Docom_name]</b></option>\n";
}
?>
</select>
<span class="style1" onclick="MM_openBrWindow('AddCoument.php','Detail','scrollbars=yes,width=500,height=150')"><a href="#"><img src="../picture/search.gif" width="15" height="19" border="0" alt="เพิ่มข้อมูล" /></a></td>
</tr>
<tr bordercolor="#99CCFF" bgcolor="#86ade2">
<td bgcolor="#FFFFFF"><div align="center" class="style1"><font face="Tahoma">โหลดเอกสาร</font></div></td>
<td bgcolor="#FFFFFF"> </td>
<td bgcolor="#FFFFFF"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="73%"><div align="center">
<input name="Img1" type="file" id="Img1" onchange="browse()" />
</div></td>
<td width="27%"><div align="center"></div></td>
</tr>
</table></td>
</tr>
<tr bgcolor="#BFD0E6">
<td colspan="3" bgcolor="#FFFFFF"><div align="center">
<input type="submit" name="Submit" value="เพิ่มข้อมูล" class="button" />
<input type="reset" name="Submit2" value=" เริ่มใหม่ " class="button" />
</div></td>
</tr>
</table>
</form>
</div>
</label>
</fieldset><br>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2"><b>หมายเหตุ :</b> ใช้เมาส์คลิกที่ชื่อ<br>
</font></td>
</tr>
</table>
<?php
}
else
{
echo"<meta http-equiv=\"refresh\" content=\"3;URL=../login.php\">\n";
echo"Please Login ";
}
?>
|