b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin - Copy/campusrumaster/
File Upload :
Current File : E:/www/b-group.old/spfin - Copy/campusrumaster/payspcampus.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="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-KyZXEAg3QhqLMpG8r+8fhAXLRk2vvoC2f3B09zVXn8CA5QIVfZOJ3BCsw2P0p/We" crossorigin="anonymous">
  <!--  <link href="../application/admissianspay/vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">-->

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

</head>

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

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


//$idapps = $_GET["idapps"];
//$idapps = $_GET["ref1"];	
	//tbqr.ref1tbqr.idqrapi=$idapps   tbqr.idqrapi=$idapps=$idapps
//$idapps = 1;	
//$ref2='2088246267564000101';
$ref1= $_GET["ref1"];	
$strSQL = "SELECT tbst.firstname,tbst.lastname, 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 , tb_studentcampusru tbst WHERE tbqr.ref1=$ref1 and tbst.ref2 = tbqr.ref2 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"];	
$name=$objResult1["firstname"];		
$last=$objResult1["lastname"];		



?>
<!-- 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="500" border="0" cellspacing="0" cellpadding="0">
          <tbody>
            <tr>
              <td height="35" colspan="2" align="center">มหาวิทยาลัยรามคำแหง</td>
              </tr>
            <tr>
              <td height="35" colspan="2" align="center"><span class="mt-4 mb-3"><?php echo $pname?></span></td>
              </tr>
            <tr>
              <td align="center">&nbsp;</td>
              <td width="265" align="center"><img src="../application/appsall/images/qrpay.png" width="265" height="60" alt=""/></td>
            </tr>
            <tr>
              <td height="200" align="center" valign="middle"><?php echo $name . " " .$last?></td>
              <td width="265" 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="left" valign="middle">&nbsp;</td>
              <td width="265" align="left" valign="middle"><strong>ข้อมูลอ้างอิง 1 :</strong><?php echo $subbiller . $ref1?></td>
            </tr>
            <tr>
              <td align="left" valign="middle">&nbsp;</td>
              <td width="265" align="left" valign="middle"><strong>ข้อมูลอ้างอิง 2 :</strong><span class="mt-4 mb-3"><?php echo $ref2?></span></td>
            </tr>
            <tr>
              <td align="center" valign="middle">&nbsp;</td>
              <td width="265" 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>
        </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="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-U1DAWAznBHeqEIlVSCgzq+c9gqGAJn5c/t99JyeKa9xxaYpSvHU5awsuZVVFIhvj" crossorigin="anonymous"></script>
	<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.9.3/dist/umd/popper.min.js" integrity="sha384-eMNCOe7tC1doHpGoWe/6oMVemdAVTMs2xqW4mwXrXsW0L84Iytr2wi5v2QjrP/xp" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.0/dist/js/bootstrap.min.js" integrity="sha384-cn7l7gDp0eyniUwwAZgrzD06kc/tftFf19TOAs2zVinnD/C7E91j9yyk5//jjpt/" crossorigin="anonymous"></script>
<?	
		  $objConnect->close();
	     
?>
</body>

</html>

Copyright © 2019 by b0y-101