<?php session_start(); include_once("../../../conapps/dbcon.php"); $objConnect = mysqli_connect($servername,$username, $password, $dbname); // Check connection if ($conn->connect_error) { die("Connection failed: " . $conn->connect_error); } if (!isset($_SESSION['student'])) { $_SESSION['error'] = 'กรุณาเข้าสู่ระบบ!'; header('Location: https://spfin.ru.ac.th/application/admission/ymba/login/loginstymba.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>Payment</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 //echo "Connected successfully"; $ref1=$_SESSION['ref1']; $birthday=$_SESSION['birthday']; $pro=$_SESSION['pro']; $procode=$_SESSION['codepro']; //$app = $_POST; //$ref1 =$app["ref1"]; //$date1 = $app["date1"]; //$month1= $app["month1"]; //$yearhbd= $app["yearhbd"]; //$birthday= $date1."-".$month1."-".$yearhbd; //'".$ref1."' //'".$birthday."' $strSQL = "SELECT tbad.ref1,tbad.ref2 ,tbad.admissnum,tbcap.titlenamethai,tbad.thainame,tbad.surname,tbad.major, tbqr.statuspay,tbpro.pname,tbpro.logolink,tbqr.amount,tbqr.img FROM tb_admissiony tbad,tb_capitalletters tbcap,tb_qrapiymba tbqr,tb_projectall tbpro WHERE tbpro.idproall ='".$pro."' and tbad.ref1='".$ref1."' and tbad.birthday='".$birthday."' and tbad.idtitle = tbcap.id and tbad.idproject=tbpro.idproall and tbad.ref1 = tbqr.ref1 and tbad.codepro='".$procode."' and tbad.idproject='".$pro."' and tbad.ref2=tbqr.ref2 order by tbad.idstymba" or die("Error:" . mysqli_error()); $objQuery = $objConnect->query($strSQL); $objQuery1 = $objConnect->query($strSQL); $objResult1 = $objQuery1->fetch_assoc(); $pname=$objResult1["pname"]; $ref1=$objResult1["ref1"]; $ref2=$objResult1["ref2"]; $admissnum=$objResult1["admissnum"]; $titlenamethai=$objResult1["titlenamethai"]; $thainame=$objResult1["thainame"]; $surname=$objResult1["surname"]; $statuspay=$objResult1["statuspay"]; $logolink=$objResult1["logolink"]; $major=$objResult1["major"]; $amount=$objResult1["amount"]; $img=$objResult1["img"]; ?> <!-- Navigation --> <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">โครงการบริหารธุรกิจมหาบัณฑิต</span></strong><strong> <span lang="TH">สำหรับนักบริหารรุ่นใหม่ (MBA for Young Executives)</span></strong></a> <a href="login/applogout.php" class="btn btn-primary" target="_self">Logout</a> <button class="navbar-toggler navbar-toggler-right" type="button" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <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> <!-- Page Content --> <div class="container"> <!-- Page Heading/Breadcrumbs --> <?php if(empty($objResult1)) { echo "<script>"; echo "alert('ไม่พบข้อมูลนี้ในฐานข้อมูล !');"; echo "window.location='https://spfin.ru.ac.th/application/admission/ymba/login/loginstymba.php';"; echo "</script>"; }else{?> <h1 class="mt-4 mb-3"><small><img src="<?php echo $logolink?>"/><?php echo $pname?></small> </h1> <!-- Intro Content --> <!-- /.row --> <div class="row"> <table width="100%" border="1"> <tr> <td width="52" height="65" align="center" valign="middle" bgcolor="#03C2E1">ลำดับที่</td> <td width="534" align="center" valign="middle" bgcolor="#03C2E1">ข้อมูลการสมัคร</td> <td width="562" align="center" valign="middle" bgcolor="#03C2E1">สถานะการชำระเงิน/ยืนยันการชำระเงิน</td> </tr> <?php $i=1; while($objResult = $objQuery->fetch_assoc()) { if ($bg== "#DFE6F1") { //ส่วนของการสลับสี $bg="#E7F0FA"; } else { $bg="#DFE6F1"; } ?> <?php echo "<tr bgcolor='$bg'>" ?> <tr> <td width="52" height="65" align="center" valign="middle"><?php echo $i?></td> <td height="65" align="center" valign="middle"><table width="500" border="0" cellspacing="0" cellpadding="0"> <tbody> <tr> <td width="280"><strong>หมายเลขบัตรประจำตัวประชาชน :</strong></td> <td><?php echo $ref1?></td> </tr> <tr> <td width="280"><strong>ชื่อ-สกุล : </strong></td> <td><?php echo $titlenamethai?><?php echo $thainame?> <?php echo $surname?></td> </tr> <tr> <td width="280"><strong>เลขที่ใบสมัคร : </strong></td> <td><?php echo $admissnum?></td> </tr> <tr> <td width="280">สาขาวิชา :</td> <td><?php echo $major?></td> </tr> <tr> <td width="280">ค่าสมัคร : </td> <td><?php echo $amount?></td> </tr> <tr> <td colspan="2" align="center" valign="middle" bgcolor="#03C2E1">ใบสมัคร</td> </tr> <tr> <td height="50" colspan="2" align="center" valign="middle"><a href="appreport.php" target="_blank">print ใบสมัคร</a></td> </tr> <tr> <td colspan="2" align="center" valign="middle" bgcolor="#03C2E1">แก้ไข</td> </tr> <tr> <td height="50" colspan="2" align="center" valign="middle"><?php $_SESSION['procode']=$objResult1["procode"]; $_SESSION['idproject']=$objResult1["idproall"]; $_SESSION['idproadm']=$objResult1["idprocampus"]; //$_SESSION['admissnum']=$objResult1["admissnum"]; $_SESSION['pname']=$objResult1["pname"]; ?> <a href="update_ymba1.php" class="btn btn-primary" target="_blank">แก้ไข</a></td> </tr> <tr> <td width="280"> </td> <td> </td> </tr> </tbody> </table></td> <td align="center" valign="middle"><?php if ($objResult1["statuspay"] != 'รอชำระเงิน'){ echo $objResult1["statuspay"]; // $_SESSION['ref2'] =$objResult1["ref2"]; ?> <p><img src="<?php echo $objResult1["img"]; ?>" height="400" width="250" alt=""> </p> <?php }else{ // $_SESSION['ref2'] =$objResult1["phonenumber"]; ?> โอนเข้าบัญชีธนาคารทหารไทย (TTB)<br> ประเภทกระแสรายวัน<br> <strong>บัญชีเลขที่ <font color="#F8060A">156-2-30789-0</font></strong><br> ชื่อบัญชี ม.ร.โครงการบริหารธุรกิจมหาบัณฑิต สำหรับนักบริหารรุ่นใหม่ (หัวหมาก) รุ่นที่ 27 <br> <a href="qrpayymba.php?ref2=<?php echo $objResult1["ref2"];?>" class="btn btn-primary" target="_self">ยืนยันการชำระเงินค่าสมัคร</a> <h6> <font color="#E30509">***เมื่อโอนเงินค่าสมัครเรียบร้อย กรุณา กดปุ่มยืนยันการชำระเงิน ***</font><br> <font color="#D0070A"> นักศึกษาส่งหลักฐานการชำระเงิน ที่ Line โครงการฯ ตาม QR CODE ด้านล่างนี้ <br> <img src="images/lineymba.PNG" width="314" height="311" alt=""/> <br> หากมีข้อสงสัย สอบถามได้ที่เบอร์โทร. 061-401-5109</font><br> </h6> <?php } ?></td> <?php $_SESSION['admissnum'] =$admissnum; ?> </tr> <?php $i++; } ?> </table> </div> <!-- /.row --> <?php } ?> <hr> <!-- Features Section --> <div class="row"> <div class="col-lg-6"> <h4><strong><span lang="TH">โครงการบริหารธุรกิจมหาบัณฑิต สำหรับนักบริหารรุ่นใหม่ (MBA for Young Executives)</span></strong></h4> </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 © งานพัฒนาระบบสารสนเทศด้านงานคลัง มหาวิทยาลัยรามคำแหง </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>