if($num_exhibition_firm_video)
{
?>
|
|
$mn=$num_exhibition_firm_video%4;
for($i=0;$i<$num_exhibition_firm_video;$i++)
{
if($i%4==0 && $i!=0)
print ' ';
print ' |
| ';
if($i==($num_exhibition_firm_video-1) && $mn!=0)
{
for($j=0;$j<(4-$mn);$j++)
print ' | ';
}
}
?>
|
|
$total_rows=$total_rows_sel2;
if ($page == 0) $page = 1; //if no page var is given, default to 1.
$prev = $page - 1; //previous page is page - 1
$next = $page + 1; //next page is page + 1
$lastpage = ceil($total_rows/$per_page); //lastpage is = total pages / items per page, rounded up.
$lpm1 = $lastpage - 1; //last page minus 1
/*
Now we apply our rules and draw the pagination object.
We're actually saving the code to a variable in case we want to draw it more than once.
*/
$pagination = "";
if($lastpage > 1)
{
$pagination .= "\n";
}
?>
}
?>
|
include "right_inc.php";?>
|