/** 
 * zeigt die reports der allianz an 
 * 
 * @return 
 */
function show_alliance()
{
    global $uid;
    // mop: instanzname
    $instanz = "reports_own";
    // mop: act
    $act = "show_alliance";
    // mop: betroffene tabellen
    $tables = "battlereports b,battlereports_alliance ba,systems s left join planets p on (p.id=b.pid)";
    // mop: alle felder, die angezeigt werden sollen
    $fields = array("Week" => "b.week", "System" => "s.name", "Planet" => "p.name");
    $where_addon = print_searchform($instanz, $act);
    if (!$where_addon) {
        $where_addon .= "where 1=1";
    }
    $where_addon .= " and b.id=ba.rid and s.id=b.sid and ba.aid=" . get_alliance($uid);
    $browser = new srbrowser($tables, "b.week", $fields, $act, $instanz, "b.id", $GLOBALS["db"]);
    $browser->tabellenkopftext = "Alliance Battlereports";
    browse_reports($browser, $where_addon);
}
示例#2
0
function print_menu()
{
    global $menu_conf, $submenu_conf;
    global $doc_name, $doc_logo, $url_graphs, $border_line;
    global $css_file;
    global $SCRIPT_NAME;
    $h = $doc_logo['height'];
    if ($doc_logo['height'] < 50) {
        $h = "50px";
    }
    $style_menu['css'] = "";
    $style_head['css'] = "";
    $style_submenu['css'] = "";
    $style_menu['conf'] = "";
    $style_head['conf'] = "";
    $style_submenu['conf'] = "";
    $style_menu['table'] = "";
    $style_submenu['table'] = "";
    if ($css_file) {
        $style_menu['css'] = "class=\"{$menu_css}\"";
        $style_head['css'] = "class=\"" . $font_css['big'] . "\"";
        $style_submenu['css'] = "class=\"{$submenu_css}\"";
    } else {
        $style_menu['conf'] = get_style("font", "norm");
        $style_menu['table'] = get_style("menu", "table");
        $style_head['conf'] = get_style("menu", "big");
        $style_submenu['conf'] = get_style("submenu", "small");
        $style_submenu['table'] = get_style("submenu", "table");
    }
    print "<form action=\"{$SCRIPT_NAME}\" method=\"POST\">\n";
    print "<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\">\n";
    print "<tr><td " . $style_menu['css'] . " " . $style_menu['table'] . " height=\"{$h}\" valign=\"middle\">";
    if ($doc_logo['pic'] != "") {
        print "<img src=\"" . $url_graphs . $doc_logo['pic'] . "\" border=\"0\" width=\"" . $doc_logo['width'] . "\" height=\"" . $doc_logo['height'] . "\" alt=\"{$doc_name}\">";
    } else {
        print $style_head['conf'][0] . "<b " . $style_head['css'] . ">&nbsp;{$doc_name}</b>" . $style_head['conf'][1];
    }
    print "</td></tr>\n";
    print "<tr><td " . $style_menu['css'] . " " . $style_menu['table'] . " align=\"" . $menu_conf['align'] . "\" valign=\"" . $menu_conf['valign'] . "\">";
    print $style_menu['conf'][0];
    print_mainmenu($menu_conf['seperation'], $style_menu['css'], $style_menu['conf']);
    print $style_menu['conf'][1];
    print "</td></tr>\n";
    if ($border_line['horizontal'] != "") {
        print "<tr bgcolor=\"#000000\"><td colspan=\"2\"><img src=\"" . $url_graphs . $border_line['horizontal'] . "\" border=\"0\" width=\"100%\" height=\"" . $border_line['thickness'] . "\" alt=\"\"></td></tr>\n";
    }
    print "<tr><td " . $style_submenu['css'] . " " . $style_submenu['table'] . " align=\"" . $submenu_conf['align'] . "\" valign=\"" . $submenu_conf['valign'] . "\">\n";
    print $style_submenu['conf'][0];
    print_searchform($style_submenu['css'], $style_submenu['conf']);
    print $style_submenu['conf'][1];
    print "</td></tr>\n";
    if ($border_line['horizontal'] != "") {
        print "<tr bgcolor=\"#000000\"><td colspan=\"2\"><img src=\"" . $url_graphs . $border_line['horizontal'] . "\" border=\"0\" width=\"100%\" height=\"" . $border_line['thickness'] . "\" alt=\"\"></td></tr>\n";
    }
    print "</table>\n";
    print "</form>\n";
}