sub pageNumbers { $total_pages = int (($#matches) / $total_records_page); #Integer +division $remainder = ($#matches) % $total_records_page; if ($remainder) { $total_pages++; } if($total_pages) { print <<"END"; <table cellpadding="0" cellspacing="0" bor +der="0" width="100%"> <tr> <td class="smtxt"> END print "<b>Page </b>"; for $i (1 .. $total_pages) { if ($i == $page) { print "<b>$i</b>"; } else { print "<a href=\"winner.cgi?page=$i&period=$period\">$ +i</a>"; } if ($i != $total_pages) { print " | "; } } print "<!-- '$total_pages' '$remainder' --></td></tr></table>\ +n"; } } exit(0);
In reply to getting module output in a cgi file by rjsaulakh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |