b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin/application/appsall/
File Upload :
Current File : E:/www/b-group.old/spfin/application/appsall/payspfin.php

<!DOCTYPE html>
<html lang="en">

<head>

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  <meta name="description" content="งานพัฒนาระบบสารสนเทศด้านงานคลัง มหาวิทยาลัยรามคำแหง">
  <meta name="author" content="งานพัฒนาระบบสารสนเทศด้านงานคลัง มหาวิทยาลัยรามคำแหง">
  <meta name="keywords" content="งานพัฒนาระบบสารสนเทศด้านงานคลัง มหาวิทยาลัยรามคำแหง" />

   <title>แบบชำระเงิน Online</title>

  <!-- Bootstrap core CSS -->
  <link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">

  <!-- Custom styles for this template -->
  <link href="css/modern-business.css" rel="stylesheet">

</head>

<body>
	<?Php
//เชื่อมต่อ database
include("../../conapps/dbcon.php");
//connect database
$objConnect = mysqli_connect($servername,$username, $password, $dbname);

require_once("../PromptPayQRM/lib/PromptPayQR-3M.php");


$idapps = $_GET["idapps"];
//$idapps = 1;	
$strSQL = "SELECT tbqr.ref1,tbqr.ref2,tbqr.amount,tbsub.subbiller,tbbk.billeridru,tbbk.qrid,tbpro.pname FROM tb_qrapi tbqr, tb_projectall tbpro, tb_subbank tbsub, tb_bank tbbk WHERE tbqr.idqrapi=$idapps and tbqr.idproject=tbpro.idproall and tbpro.idsubbank=tbsub.idsub and tbsub.tb_bank_idbank=tbbk.idbank order by tbqr.idqrapi" or die("Error:" . mysqli_error()); 
$objQuery = $objConnect->query($strSQL);	
$objQuery1 = $objConnect->query($strSQL);	
$objResult1 = $objQuery1->fetch_assoc();
$billeridru= $objResult1["billeridru"];	
$qrid=$objResult1["qrid"];
$subbiller=$objResult1["subbiller"];
$ref1=$objResult1["ref1"];	
$ref2=$objResult1["ref2"];
$amount=$objResult1["amount"];
$pname=$objResult1["pname"];	



?>
<!-- Navigation -->
  <nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark fixed-top"></nav>

  <!-- Page Content -->
  <div class="container">

    <!-- Page Heading/Breadcrumbs -->
    <h1 class="mt-4 mb-3"><small>แบบชำระเงิน Online</small></h1>

    

    <!-- Intro Content -->
    <div class="row">
      <table width="100%" border="0" cellpadding="0" cellspacing="0">
        
        <td height="65" align="center" valign="middle"><table width="246" border="0" cellspacing="0" cellpadding="0">
          <tbody>
            <tr>
              <td align="center">มหาวิทยาลัยรามคำแหง</td>
            </tr>
            <tr>
              <td><span class="mt-4 mb-3"><?php echo $pname?></span></td>
            </tr>
            <tr>
              <td><img src="images/qrpay.png" width="246" height="56" alt=""/></td>
            </tr>
            <tr>
              <td height="200" align="center" valign="middle"><?php
	$PromptPayQR = new PromptPayQR(); // new object
$PromptPayQR->size = 4; // Set QR code size to 8
//$PromptPayQR->id = '0841079779'; // PromptPay ID
//$PromptPayQR->subbiller ='00YA'; //รับจาก database ตาราง bank 
//$PromptPayQR->ref1 = '3640600111689'; //รับข้อมูลจาก database ตาราง application
//$PromptPayQR->ref1 = '3640600111689'; //รับข้อมูลจาก database ตาราง application
//$PromptPayQR->ref2 = '010001TP10SAT'; //รับข้อมูลจาก database ตาราง application ==>รหัสregis+เลขที่ใบสมัคร+รหัสโครงการ
//$PromptPayQR->amount = 800.00; // Set amount (not necessary)

$PromptPayQR->billeridru=$billeridru;
$PromptPayQR->qrid=$qrid;
$PromptPayQR->subbiller=$subbiller;
$PromptPayQR->ref1=$ref1;
$PromptPayQR->ref2 =$ref2;
$PromptPayQR->amount=$amount;

//echo $billeridru;
//echo '<br/>';
//echo $ref1;
//echo '<br/>';
//echo $subbiller . $ref1;
//echo '<br/>';
//echo $ref2;
//echo '<br/>';
//echo $amount;
//echo '<br/>';
echo '<img src="' . $PromptPayQR->generate() . '" />';
				?></td>
            </tr>
            <tr>
              <td align="center" valign="middle"><strong>ข้อมูลอ้างอิง 1 :</strong><?php echo $subbiller . $ref1?></td>
            </tr>
            <tr>
              <td align="center" valign="middle"><strong>ข้อมูลอ้างอิง 2 :</strong><span class="mt-4 mb-3"> <?php echo $ref2?></span></td>
            </tr>
            <tr>
              <td align="center" valign="middle"><span class="mt-4 mb-3"><?php echo $amount?></span></td>
            </tr>
          </tbody>
        </table>          <br>  
          </td>	
  </tr>
</table>
    </div>
    <!-- /.row -->
 <hr>
   <!-- Features Section -->
    <div class="row">
      <div class="col-lg-6">
        <h6>งานพัฒนาระบบสารสนเทศด้านงานคลัง มหาวิทยาลัยรามคำแหง<br>
          โทร. 02-3108255, 02-3108102, 023108028<br>
        </h6>
      </div>
      <div class="col-lg-6"></div>
    </div>
    <!-- /.row -->

</div>
  <!-- /.container -->

  <!-- Footer -->
  <footer class="py-5 bg-dark">
    <div class="container">
      <p class="m-0 text-center text-white">Copyright &copy; งานพัฒนาระบบสารสนเทศด้านงานคลัง มหาวิทยาลัยรามคำแหง</p>
    </div>
    <!-- /.container -->
  </footer>

  <!-- Bootstrap core JavaScript -->
  <script src="vendor/jquery/jquery.min.js"></script>
  <script src="vendor/bootstrap/js/bootstrap.bundle.min.js"></script>
<?	
		  $objConnect->close();
	     
?>
</body>

</html>

Copyright © 2019 by b0y-101