Viewing file: editSelectDocPost.php (8.94 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "template.php";
include_once "../link/function.php";
include_once "../link/functionshow.php";
include_once "../class/clsDocType.php";
include_once "../class/clsDocuments.php";
include_once "funct.php";
include_once "../class/clsDepartment.php";
include_once "../class/clsDocLineConfig.php";
include_once "../class/clsDocLinePosition.php";
include_once "../class/clsDocReceiveSend.php";
include_once "../class/clsPerson.php";
include_once "../class/clsannounceDocType.php";
include_once "../class/clsDocattatches.php";
include_once "../link/keyThai.php";
$oC = new clsConnection($GLOBALS['DBHOST'], $GLOBALS['DBNAME_EOFFICE'], $GLOBALS['DBUSER_EOFFICE'], $GLOBALS['DBPASS_EOFFICE']);
$oDt = new doctype($oC);
$oDoc = new Documents($oC); //
$oDoc2 = new Documents($oC); //
$oDP = new Department($oC);
$oDP1 = new Department($oC);
$oDlc = new DocLineConfig($oC);
$oDlc1 = new DocLineConfig($oC);
$oDlc2 = new DocLineConfig($oC);
$oDlc3 = new DocLineConfig($oC);
$oDlc4 = new DocLineConfig($oC);
$oDlp = new docLinePosition($oC);
$oDlp1 = new docLinePosition($oC);
$oRs = new DocReceiveSend($oC);
$oRs1 = new DocReceiveSend($oC);
$oPS = new person($oC);
$oAn=new announceDocType($oC);
$oAn1=new announceDocType($oC);
$oAn2=new announceDocType($oC);
$MaxDocGroup=$oDP->SearchMaxDocGroup();
$oDatt = new Docattatches($oC);
?>
<html>
<head>
<script language="javascript" src="../source/calendarDateInput.js"></script>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620">
<link href="../source/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" align="center">
<tr><td >
<fieldset>
<legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="searchEditSelectDocPost.php">бЎйдўЎТГЎГН§ўиТЗбЁй§ўЦй№аЗзє</a>
</font>
</legend>
<form name="ff" METHOD="POST" action="processSelectDocPost.php" >
<table width="99%" align="center">
<?
$oAn->SearchByKey($AnID);
$oAn->GetRecord();
?>
<tr><td><strong>бЎйдўЎТГЎГН§ўиТЗбЁй§ўЦй№аЗзєўН§ЗФ·ВТЕСВ </strong>»ГРаА·<? echo $oAn->AnName; ?></td></tr>
<tr><td><? if(th2a($yearDoc) == 0){
echo "ЗС№·ХиґУа№Ф№ЎТГЎГН§ўиТЗµСй§бµиЗС№·Хи "; list($day1,$month1,$year1) = split('/',$start); echo $day1."/".$month1."/"; echo $year1+543;
echo " ¶Ц§ "; list($day2,$month2,$year2) = split('/',$end); echo $day2."/".$month2."/"; echo $year2+543;
}else{
echo "ЄиЗ§ЗС№·Хи·ХиґУа№Ф№ЎТГЎГН§ўиТЗ»ГРЁУ»Х ".a2th($yearDoc);
}
?></td></tr>
<tr>
<td colspan="2"><hr></td>
</tr>
</table>
<table width="99%" align="center">
<tr align="center">
<td align="center" colspan="2">
<table width="100%" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#DADADA" style="border-collapse:collapse">
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">
<td width="20%" rowspan="2" align="center"><strong>·ХиЛ№С§КЧН
аГЧиН§</strong></td>
<td width="13%" rowspan="2" align="center"><strong>аНЎКТГ</strong></td>
<td width="14%" rowspan="2" align="center"><strong>Л№иЗВ§Т№·ХибЁй§ўиТЗ</strong></td>
<td rowspan="2" width="20%" align="center"><strong>(ЗС№аґЧН№»Х·Хи»ГРЎТИўЦй№аЗзє)<br>(»ГРаА·ўиТЗ)<br>(бЁй§ўЦй№аЗзєАТВ№НЎ/АТВг№)</strong></td>
<td colspan="2" align="center"><strong>ЎГН§ўиТЗ</strong></td>
<td width="10%" rowspan="2" align="center"><strong>ЗС№·ХиЎГН§ўиТЗ</strong></td>
<td width="5%" rowspan="2" align="center"><strong>єС№·ЦЎ<br>ЎТГбЎйдў</strong></td>
</tr>
<tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TD_1"]; ?>">
<td width="4%" align="center"><strong>аЕЧНЎ</strong></td>
<td width="5%" align="center"><strong>дБиаЕЧНЎ</strong></td>
</tr>
<? $startu=$start;
$endu=$end;
if(th2a($yearDoc) == 0){
list($dd, $mm, $yy) = split('[/]',$start);
$start=($yy+543)."-".$mm."-".$dd;
list($dd, $mm, $yy) = split('[/]',$end);
$end=($yy+543)."-".$mm."-".$dd;
}else{
$yy = th2a($yearDoc);
$start = $yy."-01-01";
$end = $yy."-12-31";
}
$oDoc->searchSelectedPostDoc($AnID,$start,$end,th2a($DocSubject),th2a($DocNo));
while($oDoc->GetRecord()){
?>
<td> <? echo $oDoc->DocNo; ?><? echo "<br> ".$oDoc->DocSubject; ?></td>
<td align="left">
<? if($oDoc->DocPID=="0" || $oDoc->DocPID==""){ $searchDoc=$oDoc->DocID; }else{ $searchDoc=$oDoc->DocPID; }
$oDatt->SearchByDocID($searchDoc);
while($oDatt->GetRecord()){
$c++;
$pathfile="../documents/".$oDatt->DaUpFileName;
?>
<a href="<? echo $pathfile ; ?>" target="_blank"><img src="../picture/allregistered_ico.gif" alt="а»ФґґЩбїйБЛ№С§КЧН" border="0" style="cursor:pointer;" ></a>
<? echo " ".$c.". ".$oDatt->DaFileName."<br>";
} ?>
</td>
<td align="left">
<?
$oDlc->SearchByKey($oDoc->DlcID); $oDlc->GetRecord();
echo " ".$oDP->SearchDeptName($oDlc->deptId);
?>
</td>
<td align="left"><br><? echo abbreDate2($oDoc->DocstartDatePost,'/')." - ".abbreDate2($oDoc->DocendDatePost,'/') ?>
<br>
<select name="AnIDselect[<? echo $oDoc->DocID; ?>]" >
<?
$oAn2->RSannounceDocType();
while($oAn2->GetRecord()){
?>
<option value="<? echo $oAn2->AnID; ?>" <? if($oDoc->AnID==$oAn2->AnID){ echo "selected"; }?>><? echo $oAn2->AnName; ?></option>
<? } ?></select>
<br>
<select name="DocShowInOut[<? echo $oDoc->DocID; ?>]" >
<option value="1" <? if($oDoc->DocShowInOut=="1"){ echo "selected"; }?>>бЁй§ўЦй№аЗзєАТВг№</option>
<option value="2" <? if($oDoc->DocShowInOut=="2"){ echo "selected"; }?>>бЁй§ўЦй№аЗзєАТВ№НЎ</option>
<option value="3" <? if($oDoc->DocShowInOut=="3"){ echo "selected"; }?>>бЁй§ўЦй№аЗзєАТВ№НЎбЕРАТВ№НЎ</option>
</select>
</td>
<td align="center"><input name="selectPost[<? echo $oDoc->DocID; ?>]" type="radio" value="Y" <? if($oDoc->DocGetPost =="Y"){ echo "checked"; }?>></td>
<td align="center"><input name="selectPost[<? echo $oDoc->DocID; ?>]" type="radio" value="N" <? if($oDoc->DocGetPost =="N"){ echo "checked"; }?>></td>
<td align="center"><?
if($oDoc->DocDateGetPost !="0000-00-00 00:00:00"){
list($DocD,$DocT) = split(' ',$oDoc->DocDateGetPost);
echo abbreDate2($DocD,'/')."<br>".a2th($DocT);
}?>
</td>
<td align="center">
<a onClick='return checkChange(<?php echo $oDoc->DocID; ?>)'><img src="../picture/save.gif" alt="єС№·ЦЎЎТГбЎйдў" border="0" style="cursor:pointer;"></a>
</td>
</tr>
<? $i++; }
if($i==0){
?>
<tr><td colspan="8" align="center"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">** дБиБХГТВЎТГЛ№С§КЧН·ХиЎГН§ўиТЗўЦй№аЗзє **</font></td></tr>
<? } ?>
</table>
</td></tr>
<tr><td align="center" colspan="2">
<input type="button" name="cancel" value="ЎЕСєЛ№йТЛЕСЎ" onClick="location.href = 'searchEditSelectDocPost.php'"></td></tr>
</table>
<input type="hidden" name="DocID">
<input type="hidden" name="method" value="changeSelectDoc">
<input type="hidden" name="AnID" value="<? echo $AnID; ?>">
<input type="hidden" name="DocSubject" value="<? echo $DocSubject; ?>">
<input type="hidden" name="DocNo" value="<? echo $DocNo; ?>">
<input type="hidden" name="start" value="<? echo $startu; ?>">
<input type="hidden" name="end" value="<? echo $endu; ?>">
<input type="hidden" name="yearDoc" value="<? echo $yearDoc; ?>">
</form>
</fieldset>
</td>
</tr>
</table>
<table width="95%" border="0" align="center">
<tr>
<td width="76" align="left"><font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2"> <strong>ЛБТВаЛµШ
: </strong> </font></td>
<td width="618" align="left"><img src="../picture/allregistered_ico.gif" alt="" border="0" >
<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">¤ЕФЎаѕЧиНа»ФґґЩбїйБЛ№С§КЧН </font></td>
</tr>
<tr>
<td width="76" > </td>
<td width="618" align="left">
<img src="../picture/save.gif" alt="єС№·ЦЎЎТГбЎйдў" border="0">
<font color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>" size="2">¤ЕФЎаѕЧиНбЎйдўЎТГЎГН§ўиТЗ</font></td>
</tr></table>
</body>
</html>
<script>
function checkChange(docid){
var agree=confirm("¤ШіµйН§ЎТГбЎйдўЎТГЎГН§ўиТЗ№Хйб№и№Н№гЄиЛГЧНдБи ?");
if (agree){
document.ff.DocID.value=docid;
document.ff.submit();
}else{
return false ;
}
}
</script>
|