Viewing file: selectFile.php (5.9 KB) -rw-r--r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? include_once("pagebody.php"); pageHeader(); ?> <?php include_once("clsumfileupdate.php"); include_once("clsumfileupdatetemp.php"); include_once("lib/nusoap/nusoap.php"); include_once("lib/nusoap/globalversion.php"); include_once("lib/nusoap/funct.php");
confirmSubmit(); openWindow(); autotab();
$oC = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB'], $GLOBALS['USER'], $GLOBALS['PASSWORD']); $oFd = new umfileupdate($oC); $oFdt=new umfileupdatetemp($oC);
?> <meta http-equiv="Content-Type" content="text/html; charset=tis-620"> <br><br> <table width="740" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td> <form name="ff" METHOD="POST" action="showUpdate2.php"> <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#CCCCCC"> <tr> <td colspan="6" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"> <b> ไฟล์ทั้งหมดได้ถูกจัดเก็บที่วิทยาลัยแล้ว <br>กรุณากดปุ่มอัพเดทโปรแกรมเพื่อยืนยันการใช้งาน<br><br> </font></td> <tr bgcolor="<?php echo $GLOBALS["bg3"];?>"> <td colspan="7" align="center"><font size="3" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>การอัพเดทโปรแกรม</strong></font></td> </tr> <tr bgcolor="<?php echo $GLOBALS["bg2"];?>"> <td width="5%" height="17" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ลำดับที่</strong></font></td> <td width="45%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ชื่อไฟล์ (เวอร์ชั่น)</strong></font></td> <td width="5%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong> </strong> </font></td> <td width="18%" align="center" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>Path</strong> </font></td> <td width="12%" align="center" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>วัน เวลา<br>ที่อัพเดท</strong> </font></td> <td width="15%" align="center" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>รายละเอียด<br>การเปลี่ยนแปลง</strong> </font></td> </tr> <? $i=0; $oFd->SearchByflagupdateD2(); while($oFd->GetRecord()){ if(($i%2) == 0) echo "<tr>"; else echo "<tr bgcolor=\"".$GLOBALS["bg1"]."\">"; ?> <td height="22" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo ($i+1); ?></font></td> <td align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> <? if($oFd->filename2==""){ echo $oFd->filename1; }else{ echo $oFd->filename2; }?> </font></td> <td align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> <? if($oFd->flagfile=="1"){ echo "C"; }else if($oFd->flagfile=="2"){ echo "E"; }else{ echo "D"; } ?> </font></td> <td align="left" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo $oFd->path; ?> </font></td> <td align="center" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> <? echo abbreDate2($oFd->updateDate)."<br>".$oFd->updatetime ?> </font> </td> <td align="left" ><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> <? if($oFd->detail==""){ echo "- (ลบไฟล์)"; }else{ echo $oFd->detail; } ?> </font> </td> </tr> <? $i++; } if($i == 0){ ?> <tr> <td colspan="7" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** ไม่ปรากฏรายการในฐานข้อมูล **</font></td> </tr> <?php }else{ ?>
</table> <table width="100%" align="center" border="0" cellspacing="0" cellpadding="1" > <!--DWLayoutTable--> <tr bgcolor="silver"> <td width="731"><!--DWLayoutEmptyCell--> </td> <td width="218" align="right"><font size="2">รวม <?php echo $i; ?> รายการ</font></td> </tr> <tr> <td height="22"> </td> <td> </td> </tr> <tr> <td height="27" colspan="2" align="center" valign="top"> <input type="hidden" name="countfile" value="<?php echo $i;?>"> <input type="hidden" name="method" value="select_file"> <input type="hidden" name="fileerror" value="<?php echo $fileerror;?>"> <input type="submit" name="select_file" value="อัพเดทโปรแกรม" onClick='return file_upload();'> </td> </tr> </table></form> <table width="740" border="0" align="center" cellpadding="0" cellspacing="0"><tr><td> <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"> <b>หมายเหตุ : </b> <br> ประเภทของไฟล์ :: C หมายถึงไฟล์ที่สร้างใหม่<br> E หมายถึงไฟล์ที่แก้ไข<br> D หมายถึงไฟล์ที่ถูกลบ<br> </font></td></tr></table> </td></tr></table> <? }?> <!---------------------------------------------------------------------> <?php pageFooter(); ?><script> function file_upload(){ var agree=confirm("คุณต้องการอัพเดทโปรแกรมแน่นอนใช่หรือไม่ ?"); if (agree){ document.ff.submit(); return true ; }else{ return false ; } } function file_upload2(){ var agree=confirm("คุณต้องการออกจากเมนูอัพเดทโปรแกรมแน่นอนใช่หรือไม่ ?"); if (agree){ document.ff.action="adminIndex.php?mm=1"; return true ; }else{ return false ; } } </script>
|