Viewing file: AddFinacePublic.php (9.31 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
session_start();
if (session_is_registered("valid_user")&&session_is_registered("Priority")&&session_is_registered("password") )
{
$Username = $valid_user;
$Password = $password;
include("../include/FunctionDB.php");
include("../include/Function.php");
include("admin_menu.php");
ConnectDB();
$Username = $valid_user;
$strSQL1 = "SELECT * FROM personal_tb WHERE Username='$Username' ";
$result1 = mysql_query($strSQL1) or die("Error ".mysql_error());
$rss = mysql_fetch_array($result1);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {font-size: 14px}
.style3 {font-family: Tahoma}
-->
</style>
<table width="822" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="822"><br>
<fieldset>
<legend><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><span class="style1"><a href="menu_manage.php" >หน้าหลัก</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="Adddecoration.php">เพิ่มข้อมูล</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="EditFinaceDuraList.php">แก้ไขข้อมูล</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="ReportFina.php">รายงานสรุปค่างบบุคลากร</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" />เพิ่มข้อมูลการเงิน งบค่าสาธารณูปโภค</span></font></legend>
<label><div align="center">
<form id="form1" name="form1" method="post" action="InsertFin3.php">
<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="63%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699" style="border:0px solid gray">
<tr bgcolor="#D6ECF3" >
<td height="29" colspan="3"><div align="center" class="style1"><font color="#000000" face="Tahoma">เพิ่มข้อมูลการเงิน
ค่าสาธารณูปโภค</font></div></td>
</tr>
<tr bgcolor="#99CCFF">
<td width="32%" bgcolor="#eeeeee"><div align="center" class="style1 style3">ปีงบประมาณ</div></td>
<td width="2%" bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></div></td>
<td width="66%" bordercolor="#CCCCCC" bgcolor="#eeeeee"><font color="#0000FF" size="2" face="Geneva, Arial, Helvetica, sans-serif">
<select name="Year_budget" id="select20">
<? for($i=2546;$i<=2555;$i++){
$temp=$i;
if(date('Y')==$temp)
echo"<option value='$temp'selected>$temp</option>";
else echo"<option value='$temp'>$temp</option>";
}?>
</select>
</font></td>
</tr>
<tr bgcolor="#99CCFF">
<td bgcolor="#eeeeee"><div align="center" class="style1"><font color="#000000" face="Tahoma">ประจำเดือน</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"> </td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><select name="Mounth" id="Mounth">
<?getThaiMonth();?>
</select></td>
</tr>
<tr bgcolor="#99CCFF">
<td bgcolor="#eeeeee"><div align="center"><font color="#000000" size="2" face="Tahoma">วัน/เดือน/ปี</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"> </td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><select name="mDate" id="mDate">
<?getDay1to31();?>
</select>
-
<select name="mMonth" id="mMonth">
<?getThaiMonth();?>
</select>
-
<input name="mYear" type="text" id="mYear" size="4" maxlength="4" /></td>
</tr>
<tr bgcolor="#99CCFF">
<td height="22" colspan="3" bgcolor="#eeeeee"><div align="center" class="style1"><font face="Tahoma"><strong>ยอดรวมสุทธิ</strong></font></div></td>
</tr>
<tr bgcolor="#99CCFF">
<td height="22" bgcolor="#eeeeee"><div align="center"><span class="style1"><font face="Tahoma"><span class="style1">ค่าน้ำประปา</font></span><font size="2" face="Tahoma"><br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma"><font color="#FF0000">*</font></font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><span class="style1">
<input name="Cost1" type="text" id="Cost1" size="10" />
<font face="Tahoma">บาท <font color="#FF0000">*ไม่ต้องพิมพ์เครื่องหมาย
comma (,)</font></font></span></td>
</tr>
<tr bgcolor="#99CCFF">
<td height="22" bgcolor="#eeeeee"><div align="center"><font face="Tahoma"><span class="style1">ไฟฟ้า</span></font><font size="2" face="Tahoma"><br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma"><font color="#FF0000">*</font></font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><span class="style1">
<input name="Cost2" type="text" id="Cost2" size="10" />
<font face="Tahoma">บาท </font></span></td>
</tr>
<tr bgcolor="#99CCFF">
<td height="22" bgcolor="#eeeeee"><div align="center"><font face="Tahoma"><span class="style1">ไปรษณีย์/โทรเลข</span></font><font size="2" face="Tahoma"><br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma"><font color="#FF0000">*</font></font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><span class="style1">
<input name="Cost3" type="text" id="Cost3" size="10" />
<font face="Tahoma">บาท </font></span></td>
</tr>
<tr bgcolor="#99CCFF">
<td height="22" bgcolor="#eeeeee"><div align="center"><font face="Tahoma"><span class="style1">โทรศัพท์</span></font><font size="2" face="Tahoma"><br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma"><font color="#FF0000">*</font></font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><span class="style1">
<input name="Cost4" type="text" id="Cost4" size="10" />
<font face="Tahoma">บาท </font></span></td>
</tr>
<tr bgcolor="#99CCFF">
<td height="22" bgcolor="#eeeeee"><div align="center"><font face="Tahoma"><span class="style1">บริการอินเตอร์เน็ต</span></font><font size="2" face="Tahoma"><br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma"><font color="#FF0000">*</font></font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><span class="style1">
<input name="Cost5" type="text" id="Cost5" size="10" />
<font face="Tahoma">บาท </font></span></td>
</tr>
<tr bgcolor="#99CCFF">
<td height="22" bgcolor="#eeeeee"><div align="center"><font face="Tahoma"><span class="style1">ค่าบริการอื่นๆ</span></font><font size="2" face="Tahoma"><br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma"><font color="#FF0000">*</font></font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><span class="style1">
<input name="Cost6" type="text" id="Cost6" size="10" />
<font face="Tahoma">บาท </font></span></td>
</tr>
<tr bgcolor="#D6ECF3" >
<td colspan="3" bgcolor="#eeeeee"><div align="center">
<input type="submit" name="Submit3" value=" เพิ่ม " />
<input type="reset" name="Submit22" value=" เริ่มใหม่ " />
</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 ";
}
?>
|