Viewing file: AddSalary.php (4.66 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
include("../include/FunctionDB.php");
ConnectDB();
$sql = "Select * From personal_tb Where Teacher_code='$Teacher_code'";
$result = mysql_query($sql) or die(" Error").mysql_error();
$rss = mysql_fetch_array($result);
/////////////////////////////////
$sql2 = "Select * From salary_repot_tb Where Code='$Code'";
$result2= mysql_query($sql2) or die(" Error").mysql_error();
$rs = mysql_fetch_array($result2);
?>
<meta http-equiv="Content-Type" content="text/html; charset=TIS-620">
<style type="text/css">
<!--
.style4 {
font-family: Tahoma;
font-size: 14px;
}
.style5 {font-size: 14px}
#form1 p font {
text-align: left;
}
-->
</style>
<table width="617" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="617"><br>
<fieldset>
<div align="center">
<form id="form1" name="form1" method="post" action="InsertSalaryType.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="83%" border="0" align="center" cellpadding="0" cellspacing="1" style="background-color:#eeeeee; border:0px solid gray; font-size: 14px;"size="12">
<tr bgcolor="#F3D6F2">
<td colspan="3" bgcolor="#FFFFFF"><div align="center"><font color="#999999"><strong><span class="style4"><font color="#000000">¢éÍÁÙž×é¹°Ò¹à§Ô¹à´×͹</font></span></strong></font></div></td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#F3F3F3">
<td width="34%" bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ÃËÑÊ¢éÍÁÙž×é¹°Ò¹</font></div></td>
<td width="1%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td width="65%" bordercolor="#FFFFCC" bgcolor="#FFFFFF"></font><font size="2" face="Tahoma">
<input name="SalaryId" type="text" class="style4" id="SalaryId" value="<? echo $rss[SalaryId]?>" size="2" maxlength="2" />
</font></td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"><div align="center" class="style5"><font face="Tahoma">ÃÒ¡ÒÃ</font></div></td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><font color="#003366" size="2" face="Tahoma">
<input name="Detail" type="text" id="Detail" value="<? echo $rss[Gover_pos];?>" size="25" />
</font></td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"><label>
<input type="radio" name="SalaryStatus" id="Flag" value="Dr" />
<font face="Tahoma">´éÒ¹ÃÒÂÃѺ
<input type="radio" name="SalaryStatus" id="Flag2" value="Cr" />
<font face="Tahoma">´éÒ¹ÃÒ¨èÒÂ</font></font></label></td>
</tr>
<tr bgcolor="#F3F3F3">
<td bordercolor="#CCCCCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
<td bordercolor="#FFFFCC" bgcolor="#FFFFFF"> </td>
</tr>
<tr bgcolor="#F3D6F2">
<td colspan="3" bgcolor="#FFFFFF"><div align="center">
<input type="hidden" name="Teacher_code" value="<? echo $rss[Teacher_code]?>" />
<input name="Submit" type="submit" class="WIDTH60" id="Submit" value="ºÑ¹·Ö¡" />
<input name="Reset" type="reset" class="WIDTH60" id="Reset" value="Reset" />
<input type="button" name="Submit" value="»Ô´Ë¹éÒµèÒ§" onclick="javascript:parent.close();" class="CURSOR-HAND" id="Submit" />
</div></td>
</tr>
</table>
<p><font face="Tahoma">ËÁÒÂà赯 ÃËÑÊ¢éÍÁÙž×é¹°Ò¹ ¨ÐµéͧãÊèµÑÇàÅ¢µÒÁÅӴѺ àªè¹ 1,2,3,4,5,6 </font></p>
</form>
</fieldset>
<font color="<?php echo $GLOBALS["COLOR_FONT_3"];?>" size="2">
</font></td>
</tr>
</table>
|