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.

 
 

<?php
session_start();
if(isset($_SESSION['sesname']) && isset($_SESSION['sespass']) && isset($_SESSION['sestype']) && isset($_SESSION['sesfullname']) && $_SESSION['sestype']=="registrar"){
}else{
header('location:logout.php');
}
?>

 
 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "<a href="http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html" rel="nofollow">http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html</a> xmlns="<a href="http://www.w3.org/1999/xhtml">
<head>
<link" rel="nofollow">http://www.w3.org/1999/xhtml">
<head>
<link</a> rel="stylesheet" type="text/css" href="css/style_entry.css" />
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="css/style.css" media="screen"/
<link rel="stylesheet" type="text/css" href="css/style_entry.css" />
<link rel="stylesheet" type="text/css" href="css/structure.css"
<link rel="stylesheet" type="text/css" href="css/menu.css" />
<link rel="stylesheet" type="text/css" href="css/idcard.css" />
</head>
<body>
<a class="container">
<p><img src="img/banner.jpg" alt="banner" width="1000" height="140" align="middle" /></p>
<a id="content" style="margin-top:0;">
<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>
<a class="navigation" style="font-size:12px;">
<a href="regestrar.php">HOME</a>
<a href="register.php">REGISTER STUDENT</a>
<a href="view.php"> VIEW REGISTERED STUDENT</a>
<a href="reservedlist.php">PROCESS I.D</a>
<a href="adduser.php">ADD USER</a>
<a href="settutuion.php">SET TITUTION</a>
<a href="logout.php">LOGOUT</a>
</a>
<a id="style_informations"
<a id="textbox">
<h3> <font color="red"><u>Select Student by registration number</u> <h6> example</font><font color="green"> 2013-B071-80011</h6></font></h6>
<form action="" method="POST">
<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"/>
</form>
<?php
if(isset($_POST['find_stud'])){
include'dbconn.php';
$reg=$_POST['reg_no'];
$srch="SELECT * FROM register WHERE registration_number='$reg'";
$res_srch=mysql_query($srch);
$num_srch=mysql_num_rows($res_srch);
if($num_srch==1){
$row=mysql_fetch_array($res_srch);
$studid=$row['rid'];
$course=$row['course'];
$checkpayment="SELECT * FROM accounts WHERE student='$studid'";
$resultcheckpayment=mysql_query($checkpayment);
$countcheckpayment=mysql_num_rows($resultcheckpayment);
if($countcheckpayment>=1){
$rwpayments=mysql_fetch_array($resultcheckpayment);
$paidamount=$rwpayments['amount'];

$getrequiredpayment="SELECT * FROM tution WHERE course='$course'";
$resultgetrequiredpayment=mysql_query($getrequiredpayment);
$countgetrequiredpayment=mysql_num_rows($resultgetrequiredpayment);
if($countgetrequiredpayment==1){
$rwresultgetrequiredpayment=mysql_fetch_array($resultgetrequiredpayment);
$requiredammount=$rwresultgetrequiredpayment['tution'];

$percenttut=(60/100)*$requiredammount;
if($paidamount>=$percenttut){

/*form full words*/
$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',
"CIT"=>'Certificate In Information Technology',
"DBAM"=>'Diploma In Business Administration');
echo'
<a id="idbody" >
<a 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></a>
<a class="body">
<p style="padding-top:5px;">STUDENT IDENTITY CARD NO: <span style="color:red;">'.$row['rid'].'</span></p>
<p>'.$my[$course].'</p>
<a class="data">
<a class="details">
<table style="margin-left:20%;">
<tr><td>'.$row['registration_number'].'</td></tr>
<tr><td>'.$row['first_name'].'</td></tr>
<tr><td>'.$row['last_name'].' '.$row['other_names'].'</td></tr>
</table>
</a>
<a class="pic">
<img src="uploads/'.$row['image'].'" width="97%" height="97%" style="margin:1.5%;"/>
</a>
</a>
<a class="foot">
<p style="float:left; padding-left:10px;">Expires: 31/02/2017</p>
<p style="float:right; padding-right:5px;">Holders`s Signature: <img src="uploads/'.$row['sign'].' " id="mya"></i></p>
</a>
</a>
<a href="printcard.php?id='.$row['rid'].'">Print</a>
</a>';
}else{
echo'<span style="color:blue;">'.$row['first_name'].' '.$row['last_name'].'</span> has not paid the required 60% of tution';
}
}else{
echo'No tution details have been added for this course';
}
}else{
echo'<span style="color:black;">'.$row['first_name'].' '.$row['last_name'].'</span> has not made any payments. Clear payments or register payments';
}
}else{
echo'<span style="color:red;">No results found matching this reg</span>';
}
}else{
}
?>
</a>
<a class="clearer"><span></span></a>
<footer>
<a class="copyright">
<?php include("footer.php");
?>
</a>
</footer>
</a>
</a>
</body>
</html>

 

 

 

Comments

Popular posts from this blog

Motos Android Mame Game Download

StatusNet Micro Blog PHP Script Free Download

1941 Counter Attack (Japan) Windows Game Download