Viewing file: addSetPsDept.php (4.14 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 "../link/keyThai.php";
include_once "../class/clspsdept.php";
include_once "getPrefix.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDP = new Department($oC);
$oDP2 = new Department($oC);
$oDP3 = new Department($oC);
$oPS = new person($oC);
$oPSd = new psdept($oC);
$maxdocgroup=$oDP->SearchMaxDocGroup();
?>
<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="changeDept" name="changeDept" 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"><a href="setPsDept.php">ЎУЛ№ґјЩйгЄй·СиЗд»г№Л№иЗВ§Т№ГН§</a>
<img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">аЕЧНЎЛ№иЗВ§Т№
</font></legend><br>
<form name="ff" METHOD="POST" action="processSetPsDept.php">
<? $oPS->SearchByKey($ps); $oPS->GetRecord();
?>
<table width="80%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="30" align="left">
<font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"><strong>ЄЧиН - №ТБКЎШЕ :: </strong></font><? echo GetPrefix($oPS->prefixId).$oPS->fName." ".$oPS->lName; ?></td>
</tr>
<tr><td height="25"> <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_2"];?>"><strong>аЕЧНЎЛ№иЗВ§Т№</strong></font></td></tr>
<tr>
<td align="center">
<table width="80%" height="115" border="0" align="center" cellpadding="0" cellspacing="0" >
<?php
$oDP->SearchBydeptDateDocGroup($maxdocgroup);
while($oDP->GetRecord()){
$oPSd->SearchBypersonIddeptId($ps,$oDP->deptId,$maxdocgroup);
$oPSd->GetRecord();
if(($i%2) == 0)
echo "<tr>";
else
echo "<tr bgcolor=\"".$GLOBALS['COLOR_BG_TABLE_8']."\">";
?>
<td align="left" height="22"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">
<? if($oDP->deptId==$oPS->deptId){ echo '<img src=../picture/checked.gif align=absbottom>'; }else{ ?><input name="deptId[<? echo $oDP->deptId; ?>]" type="checkbox" value="<? echo $oDP->deptId; ?>" <? if($oDP->deptId==$oPSd->deptId){ echo "checked"; } ?>><? } ?> <? echo $oDP->deptName; if($oDP->deptId==$oPS->deptId){ echo " (Л№иЗВ§Т№ВиНВ·ХиКС§ЎСґНВЩибЕйЗ)"; }?></font></td>
</tr>
<? $i++; } ?>
</table>
</td>
</tr>
<tr><td> </td></tr>
<tr><td align="center">
<input name="name" type="hidden" value="<?php echo $name; ?>">
<input name="ps" type="hidden" value="<?php echo $ps; ?>">
<input name="showrep" type="hidden" value="<?php echo $showrep; ?>">
<input name="showrepedit" type="hidden" value="<?php echo $showrepedit; ?>">
<input name="method" type="hidden">
<input name="addpsdept" type="submit" value="єС№·ЦЎ" onClick="return checkFormat();">
<input type="button" name="cancel" value="ЎЕСєЛ№йТЛЕСЎ" onClick="location.href = 'setPsDept.php?name=<? echo $name; ?>'"></td></tr>
</table> </form>
</fieldset>
<br><br> <br><br> <br><br>
</td>
</tr>
</table>
</body>
</html>
<script language="javascript">
function checkFormat(){
//window.alert("ЛБТВаЛµШ :: ЎТГ»ГСєв¤Г§КГйТ§аѕЧиНЎТГКи§Л№С§КЧНг№ГРєєКТГєГГіЁРа»ЕХиВ№б»Е§\nўйНБЩЕЛ№иЗВ§Т№ бЕРўйНБЩЕєШ¤ЕТЎГ јЩйГСєјФґЄНєГРєє\nµйН§µС駤иТЎТГгЄй§Т№ГРєєгЛБи");
var agree=confirm("¤ШіµйН§ЎТГєС№·ЦЎЎТГЎУЛ№ґјЩйгЄй·СиЗд»г№Л№иЗВ§Т№ГН§гЄиЛГЧНдБи ?");
if (agree){
return true ;
}else{
return false ;
}
}
</script>
|