b0y-101 Mini Shell


Current Path : E:/www/b-group.old/spfin - Copy/application/admission/cufst/
File Upload :
Current File : E:/www/b-group.old/spfin - Copy/application/admission/cufst/mainaddcufst.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="งานพัฒนาระบบสารสนเทศด้านงานคลัง มหาวิทยาลัยรามคำแหง" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Payment</title>
	
	<!-- Bootstrap CSS -->
    <link rel="stylesheet" href="https://www.markuptag.com/bootstrap/5/css/bootstrap.min.css">
	<link rel="canonical" href="https://getbootstrap.com/docs/5.0/examples/sign-in/">

    

    <!-- Bootstrap core CSS -->
<!-- <link href="../assets/dist/css/bootstrap.min.css" rel="stylesheet">-->
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.0.2/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC" crossorigin="anonymous">
	
</head>
<body>
    <?Php
//เชื่อมต่อ database
include_once("../../../conapps/dbcon.php");
	
//connect database
$objConnect = mysqli_connect($servername,$username, $password, $dbname);
	// Check connection
if ($objConnect->connect_error) {
  die("Connection failed: " . $objConnect->connect_error);
}
	
	
$strSQL ="SELECT id, titlenamethai,titlenameeng FROM tb_capitalletters"or die("Error:" . mysqli_error());
	
$objQuery = $objConnect->query($strSQL);	
$objQuery1 = $objConnect->query($strSQL);	
$objResult1 = $objQuery1->fetch_assoc();
	
$id=$objResult1["id"];	
$titlenamethai=$objResult1["titlenamethai"];
$titlenameeng=$objResult1["titlenameeng"];
	
$sqlType ="SELECT idtype,type,typeregister,texttype,amounttype,mastertimetype,statustype,status FROM tb_typeregister
           WHERE status='เปิด'"or die("Error:" . mysqli_error());
	
$objQueryTy = $objConnect->query($sqlType);	
$objQueryTy1 = $objConnect->query($sqlType);	
$objResultTy1 = $objQuery1->fetch_assoc();
	
$idtype=$objResultTy1["idtype"];	
$type=$objResultTy1["type"];
$typeregister=$objResultTy1["typeregister"];
$amounttype=$objResultTy1["amounttype"];
$statustype=$objResultTy1["statustype"];	
	
	

$idproem=5;
$procode="cufst2023";	
	
$strClose ="SELECT idproem,procode,pnameem,status,codepay FROM `tb_projectem` WHERE idproem='".$idproem."' and procode='".$procode."'  "or die("Error:" . mysqli_error());
	$objQueryc = $objConnect->query($strClose);	
