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/administrator/modules/manu_supply/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/coloflew/domains/fulltion.com/private_html/administrator/modules/manu_supply/supplydetail.php
 
<?php

@$linkurl = "index.php?name=manu_supply&file=supplydetail";
@$link1 = "index.php?name=manu_supply&file=supplytotle";
@$link2 = "index.php?name=manu_supply&file=supplyin";
if(isset($fullsc)){
@$linkurl .= "&fullsc=fullsc";
@$link1 .= "&fullsc=fullsc";
@$link2 .= "&fullsc=fullsc";
}

@$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']);

?>


<!-- Scrip Java-->
<!--<?PHP if(isset($_GET['InvoiceID'])){?>
<h3>< <a href="<?PHP echo @$link1;?>" ><?php echo @$lang_set['back']; ?></a> ></h3>	
<?PHP }
else
{?> 
<h3>< <a href="<?PHP echo @$link2;?>" ><?php echo @$lang_set['back']; ?></a> ></h3>
<?PHP }?>-->
<div class="content-box">
    <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><a href="index.php?name=manu_supply&file=supplyin<?php echo ($_GET['fullsc']=="fullsc" ? "&fullsc=fullsc" : "&cl=tru");?>"><?php echo @$lang_set['SupplyProduct']; ?></a></h3>	
        				

				<?php 
                    @$j =1;
					//echo '<pre>';print_r(@$GetInvoiceID); 
					foreach($GetInvoiceID as $val){
						  @$GetInvoice = @$db->getOne( "invoice", "*"," InvoiceID = '".@$val."'","" );
                          @$getstartname = @$db->getOne("deliverypoint","*","DeliveryPointID = ".@$GetInvoice['InvoiceStartPoint']);
						  @$getendname = @$db->getOne("deliverypoint","*","DeliveryPointID = ".@$GetInvoice['InvoiceEndPoint']);
                ?>
                <h3><?php echo "เลขที่		|  ".@$GetInvoice['InvoiceCode'];?></h3>	

			<ul class="content-box-tabs">
                    <li>
                        <a href="#<?php echo @$j; ?>" <?php echo (@$j=="1" ? 'class="default-tab"' : '');?>><?php echo @$getstartname['DeliveryPointName']."-".@$getendname['DeliveryPointName']."|".@$GetInvoice['InvoiceCode'];?></a>
                    </li> 
                <?PHP 
                    @$j++;
                    } 
                ?> 
            </ul>
         <div class="clear"></div>   
               	
    </div>
    
    <div class="content-box-content" >
        <?php 
			@$i =1; foreach($GetInvoiceID  as $val){
			@$GetInvoice = @$db->getOne( "invoice", "*"," InvoiceID = '".@$val."'","" );
			@$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");	
			@$Getproduct = @$db->getAll( "invoicedetail", "*"," InvoiceID = '".@$GetInvoice['InvoiceID']."'","" );
			@$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']."'");
		?>  
    	<div class="tab-content <?php echo (@$i=="1" ? 'default-tab' : '');?>" id="<?php echo @$i; ?>">


  <!--#########################Send######################################################################-->

		<div class="content-box">
    	<div class="content-box-header">
        	<h3 style="color:#FF0000"><?php echo @$lang_set['SendProfile']; ?></h3>	
        </div>
        <form>
        <table>
        	<tr>
           	       <td width="50px"><label><?php echo @$lang_set['Namesend']; ?>:</label></td>
                   <td ><?php echo @$sendRes['CustomerName']; ?></td>
                   <td width="80px"><label><?php echo @$lang_set['SurNamesend']; ?>:</label></td>
                   <td><?php echo @$sendRes['CustomerSurName']; ?></td>
                    <td width="135px"><label><?php echo @$lang_set['Identificationsend']; ?>:</label></td>
                   <td ><?php echo @$sendRes['CustomerIdentification']; ?></td>
                  <td  width="100px" align="center"></td>
            </tr>
        </table>
        <table>
        	<tr>
            	<td width="50px"><label><?php echo @$lang_set['Addresssend']; ?>:</label></td>
                <td><?php echo @$sendRes['CustomerAddress']; ?></td>
            </tr>
        </table>
        <table>
        	<tr>
            	<td width="50px"><label><?php echo @$lang_set['emp_province']; ?>:</label></td>
                <td><?php echo @$getsendprovince['PROVINCE_NAME']; ?></td>
                <td width="50px"><label><?php echo @$lang_set['emp_district']; ?>:</label></td>
                <td><?php echo @$getsenddistrict['AMPHUR_NAME']; ?></td>
                <td width="50px"><label><?php echo @$lang_set['tambon']; ?>:</label></td>
                <td><?php echo @$sendRes['CustomerTambon']; ?></td>
               <td width="100px"><label><?php echo @$lang_set['postcode']; ?>:</label></td>
                <td><?php echo @$sendRes['CustomerPostCode']; ?></td>
            </tr>
        </table>
        <table>
        	<tr>
                <td width="100px"><label><?php echo @$lang_set['telephonenum']; ?>:</label></td>
                <td width="150px"><?php echo @$sendRes['CustomerPhon']; ?></td>
                <td width="100px"><label><?php echo @$lang_set['hometelephonenum']; ?>:</label></td>
                <td width="150px"><?php echo @$sendRes['CustomerHomePhon']; ?></td>
                <td width="100px"><label><?php echo @$lang_set['customer_phonother']; ?>:</label></td>
                <td width="150px"><?php echo @$sendRes['CustomerOtherPhon']; ?></td>
                <td width="50px"></td>
                <td width="50px"></td>
            </tr>
       </table>
       </form>
       </div>
   

<!--#########################Recrip######################################################################-->

		<div class="content-box">
        <div class="content-box-header">
            <h3 style="color:#FF0000"><?php echo @$lang_set['RecvProfile']; ?></h3>		
        </div>
   		<form>
        	<table>
            	<tr>
              		<td width="50px"><label><?php echo @$lang_set['NameRecv']; ?>:</label></td>
                	<td><?php echo @$recvRes['CustomerName']; ?></td>
                    <td width="80px"><label><?php echo @$lang_set['SurNameRecv']; ?>:</label></td>
                	<td><?php echo @$recvRes['CustomerSurName']; ?></td>
                    <td width="135px"><label><?php echo @$lang_set['IdentificationRecv']; ?>:</label></td>
                	<td><?php echo @$recvRes['CustomerIdentification']; ?></td>
                    <td width="100px" align="center"></td>
                </tr>
            </table>

            <table>
            	<tr>
                	<td width="50px"><label><?php echo @$lang_set['AddressRecv']; ?>:</label></td>
                	<td><?php echo @$recvRes['CustomerAddress']; ?></td>
                </tr>
            </table>

            <table>
            	<tr>
                    <td width="50px"><label><?php echo @$lang_set['emp_province']; ?>:</label></td>
                	<td><?php echo @$getrecvprovince['PROVINCE_NAME']; ?></td>
                    <td width="50px"><label><?php echo @$lang_set['emp_district']; ?>:</label></td>
                	<td><?php echo @$getrecvdistrict['AMPHUR_NAME']; ?></td>
                    <td width="50px"><label><?php echo @$lang_set['tambon']; ?>:</label></td>
                	<td><?php echo @$recvRes['CustomerTambon']; ?></td>
                    <td width="100px"><label><?php echo @$lang_set['postcode']; ?>:</label></td>
                	<td><?php echo @$recvRes['CustomerPostCode']; ?></td>
                </tr>
            </table>

            <table>
                <td>
                    <td width="100px"><label><?php echo @$lang_set['telephonenum']; ?>:</label></td>
                    <td width="150px"><?php echo @$recvRes['CustomerPhon']; ?></td>
                    <td width="100px"><label><?php echo @$lang_set['hometelephonenum']; ?>:</label></td>
                    <td width="150px"><?php echo @$recvRes['CustomerHomePhon']; ?></td>
                    <td width="100px"><label><?php echo @$lang_set['customer_phonother']; ?>:</label></td>
                    <td width="150px"><?php echo @$recvRes['CustomerOtherPhon']; ?></td>
                    <td width="80px"><label><?php echo @$lang_set['Dalivary']; ?>:</label></td>
                    <td>
                    <input type="checkbox" name="Agent" <?PHP if(@$GetInvoice['CheckDalivary'] == 1){echo 'checked="checked"';}?> disabled="disabled" />
                    </td>
                    <td><label><?PHP if(@$GetInvoice['CheckCOD'] == 1){echo @$lang_set['COD'];}?></label>
                        <?PHP if (@$GetInvoice['CheckCOD'] == 1) {echo " ".@$GetInvoice['CODPrice']."  บาท";}?></td>
                </tr>
           </table>
           </form>
 		</div>

 <!--#########################ListItem######################################################################-->

		<p></p>
        <div class="content-box">
		<div class="content-box-header">
        	<h3 style="color:#FF0000"><?php echo @$lang_set['recvdetailproduct']; ?></h3>	
			<h3 style="color:#0F110E">รับฝาก-ส่งถึง&nbsp; <a href="preview.php?InvoiceID=<?php echo @$GetInvoice['InvoiceID'];?>" target="_blank"><?PHP echo @$getstartname['DeliveryPointName']."  -  ".@$getendname['DeliveryPointName'];?></a></h3>		-






        </div>
			<table id="mytbl_<?php echo @$i;?>" width="97%">
            	<thead>
            		<tr>
                        <th>ลำดับ</th>
                        <th align="left"><?php echo @$lang_set['CodeProduct']; ?></th>
                        <th align="left"><?php echo @$lang_set['NameProduct']; ?></th>
                        <th align="left"><?php echo @$lang_set['DetailProduct']; ?></th>
                        <th align="left"><?php echo @$lang_set['SizeProducr']; ?></th>
                        <th align="left"><?php echo @$lang_set['WeightProduct']; ?></th>
                        <th align="left"><?php echo @$lang_set['Sale']; ?></th>
                        <th align="left"><?php echo @$lang_set['Price/Unit']; ?></th>
                	<tr>
                </thead>
                <tbody>
                <?PHP 
					
					if(@$Getproduct){ foreach($Getproduct as $key => $va){
							@$getnamesize = @$db->getOne("setupsize","*","SetupSizeID = ".@$va['ProductSize']);
				?>
              	<tr>
                	<td><?php echo ($key+1);?></td>
					<td>
                    	<label><?php echo @$va['ProductCode']; ?></label>
                    </td><td>
                    	<label><?php echo @$va['ProductName']; ?></label>
                    </td><td>
                    	<label><?php echo @$va['ProductDetail']; ?></label>
                    </td><td>
                    	<label><?php echo @$getnamesize['SetupSizeSize']; ?></label>
                    </td><td>  
                    	<label><?php echo @$va['ProductWeight']; ?></label>
                    </td><td>
                    	<label><?php echo @$va['Saleper']; ?></label>
                    </td><td>
                    	<label><?php echo @$va['totalmoney']; ?></label>
                    </td><td align="middle" width="3%">
                    	
                    </td>
               <tr>
               <?PHP }
				}else{
			   ?>
               <tr>
                    <th colspan="11" style="text-align:center"><?php echo @$lang_set['not_data']; ?></th>
               <tr>
               <?php 
               	}
               ?>
           </tbody>
       </table>
       </div>
       		
       <div class="pagination">
       <!--<a href="index.php?name=exportReport&file=reportbarcode&InvoiceID=<?php //echo @$GetInvoice['InvoiceID'];?>" target="_blank"><img src="resources/images/barcode.jpg" alt="Barcode" /></a>-->
      
      <!-- <a href="index.php?name=exportReport&file=reportsupplydetail&InvoiceID=<?php //echo @$GetInvoice['InvoiceID'];?>" target="_blank"><img src="resources/images/printer-icon.png" alt="Print" /></a>-->
      <!--<a href="barcode2.php?InvoiceID=<?php echo @$GetInvoice['InvoiceID'];?>" target="_blank"><img src="resources/images/barcode.jpg" alt="Print" /></a>-->
       <a href="preview.php?InvoiceID=<?php echo @$GetInvoice['InvoiceID'];?>" target="_blank"><img src="resources/images/printer-icon.png" alt="Print" /></a>
       <a href="previewlabelold.php?InvoiceID=<?php echo @$GetInvoice['InvoiceID'];?>" target="_blank"><img src="resources/images/printer-icon.png" alt="Print" /></a>
       <a href="previewlabel.php?InvoiceID=<?php echo @$GetInvoice['InvoiceID'];?>" target="_blank"><img src="resources/images/printer-icon.png" alt="Print" /></a>

       </div>
	   <!--
       <div class="pagination">
    	<input type="button" style="width:200px" class="button" value="<?php //echo @$lang_set['submit']; ?>" onclick="@$('#divtestprint').jqprint();" />
    	</div>-->
      </div> <?PHP @$i++;}?>
       </div>
    <!--   <div class="pagination">
			<label><a href="index.php?name=manu_main&hk=login"><img src="resources/images/home.png" alt="Edit"/></a></label>
       </div>-->
</div>

Youez - 2016 - github.com/yon3zu
LinuXploit