403Webshell
Server IP : 61.19.30.66  /  Your IP : 216.73.216.59
Web Server : Apache/2.2.22 (Ubuntu)
System : Linux klw 3.11.0-15-generic #25~precise1-Ubuntu SMP Thu Jan 30 17:39:31 UTC 2014 x86_64
User : www-data ( 33)
PHP Version : 5.3.10-1ubuntu3.48
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
MySQL : ON  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : OFF
Directory :  /var/www/gpa/data/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/gpa/data/printall.php
<?
require_once "../config/confiteacher.inc.php";
?>
<?
require_once "../config/connectdb.php";



?>
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=tis-620">

<title>อาร์เทคคอม-จำหน่ายซ๋อม อุปกรณ์สินค้าไอที ติดตั้งอินเตอร์เน็ต</title>

</head>

<body onload="window.print()">
<?php   
function num2wordsThai($num){   
	$num=str_replace(",","",$num);
	$num_decimal=explode(".",$num);
	$num=$num_decimal[0];
    $returnNumWord;   
    $lenNumber=strlen($num);   
    $lenNumber2=$lenNumber-1;   
    $kaGroup=array("","สิบ","ร้อย","พัน","หมื่น","แสน","ล้าน","สิบ","ร้อย","พัน","หมื่น","แสน","ล้าน");   
    $kaDigit=array("","หนึ่ง","สอง","สาม","สี่","ห้า","หก","เจ็ต","แปด","เก้า");   
	$kaDigitDecimal=array("ศูนย์","หนึ่ง","สอง","สาม","สี่","ห้า","หก","เจ็ต","แปด","เก้า");   
    $ii=0;   
    for($i=$lenNumber2;$i>=0;$i--){   
        $kaNumWord[$i]=substr($num,$ii,1);   
        $ii++;   
    }   
    $ii=0;   
    for($i=$lenNumber2;$i>=0;$i--){   
        if(($kaNumWord[$i]==2 && $i==1) || ($kaNumWord[$i]==2 && $i==7)){   
            $kaDigit[$kaNumWord[$i]]="ยี่";   
        }else{   
            if($kaNumWord[$i]==2){   
                $kaDigit[$kaNumWord[$i]]="สอง";        
            }   
            if(($kaNumWord[$i]==1 && $i<=2 && $i==0) || ($kaNumWord[$i]==1 && $lenNumber>6 && $i==6)){   
                if($kaNumWord[$i+1]==0){   
                    $kaDigit[$kaNumWord[$i]]="หนึ่ง";      
                }else{   
                    $kaDigit[$kaNumWord[$i]]="เอ็ด";       
                }   
            }elseif(($kaNumWord[$i]==1 && $i<=2 && $i==1) || ($kaNumWord[$i]==1 && $lenNumber>6 && $i==7)){   
                $kaDigit[$kaNumWord[$i]]="";   
            }else{   
                if($kaNumWord[$i]==1){   
                    $kaDigit[$kaNumWord[$i]]="หนึ่ง";   
                }   
            }   
        }   
        if($kaNumWord[$i]==0){   
			if($i!=6){
	            $kaGroup[$i]="";   
			}
        }   
        $kaNumWord[$i]=substr($num,$ii,1);   
        $ii++;   
        $returnNumWord.=$kaDigit[$kaNumWord[$i]].$kaGroup[$i];   
    }      
	if(isset($num_decimal[1])){
		$returnNumWord.="จุด";
		for($i=0;$i<strlen($num_decimal[1]);$i++){
				$returnNumWord.=$kaDigitDecimal[substr($num_decimal[1],$i,1)];	
		}
	}		
    return $returnNumWord;   
}   
?>  
<? 
//echo'**ใบแจ้งชำระค่าบริการอินเตอร์เน็ต**<br/>';

$sql ="select * from transcripts join klw on transcripts.IDstudent=klw.Username where teach='860' and xyy='2566' and xterm=1";
$result = mysql_query($sql);

