Exemplo n.º 1
0
    $s_retval[] = '</td></tr></table>';
    return implode("\n", $s_retval);
}
if ($global_user) {
    if ($global_user->exists_in_db()) {
        $s_drawval = array();
        $s_drawval[] = draw_page_head();
        $s_drawval[] = '<script src="/js/table_functions.js"></script>';
        $s_drawval[] = '<script src="/js/jslists201330.js"></script>';
        $s_drawval[] = '<script src="/js/use_course_list.js"></script>';
        $s_drawval[] = '<script src="/js/course_list.js"></script>';
        $s_drawval[] = '<script src="/js/conflicts.js"></script>';
        $s_drawval[] = '<script src="/js/common_functions.js"></script>';
        $s_drawval[] = '<script src="/js/tab_functions.js"></script>';
        $s_drawval[] = '<script src="/js/semester_header.js"></script>';
        $s_drawval[] = '<script src="/js/schedule.js"></script>';
        $s_drawval[] = '<link href="/css/auto_table.css" rel="stylesheet" type="text/css">';
        $s_drawval[] = '<link href="/css/tabs.css" rel="stylesheet" type="text/css">';
        $s_drawval[] = '<link href="/css/select.css" rel="stylesheet" type="text/css">';
        $s_drawval[] = draw_logout_bar();
        $s_drawval[] = "<br />";
        $s_drawval[] = draw_semester_header();
        $s_drawval[] = "<br /><br /><dev id='content'>";
        $s_drawval[] = draw_tabs();
        $s_drawval[] = "</dev>";
        $s_drawval[] = draw_page_foot();
        echo manage_output(implode("\n", $s_drawval));
    }
} else {
    logout_session();
}
Exemplo n.º 2
0
		view_gprint();

		require_once(CACTI_BASE_PATH . "/include/bottom_footer.php");
		break;
	case 'view_rra':
		require_once(CACTI_BASE_PATH . "/include/top_header.php");

		draw_tabs();
		view_rra();

		require_once(CACTI_BASE_PATH . "/include/bottom_footer.php");
		break;
	default:
		require_once(CACTI_BASE_PATH . "/include/top_header.php");

		draw_tabs();
		view_cdef();

		require_once(CACTI_BASE_PATH . "/include/bottom_footer.php");
		break;
}

/* ------------------------
    Global Functions
   ------------------------ */
function draw_tabs() {
	html_tab_start();
	html_tab_draw("CDEFs", "presets.php?action=view_cdef", ((($_REQUEST["action"] == "") || ($_REQUEST["action"] == "view_cdef")) ? true : false));
	html_tab_draw("Colors", "presets.php?action=view_color", (($_REQUEST["action"] == "view_color") ? true : false));
	html_tab_draw("GPRINTs", "presets.php?action=view_gprint", (($_REQUEST["action"] == "view_gprint") ? true : false));
	html_tab_draw("RRAs", "presets.php?action=view_rra", (($_REQUEST["action"] == "view_rra") ? true : false));