
PK 
<section class="page-header">
<div class="container">
<h1>List of Central Govt. Offices At Ludhiana</h1>
</div><!--/ .container-->
</section><!--/ .page-header-->
<!-- - - - - - - - - - - - - - Main - - - - - - - - - - - - - - - - -->
<section class="main container sbr clearfix">
<!-- - - - - - - - - - Breadcrumbs - - - - - - - - - - - - -->
<div class="breadcrumbs">
<a title="Home" href="index.php">Home</a>
<span>List of Central Govt. Offices At Ludhiana</span>
</div><!--/ .breadcrumbs-->
<!-- - - - - - - - - end Breadcrumbs - - - - - - - - - - - -->
<!-- <div class="bordered">
<figure class="add-border">
<img src="images/temp/full-width.jpg" alt="" />
</figure>
</div> --> <!--/ .bordered-->
<?php
if($_GET[per_page]){
$noprd=$_GET[per_page];
}else{
$noprd=15;
}
$cpage=$_REQUEST['page'];
if ($cpage == 0){
$cpage=1;
$cnt=1;
}else{
$cnt=($cpage * $noprd) - $noprd + 1;
}
$frm=($cpage * $noprd) - $noprd;
$orderby=" order by name ";
$whr=1;
$query = "select * from cgoffice where $whr ";
$sql=$query;
$query.=" $orderby LIMIT $frm, $noprd";
//echo "$query<br />";
$query = mysql_query($query) or die (mysql_error());
while($row = mysql_fetch_array($query)){
?>
<article class="entry event">
<div class="entry-body">
<div class="entry-title">
<h2 class="title" style="margin-bottom: 6px;"><?php echo $row[name]?></h2>
<div class="p_row">
<span class="p_title"><b>Address : </b></span>
<?php echo $row[address]?>, <?php echo $row[city]?>, <?php echo $row[pincode]?>
</div>
<div class="p_row">
<span class="p_title"><b>Telephone : </b></span>
<?php echo $row[phone]?>
</div>
<!-- <div class="p_row">
<span class="p_title"><b>Fax : </b></span>
<?php echo $row[fax]?>
</div> -->
<div class="p_row">
<span class="p_title"><b>Email : </b></span>
<?php echo $row[email]?>
</div>
<div class="p_row">
<span class="p_title"><b>Head & Designation: </b></span>
<span style="vertical-align:top !important; font-size:12px; color:#777;"><?php echo $row[head_name]?></span>
</div>
<!-- <div class="p_row">
<span class="p_title"><b>Designation : </b></span>
<?php echo $row[desig]?>
</div> -->
<div class="p_row">
<span class="p_title"><b>Tel/Mobile : </b></span>
<?php echo $row[des_phone]?>
</div>
<div class="p_row">
<span class="p_title"><b>Website : </b></span>
<?php echo $row[website]?>
</div>
</div><!--/ .entry-title-->
</div><!--/ .entry-body -->
</article><!--/ .entry-->
<?php
}
?>
<!-- Pagging -->
<div class="pagging">
<div class="right">
<?php
include('ps_pagination.php');
$pager = new PS_Pagination($conn, $sql, $noprd, 6, "paction=$_GET[paction]&sort=$_GET[sort]");
$pager->setDebug(false);
$pager->total_rows=$result;
$rs = $pager->paginate();
//echo $pager->renderFullNav();
echo $pager->renderFirst();
echo $pager->renderPrev("Back");
echo $pager->renderNav('<span>', '</span>');
echo $pager->renderNext("Next");
echo $pager->renderLast();
?>
</div>
</div>
<!-- End Pagging -->
</section><!--/ .main -->


PK 99