PK

ADDRLIN : /home/anibklip/adhocacademy.com/
FLL :
Current File : /home/anibklip/adhocacademy.com/certificate.php

<?php
		include_once('include/common.php');
		include_once('include/connection.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>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Verify Certificate</title>
</head>

<body>
<table cellspacing="0" cellpadding="0" class="main" border="0">
	<tr>
		<td colspan="2">
			<?php include_once 'include/header.php'; ?>
		</td>
	</tr>
	<tr>
		<td width="28%" style="vertical-align:top; background:#F5A834;">
			<table width="100%" cellspacing="0" cellpadding="0" border="0" style="padding-top:10px; background:#F5A834;">
				
	<tr><td colspan="2" style="vertical-align:bottom;"><img src="image/student4.png" width="100%" /></td></tr>
						</table>
		</td>
		<td rowspan="2" valign="top" style="padding-top:7px;">
<table class="contact" cellpadding="0" cellspacing="0" border="0">
	<tr>
	
		<th class="heading" colspan="4">VERIFY CERTIFICATE</th>
	</tr>
	</table><table class="contact" cellpadding="0" cellspacing="0" border="0"  style="text-align:left; padding-left:15px;">
	<tr> <?php
			  //$certificate=$_POST['certificateNo'];
			  	//base64_encode
				//base64_decode
			  
				$search=$_POST['search'];
				$SelectForSearch="SELECT * FROM certificate WHERE name='".$search."' || certificateNo='".$search."'";
				$queryForSearch=mysql_query($SelectForSearch);
				
					if(mysql_num_rows($queryForSearch)>0){
				while($resultForSearch=mysql_fetch_array($queryForSearch)) {
				  $i++;
			?>
				<td colspan="3"></td>   
				
                <td valign="top" style="padding-top:10px;" width="150" rowspan="10"><img src="<?php echo HTTP_ROOT; ?>admin/student_images/<?php echo $resultForSearch['img']; ?>" width="100px" height="80px" border="1px"></td>
            </tr>
            <tr>    
				<td>Certificate No.</td>
                <td width="70px">:</td>
                <td><?=$resultForSearch['certificateNo']; ?></td>
            </tr>
            <tr>
                <td>Name</td>
                <td>:</td>
                <td><?=$resultForSearch['name']; ?></td>
            </tr>
            <tr>
				<td>Father Name</td>
                <td>:</td>
                <td><?=$resultForSearch['fatherName']; ?></td>
            </tr>
            <tr>
				<td>Registration No.</td>
                <td>:</td>
                <td><?=$resultForSearch['regNo']; ?></td>
            </tr>
            <tr>
				<td>Admission Date</td>
                <td>:</td>
                <td><?=$resultForSearch['admiDate']; ?></td>
			</tr>
            <tr>
                <td>Course</td>
                <td>:</td>
                <td><?=$resultForSearch['course']; ?></td>
			</tr>
            <tr>	
                <td>Grade</td>
                <td>:</td>
                <td><?=$resultForSearch['grade']; ?></td>
			</tr>
            <tr>	
                <td>Address</td>
                <td>:</td>
                <td><?=$resultForSearch['address']; ?></td>
            </tr>
            <tr>    
                <td>Center Name</td>
                <td>:</td>
                <td><?=$resultForSearch['centerName']; ?></td>
			</tr>
            <tr>
            	<td align="center" colspan="4" style="padding-top:30px;"><a href="javascript:void(0)" onclick="window.open('print_page.php?search=<?php echo $_POST['search']; ?>
                	','welcome','width=450,height=400')">Print Page</a></td>
            </tr>
            <?php } } else { ?><tr><td align="center" style="color:#FF0000;"><?php include_once 'search.php'; ?> </td></th><?php	} ?>
       
</table>
</td>
	</tr>
	
	<tr>
		<td  colspan="2">
			<?php include_once 'include/footer.php'; ?>
		</td>
	</tr>
	</table>
</body>
</html>


PK 99