HEX
Server: LiteSpeed
System: Linux s3512.bom1.stableserver.net 4.18.0-513.11.1.lve.el8.x86_64 #1 SMP Thu Jan 18 16:21:02 UTC 2024 x86_64
User: surajaut (1797)
PHP: 8.0.30
Disabled: NONE
Upload Files
File: /home/surajaut/www/admin/page_wise.php
<?php
session_start();

// set time-out period (in seconds)
$inactive = 600;

// check to see if $_SESSION["timeout"] is set
if (isset($_SESSION["timeout"])) {
    // calculate the session's "time to live"
    $sessionTTL = time() - $_SESSION["timeout"];
    if ($sessionTTL > $inactive) {
        session_destroy();
        header("Location: logout.php");
    }
}

$_SESSION["timeout"] = time();

include '../connect.php';

if($_SESSION['username'] == '') { header('location:index.php'); } 



 ?>

 
 <!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Suraj Automobiles</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<meta name="keywords" content="Your keywords">
<meta name="author" content="Your name">
	<link rel="stylesheet" type="text/css" media="screen" href="../styles.css">
	<!--<link href='http://fonts.googleapis.com/css?family=Ruthie' rel='stylesheet' type='text/css'>-->
	<script src="../js/jquery-1.7.2.min.js"></script>
	<script src="../js/menu.js"></script>

<style>
table { width:100%; font-size:14px; }

table tr { border-bottom:1px solid #333;}
table td {
	margin: 1px;
	padding: 2px;
	text-align:center;
	/*border-top:1px solid #333;	*/
}
table th{
	font-size: 12px;
	font-weight: bold;
	color: #FFF;
	background-color: #00345E;
	margin: 2px;
	padding: 2px;
}

table img { border: 1px solid #006; border-radius : 5px;}

.container{
	width: 530px;
	float: left;
	/*margin: 50px 10px 10px;*/
	padding: 20px;
	
	background-color: white;
}

.page_navigation , .alt_page_navigation{
	padding-bottom: 40px;
}

.page_navigation a, .alt_page_navigation a{
	padding:3px 5px;
	margin:2px;
	color:white;
	text-decoration:none;
	float: left;
	font-family: Tahoma;
	font-size: 12px;
	background-color:#2D64B6;
}
.active_page{
	background-color:white !important;
	color:black !important;
}	

.content, .alt_content{
	color: black;
}

.content li, .alt_content li, .content > p{
	padding: 5px
}



.pg-normal {
color: #fff;
font-size: 15px;
cursor: pointer;
background: #2D64B6;
padding: 2px 4px 2px 4px;
}

.pg-selected {
color: #fff;
font-size: 15px;
background: #000000;
padding: 2px 4px 2px 4px;
}




</style>
</head>
<body>
<!--==============================header=================================-->

	
	
		<div class="content_my">
			<div class="grid_12">
            <div align="center">
				<h1 class="extra-wrap"><a href="#"><img src="../images/suraj-auto.png"></a></h1>
                </div>
				<div class="clear"></div>
				<nav>
					<ul class="sf-menu">
						<li  style="width:150px;" ><a href="welcome.php">Home</a></li>
						<li style="width:200px;" class="current"><a href="#">Manage Images</a>
                        <ul>
                        <li><a href="add_images.php">Add Images</a></li>
                        <li><a href="view_images.php">View Images</a></li>
                        <li><a href="page_wise.php">View Page Wise</a></li>
                        </ul>
                        </li>
                        <li style="width:200px;"><a href="page_contents.php">Edit Page Contents</a></li>
                        <li style="width:180px;"><a href="change_password.php">Change&nbsp;Password</a></li>
                        
						<li><a href="logout.php">Logout</a></li>
						
					</ul> 
					<div class="clear"></div>
				</nav>
			
		



<!--==============================footer=================================-->
<footer class="wrapper top-8">
	<div class="content_my">
		<div class="grid_12 border-2"></div>
		<div class="clear"></div>
		<div class="grid_6" >
			<h3>View Images Page Wise: </h3>
			 <div style="color:#0C0;"><b><?php echo $msg; ?></b></div>
             
             <div >
    <table id="tablepaging"  align="center"   >
    <thead>
    <tr >
    <th>Sl No</th>
    <th>Page Name</th>
   
    <th>View All Images</th>
    
    </tr>
   </thead>
   <tbody>
  
   <tr class="odd1" >
    <td>1.</td>
   <td>Deluxe A.C Buses</td>
   <td><a href="view_all_images.php?cat=deluxe">&nbsp;View all &nbsp;</a> </td>
   </tr>
   <tr class="odd1" >
    <td>2.</td>
   <td>School Bus</td>
   <td><a href="view_all_images.php?cat=schoolbus">&nbsp;View all &nbsp;</a> </td>
   </tr>
   <tr class="odd1" >
    <td>3.</td>
   <td>Special Vehical</td>
   <td><a href="view_all_images.php?cat=special">&nbsp;View all &nbsp;</a> </td>
   </tr>
   <tr class="odd1" >
    <td>4.</td>
   <td>Tourist Bus</td>
   <td><a href="view_all_images.php?cat=tourist">&nbsp;View all &nbsp;</a> </td>
   </tr>
   <tr class="odd1" >
    <td>5.</td>
   <td>City Bus</td>
   <td><a href="view_all_images.php?cat=city">&nbsp;View all &nbsp;</a> </td>
   </tr>
   <tr class="odd1" >
    <td>6.</td>
   <td>Sleeper Coaches</td>
   <td><a href="view_all_images.php?cat=coaches">&nbsp;View all &nbsp;</a> </td>
   </tr>
   <tr class="odd1" >
    <td>7.</td>
   <td>Tipplers</td>
   <td><a href="view_all_images.php?cat=tipplers">&nbsp;View all &nbsp;</a> </td>
   </tr>
   <tr class="odd1" >
    <td>8.</td>
   <td>New Arrivals</td>
   <td><a href="view_all_images.php?cat=launch">&nbsp;View all &nbsp;</a> </td>
   </tr>
   <tr class="odd1" >
    <td>9.</td>
   <td>New Launch 2012</td>
   <td><a href="view_all_images.php?cat=newarrival">&nbsp;View all &nbsp;</a> </td>
   </tr>
   
    
    </tbody>
    </table>
    <div id="pageNavPosition" style="padding-top: 20px" align="center">
</div><br/><br/>
<script type="text/javascript"><!--
var pager = new Pager('tablepaging', 10);
pager.init();
pager.showPageNav('pager', 'pageNavPosition');
pager.showPage(1);
</script>
   
		</div>
				
		<div class="grid_12 border-2"></div>
		<div class="clear"></div>
		<div class="grid_6"><p class="top-1">Suraj Automobiles &copy; 2013  :  <a class="color-2" href="#">Privacy Policy</a><br />
			<!-- Do not remove -->Design by <a class="color-2" href="http://www.visualcreations.in">Visual Creations</a><!-- end --></p>
		</div>
		
	</div>
</footer>

</div>
</div>
</body>
</html>