Viewing file: addPsInfo.php (7.78 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php include_once "template.php"; include_once "../class/clsTable.php"; include_once "../class/clsDepartment.php"; include_once "../class/clsPerson.php"; include_once "../link/function.php"; include_once "../class/clsadmin.php"; include_once "../class/clshire.php"; include_once "../class/clsprefix.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EPERSON'], $GLOBALS['DBUSER_EPERSON'], $GLOBALS['DBPASS_EPERSON']);
$oDP = new Department($oC); $oAd = new admin($oC); $oHr = new hire($oC); $oPf = new prefix($oC); ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=tis-620"> <link href="../source/style.css" rel="stylesheet" type="text/css"> </head> <body> <iframe id="addInfo" name="addInfo" src="" style="width:$0px;height:0px;border:0"></iframe> <br> <table width=703 align="center"> <tr><td height="150"> <fieldset> <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="?mm=1">ЁСґЎТГўйНБЩЕєШ¤ЕТЎГ</a> <img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">аѕФиБўйНБЩЕєШ¤ЕТЎГ </font></legend> <form name="ff" action="processEditPsInfo.php" method="post" target="addInfo"> <table width="85%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td height="30" align="left"><strong><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"> <img src="../picture/search2.jpg" border="0" > аѕФиБўйНБЩЕєШ¤ЕТЎГ</font></strong></td> </tr> <tr><td align="left"></td></tr> <tr> <td align="center" valign="top"> <table width="95%" height="22" border="0" align="center"><tr> <? if($s=="1"){ ?> <td width="46%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong> єС№·ЦЎўйНБЩЕєШ¤ЕТЎГаГХВєГйНВбЕйЗ</strong></font></td></tr> <? } ?> <? if($e=="1"){ ?> <td width="46%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong> <script>alert("ЄЧиН-№ТБКЎШЕ№ХйБХНВЩиг№ГРєєбЕйЗ");</script></strong></font></td></tr> <? } ?> <? if($e=="2"){ ?> <td width="46%" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong> <script>alert(" login №ХйБХНВЩиг№ГРєєбЕйЗ");</script></strong></font></td></tr> <? } ?> </table><br> <table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" bordercolor="#DADADA" > <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25"> <strong>Username</strong></td> <td width="2%" align="center"><strong>:</strong></td> <td ><input name="loginName" type="text" size="20" maxlength="20" onKeyPress="if(event.keyCode==39){ alert('ГРєєдБиКТБТГ¶єС№·ЦЎµСЗНСЎЙГ№Хйдґй!!'); return false;}"> <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font> </td> </tr> <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25"> <strong>¤У№УЛ№йТЄЧиН</strong></td> <td width="2%" align="center"><strong>:</strong></td> <td width="65%" ><select name="prefixId"> <option value="">--аЕЧНЎ¤У№УЛ№йТЄЧиН--</option> <? $oPf->Rsprefix(); while($oPf->GetRecord()){ ?> <option value="<? echo $oPf->prefixId; ?>"><? echo $oPf->prefixName; ?></option> <? } ?> </select> <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font> </td> </tr> <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25"> <strong>ЄЧиН - №ТБКЎШЕ</strong></td> <td width="2%" align="center"><strong>:</strong></td> <td ><input name="fName" type="text" size="15" maxlength="60" onKeyPress="if(event.keyCode==39){ alert('ГРєєдБиКТБТГ¶єС№·ЦЎµСЗНСЎЙГ№Хйдґй!!'); return false;}"> <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font> <input name="lName" type="text" maxlength="60" size="20" onKeyPress="if(event.keyCode==39){ alert('ГРєєдБиКТБТГ¶єС№·ЦЎµСЗНСЎЙГ№Хйдґй!!'); return false;}"> <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font> </td> </tr> <tr ><td width="36%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25"> <strong>КС§ЎСґ Л№иЗВ/ЎН§/ЅиТВ</strong></td> <td width="2%" align="center"><strong>:</strong></td> <td width="65%"><select name="deptId"> <option value="">--аЕЧНЎЛ№иЗВ§Т№--</option> <? $oDP->RSDeptByMaxdeptDate2(); while($oDP->GetRecord()){?> <option value="<? echo $oDP->deptId;?>"><? echo $oDP->deptName; ?></option> <? } ?> </select><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font> </td> </tr> <tr ><td width="33%" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>" height="25"> <strong>»ГРаА·єШ¤ЕТЎГ</strong></td> <td width="2%" align="center"><strong>:</strong></td> <td > <select name="hireId"> <option value="">--аЕЧНЎ»ГРаА·єШ¤ЕТЎГ--</option> <? $oHr->RShire(); while($oHr->GetRecord()){?> <option value="<? echo $oHr->hireId;?>" ><? echo $oHr->hireName; ?></option> <? } ?> </select> <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font> </td> </tr> <tr ><td width="33%" height="25" bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>"> <strong>µУбЛ№и§г№ЎТГаГХВ§ЕУґСє</strong></td> <td width="2%" align="center"><strong>:</strong></td> <td > </td> </tr> <tr><td colspan="3"> <select name="adminId"> <option value="">--аЕЧНЎµУбЛ№и§г№ЎТГаГХВ§ЕУґСє--</option> <? $oAd->RSadmin(); while($oAd->GetRecord()){?> <option value="<? echo $oAd->adminId;?>" ><? echo $oAd->adminName; ?></option> <? } ?> </select><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">*</font> </td></tr> <tr><td> </td> </tr> </table> <table border="0" align="center" width="90%"><tr> <td align="center"><input type="submit" name="jj" value="єС№·ЦЎўйНБЩЕєШ¤ЕТЎГ" onClick="return checkFormat();"> <input type="reset" name="clear" value="а¤ЕХВГмўйНБЩЕ"> <input type="button" name="cancel" value="ЎЕСєЛ№йТЛЕСЎ" onClick="location.href = '?mm=1'"> <input type="hidden" name="method" id="method" value="addinfo" > </td></tr></table></td></tr></table> </form> </fieldset> </td> </tr> </table> </body> </html> <script language="javascript"> function checkFormat(){
if(document.ff.loginName.value == ""){ alert("ЎГШіТЎГНЎ login аўйТКЩиГРєє"); document.ff.loginName.focus(); return false; } if(document.ff.prefixId.value == ""){ alert("ЎГШіТаЕЧНЎ¤У№УЛ№йТЄЧиН"); document.ff.prefixId.focus(); return false; } if(document.ff.fName.value == ""){ alert("ЎГШіТЎГНЎЄЧиН"); document.ff.fName.focus(); return false; } if(document.ff.lName.value == ""){ alert("ЎГШіТЎГНЎ№ТБКЎШЕ"); document.ff.lName.focus(); return false; } if(document.ff.deptId.value == ""){ alert("ЎГШіТаЕЧНЎЛ№иЗВ§Т№"); document.ff.deptId.focus(); return false; } if(document.ff.adminId.value == ""){ alert("ЎГШіТЧаЕЧНЎµУбЛ№и§г№ЎТГаГХВ§ЕУґСє"); document.ff.adminId.focus(); return false; } if(document.ff.hireId.value == ""){ alert("ЎГШіТаЕЧНЎ»ГРаА·єШ¤ЕТЎГ"); document.ff.hireId.focus(); return false; } var agree=confirm("¤ШіµйН§ЎТГєС№·ЦЎўйНБЩЕєШ¤ЕТЎГгЄиЛГЧНдБи ?"); if (agree){ return true ; }else{ return false ; } } </script>
|