## DO NOT EDIT THIS FILE! IT WAS AUTOMATICALLY GENERATED FROM CDSware WML SOURCES.
// database connection
connectDB(DOCS_DATABASE);
$formnb = 1;
?>
<BR>
<SMALL>
<STRONG class=headline>Notice:</STRONG><BR>
Welcome <?print "<B>$uid_email</b>";?>. You will find on this page the listing of all the catalogues for which you are a referee. Click on the links to access the documents you referee.
</SMALL>
<BR><BR>
<TABLE>
<TR>
<TD>
<?
$res = mysql_query("select sdocname,ldocname from sbmDOCTYPE");
while ($row = mysql_fetch_row($res))
{
$doctype = $row[0];
$docname = $row[1];
if (isReferee($uid_email,$doctype,"%"))
{
print "<UL><LI><b>$docname:</b><UL><small>";
if (isReferee($uid_email,$doctype,"*"))
print "<LI><A HREF=\"${HTDOCSURL}submit/publiline/inotes/DAMStat.php?doctype=$doctype\">You are general referee</a><br>";
$res2 = mysql_query("select sname,lname from sbmCATEGORIES where doctype='$doctype'");
while ($row2 = mysql_fetch_row($res2))
{
$category = $row2[0];
$categname = $row2[1];
if (isReferee($uid_email,$doctype,$category))
print "<LI><A HREF=\"${HTDOCSURL}submit/publiline/inotes/DAMStat.php?doctype=$doctype&categ=$category\">You are referee for category: $categname ($category)</a><br>";
}
print "</small></UL></UL>";
}
}
?>
</TD>
</TR>
</TABLE>
<?
function isReferee($email,$doctype,$categ)
{
if (authenticate("$email","referee","$doctype","$categ"))