Viewing file: formatdeptNo.php (5.21 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/clsDocType.php";
include_once "../class/clsRunningDoc.php";
include_once "../class/clsSysConfig.php";
include_once "funct.php";
include_once "../link/keyThai.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);
$oDt = new doctype($oC);
$oRd = new runningdoc($oC);
$InputThai=$oSys->SearchByInputThai();
$maxdate = $oDP3->MaxDate();
?>
<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="addDeptNo" name="addDeptNo" 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="?mm=1">µС駤иТЛ№С§КЧНГТЄЎТГ</a>
<img src="../picture/ico3.gif" width="10" height="10" border="0" align="absmiddle">µС駤иТ·ХиЛ№С§КЧНЛ№иЗВ§Т№ВиНВг№Н§¤мЎГ
</font></legend><br>
<form name="ff" action="processFormatDeptNo.php" method="post" target="addDeptNo"> <? //?>
<table width="54%" height="22" border="0" align="center"><tr>
<? if($s=="1"){ ?>
<td align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"><strong>
єС№·ЦЎ·ХиЛ№С§КЧНЛ№иЗВ§Т№ВиНВг№Н§¤мЎГаГХВєГйНВбЕйЗ</strong></font></td>
<? } ?>
</tr>
<tr><td> </td></tr>
</table>
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
<tr>
<td valign="top"><br>
<label><div align="center">
<?
$oT = new clsTable(array("КиЗ№ГТЄЎТГАТВг№","аЕў·ХиЛ№иЗВ§Т№"));
$oT->bgColor="#CCCCCC";
$oT->align="center";
$oDP2->searchdeptDate($maxdate);
$rw=0;
while ($oDP2->GetRecord()){
ShowDeptM($oDP2->deptId,$InputThai);
}
$oT->rowStart("","#ffffff");
$oT->rowEnd();
echo "<form name=ps method=post>";
echo "<input type=hidden name=method value=''>";
echo "<input type=hidden name=startyear value=''>";
echo $oT->output();
//////////////////////////////////////////
?>
</div></td>
</tr>
</table>
<table align="center" width="80%"><tr><td><font size="3">
<strong>ЛБТВаЛµШ</strong><br>1. г№ЎТГЎУЛ№ґаЕў·ХиЛ№иЗВ§Т№ВиНВЄСй№·Хи 1 аЄи№ БХЁУ№З№ 5 Л№иЗВ§Т№ВиНВ гЛйгКиаЕў·ХиЛ№иЗВ§Т№¤ЧНаГФиБ·Хи 01, 02 д»Ё№¤Гє 05 µТБГРґСєЛ№иЗВ§Т№ВиНВЄСй№·Хи 1
<br>2. г№ЎТГЎУЛ№ґаЕў·ХиЛ№иЗВ§Т№ВиНВЄСй№·Хи 2 аЄи№ БХЁУ№З№ 3 Л№иЗВ§Т№ВиНВг№ЕУґСєЄСй№·Хи 1 ўН§Л№иЗВ§Т№ВиНВЕУґСє·Хи 2 Ўз¤ЧН гЛйЎУЛ№ґґС§№Хй 02.01, 02.02, 02.03 д»Ё№¤Гє
<br>3. г№ЎТГЎУЛ№ґаЕў·ХиЛ№иЗВ§Т№ВиНВЄСй№·Хи 3 аЄи№ БХЁУ№З№ 2 Л№иЗВ§Т№ВиНВг№ЕУґСєЄСй№·Хи 3 ўН§Л№иЗВ§Т№ВиНВЕУґСє·Хи 2 µиНд»НХЎ Ўз¤ЧН гЛйЎУЛ№ґґС§№Хй 02.01.01, 02.02.02, 02.03.03 д»Ё№¤Гє
<br>4. г№ЎТГЎУЛ№ґаЕў·ХиЛ№иЗВ§Т№ВиНВг№Н§¤мЎГ№ХйаБЧиНЎУЛ№ґаГХВєГйНВбЕйЗГРєєЁРґЦ§аЕў·ХиЎУЛ№ґд»µиН·йТВ·ХиЛ№С§КЧНўН§ЗФ·ВТЕСВвґВНСµв№БСµФ аБЧиНБХЎТГЕ§·РаєХВ№Ки§Л№С§КЧНµиНд»·Сй§Л№С§КЧНАТВг№бЕРАТВ№НЎ аЄи№ Кё 0203.082/01.01
</font></td></tr></table><br>
<table align="center" width="90%">
<tr><td > </td></tr>
<tr><td colspan="2" align="center">
<input type="submit" name="setDeptNo" value="єС№·ЦЎ" onClick="return checkFormat();">
<input type="button" name="cancel" value="ВЎаЕФЎ" onClick="location.href = '?mm=1'">
<input type="hidden" name="method">
</td></tr>
</table></form>
</fieldset>
</td>
</tr>
</table>
</body>
</html>
<?
function ShowDeptM($deptId,$InputThai){
global $oC;
global $oT;
global $Str;
global $rw;
$oPS = new person($oC);
$oDp = new Department($oC);
$oDp->SearchByKey($deptId);
$oDp->GetRecord();
if ($oDp->deptLevel%2==0){
$bs="<b>";
$be="</b>";
}
$lv = $oDp->deptLevel+1;
$oT->addRow(array(str_repeat("<img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif><img src=../picture/blank.gif>", $oDp->deptLevel*2). $bs ." ".$oDp->deptName. $be
,"<div align=center><input name=\"deptNo[".$oDp->deptId."]\" type=\"text\" size=\"15\" maxlength=\"15\" value=\"".a2th($oDp->deptNo)."\" onKeyPress=\"event.keyCode=CheckInput2(event.keyCode,'".$InputThai."'); return event.keyCode;\" style=text-align:center></div>"));
$oDp->RSmenuByDeptParent3($deptId);
while ($oDp->GetRecord()){
ShowDeptM($oDp->deptId,$InputThai);
}
}
?>
<script language="javascript">
function checkFormat(){
var agree=confirm("¤ШіµйН§ЎТГєС№·ЦЎўйНБЩЕ·ХиЛ№С§КЧНЛ№иЗВ§Т№ВиНВг№Н§¤мЎГгЄиЛГЧНдБи ?");
if (agree){
return true ;
}else{
return false ;
}
}
</script>
|