| 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/domains/fulltion.com/private_html/administrator/modules/manu_supply/ |
Upload File : |
<?php
@$linkurl = "index.php?name=manu_supply&file=supplytrack";
@$link1 = "index.php?name=manu_supply&file=supplytobus";
@$link2 = "index.php?name=manu_supply&file=supplyfrombus";
if(isset($fullsc)){
@$linkurl .= "&fullsc=fullsc";
@$link1 .= "&fullsc=fullsc";
@$link2 .= "&fullsc=fullsc";
}
if(isset($_GET['SSUpdateBusProduct']))
{
//unset($_SESSION['SSUpdateBusProduct']);
//@$_SESSION['SSUpdateBusProduct'] = @$_GET['SSUpdateBusProduct'];
@$setpoint = @$_GET['SSUpdateBusProduct'];
}
//@$setpoint = @$_SESSION['SSUpdateBusProduct'];
//unset($_SESSION['SSUpdateBusProduct']);
@$getcode = @$db->getOne("busxroute","*"," BusXRouteID='".@$_GET['BusXRouteID']."'");
@$getrouteid = @$getcode['RouteID'];
@$getbusid = @$getcode['BusID'];
@$getroutename = @$db->getOne("route","*"," RouteID='".@$getrouteid."'");
@$getbusname = @$db->getOne("bus","*"," BusID='".@$getbusid."'");
@$where_f = " BusXRouteID = '".@$_GET['BusXRouteID']."' and InvoiceEndPoint = '".@$setpoint."'";
@$page = @$_GET['page'] ? @$_GET['page'] : 1;
@$arrpageP = @$db->getJoin( "*", "better_invoicedetail a left outer join better_invoice b on a.InvoiceID = b.InvoiceID",@$where_f,"","" );
@$arrPage = @$objMaster->viewPages(@$page, @$arrpageP, "15");
@$getPage = @$db->getJoin("*","better_invoicedetail a left outer join better_invoice b on a.InvoiceID = b.InvoiceID",@$where_f,"",@$arrPage["offset"]);
?>
<h3> < <a href="<?PHP echo @$link1;?>" ><?php echo @$lang_set['backtobus']; ?></a> | <a href="<?PHP echo @$link2;?>" ><?php echo @$lang_set['backfrombus']; ?></a> > </h3>
<!-- Start Content Box -->
<div class="content-box">
<!-- Start Content Box Header-->
<div class="content-box-header">
<?PHP if(isset($fullsc)){ ?>
<label><a href="index.php?name=manu_main&hk=login"><img src="resources/images/home.png" alt="Edit" /></a></label>
<?PHP }?>
<h3><?php echo @$getroutename['RouteName']." // วันที่ ".@$objMaster->getdbdateformat(@$getcode['SetDate'])." รถที่ใช้ ".@$getbusname['BusName']; ?></h3>
<ul class="content-box-tabs">
<li><a href="#list" <?php echo (@$_GET['act']=="" ? 'class="default-tab"' : '');?>><?php echo @$lang_set['list_product']; ?></a></li> <!-- href must be unique and match the id of target div -->
</ul>
<div class="clear"></div>
</div>
<!-- End Content Box Header-->
<!-- Start Content Box Content-->
<div class="content-box-content">
<?php if(@$res){?>
<div class="notification success png_bg">
<a href="#" class="close"><img src="resources/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
<div>
<?php echo @$msg;?>
</div>
</div>
<meta http-equiv="refresh" content="1;URL=<?PHP echo @$linkurl;?>&BusXRouteID=<?php echo @$_GET['BusXRouteID']?>">
<?php }?>
<!-- Start Tab Content id="list"-->
<div class="tab-content <?php echo (@$_GET['act']=="" ? 'default-tab' : '');?>" id="list">
<form action="<?PHP echo @$linkurl;?>&BusXRouteID=<?php echo @$_GET['BusXRouteID']?>&act=deleteAll" method="post">
<table>
<thead>
<tr>
<th width="20"></th>
<th width="100" align="left"><?php echo @$lang_set['endpoint']; ?></th>
<th width="80" align="left"><?php echo @$lang_set['CodeProduct']; ?></th>
<th width="100" align="left"><?php echo @$lang_set['NameProduct']; ?></th>
<th width="50" align="left"><?php echo @$lang_set['WeightProduct']; ?></th>
<th width="50" align="left"><?php echo @$lang_set['SizeProducr']; ?></th>
<th width="100" align="left"><?php echo @$lang_set['totalmoney']; ?></th>
<th width="75"><?php echo @$lang_set['invoice_status']; ?></th>
<th width="75"><?php echo @$lang_set['comment']; ?></th>
<th width="47"></th>
</tr>
</thead>
<?PHP
if(@$getPage){
foreach($getPage as $key => $va){
@$getstatusproduct = @$db->getOne("invoidestatus","*"," statusid='".@$va['status']."'");
@$getinvoice = @$db->getOne( "invoice", "*"," InvoiceID = '".@$va['InvoiceID']."'","" );
@$getendname = @$db->getOne("deliverypoint","*","DeliveryPointID = ".@$getinvoice['InvoiceEndPoint']);
@$getnamesize = @$db->getOne("setupsize","*","SetupSizeID = ".@$va['ProductSize']);
?>
<tbody id="ShowTrack">
<tr>
<th></th>
<th><?php echo @$getendname['DeliveryPointName'];?></th>
<th><?php echo @$va['ProductCode'];?></th>
<th><?php echo @$va['ProductName'];?></th>
<th><?php echo @$va['ProductWeight'];?></th>
<th><?php echo @$getnamesize['SetupSizeSize'];?></th>
<th><?php echo @$va['totalmoney'];?></th>
<th><span id="divstatus_<?php echo @$va['InvoiceDetailID'];?>"><?php echo @$getstatusproduct['statusdesc'];?></span></th>
<th><?php echo @$va['comment'];?></a></th>
<th></th>
</tr>
<?php }
}else{
?>
<tr>
<th colspan="11" style="text-align:center"><?php echo @$lang_set['not_data']; ?></th>
</tr>
<?php
}
?>
</tbody>
</table>
</form>
</div>
<!-- End Tab Content id="list"-->
<div class="content-box-content">
<form onsubmit="javascript:UpdateStatusTrack(<?PHP echo @$setpoint;?>);return false;">
<fieldset>
<p>
<label><?php echo @$lang_set['CodeTrack']; ?>:</label>
<input type="text" class="text-input medium-input" name="InvoiceDetailCode" id="InvoiceDetailCode" />
<input type="button" class="button" onclick="javascript:UpdateStatusTrack(<?PHP echo @$setpoint;?>);" style="width:50px;" value="<?php echo @$lang_set['submit']; ?>" >
</p>
</fieldset>
</form>
</div>
<div id="PopupComment">
</div>
</div>