<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html><!--  PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> -->
<html>
<head>
	<meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="description" content="">
    <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no" />

	<link rel="icon" href="favicon.ico" type="image/ico" />
<!-- 	<link rel='stylesheet' href='http://fonts.googleapis.com/css?family=Roboto:400,700'> -->
	<link rel='stylesheet' href='bower_components/components-font-awesome/css/font-awesome.css'>
    <link rel='stylesheet' href='css/styles.css'>
    <link rel='stylesheet' href='css/tables.css'>
<!--     <link rel='stylesheet' href='css/ie_fixes.css'> -->
    <link rel='stylesheet' href='bower_components/ng-material-floating-button/mfb/dist/mfb.min.css'>
	<link rel="stylesheet" href="bower_components/angular-ui-grid/ui-grid.min.css"/>
    	
	<script type="application/javascript" src="bower_components/angular/angular.min.js"></script>
    <script type="application/javascript" src="bower_components/angular-aria/angular-aria.min.js"></script>
    <script type="application/javascript" src="bower_components/angular-animate/angular-animate.min.js"></script>
    <script type="application/javascript" src="bower_components/angular-material/angular-material.min.js"></script>
    <script type="application/javascript" src="bower_components/angular-route/angular-route.min.js"></script>
    <script type="application/javascript" src="bower_components/angular-cookies/angular-cookies.min.js"></script>
    <script type="application/javascript" src="bower_components/angular-resource/angular-resource.min.js"></script>
    <script type="application/javascript" src="bower_components/angular-sanitize/angular-sanitize.min.js"></script>
    
    <link rel="stylesheet" href="bower_components/angular-material/angular-material.css"/>
    <script type="application/javascript" src="bower_components/angular-disable-all/dist/angular-disable-all.js"></script>
    <script type="application/javascript" src="bower_components/ng-material-floating-button/src/mfb-directive.js"></script>
	<script src="bower_components/angular-ui-grid/ui-grid.js"></script>

	<script type="application/javascript" src="js/service/utilsSvc.js"></script>
	<script type="application/javascript" src="js/service/formChangeLoggerSvc.js"></script>
	<script type="application/javascript" src="js/service/userService.js"></script>
    <script type="application/javascript" src="js/service/menuService.js"></script>
    <script type="application/javascript" src="js/service/incassoSDDSvc.js"></script>
    <script type="application/javascript" src="js/utils.js"></script>
    <script type="application/javascript" src="js/app.js"></script>
	<script type="application/javascript" src="js/service/services.js"></script>
    <script type="application/javascript" src="js/routing.js"></script>
     <script type="application/javascript" src="js/ng-file-upload-shim.min.js"></script>
    <script type="application/javascript" src="js/ng-file-upload.min.js"></script>
    


	<title>Sicura</title>
</head>

