]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Improving display for remote and user
authorJean-Marc Pigeon <jmp@safe.c>
Fri, 28 Nov 2025 14:19:53 +0000 (09:19 -0500)
committerJean-Marc Pigeon <jmp@safe.c>
Fri, 28 Nov 2025 14:19:53 +0000 (09:19 -0500)
www/lvlrmt.php
www/lvlusr.php

index ebe508ca9c8a57adf670829c453b5cf36b2b0247..c4474b4125caa19e323e562f49771b15a6008747 100644 (file)
@@ -19,6 +19,7 @@ $debut=$offset+1;
 $email=gettranslate($userlang,"Remote SMTP server");
 
 $STR  = <<<EOT
+<TABLE WIDTH="100%" BORDER="0" CellSpacing="0">
 <TR>
 <TD align=left>
 <FORM action="lvlrmt.php" method="post">
@@ -72,6 +73,7 @@ $email:
 </FORM>
 </TD>
 </TR>
+</TABLE>
 EOT;
 
 return $STR;
@@ -151,6 +153,9 @@ $stop=endhtml();
 $top=topper($isadmin,$logname,"lvlrmt");
 $footer=footer("lvlrmt");
 $tblheader=tblheader($remoteip,$numrec,$offset,$limit);
+$tblfooter="";
+if ($limit>30)
+  $tblfooter=$tblheader;
 
 $STR  = <<<EOT
 $start
@@ -170,7 +175,6 @@ $top
 </style>
 
 <CENTER>
-<table WIDTH="100%" BORDER="0" CellSpacing="0">
 $tblheader
 <table class="table-userlist" WIDTH="100%" BORDER="1" CellSpacing="0">
 <TR>
@@ -181,7 +185,7 @@ $tblheader
 </TR>
 $line
 </Table>
-</Table>
+$tblfooter
 </CENTER>
 <BR>
 <BR>
index 6dfae0913fbf1299ff1a985ddc4545f71d624f91..5a14b68b86fcc40d4cc6c99b4446708a19f86d40 100644 (file)
@@ -19,6 +19,7 @@ $debut=$offset+1;
 $email=gettranslate($userlang,"Email");
 
 $STR  = <<<EOT
+<TABLE WIDTH="100%" BORDER="0" CellSpacing="0">
 <TR>
 <TD align=left>
 <FORM action="lvlusr.php" method="post">
@@ -72,6 +73,7 @@ $email:
 </FORM>
 </TD>
 </TR>
+</TABLE>
 EOT;
 
 return $STR;
@@ -96,7 +98,7 @@ if (isset($_POST['offset']))
 $rqst=NEW probe("emails",$limit,$offset);
 if (isset($_POST['username'])) {
   $username=trim(($_POST['username']));
-  if (stlen($username)>0)
+  if (strlen($username)>0)
     $rqst->where("email like '%$username%'");
   }
 $numrec=$rqst->getnumrec();
@@ -151,6 +153,9 @@ $stop=endhtml();
 $top=topper($isadmin,$logname,"lvlusr");
 $footer=footer("lvlusr");
 $tblheader=tblheader($username,$numrec,$offset,$limit);
+$tblfooter="";
+if ($limit>30)
+  $tblfooter=$tblheader;
 
 $STR  = <<<EOT
 $start
@@ -181,7 +186,7 @@ $tblheader
 </TR>
 $line
 </Table>
-</Table>
+$tblfooter
 </CENTER>
 <BR>
 <BR>