<?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); } $priority=$_SESSION['admin_login']; if (!isset($_SESSION['admin_login'])) { // if ($priority <> 'staff') { $_SESSION['error'] = 'กรุณาเข้าสู่ระบบ!'; header('Location: https://spfin.ru.ac.th/application/campus/admission/admincampus/'); } ?> <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="author" content="งานพัฒนาระบบสารสนเทศด้านงานคลัง มหาวิทยาลัยรามคำแหง"> <meta name="Revisit-After" content="1 Days" /> <meta name="Abstract" content="MBA CAMPUS Ramkhamhaeng University" /> <title>MBA CAMPUS Ramkhamhaeng University</title> <!-- Bootstrap core CSS --> <link href="../../vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet" type="text/css"> <!-- Custom styles for this template --> <link href="../../css/modern-business.css" rel="stylesheet" type="text/css"> </head> <body> <?php //$_SESSION['admin_login']="admin"; //$_SESSION['apppay'] = $_SESSION['admin_login']; // $_SESSION['reportpayment']= $_SESSION['admin_login']; //echo "Connected successfully"; //$ref1=$_SESSION['ref1']; //$birthday=$_SESSION['birthday']; //$app = $_POST; //$ref1 =$app["ref1"]; //$date1 = $app["date1"]; //$month1= $app["month1"]; //$yearhbd= $app["yearhbd"]; //$birthday= $date1."-".$month1."-".$yearhbd; //'".$ref1."' //'".$birthday."' $strPro = "SELECT idprocampus,projname,procode,idprojall FROM `tb_proadcampus`" or die("Error:" . mysqli_error()); $objQuerypro = $objConnect->query($strPro); $objQuerypro1 = $objConnect->query($strPro); /* $strSQL = "select tbad.ref1,tbad.ref2,tbad.admissnum,tbad.phonenumber,tbcap.titlenamethai,tbad.firstname,tbad.lastname,tbad.amount,tbad.procode,tbprom.pname, tbqr.statuspay from tb_qrapi tbqr,tb_projectall tbpro,tb_appadcampus tbad ,tb_proadcampus tbprom,tb_capitalletters tbcap where tbqr.idproject = tbpro.idproall and tbad.ref2 = tbqr.ref2 and tbad.idproject = tbpro.idproall and tbqr.amount = tbad.amount and tbprom.idprojall = tbpro.idproall and tbqr.idproject = tbpro.idproall and tbcap.id = tbad.idcap and tbco.tbidprommm=tbprom.idproadm and tbad.coursemba =tbco.id and tbprom.idproadm in (6,7) and tbad.ref2 <> '2086380822316600135'" or die("Error:" . mysqli_error()); $objQuery = $objConnect->query($strSQL); $objQuery1 = $objConnect->query($strSQL); */ //$objResult1 = $objQuery1->fetch_assoc(); //$pname=$objResult1["pname"]; //$ref1=$objResult1["cardnumber"]; //$ref2=$objResult1["ref2"]; //$emnumber=$objResult1["emnumber"]; //$titlenamethai=$objResult1["titlenamethai"]; //$thainame=$objResult1["thainame"]; //$surname=$objResult1["surname"]; //$positionsought=$objResult1["positionsought"]; //$statusqrcode=$objResult1["statusqrcode"]; $_SESSION['login']=$_SESSION['admin_login']; ?> <!-- Navigation --> <nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark fixed-top"> <div class="container"> <strong><span lang="TH"><font color="#F9F3F3">ข้อมูลนักศึกษาสมัคร MBA CAMPUS Ramkhamhaeng University</font></span></strong> <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/appemployee/login/loginappem.php';"; // echo "</script>"; //}else{?> <ul class="nav justify-content-end"> <li class="nav-item"> <a class="nav-link" href="applogout.php" target="_self">Logout</a> </li> </ul> <h1 class="mt-4 mb-3"><img src="../../logo1.png"/><br><small><a class="navbar-brand" href=""><strong> ข้อมูลนักศึกษาสมัคร MBA</strong></a></small> </h1> <!-- Intro Content --> <!-- /.row --> <div class="row"> <table width="100%" border="1"> <tr> <td width="300" height="65" align="center" valign="middle" bgcolor="#03C2E1">จังหวัด</td> <td width="170" align="center" valign="middle" bgcolor="#03C2E1">รหัสจังหวัด</td> <td width="150" align="center" valign="middle" bgcolor="#03C2E1">ชำระเงินแล้ว</td> <td width="313" align="center" valign="middle" bgcolor="#03C2E1">ยังไม่ชำระเงิน</td> <td width="215" align="center" valign="middle" bgcolor="#03C2E1">ทั้งหมด</td> </tr> <?php $i=1; //$objResult = $objQuery->fetch_assoc() //$objResult1 = $objQuery1->fetch_assoc(); while($objResultpro1 = $objQuerypro1->fetch_assoc()) { if ($bg== "#DFE6F1") { //ส่วนของการสลับสี $bg="#E7F0FA"; } else { $bg="#DFE6F1"; } ?> <?php echo "<tr bgcolor='$bg'>" ?> <tr> <td width="300" height="65" align="left" valign="middle"> <?php echo $i.".".$objResultpro1["projname"];?></td> <td height="65" align="center" valign="middle"><a href="showappstaff.php?procode=<?php echo $objResultpro1["procode"]?>" target="_self"><?php echo $objResultpro1["procode"];?></a></td> <td align="center" valign="middle"> <?php $procode=$objResultpro1["procode"]; $strCountpay = "select count(tbqr.statuspay) countpay from tb_proadcampus tbproad,tb_appadcampus tbad,tb_noqrapi tbqr where tbad.idproadm = tbproad.idprocampus and tbad.procode='".$procode."' and tbqr.ref2=tbad.ref2 and tbqr.idproject=tbproad.idprojall and tbqr.idproject=tbad.idproject and tbqr.statuspay LIKE '%ชำระเงินแล้ว%' " or die("Error:" . mysqli_error()); $objQueryCountp = $objConnect->query($strCountpay); $objQueryCountp1 = $objConnect->query($strCountpay); $objResultCountp11 = $objQueryCountp1->fetch_assoc(); echo $objResultCountp11["countpay"]; ?> </td> <td align="center" valign="middle"> <?php //$procode=$objResultpro1["procode"]; $strCountpay1 = "select count(tbqr.statuspay) countpay1 from tb_proadcampus tbproad,tb_appadcampus tbad,tb_noqrapi tbqr where tbad.idproadm = tbproad.idprocampus and tbad.procode='".$procode."' and tbqr.ref2=tbad.ref2 and tbqr.idproject=tbproad.idprojall and tbqr.idproject=tbad.idproject and tbqr.statuspay = 'รอชำระเงิน' " or die("Error:" . mysqli_error()); $objQueryCountpa = $objConnect->query($strCountpay1); $objQueryCountpa1 = $objConnect->query($strCountpay1); $objResultCountpa11 = $objQueryCountpa1->fetch_assoc(); echo $objResultCountpa11["countpay1"]; ?></td> <td align="center" valign="middle"> <?php // $procode=$objResultpro1["procode"]; $strCount = "select count(tbad.procode) countapp from tb_proadcampus tbproad,tb_appadcampus tbad where tbad.idproadm = tbproad.idprocampus and tbad.procode='".$procode."' " or die("Error:" . mysqli_error()); $objQueryCount = $objConnect->query($strCount); $objQueryCount1 = $objConnect->query($strCount); $objResultCount11 = $objQueryCount1->fetch_assoc(); echo $objResultCount11["countapp"]; ?></td> </tr> <?php $i++; } ?> </table> </div> <!-- /.row --> <?php //} ?> <hr> <!-- Features Section --> <div class="row"> <div class="col-lg-6"> <h4><strong>MBA CAMPUS Ramkhamhaeng University</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="../../appemployee/vendor/bootstrap/js/bootstrap.bundle.min.js"></script> <?php $objConnect->close(); ?> </body> </html>