///////// การวนลูปโดยใช้ while loop จากฐานข้อมูล
$i = 1;
while ($array = mysql_fetch_array($result)) { 
	
	$page_print = $i;   /////รับค่าจากค่าที่วนลูป
    $user=$array['room'];
	$name=$array['room'];
	$home=$array['home'];
	$prie=$array['prie'];
	$idpay=$array['idpay'];




	



//โดย for loop /// $array['id']; /// ใช้คำสั่งนี้เมื่อรับค่าจาก while loop
	$data_show = 1;////////////// จำนวนที่จะสั่งปริ้นต่อหน้า
	
	
	if($page_print%$data_show==0) 
{
	
	//echo'**ไฟล์ส่วนท้าย**<br/>';

	echo "<div style='page-break-after: always'>";
	
	echo "</div>";
	echo'<center>**ใบแจ้งชำระค่าบริการอินเตอร์เน็ต**</center><br/>';
	echo '<img src="images/logo.png" width="90" height="20" border="0" />';
	echo'ที่ตั้ง 109 หมู่ 11 ต.สังเม็ก  อ.กันทรลักษ์ จ.ศรีสะเกษ ';
	echo'<br>TAX ID RTEC.3330400278491<br/>';
	echo'วันที่ (ISSUED DATE)--';



	

	



//<img src="images/logo.png" width="200" height="50">

	



}



	//echo "ข้อมูลที่จะแสดงทั้งหมด<br/>";
	//echo "$name<br/>";
	echo $array['timepay']."<br/>";
	echo $user.'  '.$name.'  '.  'บ้าน'.$home."<br/>";
	//echo 'บ้าน'.$home;

	//echo 'ที่ --------------------เดือน--------จำนวนเงิน'."<br/>";
	//echo '1. --------------------------'.$countuser.'---------'.$sumprie."<br/>";
	//echo '......................................................................'."<br/>";
	//echo 'รวมทั้งหมด'.'------'.num2wordsThai($sumprie).'บาทถ้วน'."<br/>";
	//echo '......................................................................'."<br/>";



	


echo  ' <table class="table table-hover">';
  //หัวข้อตาราง
    echo "<tr>
      <td width='5%'>ที่</td>
      <td width=25%>เดือน</td>
      <td width=30%>จำนวนเงิน</td>
    </tr>";
  { 
  echo "<tr>";
    echo "<td>" .$array["user"] .  "</td> ";
    echo "<td>" .$countuser.  "</td> ";
    echo "<td>" .$sumprie.  "</td> ";
  echo "</tr>";
  }
echo "</table>";

echo  ' <table class="table table-hover">';
  //หัวข้อตาราง
    echo "<tr>
      <td width='5%'></td>
      <td width=25%></td>
      <td width=30%></td>
    </tr>";
  { 
  echo "<tr>";
    echo "<td>" . "</td> ";
    echo "<td>" .'รวมทั้งหมด'.  "</td> ";
    echo "<td>" .num2wordsThai($sumprie).'บาทถ้วน'.  "</td> ";
  echo "</tr>";
  }
echo "</table>";
echo '<center>............................................................</center>'."<br/>";
echo ''."<br/>";
echo '<center><img src="images/licen.png" width="90" height="20" border="0" /><center>';
echo '<center>(ผู้จัดการ) รังษฤทธิ์  เครือบุดดา </center>'."<br/>";
echo '<center>วันที่'.$array['timepay']."<br/></center>";
echo '<center>เลขที่ Bill..'.$idpay."<br/></center>";
echo '<center><img src="images/barcode.png" width="200" height="50" border="0" /></center>';
echo '<center>สามารถชำระผ่าน ตัวแทน หรือ </center>';
echo '<center>ธนาคารกรุงไทย  ร้านอาร์เทคคอม  312-0-515116</center>';
echo '<center>ธนาคารกสิกรไทย  ร้านอาร์เทคคอม  </center>';
echo '<center>ติดต่อสอบถาม 0935605931,0905365624,</center>';

$i++;

echo '<left>รับติดตั้งระบบ อินเตอร์เน็ต บ้าน สวน ไร่ นา<br/>';
echo '<left>รับติดตั้งระบบ กล้องวงจรปิด ดูผ่านโทรศัพท์มือถือ<br/>';
echo '<left>รับติดตั้งระบบ ไฟฟ้า<br/>';
echo '<left>จำหน่ายสินค้าอุปโภคบริโภค<br/>';
}// endwhile;
////จบการวนลูปข้อมูล

//echo'**ไฟล์ส่วนท้าย**<br/>';




?>


</body>
</html>

Youez - 2016 - github.com/yon3zu
LinuXploit