Esempio n. 1
0
function GROUP_MAILING_LIST()
{
    $ou = $_GET["LoadMailingList"];
    $group = new groups(null);
    $hash = $group->load_MailingList($ou);
    $html = "\n\t<input type='hidden' id='RemoveMailingList_text' value='{RemoveMailingList_text}'>\n\t<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:99%'>\n\t<thead class='thead'>\n\t\t<tr>\n\t\t<th width=99% colspan=3>{mailing_list}</th>\n\t\t</tr>\n\t</thead>\n\t<tbody class='tbody'>";
    while (list($num, $ligne) = each($hash)) {
        if ($classtr == "oddRow") {
            $classtr = null;
        } else {
            $classtr = "oddRow";
        }
        $ldap = new clladp();
        $uid = $ldap->uid_from_email($num);
        $js = MEMBER_JS($uid, 1);
        $delete = "RemoveMailingList('{$ou}','{$num}');";
        $html = $html . "\n\t\t<tr class={$classtr}>\n\t\t<td width=1%>" . imgtootltip('24-mailinglist.png', '{select}', $js) . "</td>\n\t\t<td><strong style='font-size:14px'><a href='#' OnClick=\"{$js}\">{$num} ({$ligne} {members})</a></strong></td>\n\t\t<td width=1%>" . imgtootltip('delete-32.png', '{delete}', $delete) . "</td>\n\t\t</tr>\n\t\t\n\t";
    }
    $html = $html . "</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body($html);
}
Esempio n. 2
0
function GROUP_MAILING_LIST()
{
    $ou = $_GET["LoadMailingList"];
    $group = new groups(null);
    $hash = $group->load_MailingList($ou);
    $html = "\n\t<input type='hidden' id='RemoveMailingList_text' value='{RemoveMailingList_text}'>\n\t<table style='width:90%' align=\"center\" style='margin-left:50px'>";
    while (list($num, $ligne) = each($hash)) {
        $ldap = new clladp();
        $uid = $ldap->uid_from_email($num);
        $js = MEMBER_JS($uid, 1);
        $delete = "RemoveMailingList('{$ou}','{$num}');";
        $html = $html . "\n\t\t<tr " . CellRollOver() . ">\n\t\t<td width=1%>" . imgtootltip('24-mailinglist.png', '{select}', $js) . "</td>\n\t\t<td><strong>" . texttooltip("{$num} ({$ligne} {members})", "{select}", $js) . "</strong></td>\n\t\t<td width=1%>" . imgtootltip('ed_delete.gif', '{delete}', $delete) . "</td>\n\t\t</tr>\n\t\t\n\t";
    }
    $html = $html . "</table>";
    $tpl = new templates();
    echo $tpl->_ENGINE_parse_body("<h1 style='width:103%'>{mailing_list}</h1>" . RoundedLightWhite($html));
}