예제 #1
0
파일: db.php 프로젝트: abdeljawwad/sedr
function navi()
{
    global $SIDU;
    $conn = $SIDU['conn'][$SIDU[0]];
    $link = @explode(',', $_GET['id']);
    $eng = @array('my' => 'MySQL', 'pg' => 'Postgres', 'sl' => 'SQLite');
    @sidu_sort($SIDU[5], $SIDU[6], $SIDU[7], $SIDU['page']['sortObj']);
    $obj = @array("r" => @lang(1416), "v" => @lang(1417), "S" => @lang(1418), "f" => @lang(1419));
    if ($link[3] != '') {
        if ($link[3] == 'r') {
            echo "<a href='tab-new.php?id={$SIDU['0']},{$SIDU['1']},{$SIDU['2']},{$SIDU['3']},{$SIDU['4']},{$SIDU['5']},{$SIDU['6']}' onclick=\"xwin(this.href,700,500);return false\" ", @html_hkey("=", @lang(1401)), ">", @html_img('img/tool-add'), "</a>{$SIDU['sep']}";
        }
        if ($link[3] == 'r' || $link[3] == 'v') {
            echo "<a href='#' ", @html_hkey("E", @lang(1402)), " onclick='dbexp(\"{$SIDU['0']},{$SIDU['1']},{$SIDU['2']},{$SIDU['3']}\",\"objs[]\")'>", @html_img('img/tool-down'), $SIDU['page']['menuText'] ? @lang(1403) : "", "</a>";
        }
        if ($link[3] == 'r') {
            echo " <a href='imp.php?id={$SIDU['0']},{$SIDU['1']},{$SIDU['2']}' ", @html_hkey("I", @lang(1404)), " onclick='xwin(this.href);return false'>", @html_img('img/tool-imp'), $SIDU['page']['menuText'] ? @lang(1405) : "", "</a>";
        }
        if ($link[3] == 'r') {
            echo " <a href='#' onclick=\"showHide('objTool')\" title='", @lang(1406), "'>", @html_img('img/tool-sys'), $SIDU['page']['menuText'] ? @lang(1407) : "", "</a>\n\t\t\t<a href='#' onclick=\"setv('objcmd','Empty');return (confirm('", @lang(1409), "') ? dataTab.submit() : false)\" ", @html_hkey("-", @lang(1410)), ">", @html_img('img/tool-flush'), $SIDU['page']['menuText'] ? @lang(1408) : "", "</a>";
        }
        echo " <a href='#' onclick=\"setv('objcmd','Drop'); return (confirm('", @lang(1412, $obj[$SIDU[3]]), "') ? dataTab.submit() : false)\" ", @html_hkey("X", @lang(1413)), ">", @html_img('img/tool-x'), $SIDU['page']['menuText'] ? @lang(1411) : "", "</a>\n\t\t\t<a href='" . ($conn[1] == "sl" ? "tab.php?id={$SIDU['0']},{$SIDU['1']},0,r,sqlite_master'" : "#' onclick=\"showHide('DBseek')\"") . " ", @html_hkey("F", @lang(1414)), ">", @html_img('img/tool-find'), $SIDU['page']['menuText'] ? @lang(1415) : "", "</a>{$SIDU['sep']}", @html_img("img/x{$link['3']}"), " <a href='db.php?id={$link['0']},{$link['1']},,,,{$SIDU['5']},{$SIDU['6']}'>{$link['1']}</a>", $link[2] ? " » <a href='db.php?id={$link['0']},{$link['1']},{$link['2']},{$link['3']},,{$SIDU['5']},{$SIDU['6']}'>{$link['2']}</a>" : "", $link[4] != '' ? " » {$link['4']}" : "";
    } else {
        if ($conn[1] == "my") {
            $serv['server'] = @mysql_get_server_info();
        } elseif ($conn[1] == "pg") {
            $serv = @pg_version();
        } else {
            $serv['server'] = @sqlite_libversion();
        }
        echo @html_img("img/eng-{$conn['1']}"), " <b>SIDU 3.0</b> for <b>{$eng[$conn[1]]}</b>\n\t\t{$SIDU['sep']}<a href='" . ($conn[1] == "sl" ? "tab.php?id={$SIDU['0']},{$SIDU['1']},0,r,sqlite_master'" : "#' onclick=\"showHide('DBseek')\"") . " ", @html_hkey("F", @lang(1414)), @html_img('img/tool-find'), "</a>\n\t\t<a href='db.php?id={$link['0']},,,,,{$SIDU['5']},{$SIDU['6']}'><b>", $conn[1] == "sl" ? "SQLite" : "{$conn['3']}@{$conn['2']}", "</b></a> v {$serv['server']}\n\t\t{$SIDU['sep']} ", @date("Y-m-d H:i:s");
    }
}
예제 #2
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']})";
    }
}
예제 #3
0
파일: sql.php 프로젝트: abdeljawwad/sedr
function navi()
{
    global $SIDU;
    $sql = @urlencode($SIDU['RES'][$SIDU[6]][0]);
    echo "<a href='exp.php?id={$SIDU['0']}&#38;sql={$sql}' ", @html_hkey("E", @lang(3101)), " onclick='xwin(this.href);return false'>", @html_img('img/tool-down'), "</a>", "<a href='sql.php?id={$SIDU['0']}&#38;chart=sql&#38;sql={$sql}' title='", @lang(3107), "'>", @html_img("img/tool-chart"), "</a>", "<a href='sql.php?id={$SIDU['0']}&#38;chart=sqlV2&#38;sql={$sql}' ", @html_hkey("D", @lang(3108)), ">", @html_img("img/tool-chartV2"), "</a>", "<a href='sql.php?id={$SIDU['0']}&#38;chart=sqlV&#38;sql={$sql}' ", @html_hkey("C", @lang(3102)), ">", @html_img("img/tool-chartV"), "</a>{$SIDU['sep']} {$SIDU['7']}sql &nbsp;", $SIDU[8] ? "<b class='red'>{$SIDU['8']}</b>" : $SIDU[8] + 0, "err &nbsp;", ($SIDU[5] > 1000 ? @round($SIDU[5] / 1000, 1) : "{$SIDU['5']}m") . "s ";
    if (isset($SIDU[6])) {
        echo "&nbsp;" . $SIDU['RES'][$SIDU[6]][3] . "r ";
    }
    @navi_obj($SIDU['cook'][$SIDU[0]]);
    echo " {$SIDU['sep']} " . @date('Y-m-d H:i:s');
}
예제 #4
0
파일: sqls.php 프로젝트: abdeljawwad/sedr
function navi()
{
    global $SIDU;
    echo "<a href='option.php?id={$SIDU['0']}' ", @html_hkey("O", @lang(3401)), " target='main'></a><a href='user.php?id={$SIDU['0']}' ", @html_hkey("U", @lang(3402)), " target='main'></a>";
    if ($SIDU['eng'] == 'my') {
        echo "<a href='sql.php?id={$SIDU['0']}&#38;sql=SHOW+PROCESSLIST' ", @html_hkey("P", @lang(3403)), " target='main'></a>";
    }
    echo "<a href='home.php?id={$SIDU['0']}' target='main' ", @html_hkey("B", @lang(3405)), ">", @html_img("img/sidu"), "</a>", "<a href='conn.php' target='_blank' ", @html_hkey("N", @lang(3406)), ">", @html_img('img/tool-pc'), $SIDU['page']['menuTextSQL'] ? @lang(3407) : "", "</a>\n<a href='#' onclick=\"showHide('openfile')\" ", @html_hkey("L", @lang(3408)), ">", @html_img('img/tool-imp'), $SIDU['page']['menuTextSQL'] ? @lang(3409) : "", "</a>\n<a href='#' onclick=\"sidu_sql('a',{$SIDU['0']})\" ", @html_hkey("A", @lang(3410)), ">", @html_img("img/tool-run-all"), $SIDU['page']['menuTextSQL'] ? @lang(3411) : "", "</a>\n<a href='#' onclick=\"sidu_sql('r',{$SIDU['0']})\" ", @html_hkey("R", @lang(3412)), ">", @html_img("img/tool-run"), $SIDU['page']['menuTextSQL'] ? @lang(3413) : "", "</a>\n<a href='#' onclick=\"sidu_sql('m',{$SIDU['0']})\" ", @html_hkey("M", @lang(3414)), ">", @html_img("img/tool-run-m"), $SIDU['page']['menuTextSQL'] ? @lang(3415) : "", "</a>\n<a href='his.php?id={$SIDU['0']}' target='main' ", @html_hkey("H", @lang(3416)), ">", @html_img('img/tool-his'), $SIDU['page']['menuTextSQL'] ? @lang(3417) : "", "</a>\n<a href='#' onclick=\"top.location='./?id={$SIDU['0']}'\" ", @html_hkey("W", @lang(3418)), ">", @html_img('img/tool-refresh'), $SIDU['page']['menuTextSQL'] ? @lang(3419) : "", "</a>\n<a href='#' onclick=\"openClose('menu')\" ", @html_hkey("/", @lang(3420)), ">", @html_img("img/menu-open", "", "id='menuopen'"), "</a>\n<a href='#' onclick=\"openClose('tool')\" ", @html_hkey("\\", @lang(3421)), ">", @html_img("img/tool-open", "", "id='toolopen'"), "</a>";
    if ($SIDU['eng'] != 'sl') {
        echo " <a href='sql.php?id={$SIDU['0']}&#38;sql=show+vars' target='main' ", @html_hkey("V", @lang(3422)), ">", @html_img("img/tool-sys"), $SIDU['page']['menuTextSQL'] ? @lang(3423) : "", "</a>";
    }
    if ($SIDU['eng'] == 'my') {
        echo " <a href='sql.php?id={$SIDU['0']}&#38;sql=FLUSH+ALL' target='main' title='", @lang(3424), "'>", @html_img("img/tool-flush"), $SIDU['page']['menuTextSQL'] ? @lang(3425) : "", "</a>";
    }
    echo " <a href='temp.php?id={$SIDU['0']}' onclick='xwin(this.href);return false' ", @html_hkey("T", @lang(3426)), ">", @html_img("img/tool-temp"), $SIDU['page']['menuTextSQL'] ? @lang(3427) : "", "</a>\n<a href='option.php?id={$SIDU['0']}' target='main' title='", @lang(3428), "'>", @html_img("img/tool-option"), $SIDU['page']['menuTextSQL'] ? @lang(3429) : "", "</a>";
    if ($SIDU['eng'] != 'sl') {
        echo " <a href='user.php?id={$SIDU['0']}' target='main' title='", @lang(3430), "'>", @html_img("img/tool-user.gif"), $SIDU['page']['menuTextSQL'] ? @lang(3431) : "", "</a>";
    }
    echo "<div style='position:fixed;top:0;right:0;padding:3px;background:#eed'><a href='#' onclick=\"top.location='conn.php?cmd=quit'\" ", @html_hkey("Q", @lang(3404)), ">", @html_img("img/tool-exit"), "</a></div>";
}