Exemplo n.º 1
0
function INDEX()
{
    $ldap = new clladp();
    $hash = $ldap->UserDatas($_SESSION["uid"]);
    $mail = $hash["mail"];
    $html = "<table style='width:600px' align=center>\n<tr>\n<td width=1% valign='top'><img src='img/bg_quarantaine.jpg'>\n</td>\n<input type='hidden' value='{empty_quarantine_text_mesgbox}' id='empty_quarantine_text_mesgbox'>\n<td valign='top'>\n\t<table>";
    $html = $html . "<tr><td valign='top'>  " . Paragraphe('folder-quarantine-query-64.jpg', '{query_quarantine}', '{query_quarantine_text}', 'user.quarantine.query.php') . "</td></tr>";
    $html = $html . "<tr><td valign='top'>  " . Paragraphe('folder-quarantine-delete-64.jpg', '{empty_quarantine}', '{empty_quarantine_text}', "javascript:UserEmptyQuarantine();") . "</td></tr>\n\t\n\t";
    $sql = new MySqlQueries();
    $html = $html . "</table>\n</td>\n</tr>\n<tr><td colspan=2>\n\n<H3>{overview}</H3>\n<table style='width:90%'>\n<tr>\n<td valign='top'><H4>{top} {domains}</H4>{$sql->Quarantine_TOP_Domains($mail)}</td>\n<td valign='top'><H4>{top} {senders}</H4>{$sql->Quarantine_TOP_sender($mail)}</td>\n</tr>\n</table>\n\n" . Graph($mail) . "\n</table>\n";
    $JS["JS"][] = "js/user.quarantine.js";
    $tpl = new template_users('{manage_your_quarantine}', $html, 0, 0, 0, 0, $JS);
    echo $tpl->web_page;
}