$objQueryc = $objConnect->query($strClose);	
$objResultc= $objQueryc->fetch_assoc();
	$status = $objResultc['status'];
	$procode = $objResultc['procode'];
	$pnameem= $objResultc['pnameem'];
	$idproem1 = $objResultc['idproem'];
	$codepay= $objResultc['codepay'];
	

	//$_SESSION['procode']=$procode;
	//$_SESSION['idproem']=$idproem1;
	//$_SESSION['idadreg']=5;
	//$_SESSION['codepay']=$codepay;
	
	if ($status=='ปิด'){
	header('Location: https://spfin.ru.ac.th/application/admission/cufst/cufstclose.php');
}else
	{	
	
        
	?>
	<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark fixed-top">
    <div class="container">
      <a class="navbar-brand" href=""><strong><span lang="TH">แบบชำระเงิน Online ประชุมวิชาการระดับชาติ ปอมท. ประจำปี 2566</span></strong></a> 
      <div class="collapse navbar-collapse" id="navbarResponsive">
        <ul class="navbar-nav ml-auto">
          <li class="nav-item active"></li>
           <li class="nav-item"></li>
          
          
          
        </ul>
      </div>
    </div>
  </nav>
    <div class="container">
        <div class="text-center"><p><br><br></p></div>
		<div class="col-md-4 offset-md-4">
        <img src="images/1682219749_logo.png" class="rounded mx-auto d-block" alt="">
		</div>
		<div class="text-center">
        <h4 class="mt-5"><small>แบบชำระเงิน Online</small> ประชุมวิชาการระดับชาติ ปอมท. ประจำปี 2566</h4>
		</div>	
        <hr>
    <!--    <form action="" method="post">-->
			<!--    <form action="action_add.php" id="form_create" method="post" class="needs-validation" enctype="multipart/form-data" novalidate>-->
				<form action="actionaddappcufst.php" method="post"> 
			<h3 class="mt-5"><font color="#F5080C">*</font>ข้อมูลสำหรับ การชำระเงิน Online ของผู้เข้าประชุมวิชาการระดับชาติ ปอมท. ประจำปี 2566</h3>
						<div class="row">
						<div class="col-md-3"></div>
						</div>
				  <div class="row">
		  <div class="col-md-3">
				
				<label for="validationDefault01" class="form-label"><span class="mt-5"><font color="#F5080C">*</font></span>เลขประจำตัวประชาชน (ID Card Number): </label>
                <input type="number" class="form-control" id="validationDefault01" name="ref1" required>
               
			</div>
					  <div class="col-md-3">
			  <label for="validationDefault02" class="form-label"><span class="mt-5"><font color="#F5080C">*</font></span> เบอร์โทรศัพท์ (Phone Number): </label>
			   <input type="number" class="form-control" id="validationDefault02" name="ref2" required>
		  </div>
				</div>	 
					
					<div class="row">
					  <div class="col-md-3">
				<label for="cap" class="form-label"> <font color="#F5080C">*</font> คำนำหน้า</label>
				<select name="cap" class="form-control" required>
				<option value="">กรุณาเลือกคำนำหน้า</option>
				<?php foreach($objQuery1 as $objQuery1){?>
				<option value="<?php echo $objQuery1["id"];?>">
				 <?php echo $objQuery1["titlenamethai"]."(".$objQuery1["titlenameeng"].")"; ?>
				  </option>
				<?php } ?>
			   </select>
			</div>
		  
					  
					  <div class="col">
			  <label for="name" class="form-label"><font color="#F5080C">*</font> ชื่อ</label>
			<input type="text" class="form-control" placeholder="ชื่อ" aria-label="First name" name="firstname" required>
		  </div>
		  <div class="col">
			  <label for="surname" class="form-label"><font color="#F5080C">*</font> นามสกุล</label>
			<input type="text" class="form-control" placeholder="นามสกุล" aria-label="Last name" name="lastname" required>
		  </div>
			<div class="col">
			<label for="email" class="form-label"><font color="#F5080C">*</font>E-Mail</label>
		   <input type="email" class="form-control" placeholder="" aria-label="email" name="email" required>
		  </div>			
					</div>
					<div class="row">
						<div class="col">
			  <label for="position" class="form-label"><font color="#F5080C">*</font> ประเภทการลงทะเบียน</label>
			  <span class="col-md-3">
			  <select name="type" class="form-control" required>
			    <option value="">กรุณาเลือกประเภทการลงทะเบียน</option>
			    <?php foreach($objQueryTy1 as $objQueryTy1){?>
			    <option value="<?php echo $objQueryTy1["idtype"];?>"> <?php echo $objQueryTy1["type"]."(".$objQueryTy1["typeregister"].")".$objQueryTy1["amounttype"]; ?> </option>
			    <?php } ?>
		      </select>
			  </span></div>
		  
				  </div>
					  <div class="col">
			  <label for="namere" class="form-label"><font color="#F5080C">*</font> ชื่อที่ต้องการให้ออกใบเสร็จ</label>
			<input type="text" class="form-control" placeholder="ชื่อที่ต้องการให้ออกใบเสร็จ" aria-label="First name receipt" name="namereceipt" required>
		  </div>
			      <div class="col">
			  <label for="validationDefault04" class="form-label"><span class="mt-5"><font color="#F5080C">*</font></span> ที่อยู่ ที่ต้องการให้ระบุในใบเสร็จรับเงิน : </label>
			  <span class="col">
			  <textarea name="address"cols="30" rows="5" class="form-control" placeholder="ที่อยู่" aria-label="address" required></textarea>
			  </span></div>
		
				  <div class="row">
				<h5 class="mt-5"><span class="txt14black">การชำระเงินโดยผ่านระบบ Mobile Banking ได้ทุกธนาคาร (ไม่มีค่าธรรมเนียม ทั้งนี้ขึ้นกับเงื่อนไขของธนาคารผู้ชำระเงิน) <br>
*** (ผู้เข้าประชุมวิชาการระดับชาติ ปอมท. ประจำปี 2566 ต้อง Capture หน้าจอที่ชำระเงินเรียบร้อยแล้วเก็บไว้เป็นหลักฐานการชำระเงิน) ***<br>
				</span><br>
				</h5>
			</div>
			
			<div class="row">
				<br>
				<br>
				
			</div>
         	  <div class="text-center">

			   <button class="btn btn-primary btn-lg" type="submit" name="qrpayment" center>ชำระเงิน Thai QR Payment</button>
		  </div>
  
  

			<div class="row">
				<br>
				<br>
				
			</div>
            
        </form>
    </div>

 <!-- 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 JS -->
   
   	
	<?	
		  $objConnect->close();
	     
?>
	
	 <script src="https://www.markuptag.com/bootstrap/5/js/bootstrap.bundle.min.js"></script>
	<?php } ?>
</body>
</html>

Copyright © 2019 by b0y-101