Beispiel #1
0
function print_header()
{
    global $gbl, $sgbl, $login, $ghtml;
    $lightskincolor = $login->getLightSkinColor();
    CreateHeaderData();
    print "<body topmargin=0 leftmargin=0>\n";
    print "\n<!-- httpdocs/lbin/header.php -->\n";
    print "<div id=statusbar  style='background:#{$lightskincolor};scroll:auto;height:26;width:100%;border-bottom:4px solid #b1cfed;margin:2 2 2 2:vertical-align:top;text-align:top'>\n";
    $alist[] = "a=show";
    $alist = $login->createShowAlist($alist);
    $gbl->__c_object = $login;
    print "<table cellpadding=0 cellspacing=0 >\n<tr>\n";
    $count = 0;
    $icount = 0;
    foreach ($alist as $k => $v) {
        if (csa($k, "__title")) {
            $count++;
            continue;
        }
        $icount++;
        if ($icount > 8) {
            continue;
        }
        $v = $ghtml->getFullUrl($v);
        $ghtml->print_div_button_on_header(null, true, $k, $v);
    }
    print "<td nowrap style='width:40px'></td>\n";
    $v = "a=list&c=ndskshortcut";
    $v = $ghtml->getFullUrl($v);
    $ghtml->print_div_button_on_header(null, true, 0, $v);
    $ghtml->print_toolbar();
    print "<td width=100%> </td>\n";
    $v = $ghtml->getFullUrl("a=list&c=ssessionlist");
    $ghtml->print_div_button_on_header(null, true, $k, $v);
    $v = create_simpleObject(array('url' => "javascript:top.mainframe.logOut()", 'purl' => '&a=updateform&sa=logout', 'target' => null));
    $ghtml->print_div_button_on_header(null, true, $k, $v);
    print "</tr> </table>\n";
    print "</div> </body>\n";
    return;
    ?>
<body topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 class="bdy1" onload="foc()">
<!-- httpdocs/lbin/header.php -->
<table id="tab1" border="0" cellpadding="0" cellspacing="0">
    <tr>
        <td class="top2">
            <div class="menuover" style="margin-top:2px;margin-left:0%">


<?php 
    $list[] = "a=show";
    if ($login->isLte('reseller')) {
        $list[] = "a=list&c=all_vps";
        $list[] = "a=list&c=client";
    }
    $list[] = "k[class]=ffile&k[nname]=/&a=show";
    $list[] = "a=list&c=ticket";
    $list = null;
    $list[] = "home";
    $list[] = "ffile";
    $list[] = "ticket";
    foreach ($list as $k) {
        print_one_link($k);
    }
    print "<span style='margin-left:39%;'> </span> \n";
    foreach (array("ssession", "help", "logout") as $k) {
        print_one_link($k);
    }
    print "</div></td></tr>\n";
    print "</table>\n";
}
function CreateDefaultHeaderMenu()
{
    global $gbl, $login, $ghtml;
    CreateHeaderData();
    $ghtml->print_include_jscript("header");
    $logo = $login->getSpecialObject('sp_specialplay')->logo_image;
    $logo_loading = $login->getSpecialObject('sp_specialplay')->logo_image_loading;
    ?>
    <script>

        function changeLogo(flag)
        {
            imgob = document.getElementById('main_logo');
            if (!imgob) {
                return;
            }
            if (flag) {
                imgob.src = '<?php 
    echo $logo_loading;
    ?>
';
            } else {
                imgob.src = '<?php 
    echo $logo;
    ?>
';
            }

        }
    </script>
    <body style='margin: 0;'>
    <!-- httpdocs/lib/default_header.php -->
    <table width='100%' height='59' border='0' valign='top' align='center' cellpadding='0' cellspacing='0'>
        <tr>
            <td width='100%' style='background: url(<?php 
    echo $login->getSkinDir();
    ?>
header_top_bg.gif)'></td>
            <td width='326' style='background: url(<?php 
    echo $login->getSkinDir();
    ?>
header_top_rt.gif); background-repeat: no-repeat'>
                <table width='326'>
                    <tr align='right'>
                        <td width='200'>&nbsp;</td>
                        <td align='right'><img id='main_logo' width='136' height='33' src='<?php 
    echo $logo_loading;
    ?>
'></td>
                        <td width='10%'>&nbsp;</td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <table border='0' width='100%' cellspacing='0' cellpadding='0' background='<?php 
    echo $login->getSkinDir();
    ?>
header_panel_bg.gif'>
    <tbody>
    <tr>
    <td>
    <?php 
    print "</td>\n<td>\n";
    CreateMenuItem("left", "home");
    CreateMenuLeft();
    print "<td width='100%'></td>\n<td>\n";
    if (!$login->is__table('mailaccount')) {
        if (!$login->is__table('ticket')) {
            CreateMenuItemRightSide("ticket");
            print "</td>\n<td>\n";
        }
        CreateMenuItemRightSide("ssession");
        print "</td>\n<td>\n";
        CreateMenuItemRightSide("help");
        print "</td>\n<td>\n";
    }
    CreateMenuItemRightSide("logout");
    print "</td>\n";
}