]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Adding search and display at the lvlmai page if too many items
authorJean-Marc Pigeon <jmp@safe.c>
Thu, 27 Nov 2025 20:21:41 +0000 (15:21 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Thu, 27 Nov 2025 20:21:41 +0000 (15:21 -0500)
www/lvlmai.php

index 9d7d6ea6b6b7823267e994fcf632610060bfe9b4..50c2b64853b6608e1d22da6f0a861ad0193ee9da 100644 (file)
@@ -26,6 +26,7 @@ $debut=$offset+1;
 $email=gettranslate($userlang,"Received email");
 
 $STR  = <<<EOT
+<TABLE WIDTH="100%" BORDER="0" CellSpacing="0">
 <TR>
 <TD align=left>
 <FORM action="{$myfilename}.php" method="post">
@@ -79,6 +80,7 @@ $email:
 </FORM>
 </TD>
 </TR>
+</TABLE>
 EOT;
 
 return $STR;
@@ -187,6 +189,9 @@ $stop=endhtml();
 $top=topper($isadmin,$logname,"$myfilename");
 $footer=footer("$myfilename");
 $tblheader=tblheader($username,$numrec,$offset,$limit);
+$tblfooter="";
+if ($limit>30) 
+  $tblfooter=$tblheader;
 
 $rqst->close();
 
@@ -195,7 +200,6 @@ $STR  = <<<EOT
 $start
 $top
 <CENTER>
-<table WIDTH="100%" BORDER="0" CellSpacing="0">
 $tblheader
 <table class="table-userlist" WIDTH="100%" BORDER="1" CellSpacing="0">
 <TR>
@@ -210,7 +214,7 @@ $tblheader
 </TR>
 $line
 </Table>
-</Table>
+$tblfooter
 </CENTER>
 <BR>
 $footer