403Webshell
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/parcel/administrator/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/coloflew/domains/fulltion.com/private_html/parcel/administrator//previewlabel_bu.php
<?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();

if(isset($_SESSION['lang_code']) && @$_GET['lang']){
	//@$la = @$_GET['lang'] ? @$_GET['lang'] : "En";
	@$_SESSION['lang_code'] = @$_GET['lang'];
	@$lang_code =  @$_SESSION['lang_code'];
}elseif(isset($_SESSION['lang_code'])){
	@$lang_code =  @$_SESSION['lang_code'];
}else{
	@$lang_code = "En";
	@$_SESSION['lang_code'] = @$lang_code;
}

@$lang_value = @$db->getAll('language_value','*',"lang_code='".@$lang_code."'");
//echo "<pre>"; print_r(@$lang_value);
if(@$lang_value){
	@$lang_set = array();
	foreach($lang_value as $ke => $va){
		@$lang_set[@$va['name']] = @$va['value'];
		//echo @$lang_set[@$va['name']];
		//@$lang = @$lang_f;
	}	
}

?>
<!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>
<html>
<body>
<!-- Scrip Java-->
<?PHP
@$GetInvoiceID = array();
	if(isset($_GET['InvoiceID']))
	{
		unset($_SESSION['SSInvoice']);
		@$_SESSION['SSInvoice'][] = @$_GET['InvoiceID'];
	}
	//@$_SESSION['SSInvoice'] = @$_GET['InvoiceID'];
	@$GetInvoiceID = @$_SESSION['SSInvoice'];
	//@$GetInvoiceID['end'] = '0';
	//@$GetInvoiceID = @$_SESSION['SSInvoice'];
	unset($_SESSION['SSInvoice']);
