Google Ads

Identity Card Processing and Generation System PHP Script


Identity Card Processing and Generation System PHP Script

This is Identity Card Processing and Generation System . And, we have a sample source code. You can use this to your future project.

 

Code:
 
  1. <?php
  2. session_start();
  3. if(isset($_SESSION['sesname']) && isset($_SESSION['sespass']) && isset($_SESSION['sestype']) && isset($_SESSION['sesfullname']) && $_SESSION['sestype']=="registrar"){
  4. }else{
  5. header('location:logout.php');
  6. }
  7. ?>

 

Code:
 
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "<a href="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  2. <html" rel="nofollow">http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html</a> xmlns="<a href="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <link" rel="nofollow">http://www.w3.org/1999/xhtml">
  6. <head>
  7. <link</a> rel="stylesheet" type="text/css" href="css/style_entry.css" />
  8. <link rel="stylesheet" type="text/css" href="css/style.css" media="screen"/>
  9. <link rel="stylesheet" type="text/css" href="css/style.css" media="screen"/
  10. <link rel="stylesheet" type="text/css" href="css/style_entry.css" />
  11. <link rel="stylesheet" type="text/css" href="css/structure.css"
  12. <link rel="stylesheet" type="text/css" href="css/menu.css" />
  13. <link rel="stylesheet" type="text/css" href="css/idcard.css" />
  14. </head>
  15. <body>
  16. <div class="container">
  17. <p><img src="img/banner.jpg" alt="banner" width="1000" height="140" align="middle" /></p>
  18. <div id="content" style="margin-top:0;">
  19. <h1 style="text-align:right; padding-right:8px margin:0; margin-top:-30px;line-height:20px;font-size:14px;">Logged in as <span style="color:blue;"><?php echo ucwords(strtolower($_SESSION['sesfullname'])).' '.(strtolower($_SESSION['sestype']));?></span></h1>
  20. <div class="navigation" style="font-size:12px;">
  21. <a href="regestrar.php">HOME</a>
  22. <a href="register.php">REGISTER STUDENT</a>
  23. <a href="view.php"> VIEW REGISTERED STUDENT</a>
  24. <a href="reservedlist.php">PROCESS I.D</a>
  25. <a href="adduser.php">ADD USER</a>
  26. <a href="settutuion.php">SET TITUTION</a>
  27. <a href="logout.php">LOGOUT</a>
  28. </div>
  29. <div id="style_informations"
  30. <div id="textbox">
  31. <h3> <font color="red"><u>Select Student by registration number</u> <h6> example</font><font color="green"> 2013-B071-80011</h6></font></h6>
  32. <form action="" method="POST">
  33. <label for="stud">Enter student`s Reg No: </label><input type="text" name="reg_no" id="stud" /><input type="submit" name="find_stud" value="Search"/>
  34. </form>
  35. <?php
  36. if(isset($_POST['find_stud'])){
  37. include'dbconn.php';
  38. $reg=$_POST['reg_no'];
  39. $srch="SELECT * FROM register WHERE registration_number='$reg'";
  40. $res_srch=mysql_query($srch);
  41. $num_srch=mysql_num_rows($res_srch);
  42. if($num_srch==1){
  43. $row=mysql_fetch_array($res_srch);
  44. $studid=$row['rid'];
  45. $course=$row['course'];
  46. $checkpayment="SELECT * FROM accounts WHERE student='$studid'";
  47. $resultcheckpayment=mysql_query($checkpayment);
  48. $countcheckpayment=mysql_num_rows($resultcheckpayment);
  49. if($countcheckpayment>=1){
  50. $rwpayments=mysql_fetch_array($resultcheckpayment);
  51. $paidamount=$rwpayments['amount'];
  52. $getrequiredpayment="SELECT * FROM tution WHERE course='$course'";
  53. $resultgetrequiredpayment=mysql_query($getrequiredpayment);
  54. $countgetrequiredpayment=mysql_num_rows($resultgetrequiredpayment);
  55. if($countgetrequiredpayment==1){
  56. $rwresultgetrequiredpayment=mysql_fetch_array($resultgetrequiredpayment);
  57. $requiredammount=$rwresultgetrequiredpayment['tution'];
  58. $percenttut=(60/100)*$requiredammount;
  59. if($paidamount>=$percenttut){
  60. /*form full words*/
  61. $my=array("BEDS"=>'Bachelors of ethics and development studies',"BSCIT"=>'Bachelors of science and information technology',"BSIT"=>'Bachelors of science and information technology','BBAM'=>'Bachelors of business Adminstration','DIT'=>'Diploma in Information technology',
  62. "CIT"=>'Certificate In Information Technology',
  63. "DBAM"=>'Diploma In Business Administration');
  64. echo'
  65. <div id="idbody" >
  66. <div class="header"> <p><span style="float:left; padding-top:20px; position:absolute; margin-left:-5%; height:80px;"><img src="img/logo.png" width="40px" height="40px" /></span>Uganda Martyrs University<br /><span>KABALE CAMPUS</span></p></div>
  67. <div class="body">
  68. <p style="padding-top:5px;">STUDENT IDENTITY CARD NO: <span style="color:red;">'.$row['rid'].'</span></p>
  69. <p>'.$my[$course].'</p>
  70. <div class="data">
  71. <div class="details">
  72. <table style="margin-left:20%;">
  73. <tr><td>'.$row['registration_number'].'</td></tr>
  74. <tr><td>'.$row['first_name'].'</td></tr>
  75. <tr><td>'.$row['last_name'].' '.$row['other_names'].'</td></tr>
  76. </table>
  77. </div>
  78. <div class="pic">
  79. <img src="uploads/'.$row['image'].'" width="97%" height="97%" style="margin:1.5%;"/>
  80. </div>
  81. </div>
  82. <div class="foot">
  83. <p style="float:left; padding-left:10px;">Expires: 31/02/2017</p>
  84. <p style="float:right; padding-right:5px;">Holders`s Signature: <img src="uploads/'.$row['sign'].' " id="myDiv"></i></p>
  85. </div>
  86. </div>
  87. <a href="printcard.php?id='.$row['rid'].'">Print</a>
  88. </div>';
  89. }else{
  90. echo'<span style="color:blue;">'.$row['first_name'].' '.$row['last_name'].'</span> has not paid the required 60% of tution';
  91. }
  92. }else{
  93. echo'No tution details have been added for this course';
  94. }
  95. }else{
  96. echo'<span style="color:black;">'.$row['first_name'].' '.$row['last_name'].'</span> has not made any payments. Clear payments or register payments';
  97. }
  98. }else{
  99. echo'<span style="color:red;">No results found matching this reg</span>';
  100. }
  101. }else{
  102. }
  103. ?>
  104. </div>
  105. <div class="clearer"><span></span></div>
  106. <footer>
  107. <div class="copyright">
  108. <?php include("footer.php");
  109. ?>
  110. </div>
  111. </footer>
  112. </div>
  113. </div>
  114. </body>
  115. </html>

 

 

 

Have any Question or Comment?

Leave a Reply

Your email address will not be published. Required fields are marked *

"