Ejemplo n.º 1
0
function name_resolve_order()
{
    $tpl = new templates();
    $smb = new samba();
    $name_resolve = explode(" ", $smb->main_array["global"]["name resolve order"]);
    if (isset($_GET["index"])) {
        $name_resolve_new = array_move_element_flat($name_resolve, $_GET["index"], $_GET["pos"]);
        $smb->main_array["global"]["name resolve order"] = implode(" ", $name_resolve_new);
        $smb->SaveToLdap();
        echo "<script>name_resolve_order_refresh();</script>";
        return;
    }
    $html = "\n\t<hr>\n\t<table cellspacing='0' cellpadding='0' border='0' class='tableView' style='width:100%'>\n<thead class='thead'>\n\t<tr>\n\t\t<th width=1%>&nbsp;</th>\n\t\t<th colspan=3>{name_resolve_order}</th>\n\t</tr>\n</thead>\n<tbody class='tbody'>";
    while (list($num, $val) = each($name_resolve)) {
        if ($classtr == "oddRow") {
            $classtr = null;
        } else {
            $classtr = "oddRow";
        }
        $html = $html . "\n\t\t\t<tr class={$classtr}>\n\t\t\t<td width=1%><img src='img/Database32.png'></td>\n\t\t\t<td><strong style='font-size:14px'>{smb_{$val}}</strong></td>\n\t\t\t<td width=1%>" . imgtootltip("arrow-up-32.png", "{up}", "NameResolveOrderSet('{$num}','up')") . "</td>\n\t\t\t<td width=1%>" . imgtootltip("arrow-down-32.png", "{down}", "NameResolveOrderSet('{$num}','down')") . "</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t";
    }
    $html = $html . "</tbody><table>";
    echo $tpl->_ENGINE_parse_body($html);
}
Ejemplo n.º 2
0
function name_resolve_order()
{
    $tpl = new templates();
    $smb = new samba();
    $name_resolve = explode(" ", $smb->main_array["global"]["name resolve order"]);
    if (isset($_GET["index"])) {
        $name_resolve_new = array_move_element_flat($name_resolve, $_GET["index"], $_GET["pos"]);
        $smb->main_array["global"]["name resolve order"] = implode(" ", $name_resolve_new);
        $smb->SaveToLdap();
        echo "<script>name_resolve_order_refresh();</script>";
        return;
    }
    $html = "\n\t<hr>\n\t<table>";
    while (list($num, $val) = each($name_resolve)) {
        $html = $html . "\n\t\t\t<tr " . CellRollOver() . ">\n\t\t\t<td width=1%><img src='img/fw_bold.gif'></td>\n\t\t\t<td><strong>{smb_{$val}}</strong></td>\n\t\t\t<td width=1%>" . imgtootltip("arrow_up.gif", "{up}", "NameResolveOrderSet('{$num}','up')") . "</td>\n\t\t\t<td width=1%>" . imgtootltip("arrow_down.gif", "{down}", "NameResolveOrderSet('{$num}','down')") . "</td>\n\t\t\t</tr>\n\t\t\t\n\t\t\t";
    }
    $html = $html . "<table>";
    echo $tpl->_ENGINE_parse_body($html);
}