foreach($GetInvoiceID as $val){ 
		@$GetInvoice = @$db->getOne( "invoice", "*"," InvoiceID = '".@$val."'","" );
		
		@$GetEmpName = @$db->getOne( "admin", "*"," EmpID = '".@$GetInvoice["InvoiceEmpID"]."'","" );
		
		@$getstartname = @$db->getOne("deliverypoint","*","DeliveryPointID = ".@$GetInvoice['InvoiceStartPoint']);
		@$getendname = @$db->getOne("deliverypoint","*","DeliveryPointID = ".@$GetInvoice['InvoiceEndPoint']);

		@$sendRes = @$db->getOne("customer","*"," CustomerID='".@$GetInvoice['InvoiceSendID']."'"); 
		@$recvRes = @$db->getOne("customer","*"," CustomerID='".@$GetInvoice['InvoiceReceiveID']."'");
		@$getsendprovince = @$db->getOne("province","*"," PROVINCE_ID='".@$sendRes['CustomerProvince']."'");
		@$getsenddistrict = @$db->getOne("district","*"," AMPHUR_ID='".@$sendRes['CustomerDistrict']."'");
			
		@$getrecvprovince = @$db->getOne("province","*"," PROVINCE_ID='".@$recvRes['CustomerProvince']."'");
		@$getrecvdistrict = @$db->getOne("district","*"," AMPHUR_ID='".@$recvRes['CustomerDistrict']."'");
		
		@$getallroute = @$db->getAll("route","*","");
		@$sumtime = 0;
			foreach($getallroute  as $va){

				@$gettimestart = @$db->getOne( "routexpoint", "*","DeliveryPointID = '".@$GetInvoice['InvoiceStartPoint']."' And RouteID = '".@$va['RouteID']."'","");
				
				@$gettimeend = @$db->getOne( "routexpoint", "*","DeliveryPointID = '".@$GetInvoice['InvoiceEndPoint']."' And RouteID = '".@$va['RouteID']."'","");
				if(@$gettimestart){
					if(@$gettimeend){
						if(@$gettimestart['PointTime'] < @$gettimeend['PointTime']){
						
						@$gettime = @$db->gettest("SELECT ADDTIME( '".@$GetInvoice['InvoiceDate']." ".@$GetInvoice['InvoiceTime']."'
						,'".@$gettimeend['PointTime']."' ) AS PointTime");	
							if(@$sumtime < @$gettime['PointTime']){
								@$sumtime = @$gettime['PointTime'];
							}
						}
					}
				}
			}
			@$sumtimefin = @$db->gettest("SELECT ADDTIME( '".@$sumtime."','08:00:00' ) AS PointTime");	
			
			@$getsuccess = @explode(" ",@$sumtimefin['PointTime']);
			@$checktime = @explode(" ",@$getsuccess[1]);
			
			if(@$checktime[0] > 17)
			{
				@$getsuccess[1] = '08:00:00';
				@$updatedate = @$db->gettest("SELECT ADDTIME( '".@$getsuccess[0]." ".@$getsuccess[1]."','24:00:00' ) AS PointTime");	
				@$updatesuccess = @explode(" ",@$updatedate['PointTime']);
				@$getsuccess[0] = @$updatesuccess[0];
				

			}elseif(@$checktime[0] < 8){
				@$getsuccess[1] = '08:00:00';
			}


@$arrGetproduct = @$db->getAll( "invoicedetail", "*"," InvoiceID = '".@$GetInvoice['InvoiceID']."'","Order By InvoiceDetailID" );

@$arrPage = @$objMaster->viewPages(@$page, @$arrGetproduct, "20");

@$summoney = 0;
@$sumcount = 0;
//echo "<pre>";print_r(@$arrPage["endPage"]);
?>
<?PHP

for($i = @$arrPage["startPage"]; $i <= @$arrPage["endPage"]; ++$i) {
	@$arrPage2 = @$objMaster->viewPages(@$i, @$arrGetproduct, "20");
	@$Getproduct = @$db->getAll( "invoicedetail","*"," InvoiceID='".@$GetInvoice['InvoiceID']."'","Order By InvoiceDetailID",@$arrPage2["offset"]);
	
?>
<table width="100%">
  	<?php if($i>1){?>
	<tr>
    	<td colspan="2" style="height:120px;"></td>
    </tr>
	<?php }?>
    <tr>
    	<td align="center" colspan="2"><font style=" font:bold; font-size:16px;">ใบรับฝากของ เลขที่ <?PHP echo @$GetInvoice['InvoiceCode']?></font></td>
    </tr>
    <tr>
    	<td align="center" colspan="2"><img id="logo" src="images/logobill.jpg" alt="logo" width="100" /></td>
    </tr>
	<tr>
    	<td align="center">
        	<label style="font-size:24px;"><b>บริษัท เอ็น เค ลีฟ จำกัด</b></label><br>
           	<label style="font-size:12px;">24/3,24/4 ต.บ้านคลอง อ.เมืองพิษณุโลก จ.พิษณุโลก. 650000</label><br>
            <label style="font-size:12px;">โทรศัพท์ 084-192-1646,084-192-1646,084-047-1629 http://wwww.thebetterexpress.com</label><br /><br />
           <label style="font-size:12px;"> วันที่ <?PHP echo @$objMaster->getdbdateformat(date("Y-m-d"));?></label>
        </td>
    </tr>
    <tr>

    </tr>
</table>
<table width="100%" style="font-size:11px;">
	<tr>
    	<td align="center" >
        
        </td>
        <td align="center">
        
        </td>
        <td align="right" >
    
        </td>
        <td align="center">
			
        </td>
    </tr>
</table>
<table width="100%">
	<tr>
    	<td width="50%">
            <table width="100%" style="font-size:11px;vertical-align:top">
                <tr>
                    <td style="vertical-align:top"><label style="font-size:13px;"><b>ผู้ส่ง  </b><?PHP echo @$sendRes['CustomerName']."  ";?><?PHP echo @$sendRes['CustomerSurName']?></label><br />ที่อยู่ : <?PHP echo @$sendRes['CustomerAddress']?> <?PHP echo @$getsendprovince['PROVINCE_NAME']?> <?PHP echo @$getsenddistrict['AMPHUR_NAME']?> <?PHP echo @$sendRes['CustomerPostCode']?> <br />
					เบอร์ติดต่อ:<?PHP echo @$sendRes['CustomerPhon']?>    
                    </td>
                    
                </tr>
            </table>
        </td>
    	<td width="50%">
            <table width="100%"  style="font-size:11px;vertical-align:top">
                <tr>
                	 <td style="vertical-align:top"><label style="font-size:13px;"><b>ผู้รับ  </b><?PHP echo @$recvRes['CustomerName']."  ";?><?PHP echo @$recvRes['CustomerSurName']?></label><br />ที่อยู่ : <?PHP echo @$recvRes['CustomerAddress']?> <?PHP echo @$getrecvprovince['PROVINCE_NAME']?> <?PHP echo @$getrecvdistrict['AMPHUR_NAME']?> <?PHP echo @$recvRes['CustomerPostCode']?>  <br />
                     เบอร์ติดต่อ:<?PHP echo @$recvRes['CustomerPhon']?>   
                      </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

            <table width="100%">
                <tr>
    	<td align="left" >
        	รับฝาก-ส่งถึง&nbsp;&nbsp;&nbsp;<?PHP echo @$getstartname['DeliveryPointName']."  -  ".@$getendname['DeliveryPointName'];?>
        </td>
                </tr>
                <tr>
                    <td style="border-bottom:double;" colspan="6">&nbsp;</td>
                </tr>
   </table>
<!-- //-------------------------------ของ------------------------------------//-------->
<table width="100%"  style="font-size:8px;"  align="center">
	<tr height="20">
    	<td colspan="5">
        <table width="100%">
    	<td align="center" style="font-size:14px; width:35%;">รหัสพัสดุ</td>
        <td align="left" style="font-size:14px; width:15%;">ประเภทพัสดุ</td>
        <td align="left" style="font-size:14px; width:10%;">จำนวน</td>
        <td align="left" style="font-size:14px; width:20%;">น้ำหนัก</td>
        <td align="left" style="font-size:14px; width:10%;">ส่วนลด(%)</td>
        <td align="left" style="font-size:14px; width:10%;">ราคา</td>
        </table>
        </td>
    </tr>
    <tr>
    	<td colspan="5">
        <div style="height:320px;">
        <table width="100%">
    <?PHP 
	@$countrow = 0;
	?>
    <?PHP foreach($Getproduct as $key => $va){
			@$getnamesize = @$db->getOne("setupsize","*","SetupSizeID = ".@$va['ProductSize']);?>
    <tr height="10">
    	<td align="center" style="font-size:14px; width:35%"><img src="barcode1.php?barcode=<?php echo @$va['ProductCode'];?>&width=220&height=50" /></td>
        <td align="left"  style="font-size:14px; white-space:15%;"><?PHP echo @$va['ProductName']." - ".@$va['ProductDetail'];?></td>
        <td align="left" style="font-size:14px; width:10%;"><?php echo @$getnamesize['SetupSizeSize']; ?></td>
	   <td align="left" style="font-size:14px; width:20%;"><?PHP echo @$va['ProductWeight'];?></td>
        <td align="left" style="font-size:14px; width:10%;"><?PHP echo @$va['Saleper']."%";?></td>
        <td align="left" style="font-size:14px; width:10%;"><?PHP echo @$va['totalmoney'];?></td>
    </tr>
    
   <?php
	
	@$summoney = @$summoney + @$va['totalmoney'];
	//@$discount = @$discount + (@$va['totalmoney'] * @$va['Saleper'] /100);
	//@$discount = @$va['Saleper'];
	@$countrow++;
	@$sumcount++;
	}?>
    	</table>
        </div>
       </td>
    </tr>
    <tr>
    	<td colspan="5">
            <table width="100%">
			   <tr>
                    <td style="border-bottom:double;" colspan="6">&nbsp;</td>
                </tr>
            	<?php if($i==$arrPage["endPage"]){?>
                <tr>
                    <td style=" border-top:1px solid #333;" colspan="6">&nbsp;</td>
                </tr>
                <tr style="font-size:14px;" height="10px">
                    <td align="left" width="10px">จำนวนชิ้น</td>
                    <td align="right" width="10px"><?PHP echo @$sumcount;?>&nbsp;&nbsp;&nbsp;ชิ้น</td>
                    <td align="left" width="230px">รวมราคา</td>
                    <td align="right" width="5px"><?PHP echo @$summoney;?>&nbsp;บาท  </td>
                </tr>
                <?php }?>
                <tr>
                    <td style="border-bottom:double;" colspan="6">&nbsp;</td>
                </tr>
            </table>
	</td>
   </tr>  
<!-- //-------------------------------Footer------------------------------------//-------->
   <tr>
    	<td colspan="5">
            <table width="50%"  style="font-size:8px;">
                <tr>
                    <td width="50">
                        <label style="font-size:14px;">ลงชื่อ</label><br />
                    </td>
                    <td width="100">
                        .......................................................................
                    </td>
                    <td width="150">
                        <label style="font-size:14px;">ผู้ฝากของ</label>
                    </td>
                </tr>
                <tr>
                    <td width="50"></td>
                    <td width="100">(.......................................................................)</td>
                    <td width="150"></td>
                </tr>
                <tr>
                    <td width="50">
                        <label style="font-size:14px;"></label><br />
                    </td>
                    <td width="100">
                    </td>
                    <td width="150">
                        <label style="font-size:14px;"><br><br><br></label>
                    </td>
                </tr>
                <tr>
                    <td width="50">
                        <label style="font-size:14px;">ลงชื่อ</label><br />
                    </td>
                    <td width="100">
                        .......................................................................
                    </td>
                    <td width="150">
                        <label style="font-size:14px;">ผู้รับสินค้า</label>
                    </td>
                </tr>
                <tr>
                    <td width="50"></td>
                    <td width="100">(.......................................................................)</td>
                    <td width="150"></td>
                </tr>




         </td>
     </tr>
    <?PHP //@$countrow++; }

  }  //nui for i
	/*if(@$arrPage["endPage"] == $i){
	
	}*/
	?>
</table>


<?PHP 	} ?>
<?PHP //	}?>
</body>
</html>
<?PHP echo "<script>t = 3*1000;
			window.print();
			</script>";?>
<?PHP //setTimeout('window.close()',t); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit