rendered paste body<?php
// see index.php for copyright notice.
if (!defined( 'IN_ENGINE' ) ) die ('(:');
class gallery extends common
{
function display()
{
$offset = (int) $this->get['p'] * 15;
$nextpage = (int) $this->get['p'] + 1;
$curpage = (int) $this->get['p'];
$backpage = (int) $this->get['p'] - 1;
// sql query
$query = $this->db->query( $this->db->gallery_display, 'i', $offset );
while ($row = $this->db->fetch($query))
{
$id = $row['id'];
$image = stripslashes($row['image']);
$ext = stripslashes(($row['ext']));
// $html .= "\n\t";
// $html .= '<a href="http://static.rawr.tv/images/' . $image . '.' . $ext . '"><img border="0" src="http://static.rawr.tv/thumbs/t_' . $image . '.' . $ext . '"></a>';
// $html .= "\n\t";
$html .= '<div class="post">';
$html .= '<h1 class="storytitle" id="post-' . $id . '\"><a href=\"http://static.rawr.tv/images/' . $image . '.' $ext '">picture title</a></h1>';
$html .= '<p class="meta">August 30, 2007 </p>';
$html .= '<div class="storycontent">';
$html .= '<p>';
$html .= '<a href="http://static.rawr.tv/images/' . $image . '.' $ext . '"><img src="rawr_files/1.jpg" alt="#"></a>';
$html .= '</p>';
$html .= '</div>';
$html .= '</div>';
}
$html .= '<div align="center">' . "\n\t" . '<a href="?m=gallery&p=' . $backpage . '">' . $this->lang->back_page . '</a> :: <a href="?m=gallery&p=' . $nextpage . '">' . $this->lang->next_page . '</a>' . "\n\t" . '</div>';
return $html;
}
}
?>