// Function to retreive a some email record
//
//==============================================================
-function sql_getemaillist($dbsql,$limit,$skip)
+function sql_getemaillist($dbsql,$username,$limit,$skip)
{
$OPEP="gessql.php:sql_getemaillist";
$strlim="";
$strskip="";
-$strsel="Select * from emails order by email asc";
+$select="";
+if ($username!=NULL)
+ $select="where email like '%$username%'";
+$strsel="Select * from emails $select order by email asc";
if ($limit!=NULL)
$strlim="limit $limit";
if ($skip!=NULL)
function tblheader(int $numrec,int $offset,int $limit)
{
+global $userlang;
+
+$email=gettranslate($userlang,"Email");
+
$STR = <<<EOT
<TR>
-<TH align=left>
+<TD align=left>
<FORM action="lvlusr.php" method="post">
<input type="hidden" name="offset" value="$offset"/>
<input type="hidden" name="limit" value="$limit"/>
</Button>
<FONT SIZE=+2>$offset/$numrec</FONT>
</FORM>
-</TH>
+</TD>
+<TD align=left>
+<FORM action="lvlusr.php" method="post">
+<FONT SIZE=+1>
+$email:
+<input type="text" name="username" size=20 style="font-size: 100%;">
+<input type="submit" style="display:none"/>
+</FONT>
+</FORM>
+</TD>
<TD align=right>
<FORM method="post">
<input type="hidden" name="offset" value="$offset"/>
$limit=20;
$offset=0;
+$username=NULL;
$dbsql=sql_connect();
$numrec=sql_getnumrec($dbsql,"emails");
+if (isset($_POST['username']))
+ $username=($_POST['username']);
+rou_alert(0,"Post jmpdbg=<$username>");
if (isset($_POST['limit']))
$limit=intval($_POST['limit']);
if (isset($_POST['offset']))
}
rou_alert(0,"JMPDBG scanner=$scanner offset=$offset");
$line="";
-$emails=sql_getemaillist($dbsql,$limit,$offset);
+$emails=sql_getemaillist($dbsql,$username,$limit,$offset);
$count=$offset;
foreach($emails as $email) {
$bgcolor="white";
</Table>
</Table>
</CENTER>
+<BR>
+<BR>
$footer
$stop
EOT;