<?php
$lvl = $user->userlevel;
$koje = $user->username;
//echo $lvl;
$page_nav = array(
	"dashboard" => array(
		"title" => "Dashboard",
		"url" => ($lvl != 7) ? "../smart/pages/dashboard.php" : "../smart/pages/suggest.php",
		//"url" => "../smart/pages/dashboard.php",
		"icon" => "icon-home",
		"class" => "ajaxify start",
		"span" => "",
		"nivo" => array(1,2,3,4,6,7,9)
	),
	"dashboard1" => array(
		"title" => "Dashboard",
		"url" => "../smart/pages/man_allorder.php",
		"icon" => "icon-home",
		"class" => "ajaxify start",
		"span" => "",
		"nivo" => array(5)
	),
	"dashboard2" => array(
		"title" => "Dashboard",
		"url" => "../smart/pages/allcounters.php",
		"icon" => "icon-home",
		"class" => "ajaxify start",
		"span" => "",
		"nivo" => array(8)
	),
	"slotovi" => array(
		"title" => "Spisak slotova",
		"url" => "../smart/pages/allslots.php",
		"icon" => "fa-newspaper-o",
		"class" => "ajaxify",
		"span" => "",
		"nivo" => array(8)
	),
	"prijava" => array(
	"title" => "Prijava kvara",
	"nivo" => array(1,4,9),
	"class" => "",
	"span" => "arrow",
	"icon" => "fa-file-text-o",
	"sub" => array(
		"sank" => array(
		"title" => "Prijavi kvar",
		"class" => "ajaxify",
		"url" => "../smart/pages/ticket.php"
			),
		"print" => array(	
		"title" => "Pregled svih kvarova",
		"class" => "ajaxify",
		"url" => "../smart/pages/allticket.php"
			)
		)
	),
	"svikvarovi" => array(
	"title" => "Pregled svih kvarova",
	"url" => "../smart/pages/allticket.php",
	"icon" => "fa-list",
	"class" => "ajaxify",
	"span" => "",
	"nivo" => array(3,4,6,9)
	),
	"svikvaroviold" => array(
	"title" => "Pregled starih kvarova",
	"url" => "../smart/pages/oldticket.php",
	"icon" => "fa-folder-open-o",
	"class" => "ajaxify",
	"span" => "",
	"nivo" => array(4,9)
	),
	"datatable" => array(
	"title" => "Podešavanja",
	"nivo" => array(4,9),
	"class" => "",
	"span" => "arrow",
	"icon" => "fa-building-o",
	"sub" => array(
		"print" => array(	
		"title" => "Odeljenja",
		"class" => "ajaxify",
		"url" => "../smart/pages/department.php"
			),
		"city" => array(	
		"title" => "Gradovi",
		"class" => "ajaxify",
		"url" => "../smart/pages/city.php"
			),
		"store" => array(	
		"title" => "Lokali",
		"class" => "ajaxify",
		"url" => "../smart/pages/store.php"
			),
		"slot" => array(	
		"title" => "Aparati",
		"class" => "ajaxify",
		"url" => "../smart/pages/slots.php"
			),
		"sugest" => array(	
		"title" => "Sugest produkt",
		"class" => "ajaxify",
		"url" => "../smart/pages/sug_product.php"
			)
		/*"slot_cat" => array(	
		"title" => "Aparati i delovi",
		"class" => "ajaxify",
		"url" => "../smart/pages/slot_cat.php"
			)*/
	)
	),
	"korisnici" => array(
	"title" => "Korisnici",
	"nivo" => array(4,9),
	"class" => "",
	"span" => "arrow",
	"icon" => "fa-users",
	"sub" => array(
		"sank" => array(
		"title" => "Objekti",
		"class" => "ajaxify",
		"url" => "../smart/pages/users_o.php"
			),
		"print" => array(	
		"title" => "Manageri",
		"class" => "ajaxify",
		"url" => "../smart/pages/users_m.php"
			),
		"city" => array(	
		"title" => "Serviseri",
		"class" => "ajaxify",
		"url" => "../smart/pages/users_s.php"
			),
		/*"city" => array(	
		"title" => "Korisnici",
		"class" => "ajaxify",
		"url" => "../smart/pages/users.php"
			)*/
		)
	),
	"order" => array(
	"title" => "Trebovanje",
	"nivo" => array(3,4,9),
	"class" => "",
	"span" => "arrow",
	"icon" => "fa-cart-arrow-down",
	"sub" => array(
		/*"orders" => array(	
		"title" => "Porudžbina",
		"class" => "ajaxify",
		"url" => "../smart/pages/order.php"
			),*/
		"proba" => array(	
		"title" => "Porudzbina kategorije",
		"class" => "ajaxify",
		"url" => "../smart/pages/cat_order.php"
			),	
		"detail" => array(	
		"title" => "Pregled",
		"class" => "ajaxify",
		"url" => "../smart/pages/orderlist.php"
			)
		)
	),
	"counter" => array(
	"title" => "Brojaci",
	"nivo" => array(3,4,9),
	"class" => "",
	"span" => "arrow",
	"icon" => "fa-list-ol",
	"sub" => array(
		"meters" => array(	
		"title" => "Popis brojača",
		"class" => "ajaxify",
		"url" => "../smart/pages/counters.php"
			),
		/*"allmeters" => array(	
		"title" => "Pregled brojača",
		"class" => "ajaxify",
		"url" => "../smart/pages/allcounters.php"
			)	*/
		)
	),
	"trebovanje" => array(
	"title" => "Trebovanje",
	"nivo" => array(5),
	"class" => "",
	"span" => "arrow",
	"icon" => "fa-cart-arrow-down",
	"sub" => array(
		"kategorija" => array(	
		"title" => "Kategorije",
		"class" => "ajaxify",
		"url" => "../smart/pages/category_artikli.php"
			),
		"import" => array(	
		"title" => "Artikli",
		"class" => "ajaxify",
		"url" => "../smart/pages/artikli.php"
			),
		/*"orders" => array(	
		"title" => "Porudžbina",
		"class" => "ajaxify",
		"url" => "../smart/pages/order.php"
			),*/
		"detail" => array(	
		"title" => "Pregled listi",
		"class" => "ajaxify",
		"url" => "../smart/pages/allorderlist.php"
			),
		"detail1" => array(	
		"title" => "Pregled porudzbina",
		"class" => "ajaxify",
		"url" => "../smart/pages/allorder.php"
			),
		"proba" => array(	
		"title" => "Porudzbina kategorije",
		"class" => "ajaxify",
		"url" => "../smart/pages/cat_order.php"
			)
		)
	),
	"izvestaj" => array(
	"title" => "Izvestaji",
	"nivo" => array(5),
	"class" => "",
	"span" => "arrow",
	"icon" => "fa-check-circle-o",
	"sub" => array(
		"import" => array(	
		"title" => "Po menadžeru",
		"class" => "ajaxify",
		"url" => "../smart/pages/man_order.php"
			),
		"orders" => array(	
		"title" => "Po listi",
		"class" => "ajaxify",
		"url" => "../smart/pages/man_allorder.php"
			),/*
		"detail" => array(	
		"title" => "Pregled listi",
		"class" => "ajaxify",
		"url" => "../smart/pages/allorderlist.php"
			)*/
		)
	),
	"parts" => array(
	"title" => "Delovi",
	"nivo" => array(4,9),
	"class" => "",
	"span" => "arrow",
	"icon" => "fa-cogs",
	"sub" => array(
		"sank" => array(
		"title" => "Kategorije",
		"class" => "ajaxify",
		"url" => "../smart/pages/category.php"
			),
		"print" => array(	
		"title" => "Delovi",
		"class" => "ajaxify",
		"url" => "../smart/pages/parts.php"
			)
		)
	),
	"vesti" => array(
		"title" => "Vesti",
		"url" => "../smart/pages/news.php",
		"icon" => "fa-newspaper-o",
		"class" => "ajaxify",
		"span" => "",
		"nivo" => array(1,2,3,4,5,6,8,9)
	),
	"suggest" => array(
		"title" => "Sugestije",
		"url" => "../smart/pages/suggest.php",
		"icon" => "fa-paper-plane-o",
		"class" => "ajaxify",
		"span" => "",
		"nivo" => array(1,7,9)
	),
	"newsletter" => array(
		"title" => "Obaveštenja",
		"url" => "../smart/pages/newsletter.php",
		"icon" => "fa-newspaper-o",
		"class" => "ajaxify",
		"span" => "",
		"nivo" => array(4,9)
	),
	"podaci" => array(
	"title" => "Moj profil",
	"nivo" => array(1,2,3,4,6,7,9),
	"class" => "",
	"span" => "arrow",
	"icon" => "fa-user-secret",
	"sub" => array(
		"sank" => array(
		"title" => "Info/Lozinka",
		"class" => "ajaxify",
		"url" => "../smart/pages/info.php"
			)
		/*"print" => array(	
		"title" => "Promeni lozinku",
		"class" => "ajaxify",
		"url" => "../smart/pages/infopass.php"
			)*/
		)
	),
	
	/*
			"inline" => array(
				"title" => "Objekti",
				"url" => "ajax/inline-charts.php"
			),
			"dygraphs" => array(
				"title" => "Promet po danima",
				"url" => "ajax/dygraphs.php",
				"label_htm" => ' <span class="badge pull-right inbox-badge bg-color-yellow">new</span>'
			)*/
    /*
	"widgets" => array(
		"title" => "Widgets",
		"url" => "ajax/widgets.php",
		"icon" => "fa-list-alt",
		"nivo" => array(1,2,3)
	),
    "gmap_skins" => array(
		"title" => "Mape",
		"url" => "ajax/gmap-xml.php",
		"icon" => "fa-map-marker",
		"nivo" => array(1,2,3)
        ),
	"misc" => array(
		"title" => "Profil",
		"icon" => "fa-user",
		"nivo" => array(1,2,3),
		"sub" => array(
			"profile" => array(
		        "title" => "Profil",
		        "url" => "ajax/profile.php"
		        ),
		    "login" => array(
				"title" => "Login",
				"url" => APP_URL."/login.php",
				"url_target" => "_top"
			),
            "lock" => array(
				"title" => "Locked Screen",
				"url" => APP_URL."/lock.php",
				"url_target" => "_top"
			),
            "blank" => array(
				"title" => "Blank Page",
				"url" => "ajax/blank_.php"
			),
            "email_template" => array(
				"title" => "Email Template",
				"url" => "ajax/email-template.php"
			)
		)
	),*/
);


?>