Exemple #1
0
        <table cellspacing="2" cellpadding="0" align="center" border="0" width="99%">
          <tr>
            <td>
	      <h1>Browse Quotes</h1>
	      
	      <?php 
$numquote = getstatnum(stat_appr);
$numpage = ceil($numquote / qlim);
$lastpage = ceil($numpage);
$navlim = 4;
// printf("NQ: %s<br>NP: %s<br>QL: %s<br>LP: %s<br>", $numquote, $numpage, qlim, $lastpage);
include "browsenav.php";
// calculate offset
$os = ($currpage - 1) * qlim;
// go get those quotes, baby
$res = getbrowsequote($os);
if (is_array($res)) {
    for ($i = 0; $i < count($res); $i++) {
        ?>
	                    
	        <p class="quote"><a class="quote" href="/?<?php 
        echo $res[$i][col_qid];
        ?>
">#<?php 
        echo $res[$i][col_qid];
        ?>
</a> <a class="nlquote" href="/?markdn&q=<?php 
        echo $res[$i][col_qid];
        ?>
">-</a> (<?php 
Exemple #2
0
        
        <br />
        <br />
        <table border="0" bgcolor="#B2C492" width="100%">
          <tr>
            <td align="right"><?php 
echo getstatnum(stat_pend);
?>
 pending quotes :: <?php 
echo getstatnum(stat_appr);
?>
 approved quotes :: <?php 
echo getstatnum(stat_reje);
?>
 rejected quotes :: <?php 
echo getstatrev();
?>
 marked for review</td>
          </tr>
        </table>