<body md-no-ink ng-cloak ng-app="app"  layout="row"  layout-fill ng-controller="menuCtrl" id="app" >	

	<md-sidenav id="sidenav" style="width:300px;background-color:transparent" layout="column" class="md-primary"  md-is-locked-open="shouldLockOpen()"  ng-show="isUserLoggedIn()"  md-component-id="menuSidenav"
                md-disable-backdrop>
		<md-toolbar layout="row" class="md-toolbar-tools" layout-align="center center">
		    <a ng-href="#/" layout="row">
		    	<img src="img/sicura-small.png" />
		    	<md-tooltip>Versione applicazione: {{appVersion}}</md-tooltip>
		    </a>
	    	<i id="waitIndicator" class="fa fa-refresh fa-spin" style="display:none"></i>
	    	<span flex></span>
	    	<i class="fa fa-refresh fa-thumb-tack button-icon" ng-click="toggleMenu()"></i>
		</md-toolbar>        
	 	<div class="md-primary" flex style="margin-bottom:20px;margin-top:2px;overflow-x:hidden;text-overflow:ellipsis;background-color:white">	
	  
	        <div ng-repeat="menu in menu()" flex id="sideMenu" layout="column" layout-align="start start" class="sidebar-buttons" ng-click="closeSideNav()">
	           <md-button id="{{menu.id}}"  class="md-primary md-raised small-toolbar" style="min-height:48px;width:100%;text-transform:none" ng-if="visibleToProfile(menu)"> 
	                <md-icon md-font-icon="{{menu.icon}}" class="fa"></md-icon>
	                {{menu.label}}
	            </md-button>
	            <md-button id="{{submenu.id}}" style="min-height:30px;width:100%;text-align:left;text-transform:none"  ng-repeat="submenu in menu.subMenu" ng-click="go(submenu.href, submenu.tipoChiamata)" 
	            	title="{{submenu.label}}" ng-if="visibleToProfile(submenu)" data-href="{{submenu.href}}" ng-class="{'selectedRow': isCurrentMenu(submenu.href)}">
	    			<md-icon md-font-icon="{{submenu.icon}}" class="fa"></md-icon>
	        		{{submenu.label}}
	   			</md-button>
	        </div>
	    </div>
    </md-sidenav>
	   
	<div flex layout="column">
 	       
		<md-toolbar layout="row" class="md-toolbar-tools" ng-show="isUserLoggedIn()" id="menu">
			<md-button aria-label="menu" class="md-icon-button" ng-click="showMenu()">
				<md-icon  md-font-icon="fa-ellipsis-v" class="fa fa-lg"></md-icon>
				<md-tooltip>Mostra / nasconde il menu laterale</md-tooltip>
			</md-button>

		    <md-menu-bar ng-show="isUserLoggedIn()">
		    	<md-menu ng-repeat="menuitem in menu()" id="SB{{menuitem.id}}" ng-if="visibleToProfile(menuitem)">
		    		<md-button ng-click="$mdMenu.open()">
		    			<md-icon md-font-icon="{{menuitem.icon}}" class="fa"></md-icon>
	              		<span style="color:white;text-transform:none;font-weight:500">{{menuitem.label}}</span>
	            	</md-button>
	            	
	            	<md-menu-content>
	              		<md-menu-item ng-repeat="submenu in menuitem.subMenu" ng-if="visibleToProfile(submenu)">
	            			<md-button id="SB{{submenu.id}}"  ng-click="go(submenu.href, submenu.tipoChiamata)" title="{{submenu.label}}" style="text-transform:none;font-weight:500" ng-if="visibleToProfile(submenu)">
				    			<md-icon md-font-icon="{{submenu.icon}}" class="fa"></md-icon>
	              				{{submenu.label}}
	            			</md-button>
	              		</md-menu-item>
	             	</md-menu-content>            	
		    	</md-menu>
		    </md-menu-bar>
		    <span flex></span>
		    <span ng-if="isAmbienteTest()" style="margin-right:14px;white-space: nowrap;overflow:hidden;text-overflow:ellipsis;">- Ambiente di TEST -</span>
		    <div ng-show="isUserLoggedIn()" layout="row" layout-align="center center">
		    	<i class="fa fa-user"></i>
		    	<span ng-show="largeScreen()">&nbsp; {{getCurrentUser().userDescription}} - {{getCurrentUser().userProfile}}</span>
		    	<md-button aria-label="logout" class="md-icon-button" ng-click="logout()">
	            	<md-icon md-font-icon="fa-sign-out" class="fa"></md-icon>
	       			<md-tooltip>Logout</md-tooltip>
	         	</md-button>
		    </div>
		  </md-toolbar>
		

		<div ng-view layout="column" id="view"  layout-padding layout-fill flex> 
			
		</div>
	</div>
</body>

<script type="application/javascript" src="js/jquery-3.2.1.min.js"></script>
<script type="application/javascript" src="js/controller/loginCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/mainCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/menuCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/allineamentoSEDACtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/incassiSDDCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/incassiSDDEsteriCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/pagamentiSCTCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/pagamentiDOMCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/pagamentiSCTInpsCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/pagamentiSCTEsteriCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/assegniIntesaCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/logSicuraSchedulerCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/estrattoreCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/ricercaDisposizioniCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/sedaRemunerationCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/distinteBancaCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/acquisizioneFlussiCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/tabellaFunzioniCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/tipologieCtrl.js?v=1.7.9.2"></script>           
<script type="application/javascript" src="js/controller/tabellaFirmeDistinteCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/tabellaFlussiNonSedaCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/ricercaFilialiEstesaCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/ordinantiCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/utentiCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/reportPagamentiCtrl.js?v=1.7.9.2"></script>
    
<!--  dialogs -->

<script type="application/javascript" src="js/controller/dialog/filtroDisposizioniCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/dettaglioDisposizioneCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/dettaglioDisposizioneSedaCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/dettaglioDisposizioneSctCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/logStatiCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/delegheSedaCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/dettaglioEstrattoreCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/ricercaFilialiCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/ricercaContiCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/selezioneDataCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/delegatiFirmaCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/opzioniPianoEstrazioneCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/destinatariCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/parametriCtrl.js?v=1.7.9.2"></script>
<script type="application/javascript" src="js/controller/dialog/filtroDistinteCtrl.js?v=1.7.9.2"></script>

</html>