Identity Card Processing and Generation System

Language

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

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byYUNGDOOZY12 (not verified)on Wed, 08/17/2016 - 13:49

Please what is the username and password?

Submitted byJoyce_June1 (not verified)on Wed, 08/17/2016 - 15:26

Please what's the username and password?

Add new comment