0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.118.19.89


Current Path : /proc/thread-self/root/var/www/html/demo/qptran/admin/
Upload File :
Current File : //proc/thread-self/root/var/www/html/demo/qptran/admin/viewarchive.php

<?php require_once('auth.php'); ?>
<?php include("header.php"); ?>
<style type="text/css">
<!--
.style2 {color: #FFFFFF; font-weight: bold; font-size: 14px; }
-->
</style>
<script type="text/javascript" src="css/delete12.js"></script> 
<script>
$(document).ready(function() {
$("tr:nth-child(even)").addClass("even");
 });
</script>

<body>
<div class="cont">
<p>&nbsp;</p>
<div style="width:700px; height:30px; text-align:center; margin:0 auto; padding-top:10px;">
  <h3>VIEW ARCHIVED QUESTION PAPERS</h3>
  <p>&nbsp;</p></div>
<!--- Header Over -->
<?php
$a_id=$_SESSION['SESS_MEMBER_ID'];
?>

  <table width="600" border="0" align="center" cellpadding="4" cellspacing="1">
    <tr>
	  <td width="495"></td>
      <td width="40" height="36" style="padding-left:5px;"><a href="adminfunction.php">Home</a></td>
       <td width="40" height="36"  style="padding-left:5px;"><a href="logout.php">Logout</a></td>
	</tr>
</table>

<div id="container">
	<div id="listing">


<?php  
include('link.php');
$page_name="archive_qpaper.php"; 
$start=1;
if(strlen($start) > 0 and !is_numeric($start)){
echo "Data Error";
exit;
}
$eu = ($start - 0); 
$limit = 300; // No of records to be shown per page.
$this1 = $eu + $limit;
$back = $eu - $limit;
$next = $eu + $limit;

$query2="SELECT * FROM qptable ORDER BY qdate DESC";
$result2=mysql_query($query2);
echo mysql_error();
$nume=mysql_num_rows($result2);

include("link.php"); 
$query = "SELECT id, qdate, qsession, qpaper FROM qptable ORDER BY qdate DESC";
$result=mysql_query($query) or die("Query 1 Failed".mysql_error());
if ($result) {

?>
<form name="form1" action="archive_qpaper1.php" method="POST">	  
  <table width="600" border="0" align="center" cellpadding="4" cellspacing="1" bordercolor="#999999" bgcolor="#999999">
    <tr>
 	  <th  height="36" bgcolor="000080"  style="padding-left:5px;"><div align="center" class="style2"><font style="padding-left:5px;">Date</font></div></th>
	  <th  height="36" bgcolor="000080"  style="padding-left:5px;"><div align="center" class="style2"><font style="padding-left:5px;">Session</font></div></th>
 	  <th  height="36" bgcolor="000080"  style="padding-left:5px;"><div align="center" class="style2"><font style="padding-left:5px;">Question Paper Bundle</font></div></th>
</tr>	  
<?php
while($noticia = mysql_fetch_array($result))
{
//while ($row = $result->fetch_object())
//{

?>	
<tr>
 <th width="168" height="36" bgcolor="#f4f2f3"  style="padding-left:5px;"><div align="left"><font size="2" style="padding-left:5px;"><?=$noticia{'qdate'}; ?></font></div></th>
 <th width="108" height="36" bgcolor="#f4f2f3"   style="padding-left:5px;"><div align="left"><font size="2" style="padding-left:5px;"><?=$noticia{'qsession'}; ?></font></div></th>
 <th width="434" height="36" bgcolor="#f4f2f3"  style="padding-left:5px;"><div align="left"><font size="2" style="padding-left:5px;"><?=$noticia{'qpaper'}; ?></font></div></th>
</tr>
<?php	
}
//echo "</table><p><input id='delete' type='submit' class='button' name='delete' value='Delete Selected Items'/></p></form>";
?>
</table>

<?php
}
?>
</table>
</form>	
	
	
<?php
if($nume > $limit ){ // Let us display bottom links if sufficient records are there for paging
?>
<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#999999" bgcolor="#CCCCCC">
 <tr>
  <td width="300"  height="36" bgcolor="#F4F2F3"  style="padding-left:5px;">
<div align="left">
  <?php
if($back >=0) { 
print "<a href='$page_name?start=$back' class='next_previous'>PREV</font></a>"; 
} 
?>
</div></td>
<td width="200"  height="36" bgcolor="#F4F2F3"  style="padding-left:5px;">
<div align="center">
  <?php
$i=0;
$l=1;
for($i=0;$i < $nume;$i=$i+$limit){
if($i <> $eu){
echo " <a href='$page_name?start=$i' class='next_previous'>$l</font></a> ";
}
else { echo "<span class='next_previous'>$l</span>";}        /// Current page is not displayed as link and given font color red
$l=$l+1;
}
?>
</div></td>
<td width="300"  height="36" bgcolor="#F4F2F3"  style="padding-right:5px;">
<div align="right">
<?php
if($this1 < $nume) { 
print "<a href='$page_name?start=$next' class='next_previous'>NEXT</a>";} 

?>
</div></td>
<?php
 }
?> 

</tr>
</table>


	
  </div>
</div><!-- end container -->

</body>
</html>