コード例 #1
0
ファイル: tab.php プロジェクト: abdeljawwad/sedr
function navi()
{
    global $SIDU;
    $conn = $SIDU['conn'][$SIDU[0]];
    $link = @explode(',', $_GET['id']);
    @init_tab($SIDU, $link, $conn);
    $tabs = @table2tabs($link[4], $SIDU['page']['tree']);
    $url = "tab.php?id={$link['0']},{$link['1']},{$link['2']},{$link['3']},{$link['4']}";
    echo "<a href='exp.php?id={$SIDU['0']},{$SIDU['1']},{$SIDU['2']},{$SIDU['3']}&#38;tab={$SIDU['4']}' ", @html_hkey("E", @lang(3701)), " onclick='xwin(this.href);return false'>", @html_img('img/tool-down'), $SIDU['page']['menuText'] ? @lang(3702) : "", "</a>";
    if ($link[3] == 'r') {
        echo " <a href='imp.php?id={$SIDU['0']},{$SIDU['1']},{$SIDU['2']},{$SIDU['3']},{$SIDU['4']}' ", @html_hkey("I", @lang(3703)), " onclick='xwin(this.href);return false'>", @html_img('img/tool-imp'), $SIDU['page']['menuText'] ? @lang(3704) : "", "</a>\n\t\t<a href='#' title='", @lang(3738), "' onclick=\"showHide('objTool')\">", @html_img('img/tool-sys'), $SIDU['page']['menuText'] ? @lang(3705) : "", "</a>\n\t\t<a href='{$url}&#38;objcmd=Empty' ", @html_hkey("-", @lang(3706)), " onclick=\"return confirm('", @lang(3707, $SIDU[4]), "?')\">", @html_img('img/tool-flush'), $SIDU['page']['menuText'] ? @lang(3708) : "", "</a>";
    }
    if ($_GET['desc']) {
        echo " <a href='{$url}&#38;objcmd=Drop' ", @html_hkey("X", @lang(3711)), " onclick=\"return confirm('" . @lang(3710, $SIDU[4]) . "?')\">", @html_img('img/tool-x'), $SIDU['page']['menuText'] ? @lang(3711) : "", "</a>";
    } else {
        echo "{$SIDU['sep']}", @html_img("img/tool-eye.gif", @lang(3712), "onclick=\"showHide('trgrid');showHide('trhide');setv('gridShow',getv('gridShow')==1 ? 0 : 1)\""), "<a href='#' ", @html_hkey("Z", @lang(3713)), " onclick=\"submitForm('gridMode'," . ($SIDU['gridMode'] ? 0 : 1) . ")\">", @html_img("img/tool-grid.gif"), "</a>", "<a href='#' ", @html_hkey("S", @lang(3714)), " onclick=\"submitForm('cmd','data_save')\">", @html_img("img/tool-save"), "</a>", "<a href='#' ", @html_hkey("X", @lang(3715)), " onclick=\"submitForm('cmd','data_del')\">", @html_img("img/tool-del"), "</a>", "<a href='#' ", @html_hkey("=", @lang(3716)), " onclick='addRow()'>", @html_img("img/tool-add"), "</a>\n\t\t<input type='text' id='sidu8' value='{$SIDU['8']}' style='width:50px'/>\n\t\t<input type='text' id='sidu9' value='{$SIDU['9']}' style='width:50px' title='", @lang(3717), "'/><a href='#' ", @html_hkey("G", @lang(3718)), " onclick=\"submitForm('cmd','Go')\">", @html_img('img/tool-run'), "</a>";
        if ($SIDU[9] == -1 || !$SIDU[8]) {
            echo @html_img("img/arr1f.gif", @lang(3719) . " Fn+[", "class='grey'"), @html_img("img/arr2b.gif", @lang(3720) . " Fn+<", "class='grey'");
        } else {
            echo "<a href='#' ", @html_hkey("[", @lang(3719)), " onclick=\"submitForm('cmd','p1')\">", @html_img("img/arr1f.gif"), "</a><a href='#' ", @html_hkey("<", @lang(3720)), " onclick=\"submitForm('cmd','pback')\">", @html_img("img/arr2b.gif"), "</a>";
        }
        echo "<span title='", @lang(3721, $SIDU[10]), "'>{$SIDU['10']}</span>";
        if ($SIDU[9] == -1 || $SIDU[8] + $SIDU[9] >= $SIDU[10]) {
            echo @html_img("img/arr2n.gif", @lang(3722) . " Fn+>", "class='grey'"), @html_img("img/arr1l.gif", @lang(3723) . " Fn+]", "class='grey'");
        } else {
            echo "<a href='#' ", @html_hkey(">", @lang(3722)), " onclick=\"submitForm('cmd','pnext')\">", @html_img("img/arr2n.gif"), "</a><a href='#' ", @html_hkey("]", @lang(3723)), " onclick=\"submitForm('cmd','plast')\">", @html_img("img/arr1l.gif"), "</a>";
        }
    }
    @navi_obj($SIDU);
    if ($_GET['desc']) {
        echo " ({$SIDU['10']})";
    }
}
コード例 #2
0
ファイル: menu.php プロジェクト: abdeljawwad/sedr
function menu_tree_init(&$arr, $str, $tree)
{
    $tabs = @table2tabs($str, $tree);
    if ($tabs == '') {
        $tabs = $str;
    }
    $arr[$tabs][] = $str;
}
コード例 #3
0
ファイル: inc.func.php プロジェクト: abdeljawwad/sedr
function navi_obj($arr, $is_db)
{
    //db.php not use this func yet
    global $SIDU;
    if (!$arr[1]) {
        return;
    }
    echo $SIDU['sep'];
    if ($arr[4] != '' && !$is_db) {
        echo "<a href='tab.php?id={$arr['0']},{$arr['1']},{$arr['2']},{$arr['3']},{$arr['4']}&#38;desc=1' title='", @lang(122), "' onclick=\"xwin(this.href,720);return false\">", @html_img("img/x{$arr['3']}"), "</a> ";
    } elseif ($arr[4] != '') {
        echo @html_img("img/x{$arr['3']}"), " ";
    } else {
        echo @html_img('img/xdb'), " ";
    }
    echo "<a href='db.php?id={$arr['0']},{$arr['1']}'>{$arr['1']}</a>";
    if ($arr[2] != '') {
        if ($arr[2]) {
            echo " » <a href='db.php?id={$arr['0']},{$arr['1']},{$arr['2']}", $arr[3] ? ",{$arr['3']}" : "", "'>{$arr['2']}</a>";
        }
        if ($arr[4] != '') {
            $tabs = @table2tabs($arr[4], $SIDU['page']['tree']);
            if ($tabs != '') {
                echo " » <a href='db.php?id={$arr['0']},{$arr['1']},{$arr['2']},{$arr['3']},{$tabs}'>{$tabs}</a>";
            }
            echo " » <a href='tab.php?id={$arr['0']},{$arr['1']},{$arr['2']},{$arr['3']},{$arr['4']}' title='", @lang(123), "'>{$arr['4']}</a>";
        }
    }
}