Viewing file:      restorefile.php (7.5 KB)      -rwxr-xr-x Select action/file-type:    (+) |   (+) |   (+) | Code (+) | Session (+) |   (+) | SDB (+) |   (+) |   (+) |   (+) |   (+) |   (+) |
 
<?php
 
 include_once "template.php";
 showHeader();
 
 include_once "../link/function.php";
 include_once "../class/clsFileUpdate.php";
 include_once "../class/clsFileUpdateTemp.php";
 include_once("../global0.php");
 
 confirmSubmit();        
 openWindow();
 autotab();
 
 $oCA = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);
 $oFd = new FileUpdate($oCA);
 
 $oFd=new FileUpdate($oCA);
 $oFdt=new FileUpdateTemp($oCA);
 
 
 $oFdt->RSFileUpdateTemp();
 $oFdt->GetRecord();
 $oFdt->Delete();
  ?>
 <meta http-equiv="Content-Type" content="text/html; charset=tis-620">
 <link href="../source/style.css" rel="stylesheet" type="text/css">
 <br>
 
 <table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
 
     <tr>
         <td><br><fieldset>
             <legend><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_3"]; ?>"><a href="index.php?mm=1">อัพเดทโปรแกรม</a> <img src="../picture/ico3.gif" align="absmiddle" border="0">restore โปรแกรม</font></legend>
         <div align="center"><form name="ff" method="post" action="<?php echo $PHP_SELF; ?> " ><br>
          <table align="center" width="100%" border="0">
                 <tr>
                     <td height="22" align="left"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><a href="printfileupdate.php?sort_show=<? echo $sort_show; ?>" target="_blank">[ <img src="../picture/search.gif" align="absmiddle" border="0"> ตรวจสอบเวอร์ชั่นปัจจุบัน ]</a>
                       </font></td>
                   </tr>
                 
             </table>
     <table width="740" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr>
         <td>
         <table width="100%" border="0" cellspacing="0" cellpadding="0">
         <tr>
         <td width="75%" align="right"> </td>
          <td width="25%"  height="26" align="right" background="../picture/bgBio4.gif">
         <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>">
             <div align="right">เรียงลำดับตาม :: <select name="sort_show" onchange='return checksort();'>
                         <option value="0" <? if($sort_show=="0"){   echo "selected";  }?>>เวลาที่อัพเดท</option>
                         <option value="1" <? if($sort_show=="1"){   echo "selected";  }?>>ตัวอักษร</option>
                       </select> </div></font></td>              
             </tr>
             <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_1"];?>"> 
               <td colspan="8" align="center"><font size="3" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>การอัพเดทโปรแกรม</strong></font></td>
             </tr>
             <tr><td colspan="2">
           <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="<?php echo $GLOBALS["COLOR_BORDER_TABLE_1"];?>">
             <tr bgcolor="<?php echo $GLOBALS["COLOR_BG_TABLE_2"];?>"  >
              <td width="5%"   align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>restore</strong>
                 </font></td>
               <td width="10%"   height="17" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>วันที่อัพเดท</strong></font></td>
               <td width="10%" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>เวลาอัพเดท</strong></font></td>
               <td width="36%"   align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong>ชื่อไฟล์ (Version)</strong></font></td>
               <td width="3%"   align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_1"];?>"><strong> </strong>
                 </font></td>
                 
               <td width="23%"   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>
             </tr>
             <?    $i=0;
             if($sort_show=="0" || $sort_show==""){
                     $oFd->RSFileUpdatenotuse();
             }else{
                     $oFd->RSFileUpdatenotuseordertext();
             }
         while($oFd->GetRecord()){
             if(($i%2) == 0)
                                           echo "<tr>";
                                     else
                                           echo "<tr bgcolor=\"".$GLOBALS["COLOR_BG_TABLE_3"]."\">";
 ?>
               <td align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> 
                 <? if($oFd->flaguse=="N"){  ?>
                     <a href="processrestorefile.php?fileId=<?php echo $oFd->fileId;?>&method=restore" onClick='return confirmSubmit("คุณต้องการ restore โปรแกรมแน่นอนใช่หรือไม่ ?")'>
                     <img src="../picture/redo.gif"  align="absmiddle" border="0"></a>
                 <? }?>
                 </font></td>
                 <td height="22" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo abbreDate2($oFd->updateDate); ?></font></td>
               <td height="22" align="center"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><? echo $oFd->updatetime; ?></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="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="8" height="22" align="center"><font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>">** 
                 ไม่ปรากฏรายการในฐานข้อมูล **</font></td>
             </tr>
             <?php
                         }else{  ?>
             <tr> 
               <td colspan="8" align="right"><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"> 
                 <a href="printallupdate.php?sort_show=<? echo $sort_show; ?>" target="_blank">[ <img src="../picture/search.gif" align="absmiddle" border="0"> ดูประวัติการอัพเดทโปรแกรมทั้งหมด ]</a></font></td>
             </tr>
             <? }?>
             <tr> 
                     <td height="22" colspan="8"> </td>
                   </tr>
                   <tr> 
                     <td height="26" colspan="8" align="center"><input type="button" name="back" value="กลับเมนูหลัก" onClick="location.href = 'index.php?mm=1' "></td>
                   </tr>
           </table></td></tr></table>
        
         
             </td>
     </tr>
 </table></form></div>
             </fieldset>
         <font size="2" color="<?php echo $GLOBALS['COLOR_FONT_3'];?>"> <b>หมายเหตุ 
       : </b> <br>
       ประเภทของไฟล์ :: C หมายถึงไฟล์ที่สร้างใหม่<br>
                                   
       E หมายถึงไฟล์ที่แก้ไข<br>
                                   
       D หมายถึงไฟล์ที่ถูกลบ<br> 
 </font>    
             
             </td></tr></table>
 <?php
 showFooter();
 ?>
   <script>
 function checksort(){
     document.ff.submit();
 }
 </script>
 
  |