Viewing file: showupdate2.php (2.36 KB) -rwxr-xr-x Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?
include_once "template.php";
showHeader();
include_once "../class/clsFileUpdate.php";
$oCA = new clsConnection($GLOBALS['HOST'], $GLOBALS['DB_EASS'], $GLOBALS['USER_EASS'], $GLOBALS['PASSWORD_EASS']);
$oFd = new FileUpdate($oCA);
?>
<?
$oFd->SearchByflagupdateD2();
while($oFd->GetRecord()){
$e++;
if($e!="1"){
$select_file=$select_file.",".$oFd->fileId;
}else{
$select_file=$oFd->fileId;
}
}
?>
<?php
$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">
<link href="source/style.css" rel="stylesheet" type="text/css">
<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>
<td >
<div align="center">
<table>
<tr align="center">
<td><font size="2" color="<?php echo $GLOBALS["COLOR_FONT_4"];?>"><strong>กรุณารอสักครู่...<br>เนื่องจากระบบกำลังทำการอัพเดทโปรแกรม</strong></font></td>
</tr>
</table>
</div>
</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
showFooter();
?>
|