Viewing file: showUpdate2.php (2.5 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<? include_once("pagebody.php"); pageHeader(); include_once("clsumfileupdate.php");
$pageTitle="การเข้าใช้ระบบงาน"; echo "<table width=100% class=\"pageTitleBgColor\" align=\"center\">\n"; echo "<tr><td align=center>$pageTitle</td></tr>\n"; echo "</table>"; ?> <? $oC = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB'], $GLOBALS['USER'], $GLOBALS['PASSWORD']); $oFd = new umfileupdate($oC);
$oFd->SearchByflagupdateD(); while($oFd->GetRecord()){
$e++; //echo "nnnn=".$fileselect[$r]."<br>"; if($e!="1"){ $select_file=$select_file.",".$oFd->fileId; }else{ $select_file=$oFd->fileId; }
}
$bar_width = 400; $bar_height = 5; $bar_padding = 2;
$inner_width = $bar_width - ($bar_padding * 2); $inner_height = $bar_height - ($bar_padding * 2); ?> <script language="JavaScript"> function print_output (counter, total_counter) { var total_len = <?php echo $inner_width; ?>; var current_len = 0; var finishId; if (!print_output.refid) { print_output.refid = document.getElementById("innerbar"); } if (print_output.refid) { current_len = Math.floor((total_len * counter) / total_counter); print_output.refid.style.width = current_len + "px"; } if(current_len == total_len) { finishId = document.getElementById("finish"); finishId.style.display = ""; } } </script>
<meta http-equiv="Content-Type" content="text/html; charset=tis-620"> <br><br><br><br> <div id="show" style="width: <?php echo $bar_width; ?>px; height: <?php echo $bar_height; ?>px; border: 1px solid red; padding: <?php echo $bar_padding; ?>px <?php echo $bar_padding; ?>px <?php echo $bar_padding; ?>px <?php echo $bar_padding; ?>px; margin-left: 190px;"><div id="innerbar" style="width: 0px; height: <?php echo $inner_height; ?>px; background-color: blue;"></div></div> <table width="740" border="0" align="center" cellpadding="0" cellspacing="0"> <tr align="center"> <td align="center"> <font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><strong>กรุณารอสักครู่...<br>เนื่องจากระบบกำลังทำการอัพเดทโปรแกรม</strong></font></td> </td> </tr> </table> <iframe width=100% height=0 src="selectUpdate.php?countfile=<? echo $countfile; ?>&fileerror=<? echo $fileerror; ?>&select_file=<? echo $select_file; ?>" marginwidth="0" marginheight="0" vspace="0" hspace="0" frameborder="0" align="middle" scrolling="no"></iframe>
<!---------------------------------------------------------------------> <?php pageFooter(); ?> <!--------------------------------------------------------------------->
|