--- /dev/null
+// vim: smarttab tabstop=8 shiftwidth=2 expandtab
+
+.table-userlist tr:nth-child(odd)
+ {
+ background-color: #66ff99;
+ color: yellow ;
+ }
+
+.table-userlist tr:nth-child(even)
+ {
+ background-color: #e6f7ff ;
+ color: black ;
+ }
+
+.myTable { background-color:#eee;border-collapse:collapse; }
+.myTable th { background-color:#000;color:white;width:50%; }
+.myTable td, .myTable th { padding:5px;border:1px solid #000; }
+
global $isadmin;
$line="";
+$count=0;
$dbsql=sql_connect();
$emails=sql_getemaillist($dbsql,NULL,NULL);
foreach($emails as $email) {
+ $bgcolor="white";
+ if ($count & 1 ) {
+ $bgcolor="green";
+ }
$name=$email['email'];
$last=$email['lastemail'];
$max=$email['mxspace'];
$line=$line."<TD align=center>$max</TD>";
$line=$line."<TD align=center>$lock</TD>";
$line=$line."</TR>";
+ $count++;
}
sql_close($dbsql);
$STR = <<<EOT
$start
$top
+<style type="text/css">
+.table-userlist tr:nth-child(odd)
+ {
+ background-color: #66ff99; /*light green */
+ color: black ;
+ }
+
+.table-userlist tr:nth-child(even)
+ {
+ background-color: white;
+ color: black ;
+ }
+</style>
+
<CENTER>
-<table WIDTH="80%" BORDER="1" CellSpacing="0">
+<table class="table-userlist" WIDTH="80%" BORDER="1" CellSpacing="0">
<TR>
<TH align=center>Email</TH>
<TH align=center>lastemail</TH>