<?php session_start(); include_once("../function/ad_std.php"); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>ตรวจสอบสถานะการสมัครและชำระเงิน</title> <script language="javascript"> <!-- var objRequest = false; function createXMLHttpRequest(){ if(window.XMLHttpRequest){ objRequest = new XMLHttpRequest(); } else if (window.ActiveXObject){ objRequest = new ActiveXObject("Microsoft.XMLHTTP"); } } function startRequest(){ var citizenid = document.getElementById("citizenid").value; var birthdaydd = document.getElementById("birthdaydd").value; var birthdaymm = document.getElementById("birthdaymm").value; var birthdayyyyy = document.getElementById("birthdayyyyy").value; //alert (citizenid); //alert (birthdaydd); //alert (birthdaymm); //alert (birthdayyyyy); //alert (firstnamethai); var randomString = "&rand="+Math.floor(Math.random() *1000000); createXMLHttpRequest(); objRequest.open("get","login_ok.php?citizenid="+citizenid+"&birthdaydd="+birthdaydd+"&birthdaymm="+birthdaymm+"&birthdayyyyy="+birthdayyyyy+randomString); var promptDiv = document.getElementById("promptDiv"); promptDiv.style.color = "black"; promptDiv.innerHTML = "<img src='../images/loading.gif' /> กำลังตรวจสอบ..."; //objRequest.open("get","addScore.php?teamResult="+teamResultHome+"&fevent="+fevent+"&fscoretime="+scoreTime); //objRequest.setRequestHeader("Content-Type","application/x-www-form-urlencoded") objRequest.onreadystatechange = function(){ if(objRequest.readyState == 4){ if(objRequest.status == 200){ displayInfo(objRequest.responseText); }else{ displayInfo("พบข้อผิดพลาด :" +objRequest.statusText); } } }; objRequest.send(null); //setTimeout(startRequest,3000); } function displayInfo(){ plist =objRequest.responseText; //alert(plist); var respArray = plist.split('|'); var respStatus = respArray[0]; var respMessage = respArray[1]; var promptDiv = document.getElementById("promptDiv"); if (respStatus == 0) { promptDiv.style.color = "green"; promptDiv.innerHTML = "<img src='../images/loading.gif' /> ล็อคอินสำเร็จ กำลังเข้าสู่เพจ"+respMessage; setTimeout("window.location='http://www.advanced-mba.ru.ac.th/ad_std/app_status.php'",2000); }else{ promptDiv.style.color = "red"; promptDiv.innerHTML = respMessage; } //window.location="http://www.oros.ru.ac.th/rb_progMaster/Application/loginFormOK.jsp"; } function MM_swapImgRestore() { //v3.0 var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc; } function MM_preloadImages() { //v3.0 var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array(); var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++) if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}} } function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);} if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n]; for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document); if(!x && d.getElementById) x=d.getElementById(n); return x; } function MM_swapImage() { //v3.0 var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3) if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];} } //--> </script> <style type="text/css"> #login{ width:300px; border:2px solid #cccccc; padding:15px; background:#ECFDCE; } #loginForm{ margin:0px; } .fieldTitle{ font:12pt Tahoma; font-weight:bold; margin-bottom:3px; color:#666666; } .fieldEntry{ font:10pt Tahoma; border:1px solid gray; margin-bottom:5px; } #loginButton{ font:10pt Tahoma; border:1px solid gray; margin-top:5px; } #pormptDiv{ font:10pt Tahoma; height:40px; padding:5px; margin-top:10px; background:#FFFFFF; border:1px solid black; } .fxt14bold{ font-family:tahoma; font-size:14px; color:#000000; font-weight:bold;} .fxt12{ font-family:tahoma; font-size:12px; color:#000000; } .table{ border-right:solid #D0D0D0 1px; border-left:solid #D0D0D0 1px; } </style> </head> <body onload="MM_preloadImages('../img/on_01.gif')"> <?php if(isset($_SESSION["citizenid"])){ ?> <table width="750" border="0" align="center" cellpadding="0"> <tr> <td><table width="750" border="0"> <tr> <td width="162"><img src="../img/ad_logo.png" width="250" height="80" /></td> <td width="574"><table width="750" border="0" cellpadding="0" cellspacing="0"> <tr> <td height="35"> </td> </tr> <tr> <td><table width="750" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="113" align="right"><a href="app_status.php" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image18','','../img/on_01.gif',1)"><img src="../img/off_01.gif" name="Image18" width="110" height="30" border="0" id="Image18" /></a></td> <td width="1" ><img src="../img/bar.gif" /></td> <td width="370" background="../img/bg_logo.png"></td> <td width="266"><img src="../img/end_right.gif" width="219" height="30" /></td> </tr> </table></td> </tr> </table></td> </tr> </table></td> </tr> <tr> <td> </td> </tr> <tr> <td><table border="0" width="960" cellspacing="0" cellpadding="0"> <tr> <td width="10" valign="top"> <img border="0" src="../img/top_l.gif" width="10" height="37"></td> <td valign="top" background="../img/bg_top.gif" align="left"> <img border="0" src="../img/top_sup.png" width="182" height="37"></td> <td valign="top" width="12"> <img border="0" src="../img/topr.gif" width="12" height="37"></td> </tr> <tr> <td width="10" valign="top" background="../img/l.gif"> <img border="0" src="../img/l.gif" width="10" height="223"></td> <td valign="top" > <table width="940" border="0" cellpadding="0" cellspacing="0" id="content"> <tr> <td valign="top"> </td> <td width="915" height="30" align="right" valign="top" class="fxt12"><a href="../index.html">ออกจากระบบ</a> </td> <td valign="top"> </td> </tr> <tr> <td width="10" valign="top"> </td> <td valign="top"><div> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="10"><img src="../img/l_o.gif" width="10" height="30" /></td> <td align="left" background="../img/c_o.gif" class="fxt14bold">ตรวจสอบสถานะการสมัครและชำระเงิน</td> <td width="1" background="../img/c_o.gif"><a href="#1"></a></td> <td width="10"><img src="../img/r_o.gif" width="10" height="30" /></td> </tr> </table> <table width="100%" border="0" cellpadding="0" cellspacing="1" class="table" > <tr align="center"> <td width="50" height="35" bgcolor="#E2E2E2" ><strong class="fxt12">รายการที่</strong></td> <td width="85" align="center" bgcolor="#E2E2E2" ><strong class="fxt12">บัตรประชาชน</strong></td> <td width="130" bgcolor="#E2E2E2" class="fxt12"><strong>ชื่อ - นามสกุล</strong></td> <td width="125" bgcolor="#E2E2E2" class="fxt12"><strong>โครงการ</strong></td> <td width="76" bgcolor="#E2E2E2" class="fxt12"><strong>วันที่สมัคร</strong></td> <td width="67" bgcolor="#E2E2E2" class="fxt12"><strong>ใบสมัคร</strong></td> <td width="183" bgcolor="#E2E2E2" class="fxt12"><strong>ใบแจ้งชำระเงิน/ใบเสร็จชั่วคราว</strong></td> <!-- <td width="100" bgcolor="#E2E2E2" class="fxt12"><strong>สถานะการชำระงิน</strong></td>--> <td width="87" bgcolor="#E2E2E2" class="fxt12"> </td> </tr> <?php $c_list = 0; $card_id = $_SESSION["citizenid"]; $resultEvent=show_registration($card_id); While( $row= mysql_fetch_array($resultEvent) ) { $c_list++; $card_id=$row['card_id']; $title_name = $row['title_name_thai']; $first_name = $row['first_name_thai']; $last_name = $row['last_name_thai']; $application_id = $row['application_id']; $regist_name=$title_name.' ' .$first_name.' '.$last_name; ?> <tr class="fxt12" bgcolor="#F2F2F2" > <td height="35" align="center" ><?=$c_list?></td> <td align="center" ><?=$card_id?></td> <td align="center"><?=$title_name?><?=$first_name?> <?=$last_name?></td> <td align="center" > <?php switch ($row["project_id"]) { case "100" : $project_name = "Advanced วิทยาเขตบางนา รุ่นที่ 13"; break; case "101" : $project_name = "Advanced Program รุ่นที่ 27"; break; case "102" : $project_name = "Advanced วิทยาเขตบางนา รุ่นที่ 14"; break; } echo "$project_name"; ?> </td> <td align="center" ><?=$row["regis_date"]?></td> <td align="center" ><a href="../doc_regist_print.php?mycard=<?=$row["card_id"]?>" target="_blank"><img src="../icons/print.gif" width="40" height="40" border="0"></a></td> <td align="center"><a href="../com_GSB/COM_Regis.php?mycard=<?=$row["card_id"]?>" target="_blank"><img src="../icons/print.gif" width="40" height="40" border="0"></a></td> <!-- <td align="center" > <?php /* if($row["status_forpaid"] == '0' ){ echo "<span style='color:red'>รอการชำระเงิน</span>"; } else { echo "<span style='color:green'>มหาวิทยาลัยได้รับเงิน<br/>จากผู้สมัครเรียบร้อยแล้ว</span>"; }*/ ?></td>--> <td align="center" style="font-family:tahoma; font-size:12px; color:red; font-weight:bold;"><a href="app_editdata.php?application_id=<?=$application_id?>">แก้ไขใบสมัคร</a></td> </tr> <?php } ?> <tr> <td height="15" align="center" valign="top" bgcolor="#E2E2E2"></td> <td align="center" valign="top" bgcolor="#E2E2E2" ></td> <td valign="top" bgcolor="#E2E2E2"></td> <td valign="top" bgcolor="#E2E2E2"></td> <td valign="top" bgcolor="#E2E2E2"></td> <td align="center" bgcolor="#E2E2E2"></td> <td align="center" bgcolor="#E2E2E2"></td> <!-- <td align="center" bgcolor="#E2E2E2"></td>--> <td align="center" bgcolor="#E2E2E2"></td> </tr> </table> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="10"><img src="../img/u_o.gif" width="10" height="10" /></td> <td background="../img/foot.gif"><img src="../img/spacer.gif" width="10" height="10" /></td> <td width="10"><img src="../img/p_o.gif" width="10" height="10" /></td> </tr> </table> </div></td> <td width="15" valign="top"> </td> </tr> <tr> <td valign="top"> </td> <td height="50" valign="top"></td> <td valign="top"> </td> </tr> </table> </td> <td valign="top" width="12" background="../img/r.gif"> <img border="0" src="../img/r.gif" width="12" height="223"></td> </tr> <tr> <td width="10" valign="top"> <img border="0" src="../img/bot_l.gif" width="10" height="11"></td> <td valign="top" background="../img/bot_bg.gif"> <img border="0" src="../img/bot_bg.gif" width="1" height="11"></td> <td valign="top" width="12"> <img border="0" src="../img/bot_r.gif" width="12" height="11"></td> </tr> </table></td> </tr> <tr> <td align="center"> </td> </tr> <tr> <td> </td> </tr> <tr> <td style="font-family:tahoma; color:#000; font-size:9px;"> © สงวนลิขสิทธิ์ 2553 advanced-mba </td> </tr> </table> <?php } else { echo "<p>คุณไม่มีสิทธิดูเนื้อหาในเพจนี้ เนื่องจากยังไม่ได้ทำการล็อคอิน<br>"; echo 'กรุณา<a href="login.php">ล็อคอิน</a>'; } ?> </body> </html>