Viewing file: FrmEditFinPublic.php (8.86 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();
$Username = $valid_user;
$sql ="SELECT * FROM finance3_tb WHERE code='$code'";
$result = mysql_query($sql) or die("Cannot Select").mysql_error();
$rs = mysql_fetch_array($result);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<table width="822" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="822"><br>
<fieldset>
<legend><font size="2" 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="Adddecoration.php?Teacher_code=<? echo $rss[Teacher_code] ?>">เพิ่มข้อมูล</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="EditFinaceDuraList.php?Teacher_code=<? echo $rss[Teacher_code] ?>">แก้ไขข้อมูล</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /><a href="ReportFina.php?Teacher_code=<? echo $rss[Teacher_code] ?>">รายงานสรุปค่างบบุคลากร</a><img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle" /></font><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>">แสดงรายการงบบุคลากร</font></legend>
<label><div align="center">
<form id="form1" name="form1" method="post" action="EditFinPublic.php">
<table width="65%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#006699" style="border:1px solid gray">
<tr bgcolor="#D6ECF3">
<td colspan="3"><div align="center"><strong><font color="#FF0000" size="4" face="Tahoma">แก้ไข</font><font color="#FFFFCC" size="4" face="Tahoma"> <font color="#000000">ข้อมูล</font></font><font color="#FFCC66" size="4" face="Tahoma"><strong><font color="#000000" size="4" face="Tahoma">ค่าสาธารณูปโภค</font></strong></font></strong></div></td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="28%" bordercolor="#0066CC" bgcolor="#eeeeee"><div align="center"><font size="2">ปีงบประมาณ</font></div></td>
<td width="2%" bordercolor="#CCCCCC" bgcolor="#eeeeee"> </td>
<td width="70%" bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Year_budget" type="text" id="Year_budget" value="<? echo $rs[Year_budget]?>" size="5" />
</td>
</tr>
<tr bgcolor="#CCCCCC">
<td bordercolor="#0066CC" bgcolor="#eeeeee"><div align="center"><font color="#003366" size="2" face="Tahoma">วัน/เดือน/ปี </font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"> </td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><font size="2" face="Tahoma"> </font><font color="#000000" size="2" face="Tahoma"> ่
<select name="mDate" id="mDate" class="select" >
<?php
$Date_note = $rs[Date_note];
$yearthai = explode("-",$Date_note);
$mDate = intval($yearthai[2]);
$mMonth = intval($yearthai[1]);
$mYear = intval($yearthai[0]);
for($i=0;$i<=31;$i++)
{
if( $i == 0)
echo"\n\t<option value=\"$mDate\" selected>$mDate</option>\n ";
else
echo"\n\t<option value=\"$i\">$i</option>\n ";
}
// getDay1to31();
?>
</select>
<select name="mMonth" id="select2" class="select" >
<?php
$Date_note = $rs[Date_note];
$yearthai = explode("-",$Date_note);
$mDate= intval($yearthai[2]);
$Month = intval($yearthai[1]);
$mYear = intval($yearthai[0]);
$mMonth = $Month;
$CMonth = TxtThaiMonth($Month);
for($i=-1;$i<=11;$i++)
{
$a = $i+1;
if( $a == 0)
echo"\n\t<option value=\"$mMonth\" selected>$CMonth</option>\n ";
else
echo"\n\t<option value=\"$a\">$ThaiMonth[$i]</option>\n ";
}
// getThaiMonth();
?>
</select>
<input name="mYear" type="text" class="input" id="mYear" value="<? echo $mYear ?>" size="10" />
</font><font size="2" face="Tahoma"> </font> </td>
</tr>
<tr bgcolor="#99CCFF">
<td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">ครุภัณฑ์การศึกษา<br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost1" type="text" id="Cost1" value="<? echo $rs[Cost1]?>" size="10" />
<font size="2" face="Tahoma">บาท <font color="#FF0000">*ไม่ต้องพิมพ์เครื่องหมาย
comma (,)</font></font></td>
</tr>
<tr bgcolor="#99CCFF">
<td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">สำนักงาน<br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost2" type="text" id="Cost2" value="<? echo $rs[Cost2]?>" size="10" />
<font size="2" face="Tahoma">บาท </font></td>
</tr>
<tr bgcolor="#99CCFF">
<td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">โฆษณาและเผยแพร่<br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost3" type="text" id="Cost3" value="<? echo $rs[Cost3]?>" size="10" />
<font size="2" face="Tahoma">บาท </font></td>
</tr>
<tr bgcolor="#99CCFF">
<td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">ก่อสร้าง<br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost4" type="text" id="Cost4" value="<? echo $rs[Cost4]?>" size="10" />
<font size="2" face="Tahoma">บาท </font></td>
</tr>
<tr bgcolor="#99CCFF">
<td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">ไฟฟ้าและวิทยุ<br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost5" type="text" id="Cost5" value="<? echo $rs[Cost5]?>" size="10" />
<font size="2" face="Tahoma">บาท </font></td>
</tr>
<tr bgcolor="#99CCFF">
<td bgcolor="#eeeeee"><div align="center"><font size="2" face="Tahoma">งานบ้านงานครัว<br />
</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><div align="center"><font color="#FF0000" size="2" face="Tahoma">*</font></div></td>
<td bordercolor="#CCCCCC" bgcolor="#eeeeee"><input name="Cost6" type="text" id="Cost6" value="<? echo $rs[Cost6]?>" size="10" />
<font size="2" face="Tahoma">บาท </font></td>
</tr>
<tr bgcolor="#D6ECF3" >
<td height="26" colspan="3"><div align="center">
<input type="hidden" name="code" value=" <? echo $rs[code]?>" />
<input type="submit" name="Submit" 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 ";
}
?>
|