Viewing file: AddAcc.php (8.56 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") ) { include("../include/FunctionDB.php"); include("admin_menu.php"); include("../include/Function.php"); ConnectDB(); $sql ="SELECT * FROM personal_tb WHERE Username='$Username'"; $result = mysql_query($sql) or die("Cannot Select").mysql_error(); $rs = mysql_fetch_array($result); $rs[Research_code] = mysql_insert_id(); ?> <meta http-equiv="Content-Type" content="text/html; charset=TIS-620"> <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> <table width="789" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="789" ><br /> <fieldset> <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="menu_teacher.php">Л№йТЛЕСЎ</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"><a href="AccByname.php">ўйНБЩЕ¤ГШАСі±мЛ№иЗВ§Т№</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> <a href="AddAcc.php?Faculty_code=<?php echo $Faculty_code;?>">бЎйдўГТВЎТГ¤ГШАСі±м</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle"> аѕФиБГТВЎТГ¤ГШАСі±мЛ№иЗВ§Т№</font></legend> <label> <div align="left"> <form id="form1" name="form1" method="post" action="InsertAcc.php"> <table width="555" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#D2F49F"> <tr> <th height="25" colspan="3" scope="col"> </th> </tr> <tr> <th width="165" height="30" scope="col"><div align="left"><font size="2" face="Tahoma">ГЛСК</font></div></th> <th width="13" scope="col"> </th> <th width="361" scope="col"><div align="left"><font color="#006633" size="2" face="Tahoma"> <input name="Acc_code" type="text" id="Acc_code" size="30" /> </font></div></th> </tr> <tr> <td><font size="2" face="Tahoma"><strong>ЄЧиННШ»ЎГім/ВХиЛйН</strong></font></td> <td> </td> <td><input name="Acc_name" type="text" id="Acc_name" size="50" /></td> </tr> <tr> <td height="32"><font size="2" face="Tahoma"><strong>Є№Фґ</strong></font></td> <td> </td> <td><select name="Acc_type_code" id="Acc_type_code" class="input1"> <option></option> <?php $strSQL1 = "SELECT * FROM accessories_type_tb "; $result1 = mysql_query($strSQL1); while( $rs1 = mysql_fetch_array($result1)) { echo"<option value=\"$rs1[Acc_type_code]\" ><b>$rs1[Acc_type]- $rs1[Acc_Etype]</b></option>\n"; } ?> </select></td> </tr> <tr> <td><font size="2" face="Tahoma"><strong>Л№иЗВ§Т№ /ЅиТВ·ХиГСєјФґЄНє</strong></font></td> <td> </td> <td><strong><font color="#003366" size="2" face="Tahoma"> <select name="Faculty_code" id="Faculty_code" class="d"> <?php $strSQL3 = "SELECT * FROM faculty_tb Where Faculty_code='$Faculty_code' "; $result3 = mysql_query($strSQL3); while( $rs3 = mysql_fetch_array($result3)) { echo"<option value=\"$rs3[Faculty_code]\" ><b>$rs3[Faculty_name]</b></option>\n"; } CloseDB(); ?> </select> </font></strong></td> </tr> <tr> <td height="31"><font size="2" face="Tahoma"><strong>·ХиЁСґаЎзє</strong></font></td> <td> </td> <td><input name="Store" type="text" class="input" id="Store" size="-Ё" /></td> </tr> <tr> <td height="67"><div align="left"><font size="2" face="Tahoma"><strong>єГФЙС· Contact</strong></font></div> <div align="left"></div></td> <td> </td> <td><textarea name="Contact" cols="40" rows="4" id="Contact"></textarea></td> </tr> <tr> <td height="30"><font size="2" face="Tahoma"><strong>ЗС№·Хи</strong></font></td> <td> </td> <td><font color="#000000" size="2" face="Tahoma">ЗС№·Хи <select name="mDate" id="mDate" class="select" onkeypress="return handleEnter(this, event)" > <? getDay1to31();?> </select> аґЧН№ <select name="mMonth" id="mMonth" class="select" onkeypress="return handleEnter(this, event)"> <? getThaiMonth();?> </select> »Х ѕ.И. <input name="mYear" type="text" class="input" id="mYear" size="4" maxlength="4"> </font></td> </tr> <tr> <td height="32"><div align="left"><font size="2" face="Tahoma"><strong>ГТ¤Т</strong></font></div></td> <td> </td> <td><input name="Price" type="text" class="input" id="Price" size="7" maxlength="8" /> <font size="2" face="Tahoma">єТ·</font></td> </tr> <tr> <td><div align="left"><font size="2" face="Tahoma"> <strong>К¶Т№РЎТГгЄй§Т№</strong></font></div></td> <td><font color="#FF0000" size="4" face="Tahoma"><strong>*</strong></font></td> <td><font size="2" face="Tahoma"> <input type="radio" name="Status" value="гЄй§Т№" /> гЄй§Т№ <input type="radio" name="Status" value="ЗиТ§" /> ЗиТ§ <input type="radio" name="Status" value="ЄУГШґ" /> ЄУГШґ <input type="radio" name="Status" value="ЁУЛ№иТВННЎ" /> ЁУЛ№иТВННЎ </font></td> </tr> <tr> <td height="43"><div align="left"><font size="2" face="Tahoma"><strong>К¶ФµФЎТГгЄй§Т№</strong></font> </div></td> <td> </td> <td><textarea name="Statistic" cols="40" id="Statistic"></textarea></td> </tr> <tr> <td height="75"><div align="left"><font size="2" face="Tahoma"><strong>»ГРЗСµФЎТГ«иНБ</strong></font></div></td> <td> </td> <td><font size="2" face="Tahoma"> <textarea name="Fix_History" cols="40" rows="4" id="Fix_History"></textarea> </font></td> </tr> <tr> <td height="56"><div align="left"><font color="#003366" size="2" face="Tahoma"><strong>ГЩ»АТѕ</strong></font></div></td> <td> </td> <td><table width="23%" height="76" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="1%"><td width="49%" height="49"></td> <td width="8%"><div align="center"></td> <td width="8%"><td><td width="1%"><label><td width="3%"><input name="Img1" type="file" id="Img1" onchange="browse()" /> <td width="1%"><td width="12%"></td> <div align="center"><img src=" " name="Imag1" width="109" height="94" id="Imag1" /></div> <td width="17%"> </td> </tr> </table> <div align="left"></div></td> </tr> </table> <p align="center"> <input type="submit" name="add" value="єС№·ЦЎ" onclick="return(checkFormat())" /> <input type="reset" name="clear" value="а¤ЕХВГмўйНБЩЕ" /> <input type="button" name="cancel" value="ВЎаЕФЎ" onclick="location.href = 'showStudent.php?programId=<?php //echo $programId;?>&admitAcadYear=<?php //echo $admitAcadYear;?>'" /> </p> </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 "; } ?>
|