} } ?> <!-- End linksbox --> <?php if (1 < page_numbers()) { echo '<div class="pagination"><ul>'; for ($i = 0; $i < page_numbers(); $i++) { $page = $i + 1; echo "<li><a href='?act=links&page={$page}'>{$page}</a></li>"; } echo '</ul></div>'; } ?> </div> </div> <?php include 'right_sidebar.php'; ?> </div>
<table bgcolor="#F0F6FF" cellpadding="1" cellspacing="1" width="100%" align="center" style="margin-top:3px;border: 1px solid #164677;"> <tr> <td width="5%" align="center" height="15" valign="middle" style="padding:5px"><?php echo $msg_showblogs10; ?> </td> </tr> </table> <?php } else { ?> <table border="0" cellpadding="0" cellspacing="0" width="100%" style="margin-top:3px;border:1px solid #64798E"> <tr> <td align="right" style="padding:5px;background-color:#F0F6FF;color:#000000"> <?php echo page_numbers($COUNT->blog_count, $SETTINGS->total, $page); ?> </td> </tr> </table> <?php } ?> <table width="100%" cellspacing="0" cellpadding="0" border="0" style="margin-top:3px;border:1px solid #64798E"> <tr> <td align="left" style="padding:5px;background-color:#F0F6FF" valign="middle">« <a href="index.php" title="<?php echo $msg_script15; ?> "><?php echo $msg_script15; ?>
function quote_generation($query, $origin, $page = 1, $quote_limit = 50, $page_limit = 10) { global $CONFIG, $TEMPLATE, $db; $pagenums = ''; if ($page != -1) { if (!$page) { $page = 1; } $pagenums = page_numbers($origin, $quote_limit, $page, $page_limit); } $up_lim = $quote_limit * $page; $low_lim = $up_lim - $quote_limit; if ($page != -1) { $query .= "LIMIT {$low_lim},{$quote_limit}"; } $res =& $db->query($query); if (DB::isError($res)) { die($res->getMessage()); } $nquotes = 0; $inner = ''; while ($row = $res->fetchRow(DB_FETCHMODE_ASSOC)) { $nquotes++; $canvote = user_can_vote_quote($row['id']); $datefmt = date($CONFIG['quote_time_format'], $row['date']); $inner .= $TEMPLATE->quote_iter($row['id'], $row['rating'], mangle_quote_text($row['quote']), $row['flag'] == 0, $canvote, $datefmt); } if (!$nquotes) { $TEMPLATE->add_message(lang('no_quote')); } print $TEMPLATE->quote_list($origin, $pagenums, $inner); }