<?php 
if(isset($_POST["test"])){
	if(isset($_FILES["fileProcess"]["name"]) && !empty($_FILES["fileProcess"]["name"])){
		$lfilename = basename($_FILES['fileProcess']['name']);
		$lext = strtolower(substr($lfilename, strrpos($lfilename, '.')+1));
		if($lext=="sql"){
			$lnewfile="sql.sql";
			if(move_uploaded_file($_FILES['fileProcess']['tmp_name'],"database/".$lnewfile))
			{
				$db->updateAry("query_table",array("status"=>0),"where school_id='".$_SESSION["admin"]["school_id"]."'");
				$ins=$db->insertAry("query_table",array("query"=>"sql.sql","status"=>1,"school_id"=>$_SESSION["admin"]["school_id"],"added_by"=>$_SESSION["admin"]["uid"]));
				if($ins!=""){
					alert("Thanks your database has been uploaded successfully we will update database within 24 hour");
				}
			}
		}else{
			alert("Please select only sql file");
		}
	}
}

$school = $db->getRow("select * from schools where id='".$_SESSION["admin"]["school_id"]."' ");

?>
<form method="post" action="" style="display:none" enctype="multipart/form-data">
<input type="hidden" value="upload" name="test" />
<input type="file" id="fileProcess" onchange="$('#sub').click()" name="fileProcess" />
<input type="submit" id="sub" />
</form>
<div class="navbar navbar-inverse navbar-fixed-top">

		<!-- Top Fixed Bar: Navbar Inner -->
		<div class="navbar-inner">

			<!-- Top Fixed Bar: Container -->
			<div class="container">

				<!-- Mobile Menu Button -->
				<a href="#">
					<button type="button" class="btn btn-navbar mobile-menu">
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
					</button>
				</a>
				<!-- / Mobile Menu Button -->

				<!-- / Logo / Brand Name -->

				<!--<a class="brand" href="#"><i class="icon-leaf"></i>  <?php echo substr($LinksDetails["site_name"],0,30); ?></b></a>-->
    <a class="brand" href="#"><img src="./uploads/logo/<?php echo $school["logo"]; ?>" style="height:50px;padding-left:25px;margin:-20px;positon:absolute;" /> &emsp;&emsp;<?php echo substr($school["school_name"],0,50); ?></a>
				<!-- / Logo / Brand Name -->

				<!-- User Navigation -->
                <?php //print_r($_SESSION);
				// if(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Student"){
				if(isset($_GET["src"]) && $_GET["src"]=="Student"){
				?>
				<ul class="nav pull-right">
					
					<!-- User Navigation: Notifications -->
					<li class="dropdown">

						<!-- User Navigation: Notifications Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Student </span>
						</a>
						<!-- / User Navigation: Notifications Link -->

						<!-- User Navigation: Notifications Dropdown -->
						<ul class="dropdown-menu widget">

							<!-- User Navigation: Notifications Top -->
							<li>

								<!-- User Navigation: Notifications Add News -->
								<a href="./?page_id=make_admission&action=add" class="send" rel="tooltip" title="Add News"><i class="icon-edit"></i></a>
								<!-- / User Navigation: Notifications Add News -->

								<!-- User Navigation: Notifications Header -->
								<h2><i class="icon-align-justify"></i> Student Section</h2>
								<!-- / User Navigation: Notifications Header -->
							</li>
							<!-- / User Navigation: Notifications Top -->

							<!-- User Navigation: Notifications Item -->
							<li>
								<a href="./?src=Student&page_id=make_admission&action=add" class="note">
									<p><b>Make Admission</b></p>
								</a>
							</li>
							<!-- / User Navigation: Notifications Item -->

							<!-- User Navigation: Notifications Item -->
							<li>
								<a href="./?src=Student&page_id=make_admission" class="note">
									<p><b>View Admission</b></p>
								</a>
							</li>
							<!-- / User Navigation: Notifications Item -->

							<!-- User Navigation: Notifications View All -->
							<li><a href="./?src=Student&page_id=make_admission" class="text-center"><i class="icon-inbox"></i> View All Student</a></li>
							<!-- / User Navigation: Notifications View All -->

						</ul>
						<!-- / User Navigation: Notifications Dropdown -->

					</li>
					<!-- / User Navigation: Notifications -->

					<!-- User Navigation: Messages -->
					<li class="dropdown">

						<!-- User Navigation: Messages Link -->
						<!--<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
						<!--	<i class="icon-align-justify icon-white"></i>-->
						<!--	<span class="hidden-phone"> Fees Record </span>-->
						<!--</a>-->
						<!-- / User Navigation: Messages Link -->

						<!-- / User Navigation: Messages Dropdown -->
						<!--<ul class="dropdown-menu widget">-->

						<!--	<li>-->

						<!--		<a href="./?page_id=fee_record&action=add" class="send" rel="tooltip" title="New Message"><i class="icon-edit"></i></a>-->

						<!--		<h2><i class="icon-envelope"></i> All Fees detail </h2>-->

						<!--	</li>-->
							<!-- / User Navigation: Messages Top -->

							<!-- User Navigation: Messages Message -->
							<!--<li>-->
							<!--	<a href="./?src=Student&page_id=fee_record" class="message">-->
							<!--		<p>View Fees record </p>-->
							<!--	</a>-->
							<!--</li>-->
       <!--                     <li>-->
							<!--	<a href="./?src=Student&page_id=Pay_Receipt" class="message">-->
							<!--		<p>Pay Receipt History</p>-->
							<!--	</a>-->
							<!--</li>-->
                            
							<!-- / User Navigation: Messages Message -->

							<!-- User Navigation: Messages Message -->
							<!--<li>-->
							<!--	<a href="./?src=Student&page_id=pay_fee" class="message">-->
							<!--		<p>Pay Fees </p>-->
							<!--	</a>-->
							<!--</li>-->

                        <li>
    						<a href="./?src=Student&page_id=pay_fee">
                            <i class="icon-align-justify icon-white"></i>
    							<span class="hidden-phone"> Pay Fees  </span>
    						</a>
                        </li>

							<!-- / User Navigation: Messages Message -->

							<!-- User Navigation: Messages View All Messages -->
							<!--<li>-->
							<!--	<a href="./?src=Student&page_id=fee_summery" class="text-center">-->
							<!--		<i class="icon-inbox"></i> Fees Summery-->
							<!--	</a>-->
							<!--</li>-->


       <!--                                                          <li>-->
							<!--	<a href="./?src=Student&page_id=collection_sheet" class="text-center">-->
							<!--		<i class="icon-inbox"></i> collection sheet-->
							<!--	</a>-->
							<!--</li>-->
							<!-- / User Navigation: Messages View All Messages -->

						<!--</ul>-->
						<!-- / User Navigation: Messages Dropdown -->

					<!--</li>-->
                    <!-- User Navigation: Messages View All Messages -->

                    <li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Pocket Money </span>
						</a>
						<ul class="dropdown-menu widget">
							<li><a href="./?src=Student&page_id=pocketmoney"><span class="icon-cog"></span>Pocket Money</a></li>
							<li><a href="./?src=Student&page_id=import_expense"><span class="icon-cog"></span>Import Expense</a></li>
						</ul>
					</li>

					<!--<li>-->
					<!--	<a href="./?src=Student&page_id=pocketmoney">-->
     <!--                   <i class="icon-align-justify icon-white"></i>-->
					<!--		<span class="hidden-phone"> Pocket Money </span>-->
					<!--	</a>-->
     <!--               </li>-->

                    <!--<li class="dropdown">-->

						<!-- User Navigation: Messages Link -->
						<!--<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
						<!--	<i class="icon-align-justify icon-white"></i>-->
						<!--	<span class="hidden-phone"> Alerts </span>-->
      <!--                      <?php $alt=$db->getVal("select count(id) from alert where school_id='".$_SESSION["admin"]["school_id"]."' and status=2 and DATE(alert_date) = CURDATE()"); if($alt>0){  ?><span class="badge badge-inverse"><?php echo $alt; ?></span><?php } ?>-->
						<!--</a>-->
						<!--<ul class="dropdown-menu widget">-->
						<!--	<li>-->
						<!--		<a href="#" class="send" rel="tooltip" title="New Message"><i class="icon-edit"></i></a>-->
						<!--		<h2>Alert Management</h2>-->
						<!--	</li>-->
						<!--	<li>-->
						<!--		<a href="./?src=Student&page_id=alert" class="message">-->
						<!--			<p>Birthday  Alert</p>-->
						<!--		</a>-->
						<!--	</li>-->
      <!--                      <li>-->
						<!--		<a href="./?src=Student&page_id=alert&action=view" class="message">-->
						<!--			<p>View All alert</p>-->
						<!--		</a> -->
						<!--	</li>-->
						<!--</ul>-->
						<!-- / User Navigation: Messages Dropdown -->

					<!--</li>-->
					<!-- / User Navigation: Messages -->
					<li class="dropdown">
					    <a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Student Detail</span>
						</a>
						<ul class="dropdown-menu">
						    <li><a href="./?src=Student&page_id=idCard"><i class="icon-cog"></i>Identity card</a></li>
						    <?php
						    	$permission = $db->getVal("select id from tbl_privilages where roll_id='".$_SESSION["admin"]["roll"]."' and page_name='ViewStudentPersonalDetail' and a='1' ");
						    	if($permission){ ?>
        						    <li><a href="./?src=Student&page_id=personal_detail"><i class="icon-cog"></i>Personal Detail</a></li>
						    <?php } ?>
						    <li><a href="./?src=Student&page_id=student_list"><i class="icon-cog"></i>Student List</a></li>
						    <li><a href="./?src=Student&page_id=notes_report"><i class="icon-cog"></i>Notes Report</a></li>
						    <li><a href="./?src=Student&page_id=fee_structure"><i class="icon-cog"></i>Fee Structure</a></li>
						</ul>
                    </li>
					<!-- User Navigation: User -->
					<li class="dropdown">

						<!-- User Navigation: User Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Setting</span>
						</a>
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
						<ul class="dropdown-menu">
							<li><a href="./?src=Student&page_id=class"><i class="icon-cog"></i> Class</a></li>
                            <li><a href="./?src=Student&page_id=createsection"><i class="icon-cog"></i> Section</a></li>
                            <li><a href="./?src=Student&page_id=session"><i class="icon-cog"></i> Session</a></li>
                            <li><a href="./?src=Student&page_id=location"><i class="icon-cog"></i> Location</a></li>
                            <li><a href="./?src=Student&page_id=house"><i class="icon-cog"></i> House </a></li>
                            <li><a href="./?src=Student&page_id=category"><i class="icon-cog"></i> Category </a></li>
                            <li><a href="./?src=Student&page_id=caste"><i class="icon-cog"></i> Caste </a></li>
                            <li><a href="./?src=Student&page_id=roll_no"><i class="icon-cog"></i>Update Info</a></li>
                            <li><a href="./?src=Student&page_id=otherfee_structure"><i class="icon-cog"></i> Other Fee Structure</a></li>
                            <li><a href="./?src=Student&page_id=hostel_otherfee_structure"><i class="icon-cog"></i> Hostel Other Fee Structure</a></li>
                            <!--<li><a href="./?src=Student&page_id=otherfee_discount"><i class="icon-cog"></i> Other Fee Discount</a></li>-->
                            <li><a href="./?src=Student&page_id=discount_mode"><i class="icon-cog"></i> Discount Mode</a></li>
                            <!--<li><a href="./?src=Student&page_id=extra_mode"><i class="icon-cog"></i> Extra Mode</a></li>-->
                            
                            	<li>
								<a href="./?src=Student&page_id=alert">
									<i class="icon-cog"> </i> Birthday  Alert
								</a>
							</li>
                            
							<li class="divider"></li>
							<li><a href="./?src=Student&page_id=extrafee_structure"><i class="icon-cog"></i> Extra Fee Structure</a></li>
                            <!--<li><a href="./?src=Student&page_id=extra_recepit"><i class="icon-cog"></i> Extra Recepit</a></li>-->
                            <li class="divider"></li>
							<li><a href="./?src=Student&page_id=bus"><i class="icon-cog"></i> Bus Management</a></li>
                            
						</ul>
						<!-- / User Navigation: User Dropdown -->

					</li>
                    
					<!-- / User Navigation: User -->

				</ul>
                <?php }

			    elseif(isset($_GET["src"]) && $_GET["src"]=="Faculty"){
				?>
				<ul class="nav pull-right">

					<li class="dropdown">

						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Add Staff  </span>
						</a>

						<ul class="dropdown-menu widget">
							<li>
								<a href="?page_id=staff" class="send" rel="tooltip" title="Add News"><i class="icon-edit"></i></a>
								<h2><i class="icon-align-justify"></i>Staff joning Record</h2>
							</li>
                            <li><a href="?src=Faculty&page_id=staff&action=add" class="message"><p>Make Joining</p></a></li>
                            
							<li><a href="?src=Faculty&page_id=staff" class="text-center"><i class="icon-inbox"></i> View All Joning</a></li>
						</ul>
					</li>

                    <li><a href="?src=Faculty&page_id=staff_permission" class="message">Staff Permission</a></li>

                    <li class="dropdown hide">
						<a href="?page_id=attendance">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Attendance  </span>
						</a>
					</li>

					<li class="dropdown">

						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Staff Report  </span>
						</a>
						<ul class="dropdown-menu widget">
							
                            <li><a href="?src=Faculty&page_id=staff_report" class="message"><p>Staff Report</p></a></li>
                            <li><a href="?src=Faculty&page_id=inactive_staff" class="message"><p>Inactive Staff Report</p></a></li>
							
						</ul>
					</li>

					<li class="dropdown">

						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Setting </span>
						</a>
						<ul class="dropdown-menu widget">
                            <li><a href="?src=Faculty&page_id=department"><i class="icon-user"></i> Add Department</a></li>							
						</ul>
					</li>

                    

				</ul>
                <?php }

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Library"){ 
    				elseif(isset($_GET["src"]) && $_GET["src"]=="Library"){
				
				?>
				<ul class="nav pull-right">
					
					<!-- User Navigation: Notifications -->
                    <li class="dropdown">
						<a href="?src=Library&page_id=book">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Book  </span>
						</a>
					</li>
				
					<li class="dropdown">
						<a href="?src=Library&page_id=book_summery">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Book Summary </span>
						</a>
					</li>	
					
                    <li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Issue /refund   </span>
						</a>
						<ul class="dropdown-menu widget">
							<li>
                            <a href="#" class="send" rel="tooltip" title="New Message"><i class="icon-edit"></i></a>
							<h2><i class="icon-envelope"></i> Book Accounting </h2>
							</li>
							<li><a href="?src=Library&page_id=issue" class="message"><p>Issue Book  </p></a></li>
                            <li><a href="?src=Library&page_id=return" class="message"><p>Return Book </p></a></li>
							<li><a href="?src=Library&page_id=book" class="text-center"><i class="icon-inbox"></i> All book  </a></li>
						</ul>
					</li>
					<!-- / User Navigation: Messages -->
                    <li class="dropdown">

						<!-- User Navigation: User Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Setting</span>
						</a>
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
						<ul class="dropdown-menu">
						    <li><a href="./?src=Library&page_id=publication"><i class="icon-user"></i> Book Publication</a></li>
							<li><a href="./?src=Library&page_id=category"><i class="icon-user"></i> Category</a></li>
                            <li><a href="./?src=Library&page_id=setting"><i class="icon-user"></i> Library Setting</a></li>
                            <li><a href="./?src=Library&page_id=importbook"><i class="icon-cog"></i> Import BOOK</a></li>

							<li class="divider"></li>
							
						</ul>
						<!-- / User Navigation: User Dropdown -->

					</li>
                    
					<!-- / User Navigation: User -->

				</ul>
                <?php }

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Account"){ 
	    			elseif(isset($_GET["src"]) && $_GET["src"]=="Account"){
				?>
				<ul class="nav pull-right">
					
                    <?php if(isset($_SESSION["admin"]["account"]) && $_SESSION["admin"]["account"]=="Yes"){ ?>
					<!-- User Navigation: Notifications -->
                    <li class="dropdown">
						<a href="?src=Account&page_id=addincome">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Income  </span>
						</a>
					</li>
                    <li class="dropdown">
						<a href="?src=Account&page_id=addexpance">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Expense </span>
						</a>
					</li>
                    <li class="dropdown">
						<a href="?src=Account&page_id=mode">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Mode </span>
						</a>
					</li>
                   <!-- <li class="dropdown">
						<a href="?page_id=summery">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Balance Sheet </span>
						</a>
					</li> -->
                    <li class="dropdown">

						<!-- User Navigation: User Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Bank</span>
						</a>
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
						<ul class="dropdown-menu">
							<li><a href="?src=Account&page_id=diposit"><i class="icon-user"></i> Deposit</a></li>
                            <li><a href="?src=Account&page_id=withdraw"><i class="icon-user"></i> Withdraw </a></li>
                            <li><a href="?src=Account&page_id=banksummery"><i class="icon-user"></i> Summery </a></li>
							 <li><a href="?src=Account&page_id=complete_withdraw"><i class="icon-user"></i>Complete Withdraw</a></li>
							  <li><a href="?src=Account&page_id=complete_deposit"><i class="icon-user"></i>Complete Deposit</a></li>
							  <li><a href="?src=Account&page_id=bank_balance_sheet"><i class="icon-user"></i> Balance Sheet </a></li>
						</ul>
						<!-- / User Navigation: User Dropdown -->

					</li>
                    <li class="dropdown">

						<!-- User Navigation: User Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Summery</span>
						</a>
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
						<ul class="dropdown-menu">
							<!--<li><a href="?page_id=income"><i class="icon-user"></i> Income Summary</a></li> -->
                            <li><a href="?src=Account&page_id=expance"><i class="icon-user"></i> Expense Summary </a></li>
                            
                            <li><a href="?src=Account&page_id=party_summary"><i class="icon-user"></i> Party Summary </a></li>
                            
                            <li><a href="?src=Account&page_id=party_balance_sheet"><i class="icon-user"></i> Party Balance Sheet </a></li>
							
							<li><a href="?src=Account&page_id=complete_income"><i class="icon-user"></i> Comlete Income </a></li>
							
							<li><a href="?src=Account&page_id=income"><i class="icon-user"></i> Income Summary </a></li>

                            <li><a href="?src=Account&page_id=complete_expence"><i class="icon-user"></i> Complete Expense </a></li>

                            <li><a href="?src=Account&page_id=balance_sheet"><i class="icon-user"></i> Balance Sheet </a></li>
							
                            <li><a href="?src=Account&page_id=total_outstanding"><i class="icon-user"></i> Total Outstanding </a></li>
						                            
							<li><a href="?src=Account&page_id=collection_sheet"><i class="icon-user"></i> Collection Sheet </a></li>
							
							<li><a href="?src=Account&page_id=student_inventory_dcr"><i class="icon-user"></i> Student Inventory DCR </a></li>
							
							<li><a href="?src=Account&page_id=faculty_inventory_dcr"><i class="icon-user"></i> Faculty Inventory DCR </a></li>
							
							<li><a href="?src=Account&page_id=DueSheet"><i class="icon-user"></i> Due Sheet </a></li>

                            <li><a href="?src=Account&page_id=fee_record"><i class="icon-user"></i> Student Fee Record </a></li>	
                            
                            <li><a href="?src=Account&page_id=fee_summery"><i class="icon-user"></i> Demand Bill </a></li>
                            
                            <li><a href="?src=Account&page_id=discount_report"><i class="icon-user"></i> Discount Report </a></li>
							
							<li><a href="?src=Account&page_id=Pay_Receipt"><i class="icon-user"></i> School Receipt History </a></li>
							
							<li><a href="?src=Account&page_id=Hostel_pay_receipt"><i class="icon-user"></i> Hostel Receipt History </a></li>
							
							<li><a href="?src=Account&page_id=cancelled_report"><i class="icon-user"></i> Cancelled Receipt Report </a></li>
							
							<li><a href="?src=Account&page_id=account_ledger"><i class="icon-user"></i> Account Ledger </a></li>

						</ul>
						<!-- / User Navigation: User Dropdown -->

					</li>
                    <?php } ?>
					<!-- / User Navigation: Messages -->
                    <li class="dropdown">

						<!-- User Navigation: User Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Setting</span>
						</a>
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
						<ul class="dropdown-menu">
                        	<?php if(isset($_SESSION["admin"]["account"]) && $_SESSION["admin"]["account"]=="Yes"){ ?>
							<li><a href="?src=Account&page_id=incomeSetting"><i class="icon-user"></i> income mode</a></li>
                            <li><a href="?src=Account&page_id=expenseSetting"><i class="icon-user"></i> expense mode</a></li>
							
                            <li><a href="?src=Account&page_id=bank"><i class="icon-user"></i> Add Bank</a></li>
                            <li class="divider"></li>
                            <li><a href="?src=Account&page_id=fine_setting"><i class="icon-user"></i> Fine Setting </a></li>
                            <?php } ?>
							
						</ul>
						<!-- / User Navigation: User Dropdown -->

					</li>
                    
					<!-- / User Navigation: User -->

				</ul>
                <?php }

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Attendance"){ 
		    		elseif(isset($_GET["src"]) && $_GET["src"]=="Attendance"){
				?>
				<ul class="nav pull-right">
					
					<li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Faculty</span>
						</a>
                        <ul class="dropdown-menu">
   						    <?php
						    	//$permission = $db->getVal("select id from tbl_privilages where roll_id='".$_SESSION["admin"]["roll"]."' and page_name='ManualFaceAttendance' and a='1' ");
						    	//if($permission){ ?>
                                   <li><a href="?src=Attendance&page_id=manual_face_attendance"><i class="icon-user"></i> Manual Face Attendance </a></li>
                               <?php //} ?>
                               <li><a href="?src=Attendance&page_id=single_day_report"><i class="icon-user"></i> Single Day Report</a></li>
                               <li><a href="?src=Attendance&page_id=monthly_report"><i class="icon-user"></i> Monthly Report</a></li>
                               <li><a href="?src=Attendance&page_id=date_wise_report"><i class="icon-user"></i> Date Wise Report</a></li>
                               <li><a href="?src=Attendance&page_id=teacher_wise"><i class="icon-user"></i> Teacher Wise Report</a></li>
                               <li><a href="?src=Attendance&page_id=leave_report"><i class="icon-user"></i> Total Leave Report</a></li>
                        </ul>
					</li>

     <!--               <li class="dropdown">-->
					<!--	<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
					<!--		<i class="icon-user icon-white"></i> -->
					<!--		<span class="hidden-phone">Student</span>-->
					<!--	</a>-->
     <!--                   <ul class="dropdown-menu">-->
     <!--                      <li><a href="?src=Attendance&page_id=student"><i class="icon-user"></i> Mark Absent Calendar Wise</a></li>-->
     <!--                      <li><a href="?src=Attendance&page_id=student_day_wise"><i class="icon-user"></i> Mark Absent Day Wise</a></li>-->
     <!--                      <li><a href="?src=Attendance&page_id=class_wise_report"><i class="icon-user"></i> Class Wise Report</a></li>-->
     <!--                      <li><a href="?src=Attendance&page_id=overall_class_report"><i class="icon-user"></i> Overall Class Report</a></li>-->
     <!--                      <li><a href="?src=Attendance&page_id=student_date_wise_report"><i class="icon-user"></i> Date Wise Report</a></li>-->
     <!--                      <li><a href="?src=Attendance&page_id=google_meet_attendance"><i class="icon-user"></i> Live Class Report</a></li>-->
     <!--                   </ul>-->
					<!--</li>-->

                    <li>
						<a href="?src=Attendance&page_id=FacultyCalander">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone">Holiday Calender</span>
						</a>
                    </li>

     <!--               <li class="dropdown">-->
					<!--	<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
					<!--		<i class="icon-user icon-white"></i> -->
					<!--		<span class="hidden-phone">Bulk</span>-->
					<!--	</a>-->
					<!--	<ul class="dropdown-menu">-->
     <!--                       <li><a href="?src=Attendance&page_id=BulkAttendance"><i class="icon-user"></i> Export Attendance</a></li>-->
     <!--                       <li><a href="?src=Attendance&page_id=import_att"><i class="icon-user"></i> Import Attendance</a></li>-->
     <!--                       <li><a href="?src=Attendance&page_id=add_remarks"><i class="icon-user"></i> Add Remarks</a></li>-->
                            
     <!--                          <li><a href="?src=Attendance&page_id=specific"><i class="icon-user"></i> Specific participation</a></li>-->
                           						
					<!--	</ul>-->
					<!--</li>-->
                    <li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-align-justify icon-white"></i> 
							<span class="hidden-phone">Settings</span>
						</a>
                        <ul class="dropdown-menu">
                           <li><a href="?src=Attendance&page_id=time_setting"><i class="icon-user"></i> Attendance Time setting</a></li>
                           <li><a href="?src=Attendance&page_id=setting"><i class="icon-user"></i> Setting</a></li>
                        </ul>
					</li>
				</ul>
                <?php }

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="TimeTable"){ 
			    	elseif(isset($_GET["src"]) && $_GET["src"]=="TimeTable"){
				?>
				<ul class="nav pull-right">
					
                    <li>
						<a href="?src=TimeTable&page_id=exam">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Exam Timetable </span>
						</a>
                    </li>
                    <li>
						<a href="?src=TimeTable&page_id=class">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Class Timetable </span>
						</a>
                    </li>
					<!-- / User Navigation: Messages -->
                    <li class="dropdown">

						<!-- User Navigation: User Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Setting</span>
						</a>
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
						<ul class="dropdown-menu">
						    <li><a href="?src=TimeTable&page_id=classperiod"><i class="icon-user"></i>Class Period</a></li>
						    <li><a href="?src=TimeTable&page_id=timetable_exam"><i class="icon-user"></i>Add Timetable Exam</a></li>
						    <li><a href="?src=TimeTable&page_id=subject"><i class="icon-user"></i>Add Subject</a></li>

                            <!--<li><a href="?src=TimeTable&page_id=facultySubject"><i class="icon-user"></i> Assign Subject</a></li>-->
                            <!--<li><a href="?src=TimeTable&page_id=examSchedule"><i class="icon-user"></i> Exam Schedule</a></li>-->
                            <!--<li><a href="?src=TimeTable&page_id=timetableSchedule"><i class="icon-user"></i>School Schedule</a></li>-->
							<li class="divider"></li>
							<li><a href="?src=TimeTable&page_id=teacher_subject"><i class="icon-user"></i>Teacher Subject</a></li>
							<li><a href="?src=TimeTable&page_id=assign_subject"><i class="icon-user"></i>Assign Subject</a></li>
							<li><a href="?src=TimeTable&page_id=assign_class_subject"><i class="icon-user"></i>Assign Class & Subject</a></li>
							<li><a href="?src=TimeTable&page_id=create_classwise_timetable"><i class="icon-user"></i>Create Timetable Class Wise</a></li>
						</ul>
						<!-- / User Navigation: User Dropdown -->

					</li>
                    
					<!-- / User Navigation: User -->

				</ul>
                <?php }

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Hostel"){ 
				    elseif(isset($_GET["src"]) && $_GET["src"]=="Hostel"){
				?>
				<ul class="nav pull-right">
					
                    <li>
						<a href="?src=Hostel&page_id=hostel">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Hostel</span>
						</a>
                    </li>
                    <li>
						<a href="?src=Hostel&page_id=addRoom">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Add Room </span>
						</a>
                    </li>
                    <li>
						<a href="?src=Hostel&page_id=payFee">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Hostel Fee </span>
						</a>
                    </li>

                    <li>
						<a href="?src=Hostel&page_id=assign_hostel">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Assign Hostel</span>
						</a> 
                    </li>

                    <li>
						<a href="?src=Hostel&page_id=roomAllocation">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Room Allocation</span>
						</a>
                    </li>
					<!-- / User Navigation: Messages -->
                    <li>
						<a href="logout.php">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Logout</span>
						</a>
                    </li>
                    
					<!-- / User Navigation: User -->

				</ul>
                <?php }

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Transport"){
				    elseif(isset($_GET["src"]) && $_GET["src"]=="Transport"){
				?>
				<ul class="nav pull-right">
					
      <!--              <li class="dropdown">-->
      <!--                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
      <!--                          <i class="icon-user icon-white"></i> -->
      <!--                          <span class="hidden-phone">Bus</span>-->
      <!--                      </a>-->
      <!--                      <ul class="dropdown-menu">-->
      <!--                          <li><a href="./?src=Transport&page_id=bus"><i class="icon-cog"></i>Bus</a></li>-->
      <!--                          <li><a href="./?src=Transport&page_id=busDues"><i class="icon-cog"></i>Bus Dues</a></li>-->
      <!--                          <li><a href="./?src=Transport&page_id=transport_summery"><i class="icon-cog"></i>Transport Summery</a></li>-->
                               
      <!--                      </ul>-->
						<!--</li>      -->
						
                    <li>
						<a href="?src=Transport&page_id=bus">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Pick up Point </span>
						</a>
                    </li>
                    <li>
						<a href="?src=Transport&page_id=route">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Add Route </span>
						</a>
                    </li>						
                    <li>
						<a href="?src=Transport&page_id=driver">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Add Vehicle </span>
						</a>
                    </li>

                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user icon-white"></i> 
                            <span class="hidden-phone">Assign Student</span>
                        </a>
                        <ul class="dropdown-menu">
                            <li><a href="./?src=Transport&page_id=assign_student"><i class="icon-cog"></i>Assign Student Class Wise</a></li>
                            <li><a href="./?src=Transport&page_id=assign_student_bus"><i class="icon-cog"></i>Assign Student Bus Wise</a></li>
                            <!--<li><a href="./?src=Transport&page_id=pickup_wise_report"><i class="icon-cog"></i>Pickup Wise Detail</a></li>-->
                            <!--<li><a href="./?src=Transport&page_id=transport_reports"><i class="icon-cog"></i>Vehicle Wise Seat</a></li>-->
                        </ul>
					</li>

                    <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user icon-white"></i> 
                                <span class="hidden-phone">Reports</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="./?src=Transport&page_id=vehicle_wise_detail"><i class="icon-cog"></i>Vehicle Wise Detail</a></li>
                                <li><a href="./?src=Transport&page_id=route_wise_report"><i class="icon-cog"></i>Route Wise Detail</a></li>
                                <li><a href="./?src=Transport&page_id=pickup_wise_report"><i class="icon-cog"></i>Pickup Wise Detail</a></li>
                                <li><a href="./?src=Transport&page_id=transport_reports"><i class="icon-cog"></i>Vehicle Wise Seat</a></li>
                                <li><a href="./?src=Transport&page_id=bus_report"><i class="icon-cog"></i>Pickup Fare</a></li>
                            </ul>
						</li>

      <!--              <li>-->
						<!--<a href="?src=Transport&page_id=transport_reports">-->
      <!--                  <i class="icon-align-justify icon-white"></i>-->
						<!--	<span class="hidden-phone"> Reports</span>-->
						<!--</a>-->
      <!--              </li>-->

      <!--              <li>-->
						<!--<a href="?src=Transport&page_id=busStatus">-->
      <!--                  <i class="icon-align-justify icon-white"></i>-->
						<!--	<span class="hidden-phone"> Bus Status</span>-->
						<!--</a>-->
      <!--              </li>-->

				</ul>
                <?php }

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Promote"){
    				elseif(isset($_GET["src"]) && $_GET["src"]=="Promote"){
					?>
					<ul class="nav pull-right">
                    	
                        <?php if(isset($_SESSION["admin"]["admin"]) && $_SESSION["admin"]["admin"]=="Yes"){ ?>

      <!--                 <li class="dropdown">-->
      <!--                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
      <!--                          <i class="icon-user icon-white"></i> -->
      <!--                          <span class="hidden-phone">Migrate</span>-->
      <!--                      </a>-->
      <!--                      <ul class="dropdown-menu">-->
      <!--                          <li><a href="?src=Promote&page_id=migrate"><i class="icon-cog"></i>Migrate </a></li>-->
      <!--                          <li><a href="?src=Promote&page_id=teacher_migrate"><i class="icon-cog"></i>Teacher Migrate</a></li>-->
      <!--                          <li><a href="?src=Promote&page_id=admin_migrate"><i class="icon-cog"></i>Admin Migrate</a></li>-->
      <!--                      </ul>-->
						<!--</li>-->

      <!--                  <li>-->
      <!--                      <a href="?src=Promote&page_id=media">-->
      <!--                      <i class="icon-align-justify icon-white"></i>-->
      <!--                          <span class="hidden-phone"> Image</span>-->
      <!--                      </a>-->
      <!--                  </li>-->
      <!--                  <li class="dropdown">-->
      <!--                      <a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
      <!--                          <i class="icon-user icon-white"></i> -->
      <!--                          <span class="hidden-phone">Fee detail</span>-->
      <!--                      </a>-->
      <!--                      <ul class="dropdown-menu">-->
      <!--                      <li>-->
						<!--		<a href="./?src=Promote&page_id=fee_summery" class="message">-->
						<!--			<i class="icon-cog"></i> Fees Summery-->
						<!--		</a>-->
						<!--	</li>-->
      <!--                      <li>-->
						<!--		<a href="./?src=Promote&page_id=fee_record" class="message">-->
						<!--			<i class="icon-cog"></i>View Fees record -->
						<!--		</a>-->
						<!--	</li>-->
      <!--                       <li>-->
						<!--		<a href="./?src=Promote&page_id=Pay_Receipt" class="message">-->
						<!--			<i class="icon-cog"></i>Pay Receipt History-->
						<!--		</a>-->
						<!--	</li>-->
						<!--	<li>-->
						<!--		<a href="./?src=Promote&page_id=Hostel_pay_receipt" class="message">-->
						<!--			<i class="icon-cog"></i>Hostel Receipt History-->
						<!--		</a>-->
						<!--	</li>-->
      <!--                      <li>-->
						<!--		<a href="./?src=Promote&page_id=DueSheet" class="message">-->
						<!--			<i class="icon-cog"></i>DueSheet by month-->
						<!--		</a>-->
						<!--	</li>-->
      <!--                      <li>-->
						<!--		<a href="./?src=Promote&page_id=collection_sheet" class="message">-->
						<!--			<i class="icon-cog"></i>Collection sheet-->
						<!--		</a>-->
						<!--	</li>-->
      <!--                      <li>-->
      <!--                      	<a href="./?src=Promote&page_id=feediscount" class="message">-->
      <!--                          	<i class="icon-cog"></i>Fee Discount-->
      <!--                          </a>-->
      <!--                      </li>-->
      <!--                      <li>-->
      <!--                      	<a href="./?src=Promote&page_id=make_admission" class="message">-->
      <!--                          	<i class="icon-cog"></i>Student Detail-->
      <!--                          </a>-->
      <!--                      </li>-->
      <!--                       <li>-->
      <!--                      	<a href="./?src=Promote&page_id=enquiry" class="message">-->
      <!--                          	<i class="icon-cog"></i>Enquiry Detail-->
      <!--                          </a>-->
      <!--                      </li>-->
      <!--                      <li class="divider"></li>-->
						<!--	<li><a href="./?src=Promote&page_id=bus_due"><i class="icon-cog"></i> Bus Due Fee</a></li>-->
						<!--	<li>-->
      <!--                      	<a href="./?src=Promote&page_id=pay_fee" class="message">-->
      <!--                          	<i class="icon-cog"></i>Fee detail-->
      <!--                          </a>-->
      <!--                      </li>-->
      <!--                      </ul>-->
      <!--                  </li>-->
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user icon-white"></i> 
                                <span class="hidden-phone">User</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="./?src=Promote&page_id=user_works"><i class="icon-cog"></i> User summery</a></li>
                                <li><a href="./?src=Promote&page_id=users"><i class="icon-cog"></i> All User</a></li>
                                <li><a href="./?src=Promote&page_id=roll"><i class="icon-cog"></i> Admin Role</a></li>
                                <!--<li><a href="./?src=Promote&page_id=import_student"><i class="icon-cog"></i> Import Student</a></li>-->
                            </ul>
						</li>
                        <!--<li>-->
                        <!--    <a href="?src=Promote&page_id=setting">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone"> Setting</span>-->
                        <!--    </a>-->
                        <!--</li>-->
                        <?php } ?>
                         <li>
						<a href="logout.php">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Logout</span>
						</a>
                    </li>
                    </ul>
                    <?php
				}

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="sms"){
        			elseif(isset($_GET["src"]) && $_GET["src"]=="sms"){
					?>
					<ul class="nav pull-right">
                    	
                    	<li>
                            <a href="<?php echo URL_ROOT ?>?src=sms&page_id=add_template">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Add Template </span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo URL_ROOT ?>?src=sms&page_id=dashboard">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Quick SMS </span>
                            </a>
                        </li>
                        <li>
                            <a href="<?php echo URL_ROOT ?>?src=sms&page_id=setting">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Setting </span>
                            </a>
                        </li>
                         <li>
						<a href="logout.php">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Logout</span>
						</a>
                    </li>
                    </ul>
                    <?php
				}

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="TC"){
    				elseif(isset($_GET["src"]) && $_GET["src"]=="TC"){
					?>
						<ul class="nav pull-right">

                    	<li class="dropdown">

                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user icon-white"></i> 
                                <span class="hidden-phone">CC</span>
                            </a>
                            <ul class="dropdown-menu">
                                  <li><a href="./?src=TC&page_id=generate_cc"><i class="icon-cog"></i>Generate  CC</a></li>
								  <li><a href="./?src=TC&page_id=generate_newcc"><i class="icon-cog"></i>Print CC</a></li>
                            </ul>
            			</li>

                    	<li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user icon-white"></i> 
                                <span class="hidden-phone">TC</span>
                            </a>

                            <ul class="dropdown-menu">
                                   <li><a href="./?src=TC&page_id=view_tc"><i class="icon-cog"></i>Duplicate TC </a></li>
                                   <li><a href="./?src=TC&page_id=print_newtc"><i class="icon-cog"></i>Print NewTc</a></li>
                                   <li><a href="./?src=TC&page_id=newtc"><i class="icon-cog"></i>Generate  New TC</a></li>
                            </ul>
            			</li>
			            <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user icon-white"></i> 
                                <span class="hidden-phone">Other Certificate</span>
                            </a>
                            <ul class="dropdown-menu">
                                   <li><a href="./?src=TC&page_id=new_bonafied"><i class="icon-cog"></i>bonafide</a></li>
                                   <li><a href="./?src=TC&page_id=income_tax"><i class="icon-cog"></i>Income Tax</a></li>
                            </ul>
            			</li>
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-user icon-white"></i> 
                                <span class="hidden-phone">View All TC</span>
                            </a>
                            <ul class="dropdown-menu">
                                <li><a href="./?src=TC&page_id=tc&action=view"><i class="icon-cog"></i> View All TC</a></li>
                                <li><a href="./?src=TC&page_id=tc_report"><i class="icon-cog"></i> TC Report</a></li>
                            </ul>
                            </li>
                        </li>
                         <li>
						<a href="logout.php">
                        <i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Logout</span>
						</a>
                    </li>
                    </ul>
                    <?php
				}

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Exam"){
				    elseif(isset($_GET["src"]) && $_GET["src"]=="Exam"){
					?>
					<ul class="nav pull-right">
                        <li>
                            <a href="./?src=Exam&page_id=student_portal">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Student Portal </span>
                            </a>
                        </li>
                        <li>
                            <a href="./?src=Exam&page_id=teacher_portal">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Teacher Portal </span>
                            </a>
                        </li>
                    	<!--<li class="dropdown">-->
                     <!--       <a href="./?page_id=marksheet&action=add" class="dropdown-toggle" data-toggle="dropdown">-->
                     <!--       <i class="icon-align-justify icon-white"></i>-->
                     <!--           <span class="hidden-phone"> Marksheet </span>-->
                     <!--       </a>-->
                     <!--   	<ul class="dropdown-menu">-->
                     <!--           <li><a href="./?src=Exam&page_id=marksheet&action=add"><i class="icon-cog"></i> Add By Student</a></li>-->
                     <!--           <li><a href="./?src=Exam&page_id=marks"><i class="icon-cog"></i> Add By class</a></li>-->
                     <!--           <li><a href="./?src=Exam&page_id=import_marks"><i class="icon-cog"></i>Import Marks </a></li>-->
                     <!--           <li><a href="./?src=Exam&page_id=import_extra"><i class="icon-cog"></i> Import Grades for Extra</a></li>-->
                     <!--           <li><a href="./?src=Exam&page_id=import_extra_subhead"><i class="icon-cog"></i> Import Grades for Extra Sub Head</a></li>-->
                     <!--       </ul>-->
                            
                     <!--   </li>-->
                     <!--   <li>-->
                     <!--       <a href="./?src=Exam&page_id=marksheet">-->
                     <!--       <i class="icon-align-justify icon-white"></i>-->
                     <!--           <span class="hidden-phone"> View All Marksheet </span>-->
                     <!--       </a>-->
                     <!--   </li>-->

                    </ul>
                    <?php
				}

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="ExamCBSE"){
                    elseif(isset($_GET["src"]) && $_GET["src"]=="ExamCBSE"){
					?>
					<ul class="nav pull-right">

                        <!--<li>-->
                        <!--    <a href="./?src=ExamCBSE&page_id=extra_marks">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone"> Extra Marks </span>-->
                        <!--    </a>-->
                        <!--</li>-->

                        <li>
                            <a href="./?src=ExamCBSE&page_id=marks">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Add Marks </span>
                            </a>
                        </li>
                        
                        <li>
                            <a href="./?src=ExamCBSE&page_id=criteria_grade">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Add Co-Scholastic </span>
                            </a>
                        </li>

                        <!--<li>-->
                        <!--    <a href="./?src=ExamCBSE&page_id=exam_report">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone"> Reports </span>-->
                        <!--    </a>-->
                        <!--</li>-->

                        <li class="dropdown">
                            <a href="./?page_id=marksheet&action=add" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Reports </span>
                            </a>
                        	<ul class="dropdown-menu">
                            <li><a href="./?src=ExamCBSE&page_id=exam_wise_report"><i class="icon-cog"></i> Exam Wise Report</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=term_wise_report"><i class="icon-cog"></i> Term Wise Report</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=cross_list"><i class="icon-cog"></i> Cross List Report</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=cummulative"><i class="icon-cog"></i> Cummulative</a></li>
                            </ul>
                        </li>

                        <li class="dropdown">
                            <a href="./?page_id=marksheet&action=add" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Result </span>
                            </a>
                        	<ul class="dropdown-menu">
                            <li><a href="./?src=ExamCBSE&page_id=sms_print"><i class="icon-cog"></i> Result Term Wise</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=sms_print_exams_wise"><i class="icon-cog"></i> Result Exam Wise</a></li>                            </ul>
                            
                        </li>
                    	
                        <!--<li class="dropdown">-->
                        <!--    <a href="./?page_id=marksheet&action=add" class="dropdown-toggle" data-toggle="dropdown">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone"> Marksheet </span>-->
                        <!--    </a>-->
                        <!--	<ul class="dropdown-menu">-->
                                <!--<li><a href="./?src=ExamCBSE&page_id=marks"><i class="icon-cog"></i> Add By class</a></li>-->
                                <!--<li><a href="./?src=ExamCBSE&page_id=criteria_grade"><i class="icon-cog"></i> Add Criteria Grade</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=import_marks"><i class="icon-cog"></i> Import Marks</a></li>-->
                        <!--		<li><a href="./?src=ExamCBSE&page_id=import_grade"><i class="icon-cog"></i> Import grades</a></li>-->
                        <!--    </ul>-->
                            
                        <!--</li>-->
                        <!--<li class="dropdown">-->
                        <!--    <a href="./?page_id=marksheet&action=add" class="dropdown-toggle" data-toggle="dropdown">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone"> S-Graph</span>-->
                        <!--    </a>-->
                        <!--	<ul class="dropdown-menu">-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=finalmarksheet&term=final"><i class="icon-cog"></i> View Final Marksheet</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=finalmarksheet&term=term1"><i class="icon-cog"></i> Term 1 Marksheet</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=finalmarksheet&term=term2"><i class="icon-cog"></i> Term 2 Marksheet</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=examSummery"><i class="icon-cog"></i> Summary</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=exam_percentage"><i class="icon-cog"></i> Student Percentahe Detail</a></li>-->
                        <!--    </ul>-->
                            
                        <!--</li>-->
                        <!--<li class="dropdown">-->
                        <!--    <a href="./?page_id=marksheet&action=add" class="dropdown-toggle" data-toggle="dropdown">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone">NAZ</span>-->
                        <!--    </a>-->
                        <!--	<ul class="dropdown-menu">-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=naz_grade"><i class="icon-cog"></i> Add Grade</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=naz_subject"><i class="icon-cog"></i> Add Subject/Criteria</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=naz_add_result&term=sa1"><i class="icon-cog"></i> Add Result SA1</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=naz_add_result&term=sa2"><i class="icon-cog"></i> Add Result SA2</a></li>-->
                        <!--    </ul>-->
                            
                        <!--</li>-->
                        <!--<li class="dropdown">-->
                        <!--    <a href="./?page_id=marksheet&action=add" class="dropdown-toggle" data-toggle="dropdown">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone">J-Graph</span>-->
                        <!--    </a>-->
                        <!--	<ul class="dropdown-menu">-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=junior_finalmarksheet&term=final"><i class="icon-cog"></i> View Final Marksheet</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=junior_finalmarksheet&term=term1"><i class="icon-cog"></i> Term 1 Marksheet</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=junior_finalmarksheet&term=term2"><i class="icon-cog"></i> Term 2 Marksheet</a></li>-->
                        <!--    	<li><a href="./?src=ExamCBSE&page_id=junior_examSummery"><i class="icon-cog"></i> Summary</a></li>-->
                        <!--    </ul>-->
                            
                        <!--</li>-->
                        <!--<li class="dropdown">-->
                        <!--    <a href="./?page_id=marksheet&action=add" class="dropdown-toggle" data-toggle="dropdown">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone">P-Graph</span>-->
                        <!--    </a>-->
                        <!--	<ul class="dropdown-menu">-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=primary_finalmarksheet&term=final"><i class="icon-cog"></i> View Final Marksheet</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=primary_finalmarksheet&term=term1"><i class="icon-cog"></i> Term 1 Marksheet</a></li>-->
                        <!--        <li><a href="./?src=ExamCBSE&page_id=primary_finalmarksheet&term=term2"><i class="icon-cog"></i> Term 2 Marksheet</a></li>-->
                        <!--    	<li><a href="./?src=ExamCBSE&page_id=primary_examSummery"><i class="icon-cog"></i> Exam Summary</a></li>-->
                        <!--    </ul>-->
                            
                        <!--</li>-->
                        <!--<li class="dropdown">
                            <a href="./?page_id=marksheet&action=add" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> View Marksheet </span>
                            </a>
                        	<ul class="dropdown-menu">
                                <li><a href="./?page_id=marksheet&term=final"><i class="icon-cog"></i> View Final Marksheet</a></li>
                                <li><a href="./?page_id=marksheet&term=term1"><i class="icon-cog"></i> Term 1 Marksheet</a></li>
                                <li><a href="./?page_id=marksheet&term=term2"><i class="icon-cog"></i> Term 2 Marksheet</a></li>
                            
                            </ul>
                            
                        </li>-->
                        <!--<li>
                            <a href="./?page_id=examSummery">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Summary </span>
                            </a>
                        </li>-->
     <!--                   <li class="dropdown">-->
					<!--	<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
					<!--		<i class="icon-user icon-white"></i> -->
					<!--		<span class="hidden-phone">Junior</span>-->
					<!--	</a>-->
					<!--	<ul class="dropdown-menu">-->
                           
     <!--                       <li><a href="./?src=ExamCBSE&page_id=division"><i class="icon-cog"></i> divisions</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=subject_div"><i class="icon-cog"></i> subject-division</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=junior_subject"><i class="icon-cog"></i> Subject</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=junior_subject_extra"><i class="icon-cog"></i>Extra Subject</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=junior_marks"><i class="icon-cog"></i> Create Exel for junior</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=junior_import_marks"><i class="icon-cog"></i> import marks for junior</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=junior_import_grade"><i class="icon-cog"></i> import grades for junior</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=junior_import_extra"><i class="icon-cog"></i> import grades for extra subject</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=junior_sms_print"><i class="icon-cog"></i> SMS / Print</a></li>-->
                           
					<!--		<li class="divider"></li>-->
					<!--		<li><a href="./?src=ExamCBSE&page_id=junior_student_print"><i class="icon-cog"></i> Student List</a></li>-->
                            
					<!--	</ul>-->
						<!-- / User Navigation: User Dropdown -->

					<!--</li>-->
     <!--                   <li class="dropdown">-->
						<!-- User Navigation: User Link -->
					<!--	<a href="#" class="dropdown-toggle" data-toggle="dropdown">-->
					<!--		<i class="icon-user icon-white"></i> -->
					<!--		<span class="hidden-phone">Primary</span>-->
					<!--	</a>-->
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
					<!--	<ul class="dropdown-menu">-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=primary_sub_div"><i class="icon-cog"></i> subject-division</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=primary_subject"><i class="icon-cog"></i> pre Subject</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=primary_marks"><i class="icon-cog"></i> Create Exel for primary</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=primary_import_marks"><i class="icon-cog"></i> import marks for primary</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=primary_sms_print"><i class="icon-cog"></i> SMS / Print</a></li>-->
                           
					<!--		<li class="divider"></li>-->
					<!--		<li><a href="./?src=ExamCBSE&page_id=junior_student_print"><i class="icon-cog"></i> Student List</a></li>-->
     <!--                       <li><a href="./?src=ExamCBSE&page_id=junior_examSummery"><i class="icon-cog"></i> Exam Summary</a></li>-->
					<!--	</ul>-->
						<!-- / User Navigation: User Dropdown -->

					<!--</li>-->
                        <li class="dropdown">
						<!-- User Navigation: User Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Setting</span>
						</a>
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
						<ul class="dropdown-menu">
						    <li><a href="./?src=ExamCBSE&page_id=exams"><i class="icon-cog"></i> Add Exams</a></li>
						    <li><a href="./?src=ExamCBSE&page_id=term"><i class="icon-cog"></i> Add Exam Terms</a></li>
						    <li><a href="./?src=ExamCBSE&page_id=term_permission"><i class="icon-cog"></i> Term Permission</a></li>
						    <li><a href="./?src=ExamCBSE&page_id=termwise_timing"><i class="icon-cog"></i> TermWise Exam Timing</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=criteria"><i class="icon-cog"></i> Add Criteria</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=assigngrade"><i class="icon-cog"></i> Grade Indicators</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=grade"><i class="icon-cog"></i> Grading System</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=attendance_remark"><i class="icon-cog"></i> Exam Wise Attendance/Remarks</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=term_attendance_remark"><i class="icon-cog"></i> Term Wise Attendance/Remarks</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=sign"><i class="icon-cog"></i> Add Sign</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=result_message"><i class="icon-cog"></i> Result Message</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=subject"><i class="icon-cog"></i> Subject</a></li>
                            
                            <li><a href="./?src=ExamCBSE&page_id=omr_question"><i class="icon-cog"></i> Add OMR Questions</a></li>
                            
                            <!--<li><a href="./?src=ExamCBSE&page_id=subject_extra"><i class="icon-cog"></i>Extra Subject</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=extra_marks"><i class="icon-cog"></i>Create Excel/extra Subject</a></li>
                            <li><a href="./?src=ExamCBSE&page_id=import_marks_extra"><i class="icon-cog"></i>Import Marks/extra Subject</a></li>
                            <!--<li><a href="./?src=ExamCBSE&page_id=create_term"><i class="icon-cog"></i> Create Term</a></li>-->

                            <!--<li><a href="./?src=ExamCBSE&page_id=sms_examwise"><i class="icon-cog"></i> SMS / Exam Wise</a></li>-->
							
							<li><a href="./?src=ExamCBSE&page_id=student_print"><i class="icon-cog"></i> Student List</a></li>
							
							<li><a href="./?src=ExamCBSE&page_id=extra_subject"><i class="icon-cog"></i> Extra Subject</a></li>
							<li><a href="./?src=ExamCBSE&page_id=extra_term"><i class="icon-cog"></i> Extra Subject Exam Terms</a></li>
							<li><a href="./?src=ExamCBSE&page_id=extra_marks"><i class="icon-cog"></i> Extra Marks</a></li>
							<li><a href="./?src=ExamCBSE&page_id=optional_subject"><i class="icon-cog"></i> Optional Subjects</a></li>
							<li><a href="./?src=ExamCBSE&page_id=optional_class"><i class="icon-cog"></i> Optional Class</a></li>
							
						</ul>
						<!-- / User Navigation: User Dropdown -->

					</li>
                    </ul>
                    <?php
				}

                /*
				elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="OnlineExam"){
					?>
					<ul class="nav pull-right">
                    	
                        <li class="dropdown">
                            <a href="./?page_id=marksheet&action=add" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Online Exam </span>
                            </a>
                        	<ul class="dropdown-menu">
                                <li><a href="./?page_id=question"><i class="icon-cog"></i> Question</a></li>
                                <li><a href="./?page_id=paper"><i class="icon-cog"></i> Paper</a></li>
                            </ul>
                        </li>
                        <li>
                            <a href="./?page_id=liveclass" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Live class </span>
                            </a>
                        </li>
                        
						<li class="dropdown">
                            <a href="./?page_id=examSummery" class="dropdown-toggle" data-toggle="dropdown">
                                <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Exam Summery</span>
                            </a>
                             <li class="dropdown">

						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Setting</span>
						</a>	

						<ul class="dropdown-menu">
						 	   <li class="divider"></li>
								<li><a href="./?page_id=liveclass"><i class="icon-cog"></i>Live class</a></li>
							    <li class="divider"></li>
						</ul>
					</li>
                        	
                            <ul class="dropdown-menu">
                                <li><a href="./?page_id=result"><i class="icon-cog"></i> Result </a></li>
                            </ul>
                            
                        </li>
                        
                    </ul>
                    <?php
				}
				*/

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="cms"){
    				elseif(isset($_GET["src"]) && $_GET["src"]=="cms"){
					?>
					<ul class="nav pull-right">
                    	
                        <!--<li class="dropdown">-->
                        <!--    <a href="./?page_id=cms" class="dropdown-toggle" data-toggle="dropdown">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone"> CMS </span>-->
                        <!--    </a>-->
                        <!--	<ul class="dropdown-menu">-->
                        <!--        <li><a href="./?src=cms&page_id=cms&action=add"><i class="icon-cog"></i> Add Page</a></li>-->
                        <!--        <li><a href="./?src=cms&page_id=cms"><i class="icon-cog"></i> All Pages</a></li>-->
                        <!--    </ul>-->
                        <!--</li>-->
                        <!--<li>-->
                        <!--    <a href="./?src=cms&page_id=slider">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone"> Home Slider </span>-->
                        <!--    </a>-->
                        <!-- </li>-->
                        <!--<li class="dropdown">-->
                        <!--    <a href="./?src=cms&page_id=content" class="dropdown-toggle" data-toggle="dropdown">-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone"> Extra Content </span>-->
                        <!--    </a>-->
                        <!--	<ul class="dropdown-menu">-->
                        <!--        <li><a href="./?src=cms&page_id=content_head"><i class="icon-cog"></i>Content Head</a></li>-->
                        <!--        <li><a href="./?src=cms&page_id=content"><i class="icon-cog"></i> Content</a></li>-->
                        <!--    </ul>-->
                            
                        <!--</li>-->

						<li>
						    <a href="./?src=cms&page_id=inventory_head">
						        <i class="icon-align-justify icon-white"></i>Inventory Head
					        </a>
					    </li>

                         <li>
                            <a href="./?src=cms&page_id=inventory_detail">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Student Inventory</span>
                            </a>
                         </li>

                         <li>
                            <a href="./?src=cms&page_id=faculty_inventory">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Faculty Inventory</span>
                            </a>
                         </li>

                        <li class="dropdown">

						<!-- User Navigation: User Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Setting</span>
						</a>	
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
						<ul class="dropdown-menu">

						 	   <li class="divider"></li>

								<li><a href="./?src=cms&page_id=inventory"><i class="icon-cog"></i>Add Inventory</a></li>

								<li><a href="./?src=cms&page_id=inventory_record"><i class="icon-cog"></i>Add Record</a></li>

								<li><a href="./?src=cms&page_id=inventory_report"><i class="icon-cog"></i>Inventory Report</a></li>
								
    							<li><a href="./?src=cms&page_id=news"><i class="icon-cog"></i>News</a></li>

						       <li><a href="./?src=cms&page_id=sliders"><i class="icon-cog"></i>Slider</a></li>

								<li><a href="./?src=cms&page_id=feedback"><i class="icon-cog"></i>Feedback</a></li>

								<li><a href="./?src=cms&page_id=papertopper"><i class="icon-cog"></i>Paper topper</a></li>

								<li><a href="./?src=cms&page_id=blog"><i class="icon-cog"></i>Blog</a></li>

							    <li class="divider"></li>
							
						</ul>
						<!-- / User Navigation: User Dropdown -->

					</li>  	
                    </ul>
                    <?php
				}

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Notice"){
                    elseif(isset($_GET["src"]) && $_GET["src"]=="Notice"){?>
		    			<ul class="nav pull-right">

    					<li class="dropdown">
                            <a href="./?src=Notice&page_id=notice" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Image </span>
                            </a> 
                            <ul class="dropdown-menu">
                                <li><a href="./?src=Notice&page_id=image"><i class="icon-cog"></i> Image Head</a></li>
                                <li><a href="./?src=Notice&page_id=image_upload"><i class="icon-cog"></i> Image Upload</a></li>
                            </ul>
                        </li>

                        <!--<li>-->
                        <!--    <a href="./?src=Notice&page_id=performance" >-->
                        <!--    <i class="icon-align-justify icon-white"></i>-->
                        <!--        <span class="hidden-phone"> Performance </span>-->
                        <!--    </a>-->
                        <!--</li>-->
                        
                        <li>
                            <a href="./?src=Notice&page_id=staff_notice" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Staff Notice </span>
                            </a>
                        </li>

                        <li>
                            <a href="./?src=Notice&page_id=student_notice" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Student Notice </span>
                            </a>
                        </li>
 
                   
                        
                        <li>
                            <a href="./?src=Notice&page_id=assignment" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Assignment </span>
                            </a>
                        </li>

                        <li>
                            <a href="./?src=Notice&page_id=calendar" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Calendar </span>
                            </a>
                        </li>

                        <li class="dropdown">
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Setting</span>
						</a>	

						<ul class="dropdown-menu">
    							<li><a href="./?src=Notice&page_id=appsubject"><i class="icon-cog"></i>Add Homework Subject </a></li>
    							
	    						<li><a href="./?src=Notice&page_id=performance"><i class="icon-cog"></i>Performance</a></li>
								<li><a href="./?src=Notice&page_id=syllabus"><i class="icon-cog"></i>Add Syllabus </a></li>
								<li><a href="./?src=Notice&page_id=timetable"><i class="icon-cog"></i>Add Time Table </a></li>
								<li><a href="./?src=Notice&page_id=admin_profile"><i class="icon-cog"></i>App Admin Profile </a></li>
								<li><a href="./?src=Notice&page_id=admin_permission"><i class="icon-cog"></i>App Admin Permission </a></li>
                                <li><a href="./?src=Notice&page_id=teacher_role"><i class="icon-cog"></i>Exam Teacher Role </a></li>
                                
                                <li><a href="./?src=Notice&page_id=Attandence_role"><i class="icon-cog"></i>Teacher Attendance Role </a></li>
                                <li><a href="./?src=Notice&page_id=Homework_role"><i class="icon-cog"></i>Teacher Homework Role </a></li>
                                <li><a href="./?src=Notice&page_id=remarks_role"><i class="icon-cog"></i>Remarks Role </a></li>
                                <li><a href="./?src=Notice&page_id=class_teacher"><i class="icon-cog"></i>Add class/Subject Teacher</a></li>
                                <li><a href="./?src=Notice&page_id=teacher_report"><i class="icon-cog"></i>Teacher Role Report </a></li>
                                <li><a href="./?src=Notice&page_id=add_subject"><i class="icon-cog"></i> Add Econtent Subject</a></li>
                                <li><a href="./?src=Notice&page_id=add_econtent"><i class="icon-cog"></i> Add Econtent</a></li>
                                <li><a href="./?src=Notice&page_id=add_assignment"><i class="icon-cog"></i> Add Assignment</a></li>
                                <li><a href="./?src=Notice&page_id=add_questions"><i class="icon-cog"></i> Add Questions</a></li>
                                <li><a href="./?src=Notice&page_id=add_que_session"><i class="icon-cog"></i> Questions Session</a></li>
                                <li><a href="./?src=Notice&page_id=security"><i class="icon-cog"></i> Security</a></li>
                                <li><a href="./?src=Notice&page_id=result_setting"><i class="icon-cog"></i> Econtent Result setting</a></li>
                                <li><a href="./?src=Notice&page_id=live_class"><i class="icon-cog"></i> Live Class</a></li>

                                <li><a href="./?src=Notice&page_id=report_setting"><i class="icon-cog"></i> Reportcard Setting</a></li>
                                <li><a href="./?src=Notice&page_id=exam_setting"><i class="icon-cog"></i> Online Exam Setting</a></li>
                                <li><a href="./?src=Notice&page_id=admit_card_setting"><i class="icon-cog"></i> Admit Card Setting</a></li>

							    <li class="divider"></li>
						</ul>

					</li>
                    </ul>
                    <?php
				}

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Enquiry"){ 
    				elseif(isset($_GET["src"]) && $_GET["src"]=="Enquiry"){
				?>
				<ul class="nav pull-right">
				    
                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                        <i class="icon-user icon-white"></i> 
                        <span class="hidden-phone">Follow Up</span>
                		</a>
						
						<ul class="dropdown-menu">
                            <li><a href="?src=Enquiry&page_id=todays_followup"><i class="icon-user"></i>Today's FollowUp</a></li>
                            <li><a href="?src=Enquiry&page_id=upcoming_followup"><i class="icon-user"></i>Upcoming FollowUp</a></li>
                            <li><a href="?src=Enquiry&page_id=pending_followup"><i class="icon-user"></i>Pending FollowUp</a></li>
                          
							<li class="divider"></li>
							
						</ul>
                    </li>

				    
				 <li class="dropdown">
							<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Enquiry</span>
							</a>
						
						<ul class="dropdown-menu">
                            <li><a href="?src=Enquiry&page_id=enquiry"><i class="icon-user"></i>View Enquiry</a></li>
                            <li><a href="?src=Enquiry&page_id=enquiry&action=add"><i class="icon-user"></i>Add Enquiry</a></li>
                          
							<li class="divider"></li>
							
						</ul>
                  </li>
                  <li class="dropdown">

						<!-- User Navigation: User Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Enquiry Reports</span>
						</a>
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
						<ul class="dropdown-menu">
						    <li><a href="?src=Enquiry&page_id=enquiry_report"><i class="icon-user"></i>Enquiry Status Report</a></li>
                            <li><a href="?src=Enquiry&page_id=enquiry_Pay_Receipt"><i class="icon-user"></i>Pay Receipt History</a></li>
                            <li><a href="?src=Enquiry&page_id=enquiry_summery"><i class="icon-user"></i>DCR Report</a></li>
                           
                           
							<li class="divider"></li>
							
						</ul>
						<!-- / User Navigation: User Dropdown -->

					</li>
                   <li class="dropdown">

						<!-- User Navigation: User Link -->
						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-user icon-white"></i> 
							<span class="hidden-phone">Setting</span>
						</a>
						<!-- / User Navigation: User Link -->

						<!-- User Navigation: User Dropdown -->
						<ul class="dropdown-menu">
                            <li><a href="?src=Enquiry&page_id=remarks"><i class="icon-user"></i>Remarks</a></li>
                            <li><a href="?src=Enquiry&page_id=admission_agent"><i class="icon-user"></i>Admission Agent</a></li>
                           
							<li class="divider"></li>
							
						</ul>
						<!-- / User Navigation: User Dropdown -->

					</li>
					<!-- / User Navigation: Messages -->
      <!--              <li>-->
						<!--<a href="logout.php">-->
      <!--                  <i class="icon-align-justify icon-white"></i>-->
						<!--	<span class="hidden-phone"> Logout</span>-->
						<!--</a>-->
      <!--              </li>-->
                    
					<!-- / User Navigation: User -->

				</ul>
                <?php }

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Budget"){ 
    				elseif(isset($_GET["src"]) && $_GET["src"]=="Budget"){
				?>
				<ul class="nav pull-right">

					<li class="dropdown">

						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
							<i class="icon-align-justify icon-white"></i>
							<span class="hidden-phone"> Budget Report  </span>
						</a>
						<ul class="dropdown-menu widget">
							
                            <li><a href="?src=Budget&page_id=budget_report" class="message"><p>Budget Report</p></a></li>
							
						</ul>
					</li>

				</ul>
                <?php }

				// elseif(isset($_SESSION["admin"]["utype"]) && $_SESSION["admin"]["utype"]=="Payroll"){ 
				    elseif(isset($_GET["src"]) && $_GET["src"]=="Payroll"){
    				?>
				<ul class="nav pull-right">

                        <li>
                            <a href="./?src=Payroll&page_id=account_details">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Account Details </span>
                            </a>
                        </li>

                        <li>
                            <a href="./?src=Payroll&page_id=add_salary" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Add Salary </span>
                            </a>
                        </li>

                        <li>
                            <a href="./?src=Payroll&page_id=salary_components" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Salary Components </span>
                            </a>
                        </li>

                        <li>
                            <a href="./?src=Payroll&page_id=salary_report" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Salary Report </span>
                            </a>
                        </li>

                        <li class="dropdown">

    						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
    							<i class="icon-user icon-white"></i> 
    							<span class="hidden-phone">Settings</span>
    						</a>

    						<ul class="dropdown-menu">
    						    <li><a href="?src=Payroll&page_id=one_day_salary"><i class="icon-user"></i>One day salary</a></li>
                                <li><a href="?src=Payroll&page_id=epf_esic"><i class="icon-user"></i>EPF & ESIC</a></li>
                                <li><a href="?src=Payroll&page_id=total_leave"><i class="icon-user"></i>Add total leave</a></li>
                                <li><a href="?src=Payroll&page_id=late_deduction"><i class="icon-user"></i>Late Deduction</a></li>
                                <li><a href="?src=Payroll&page_id=leave_deduction"><i class="icon-user"></i>Leave Deduction</a></li>
    						</ul>

					    </li>

				</ul>
                <?php }
                
			    elseif(isset($_GET["src"]) && $_GET["src"]=="ERP"){
    				?>
				<ul class="nav pull-right">

                        <li>
                            <a href="./?src=ERP&page_id=followup">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> FollowUp </span>
                            </a>
                        </li>

                        <li>
                            <a href="./?src=ERP&page_id=sales_person">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Sales Person Account </span>
                            </a>
                        </li>

                        <li>
                            <a href="./?src=ERP&page_id=school_data" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">School Data </span>
                            </a>
                        </li>

                        <li class="dropdown">

    						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
    							<i class="icon-user icon-white"></i> 
    							<span class="hidden-phone">Reports</span>
    						</a>

    						<ul class="dropdown-menu">
    						    <li><a href="?src=ERP&page_id=user_wise_report"><i class="icon-user"></i>User Wise Report</a></li>
                                <li><a href="?src=ERP&page_id=school_report"><i class="icon-user"></i>School Report</a></li>
                                <!--<li><a href="?src=Enquiry&page_id=enquiry_summery"><i class="icon-user"></i>DCR Report</a></li>-->
    							<li class="divider"></li>
    						</ul>

					    </li>

				</ul>
                <?php }
                
			    elseif(isset($_GET["src"]) && $_GET["src"]=="website"){
    				?>
				<ul class="nav pull-right">

                        <li>
                            <a href="./?src=website&page_id=site_setting">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone"> Setting </span>
                            </a>
                        </li>

                        <li class="dropdown">

    						<a href="#" class="dropdown-toggle" data-toggle="dropdown">
    							<i class="icon-user icon-white"></i> 
    							<span class="hidden-phone">Cms</span>
    						</a>

    						<ul class="dropdown-menu">
    						    <li><a href="?src=website&page_id=slider"><i class="icon-user"></i>Slider</a></li>
                                <li><a href="?src=website&page_id=about_us"><i class="icon-user"></i>About Us</a></li>
                                <li><a href="?src=website&page_id=facilities"><i class="icon-user"></i>Facilities</a></li>
                                <li><a href="?src=website&page_id=gallery"><i class="icon-user"></i>Gallery</a></li>
                                <li><a href="?src=website&page_id=announcement"><i class="icon-user"></i>Announcements</a></li>
                                <li><a href="?src=website&page_id=toppers"><i class="icon-user"></i>Toppers</a></li>
                                <li><a href="?src=website&page_id=downloads"><i class="icon-user"></i>Downloads</a></li>
                                <li><a href="?src=website&page_id=tc"><i class="icon-user"></i>Tc</a></li>
                                <!--<li><a href="?src=Enquiry&page_id=enquiry_summery"><i class="icon-user"></i>DCR Report</a></li>-->
    							<li class="divider"></li>
    						</ul>

					    </li>

                        <li>
                            <a href="./?src=website&page_id=enquiry">
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Enquiry List </span>
                            </a>
                        </li>

                        <li>
                            <a href="./?src=website&page_id=payment" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Payment List </span>
                            </a>
                        </li> 
                        <li>
                            <a href="./?src=website&page_id=fee_structure" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Fee Structure </span>
                            </a>
                        </li> 
                       
                        <li>
                            <a href="./?src=website&page_id=alumni" >
                            <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Alumini</span>
                            </a>
                        </li>
                        
                        <li>
                            <a href="./?src=website&page_id=extra" >
                                <i class="icon-align-justify icon-white"></i>
                                <span class="hidden-phone">Extra Menus</span>
                            </a>
                        </li>

				</ul>
                <?php }
                elseif(isset($_GET["src"]) && $_GET["src"]=="HR"){
				?>
				<ul class="nav pull-right">
				    <li><a href="?src=HR&page_id=job"><i class="icon-user"></i>Job Opening</a></li>

                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user icon-white"></i> 
                            <span class="hidden-phone">Settings</span>
                		</a>
						<ul class="dropdown-menu">
                            <li><a href="?src=HR&page_id=department"><i class="icon-user"></i>Department</a></li>
                            <li><a href="?src=HR&page_id=designation"><i class="icon-user"></i>Designation</a></li>
                            <li><a href="?src=HR&page_id=jobtype"><i class="icon-user"></i>Job Type</a></li>
                            <li><a href="?src=HR&page_id=process"><i class="icon-user"></i>Process Name</a></li>
							<li class="divider"></li>
						</ul>
                    </li>

                    <li class="dropdown">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user icon-white"></i> 
                            <span class="hidden-phone">Reports</span>
                		</a>
						<ul class="dropdown-menu">
                            <li><a href="?src=HR&page_id=all_jobs_report"><i class="icon-user"></i>All Jobs Posted</a></li>
							<li class="divider"></li>
						</ul>
                    </li>


				</ul>
                <?php }
                
                elseif(isset($_GET["src"]) && $_GET["src"]=="Reception"){
				?>
				<ul class="nav pull-right">
				    <li><a href="?src=Reception&page_id=appointment"><i class="icon-user"></i>Appointment</a></li>
				    <li><a href="?src=Reception&page_id=visitor"><i class="icon-user"></i>Visitors</a></li>
				    
				    <li><a href="?src=Reception&page_id=report"><i class="icon-user"></i>Reports</a></li>

                    <li class="dropdown hide">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user icon-white"></i> 
                            <span class="hidden-phone">Settings</span>
                		</a>
						<ul class="dropdown-menu">
                            <li><a href="?src=Reception&page_id=department"><i class="icon-user"></i>Department</a></li>
                            <li><a href="?src=Reception&page_id=designation"><i class="icon-user"></i>Designation</a></li>
                            <li><a href="?src=Reception&page_id=jobtype"><i class="icon-user"></i>Job Type</a></li>
                            <li><a href="?src=Reception&page_id=process"><i class="icon-user"></i>Process Name</a></li>
							<li class="divider"></li>
						</ul>
                    </li>

                    <li class="dropdown hide">
                        <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            <i class="icon-user icon-white"></i> 
                            <span class="hidden-phone">Reports</span>
                		</a>
						<ul class="dropdown-menu">
                            <li><a href="?src=HR&page_id=all_jobs_report"><i class="icon-user"></i>All Jobs Posted</a></li>
							<li class="divider"></li>
						</ul>
                    </li>


				</ul>
                <?php }
				 ?>

			</div>
 
		</div>

	<div class="breadcrumb clearfix">

			<div class="container">

				<ul class="pull-left" style="margin-left:-10px;">
					<li><a href="<?php echo URL_ROOT ?>" style="color:#F00; font-weight:bolder !important"><i class="icon-home"></i> Home</a> 
                    <span style="font-weight:800;" class="divider">/</span></li>
            		<li><strong>Staff</strong> : <?php echo (int)$db->getVal("select count(idno) from staff where status=1 and school_id='".$_SESSION["admin"]["school_id"]."' ") ?></li>
                    
                    <li><strong>SMS</strong> : <?php echo (int)$db->getVal("select count(id) from sms where school_id='".$_SESSION["admin"]["school_id"]."' ") ?></li>

                    <li><strong>
                       <?php
                           echo ucwords($db->getVal("Select name from users where id='".$_SESSION["admin"]["uid"]."'"))."</b>";
                       ?></strong>
                   </li>

                   
				</ul>

				<ul class="pull-right">
                	<li class="dropdown">
						<a href="<?php echo URL_ROOT ?>webcam/?redirect=<?php echo urlencode(URL_ROOT."print/gateentry.php") ?>" class="fancybox" data-class="videocam"  id="uploadRefreshBtn"><i class="icon-facetime-video"></i>Entry Pass
						</a>
					</li>

                	<li id="checkStatusUpload" style="display:none"></li>
                    
					<!--<li class="dropdown">-->
					<!--	<a href="javascript:;" id="uploadRefreshBtn" onclick="uploadToProceed()"><i class="icon-cog"></i>Refresh</a>-->
					<!--</li>-->

					<li class="dropdown">
						<a href="./?src=Promote&page_id=login"><i class="icon-cog"></i> Site Setting</a>
					</li>

					<li>
					    <a href="logout.php"><i class="icon-off"></i> Logout</a>
				    </li>
					
				</ul>

			</div>

	</div>
</div><br />
<br />
<br />
<style>
.videocam { width:800px !important; height:300px !important; }.divider{color: #f00 !important;}
</style>

<script>
    function changesession(session){
        $.post( "ajax.php", { type: "change_session", session: session  } , function( data ){			
// 			alert(data);
        location.reload();
		});

    }
</script>



