🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: a.testing.group
2 messages
2 total messages Started by Andy Wed, 06 Jul 2005 18:10
Be a saint in 5 min
#3882
Author: Andy
Date: Wed, 06 Jul 2005 18:10
1 lines
1246 bytes
Blow your ass 
Re: Be a saint in 5 min
#3883
Author: Andy
Date: Wed, 06 Jul 2005 18:11
99 lines
4610 bytes
"Andy" <Andy@invalid.com> wrote in message 
news:yO2dnZwQ87oMg1HfRVn-ig@rogers.com...
> Blow your ass
>


<?php include("adminheader.php"); ?>

<?php include("logincheck.php"); ?>

<p><font size=3 face="Arial, Helvetica, sans-serif"><b>List 
catagories</b></font></p>

         <center>

         <table cellpadding=1 border=0 cellspacing=0 width=700>
            <tr>
               <td align=center>
                  <table bgcolor=#ffffff cellpadding=1 border=1 
cellspacing=0 width=100%>
                     <tr>
                        <th width=240><font size="2" face="Arial, Helvetica, 
sans-serif">Category Title</th>
                        <th width=40><font size="2" face="Arial, Helvetica, 
sans-serif">Delete</th>
                     </tr>

                     <?php

                           $sql = "select categoryid from categories";

                           $result = mysql_query($sql ,$db);
                           $numrows = mysql_numrows($result);

                           $lastpage = false;

                           if ($pagenum == 0) {
                              $startrow = 0;
                           } else {
                              $startrow = 25 * $pagenum;
                           }

                           if ($numrows < $startrow + 25) {
                              $endrow = $numrows;
                              $lastpage = true;
                           }

                           $sql = "select * from categories order by 
category limit $startrow,25";

         $result = mysql_query($sql ,$db);

         if ($myrow = mysql_fetch_array($result)) {

            do {
               printf("<tr>");
               printf("<td align=center><font size=2 face='Arial, Helvetica, 
sans-serif'><a href=../category.php?catid=%s>%s</a></font></td>", 
$myrow["categoryid"], $myrow["category"]);
               printf("<td align=center><font size=2 face='Arial, Helvetica, 
sans-serif'><a href=deletecat.php?catid=%s>Delete</a></font></td>", 
$myrow["categoryid"]);
               printf("</tr>");



             } while ($myrow = mysql_fetch_array($result));

                           }

                           printf("<tr>");
                           if ($startrow > 0) {
                              printf("<td align=left><font size=3 
face='Arial, Helvetica, sans-serif'><a 
href=listcats.php?pagenum=%s&listtype=%s>Previous Page</a></font></td>", 
$pagenum-1, $listtype);
                           } else {
                              printf("<td>&nbsp;</td>");
                           }
                           if ($lastpage == false) {
                              printf("<td align=left><font size=3 
face='Arial, Helvetica, sans-serif'><a 
href=listcats.php?pagenum=%s&listtype=%s>Next Page</a></font></td>", 
$pagenum+1, $listtype);
                           } else {
                              printf("<td>&nbsp;</td>");
                           }
                           printf("</tr>");

                     ?>

                  </table>
               </td>
            </tr>
         </table>


<?php include("adminfooter.php"); ?>
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads