adminsession.php
1 2 3 4 5 6 7 8 9 10 11 12 |
<?php extract($_POST); if (!isset($_SESSION[ad])) { echo "<br>You are not Logged In Please Login to Access this Page<br>"; echo "<a href=adminlogin.php>Click Here to Login</a>"; exit(); } ?> |
admitcard.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
<?php session_start(); error_reporting(0); $con=mysqli_connect("localhost","root","","oas"); $q=mysqli_query($con,"select s_name from t_user_data where s_id='".$_SESSION['user']."'"); $n= mysqli_fetch_assoc($q); $stname= $n['s_name']; $id=$_SESSION['user']; $result = mysqli_query($con,"SELECT * FROM t_user WHERE s_id='".$_SESSION['user']."'"); while($row = mysqli_fetch_array($result)) { ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> <link rel="stylesheet" href="bootstrap/bootstrap.min.css"> <link rel="stylesheet" href="bootstrap/bootstrap-theme.min.css"> <script src="bootstrap/jquery.min.js"></script> <script src="bootstrap/bootstrap.min.js"></script> <link type="text/css" rel="stylesheet" href="css/admform.css"></link> <script type="text/javascript"> function printpage() { var printButton = document.getElementById("print"); printButton.style.visibility = 'hidden'; window.print() printButton.style.visibility = 'visible'; } </script> </head> <body style="background-image:url(./images/bc3.jpg) "> <form id="admincard" action="admincard.php" method="post"> <div class="container-fluid"> <div class="row"> <div class="col-sm-12"> <center> <table class="table table-bordered" style="font-family: Verdana"> <tr> <td style="width:3%;"><img src="./images/po.png" width="100%"> </td> <td style="width:8%;"><center><font style="font-family:Arial Black; font-size:20px;"> National School & College Islamabad </font></center> <center><font style="font-family:Verdana; font-size:18px;"> Phone : 0321-5613648 </font></center> <br> <br> <center><font style="font-family:Arial Black; font-size:20px;"> NSC ADMIT CARD (2020-21)</font></center> </td> <td colspan="2" width="3%" > <?php $picfile_path ='studentpic/'; $result1 = mysqli_query($con,"SELECT * FROM t_userdoc where s_id='".$_SESSION['user']."'"); while($row1 = mysqli_fetch_array($result1)) { $picsrc=$picfile_path.$row1['s_pic']; echo "<img src='$picsrc.' class='img-thumbnail' width='180px' style='height:180px;'>"; echo"<div>"; } ?> </td> </tr> <tr> <td style="width:4%;"> <font style="font-family: Verdana;">Date</font> </td> <td style="width:8%;" colspan="3"><font style="font-family: Verdana; font-weight: bold"> 10th April 2020, Afternoon Session</font> </td> </tr> <tr> <td style="width:4%;"> <font style="font-family: Verdana;">Time </font> </td> <td style="width:8%;" colspan="3"> <font style="font-family: Verdana; font-weight: bold"> 2:00 PM - 4:00 PM </font></td> </tr> <tr> <td> <font style="font-family: Verdana;">Registration No. </font> </td> <td colspan="3"><font style="font-family: Verdana; font-weight: bold"> <?php echo $id ?></font> </td> </tr> <tr> <td style="width:4%;"> <font style="font-family: Verdana;">Name </font> </td> <td style="width:8%;" colspan="3"><font style="font-family: Verdana; font-weight: bold"> <?php echo $stname;?></font> </td> </tr> <tr> <td style="width:4%;"> <font style="font-family: Verdana;">Exam Center </font> </td> <td style="width:8%;" colspan="3"> <font style="font-family: Verdana; font-weight: bold"> National School & College<br> Dist: Islamabad - Pakistan<br> Islamabad , Pakistan<br> Phone: 0321-5613648<br> </font> </td> </tr> <?php } ?> </table> </div> </div> </div> <center><font style="font-family: Verdana; font-weight: bold; font-size: 20px;"> Instructions to the Candidate</font></center><br> <font style="font-family: Verdana; font-size: 13px;"> <p style="margin-left: 100px; margin-right: 100px; font-family: Verdana;"> 1. This Admit Card must be presented for verification at the time of examination, along with at least one original(not photocopied or scanned copy) and valid (not expired) photo identification card (e.g : CNIC). </p> <p style="margin-left: 100px; margin-right: 100px; font-family: Verdana;"> 2. This Admit Card is valid only if the candidate's photograph and signature images are <b> legibly printed</b>. Print this on an A4 sized paper using a laser printer preferably a color photo printer. </p> <p style="margin-left: 100px; margin-right: 100px; font-family: Verdana;"> 3. Candidates should occupy their alloted seats <b>25 minutes before</b> the scheduled start of the examination. </p> <p style="margin-left: 100px; margin-right: 100px; font-family: Verdana;"> 4. Candidates will not be allowed to enter the examination hall <b>30 minutes</b> after the commencement of the examination. </p> <p style="margin-left: 100px; margin-right: 100px; font-family: Verdana;"> 5. Mobile phones or any other Electronic gadgets are NOT ALLOWED inside the examination hall. There may not be any facility for the safe-keeping of your gadget outside the hall, so it may be easier to leave it at your residence. </p> </font> <center><input type="button" id="print" class="toggle btn btn-primary" value="Print" onclick="printpage();"></center> </form> </body> </html> |
admitcard.php
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 |
<?php session_start(); error_reporting(0); $con=mysqli_connect("localhost","root","","oas"); $q=mysqli_query($con,"select s_name from t_user_data where s_id='".$_SESSION['user']."'"); $n= mysqli_fetch_assoc($q); $stname= $n['s_name']; $id=$_SESSION['user']; $result = mysqli_query($con,"SELECT * FROM t_user WHERE s_id='".$_SESSION['user']."'"); while($row = mysqli_fetch_array($result)) { ?> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title></title> <link rel="stylesheet" href="bootstrap/bootstrap.min.css"> <link rel="stylesheet" href="bootstrap/bootstrap-theme.min.css"> <script src="bootstrap/jquery.min.js"></script> <script src="bootstrap/bootstrap.min.js"></script> <link type="text/css" rel="stylesheet" href="css/admform.css"></link> <script type="text/javascript"> function printpage() { var printButton = document.getElementById("print"); printButton.style.visibility = 'hidden'; window.print() printButton.style.visibility = 'visible'; } </script> </head> <body style="background-image:url(./images/bc3.jpg) "> <form id="admincard" action="admincard.php" method="post"> <div class="container-fluid"> <div class="row"> <div class="col-sm-12"> <center> <table class="table table-bordered" style="font-family: Verdana"> <tr> <td style="width:3%;"><img src="./images/po.png" width="100%"> </td> <td style="width:8%;"><center><font style="font-family:Arial Black; font-size:20px;"> National School & College Islamabad </font></center> <center><font style="font-family:Verdana; font-size:18px;"> Phone : 0321-5613648 </font></center> <br> <br> <center><font style="font-family:Arial Black; font-size:20px;"> NSC ADMIT CARD (2020-21)</font></center> </td> <td colspan="2" width="3%" > <?php $picfile_path ='studentpic/'; $result1 = mysqli_query($con,"SELECT * FROM t_userdoc where s_id='".$_SESSION['user']."'"); while($row1 = mysqli_fetch_array($result1)) { $picsrc=$picfile_path.$row1['s_pic']; echo "<img src='$picsrc.' class='img-thumbnail' width='180px' style='height:180px;'>"; echo"<div>"; } ?> </td> </tr> <tr> <td style="width:4%;"> <font style="font-family: Verdana;">Date</font> </td> <td style="width:8%;" colspan="3"><font style="font-family: Verdana; font-weight: bold"> 10th April 2020, Afternoon Session</font> </td> </tr> <tr> <td style="width:4%;"> <font style="font-family: Verdana;">Time </font> </td> <td style="width:8%;" colspan="3"> <font style="font-family: Verdana; font-weight: bold"> 2:00 PM - 4:00 PM </font></td> </tr> <tr> <td> <font style="font-family: Verdana;">Registration No. </font> </td> <td colspan="3"><font style="font-family: Verdana; font-weight: bold"> <?php echo $id ?></font> </td> </tr> <tr> <td style="width:4%;"> <font style="font-family: Verdana;">Name </font> </td> <td style="width:8%;" colspan="3"><font style="font-family: Verdana; font-weight: bold"> <?php echo $stname;?></font> </td> </tr> <tr> <td style="width:4%;"> <font style="font-family: Verdana;">Exam Center </font> </td> <td style="width:8%;" colspan="3"> <font style="font-family: Verdana; font-weight: bold"> National School & College<br> Dist: Islamabad - Pakistan<br> Islamabad , Pakistan<br> Phone: 0321-5613648<br> </font> </td> </tr> <?php } ?> </table> </div> </div> </div> <center><font style="font-family: Verdana; font-weight: bold; font-size: 20px;"> Instructions to the Candidate</font></center><br> <font style="font-family: Verdana; font-size: 13px;"> <p style="margin-left: 100px; margin-right: 100px; font-family: Verdana;"> 1. This Admit Card must be presented for verification at the time of examination, along with at least one original(not photocopied or scanned copy) and valid (not expired) photo identification card (e.g : CNIC). </p> <p style="margin-left: 100px; margin-right: 100px; font-family: Verdana;"> 2. This Admit Card is valid only if the candidate's photograph and signature images are <b> legibly printed</b>. Print this on an A4 sized paper using a laser printer preferably a color photo printer. </p> <p style="margin-left: 100px; margin-right: 100px; font-family: Verdana;"> 3. Candidates should occupy their alloted seats <b>25 minutes before</b> the scheduled start of the examination. </p> <p style="margin-left: 100px; margin-right: 100px; font-family: Verdana;"> 4. Candidates will not be allowed to enter the examination hall <b>30 minutes</b> after the commencement of the examination. </p> <p style="margin-left: 100px; margin-right: 100px; font-family: Verdana;"> 5. Mobile phones or any other Electronic gadgets are NOT ALLOWED inside the examination hall. There may not be any facility for the safe-keeping of your gadget outside the hall, so it may be easier to leave it at your residence. </p> https://projectsinventory.com/wp-admin/post-new.php# </font> <center><input type="button" id="print" class="toggle btn btn-primary" value="Print" onclick="printpage();"></center> </form> </body> </html> |
Download Source code of Online Admission system in PHP