                                                                                                                                                                                                                               
                                                                                                                                                                                                                             
 
Ext.onReady(function(){
 	Ext.QuickTips.init(); 	
	
	// Sub Sub menu code
	
	// Sub menu code
	 var master = new Ext.menu.Menu({ id:'master', items: [{text:'College Information',href:'addedit-college.php'}
,{text:'Course Information',href:'view-branchmaster.php'}
,{text:'Year Transfer',href:'addedit-yeartransfer.php'}
,{text:'Create Student Batch',href:'addedit-batch.php'}
,{text:'Contacts Infomation',href:'addedit-contact.php'}
,{text:'View Designation',href:'view-designation.php'}
,{text:'Add Scholarship',href:'addedit-scholarship.php'}
,{text:'Add Document',href:'addedit-document.php'}
]}); 

 var student = new Ext.menu.Menu({ id:'student', items: [{text:'Add Student',href:'addedit-student.php'}
,{text:'Manage Student',href:'manage-student.php'}
,{text:'Search Student',href:'student-search.php'}
,{text:'Update Bulk GTU Number',href:'update-student-gtuno.php'}
,{text:'Reshuffling / Suspend/Detain Student',href:'addedit-suspendstud.php'}
,{text:'Reshuffling / Suspend Student List',href:'suspended-student-list.php'}
,{text:'Detained Student List (Year wise)',href:'detain-student-list.php'}
,{text:'Student Cancellation',href:'addedit-cancelstud.php'}
,{text:'Cancelled Student List',href:'cancel-student-list.php'}
,{text:'Student I-card',href:'report-form-student-icard.php'}
,{text:'Student Alumin',href:'addedit-aluministud.php'}
,{text:'Alumini Student List',href:'alumini-student-list.php'}
,{text:'Student Bonafied',href:'report-student-bonafied-records.php'}
,{text:'Add Student Document',href:'addedit-studentdocument.php'}
,{text:'Add Student Scholarship',href:'addedit-studentscholarship.php'}
]}); 

 var fees = new Ext.menu.Menu({ id:'fees', items: [{text:'Head Information',href:'addedit-feeshead.php'}
,{text:'Fees Setup',href:'addedit-feessetup.php'}
,{text:'Mafi Fees Setup',href:'addedit-mafifeessetup.php'}
,{text:'Add Fees Receipt',href:'addedit-feesreceive.php'}
,{text:'View Fees Receipt',href:'view-feesreceipt.php'}
,{text:'Student - Fees History',href:'report-student-fees-records.php'}
,{text:'Fees - Receipt Report',href:'report-form-student-feereceipt.php'}
,{text:'Fees - Collection Report',href:'report-daily-fees-collection.php'}
,{text:'Fees - Overall Collection Report ',href:'report-daily-fees-collection-year.php'}
,{text:'Fees - Debit Report',href:'report-fees-dueamt.php'}
,{text:'Fees - Total Due Amount(All Branch)',href:'report-fees-all-dueamt.php'}
,{text:'All Year Fees Collection Report',href:'addedit-allyear-collection.php'}
]}); 

 var reports = new Ext.menu.Menu({ id:'reports', items: [{text:'Student - Detail Report',href:'report-student-list.php'}
,{text:'Student - Summary Report',href:'report-student-summary.php'}
,{text:'Student Birthday Report',href:'report-student-birthday.php'}
,{text:'Student - Selection Report',href:'report-form-student-selection.php'}
,{text:'Student - Reshuffling List',href:'report-reshuffling-list.php'}
,{text:'Student - Suspend List',href:'report-suspend-list.php'}
,{text:'Student - Address Report',href:'report-address-list.php'}
,{text:'Contact Details Report',href:'report-employee-list.php'}
,{text:'Student - Detained List',href:'report-student-detainlist.php'}
,{text:'Student Cancellation - Report',href:'report-student-cancellist.php'}
,{text:'Student Status Year Wise',href:'report-student-list-yearwise.php'}
,{text:'Student Document',href:'student_document.php'}
,{text:'Student- Scholarship Report',href:'student_scholarship.php'}
]}); 

 var utility = new Ext.menu.Menu({ id:'utility', items: [{text:'Change Password',href:'change-password.php'}
,{text:'Create User',href:'create-user.php'}
,{text:'View User',href:'view-user.php'}
,{text:'Query Analizer',href:'queryAnlaizer.php'}
,{text:'Detabase Backup',href:'database-backup.php'}
,{text:'SMS - Autogenerated',href:'autogenerate_sms.php'}
,{text:'SMS - Customize',href:'customize_sms.php'}
,{text:'Year Transfer Process',href:'transfer-process.php'}
,{text:'Create student Login',href:'generate-student-password.php'}
,{text:'Send SMS Report',href:'report-send-sms.php'}
,{text:'Insert Feedback Question',href:'addedit-feedback-question.php'}
,{text:'Feedback setup',href:'feedback_setup.php'}
,{text:'Add Circular',href:'addedit-circular.php'}
,{text:'Change Book Late Return Fine',href:'addedit_booklatereturnfine.php'}
]}); 

	
	//Sub menu code	
	var tb = new Ext.Toolbar();
    tb.render('main-menu');	
    tb.add (
			{ 
		   	xtype:'tbbutton',
            text:'Home',
			handler: function(btn)
				{ var redirect = 'loginhome.php';
				  window.location = redirect;	
				}
  			},
	{text:'Master',menu:master}
,{text:'Student',menu:student}
,{text:'Fees',menu:fees}
,{text:'Reports',menu:reports}
,{text:'Utility',menu:utility}
,
	'-',
	/*{       xtype:'tbbutton',
            text: 'Utility',
            //tooltip: {text:'This is a an example QuickTip for a toolbar item', title:'Tip Title'},
            iconCls: 'blist',
            menu : {
            items: [
				
				{
                	text:'Change Password',
				    href:'change-password.php'
					
                }
				]
            }
	    },*/
		{ 
		   	xtype:'tbbutton',
            text:'Logout',
			handler: function(btn)
				{ 
				  var redirect ='logout.php';
				  window.location = redirect;	
				}
    	}
	);
	tb.doLayout();
}););