| Server IP : 27.254.152.13 / Your IP : 216.73.217.38 Web Server : Apache/2 System : Linux ns1-252017.dragonhispeed.com 5.2.0 #1 SMP Fri Mar 29 22:50:14 MSK 2024 x86_64 User : coloflew ( 1072) PHP Version : 5.6.40 Disable Function : exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /home/coloflew/.trash/files/fulltion.co.th/public_html/parcel/administrator/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<?PHP
require_once('../lib/sys_config.php');
require_once('../lib/class/SC_Query.php');
require_once('../lib/class/SC_Mysql.php');
require_once('../lib/class/SC_Master.php');
require_once('../lib/class/SC_Email.php');
require_once('../lib/class/SC_Function.php');
$db = new SC_Query();
$objMaster = new SC_Master();
$objFun = new SC_Function();
$setpoint = $_GET['SSUpdateBusProduct'];
$type = $_GET['type'];
if($type != 'hist'){
$getPage = $db->gettest2("select distinct InvoiceEndPoint from ".DB_PREFIX."invoicedetail a left outer join ".DB_PREFIX."invoice b on a.InvoiceID = b.InvoiceID where BusXRouteID = '".$_GET['BusXRouteID']."' and LastPoint = ".$setpoint."");
$link = "previewbus.php?BusXRouteID=".@$_GET['BusXRouteID']."&SSUpdateBusProduct=".@$setpoint;
}else{
$getbusxroute = $db->getOne( "busxroute", "*"," BusXRouteID = '".$_GET['BusXRouteID']."'","" );
$getPage = $db->gettest2("select distinct EndPoint as InvoiceEndPoint from ".DB_PREFIX."hist a inner join ".DB_PREFIX."invoicedetail b on a.invoicedetailID = b.invoicedetailID where a.BusXRouteID = '".$_GET['BusXRouteID']."' and a.status = '2'");
$link = "previewbushis.php?BusXRouteID=".@$_GET['BusXRouteID']."&SSUpdateBusProduct=".@$setpoint;
}
/*echo "<pre>"; print_r($getPage);
exit;*/
if($getPage){
foreach($getPage as $key => $va){
?>
<?PHP echo "<script>
window.open('".$link."&EndPoint=".$va['InvoiceEndPoint']."');
</script>";?>
<?PHP }}?>
<?PHP echo "<script>t = 1*1000;
//setTimeout('window.close()',t);
window.close()
</script>";?>
<?PHP //setTimeout('window.close()',t); ?>