Beispiel #1
0
<div style="border-right:1px solid #EEEEEE; border-top:7px solid #C14543">
<ul class="nav">
	<?php 
//configure the link styles
$students = config_left_menu_item($mselected, 'students', 'students/manage_students');
$staff = config_left_menu_item($mselected, 'staff', 'user/manage_users');
$finances = config_left_menu_item($mselected, 'finances', 'finances/manage_fee_structure');
$library = config_left_menu_item($mselected, 'library', 'library/manage_stock');
$inventory = config_left_menu_item($mselected, 'inventory', 'inventory/manage_inventory');
$school_settings = config_left_menu_item($mselected, 'school_settings', 'schoolsettings/manage_settings');
$gradebook = config_left_menu_item($mselected, 'gradebook', 'gradebook/manage_gradebook');
$sponsors = config_left_menu_item($mselected, 'manage_sponsors', 'sponsor/manage_sponsors');
//The links
#Manage Students
if ($this->session->userdata('isschooladmin') == 'Y' || check_user_access($this, 'view_students')) {
    $menu['students'] = $students['open_link'] . '<li ' . $students['selected'] . ' >
					   <table id="table_students">
						<tr>
						<td width="50"><img src="' . base_url() . 'images/student.jpg" /></td>
						<td class="menu_vertical_separator"><img src="' . base_url() . 'images/menu_vertical_separator.jpg" /></td>
						<td>STUDENT MANAGEMENT</td>
						</tr>
					  </table>';
    $menu['students'] .= '</li>' . $students['close_link'];
}
#Manage Sponsors
if ($this->session->userdata('isschooladmin') == 'Y' || check_user_access($this, 'view_sponsors')) {
    $menu['manage_sponsors'] = $sponsors['open_link'] . '<li ' . $sponsors['selected'] . ' >  
					 <table id="table_manage_sponsors">
						<tr>
						<td width="50"><img src="' . base_url() . 'images/icon-sponsor.jpg" /></td>
Beispiel #2
0
<div style="border-right:1px solid #EEEEEE; border-top:7px solid #C14543">
<ul class="nav">
	<?php 
$schools = config_left_menu_item($mselected, 'schools', 'admin/dashboard');
$users = config_left_menu_item($mselected, 'users', 'admin/manage_users');
#Manage schools
$menu['schools'] = $schools['open_link'] . '<li ' . $schools['selected'] . ' >
				   <table id="table_schools">
					<tr>
					<td width="50"><img src="' . base_url() . 'images/school_settings.jpg" /></td>
					<td class="menu_vertical_separator"><img src="' . base_url() . 'images/menu_vertical_separator.jpg" /></td>
					<td>SCHOOL ACCOUNTS</td>
					</tr>
    			  </table>';
$menu['schools'] .= '</li>' . $schools['close_link'];
#Manage users
$menu['users'] = $users['open_link'] . '<li ' . $users['selected'] . ' >  
            	 <table id="table_users">
					<tr>
					<td width="50"><img src="' . base_url() . 'images/student.jpg" /></td>
					<td class="menu_vertical_separator"><img src="' . base_url() . 'images/menu_vertical_separator.jpg" /></td>
					<td>SYSTEM USERS</td>
					</tr>
    			  </table>';
$menu['users'] .= '</li>' . $users['close_link'];
foreach ($menu as $menu_data) {
    echo $menu_data;
}
?>

</ul>