]> SAFE projects GIT repository - jmp/mailleur/commitdiff
Able to disply user liste
authorJean-Marc Pigeon <jmp@safe.c>
Sun, 7 Sep 2025 18:33:08 +0000 (14:33 -0400)
committerJean-Marc Pigeon <jmp@safe.c>
Sun, 7 Sep 2025 18:33:08 +0000 (14:33 -0400)
www/gessql.php
www/lvlusr.php

index 5f98835e42fc92bf9e5c1b22a06b673f45a5d514..daa745f8334999fafcdc19b2a559ab30ca69b75a 100644 (file)
@@ -134,4 +134,22 @@ while ($proceed==true) {
 rou_alert(0,"$OPEP, now logname=<$logname>");
 return $logname;
 }
+
+//==============================================================
+//
+//      Function to retreive a some email record
+//
+//==============================================================
+function sql_getemaillist($dbsql,$limit,$skip)
+
+{
+$OPEP="gessql.php:sql_getemaillist";
+
+$strsel="Select * from emails order by email asc";
+$strlim="";
+$strskip="";
+$stmt=$dbsql->Select("$strsel $strlim $strskip");
+return $stmt->fetchAll();
+}
+
 ?>
index b61530becccfdc78c17acd22b4c7a9fc4e7a22f8..ef839a4a936d383399c39eb7c7c79ead09627d07 100644 (file)
@@ -16,18 +16,43 @@ function body($logname)
 {
 global $isadmin;
 
+$line="";
+$dbsql=sql_connect();
+$emails=sql_getemaillist($dbsql,NULL,NULL);
+foreach($emails as $email) {
+  $name=$email['email'];
+  $last=$email['lastemail'];
+  $max=$email['mxspace'];
+  $lock=$email['locked'];
+  $line=$line."<TR>";
+  $line=$line."<TD>$name</TD>";
+  $line=$line."<TD align=center>$last</TD>";
+  $line=$line."<TD align=center>$max</TD>";
+  $line=$line."<TD align=center>$lock</TD>";
+  $line=$line."</TR>";
+  }
+sql_close($dbsql);
+
 $start=starthtml(NULL);
 $stop=endhtml();
 $top=topper($isadmin,$logname,"lvlusr");
 $footer=footer("lvlusr");
 
+
 $STR  = <<<EOT
 $start
 $top
-<CENTER><FONT SIZE=+2 color=red>
-Within LVLUSR
-</FONT></CENTER>
-<BR>
+<CENTER>
+<table WIDTH="80%" BORDER="1" CellSpacing="0">
+<TR>
+<TH align=center>Email</TH>
+<TH align=center>lastemail</TH>
+<TH align=center>mxspace</TH>
+<TH align=center>locked</TH>
+</TR>
+$line
+</Table>
+</CENTER>
 $footer
 $stop
 EOT;