<?php 
	include("config/sessao.php"); 
	include("config/dominio.php"); 
	echo "<script>dominio='".$dominio."';</script>";
?>
<!DOCTYPE html>
<html>
<head>
<title>Bi</title>
<meta charset="utf-8">
<meta name="wiewport" content="width=device-width" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Bootstrap core CSS apenas para o navbar-->
<link rel="stylesheet" type="text/css" href="<?php echo $dominio;?>/vendor/ckeditor/contents.css"/>

 <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
  <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
  <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
 

<link rel="stylesheet" type="text/css" href="<?php echo $dominio;?>/vendor/jquery-ui/css/jquery-ui-1.8.20.custom.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $dominio;?>/vendor/jquery-ui/css/jquery-ui.css"/>
 <link href="<?php echo $dominio;?>/vendor/jquery-ui-timepicker/css/jquery-ui-timepicker-addon.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="<?php echo $dominio;?>/css/wagnerStrap.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $dominio;?>/css/sistema.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $dominio;?>/css/builder.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $dominio;?>/css/carrosselRodadas.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo $dominio;?>/vendor/tabulator-master/dist/css/tabulator.min.css"/>
<link rel="stylesheet"  href="<?php echo $dominio;?>/vendor/select2/select2.min.css"/>


<!--<link rel="stylesheet" type="text/css" href="vendor/font-awesome/css/font-awesome.css"/>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" />-->


<link rel="stylesheet" 
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.2/css/all.min.css">

<!-- e-commerce-->
<style>
	/*.icone_fa{
		font-family: fontAwesome
	}
	.icone_fa option{
		font-family: fontAwesome
	}*/
	
	.pag_categoria {width: auto;   text-align: left; float: left; margin-top: 15px; padding: 10px;  }	
	.pag_conteudo {width: calc(100% - 205px); min-height: calc(100% - 125px); text-align: center; float: left; padding: 10px; }
	
	.slide_produto {position: relative; width: calc(65% - 5px); height: 400px; max-height: 500px;  float: left; padding: 10px; background: white; border-radius: 10px 0 0 0px; margin-right: 1px;}
	.informacoes_compra_produto {width: 35%; height: 100%;  height: 400px;  float: left; padding: 10px; background: white; border-radius: 0 10px 0px 0; margin-left: 0px;}
	.anuncio_produto {padding: 10px; background: white; height: 350px; width: 260px; border-radius: 3px; margin: 10px; position: relative; float: left; text-align: left; box-sizing: border-box; word-wrap: break-word; }
	.btn_pasquisa_produto {left: 50%; transform: translatex(-50%); position: absolute; max-width: 400px; width: 100%; }
	#categoria_mobile {position: relative; width: calc(100% - 25px); max-width: 200px; margin: 0 auto; margin-top: 10px; display: none;}
	#nav_ecommerce {width: 100%;  background: white;  display: table; 
	-webkit-box-shadow: 0 8px 12px -12px #222;
	  -moz-box-shadow: 0 8px 12px -12px #222;
	  box-shadow: 0 8px 6px -12px #222;
	}
	#nav_ecommerce {background: white;}
	#nav_ecommerce *{font-size: 14px;}
	#home_icon{font-size: 17px;}
	#nav_busca {width: 100%; max-width: 400px; margin: 0 auto; position: relative; top: -45px; ;}
	#nav_busca_pai {width: calc(100% - 80px);}
	#descricao_produto{width: 99.6%;}
	#categoria_adm_mobile {display: none;}
	#busca_produtos{width: calc(100% - 50px); float: left; margin-right: 5px;}
	
	border-radius: 0;
	/*-webkit-box-shadow: 0 8px 12px -12px #222;
	  -moz-box-shadow: 0 8px 12px -12px #222;
	  box-shadow: 0 8px 6px -12px #222;*/
	}
	
	@media not print {
		@media screen and (max-width:850px)
		{
			.pag_categoria {display: none;}
			//.pag_conteudo  {width: 100%; max-width: 600px; margin-left: 50%; transform: translateX(-50%); -ms-transform: translateX(-50%); }
			.pag_conteudo  {width: 100%;}
			.slide_produto {width: calc(100% - 5px); border-radius: 10px 10px 0px 0; height: 400px;}
			.informacoes_compra_produto {width: 100%; border-radius: 0; height: auto;}
			#categoria_mobile {display: block; }
			#nav_busca_pai {width: 100%;}
			#nav_busca {top: 5px;}
			#descricao_produto{width: 100%;}
			#categoria_adm_mobile {display: block;}
			<?php if(isset($_GET["admin"])) { ?>
			#busca_produtos{width: calc(100% - 100px); float: left;}
			<?php } ?>
		}
		@media screen and (max-width:650px)
		{
			
			.pag_categoria {display: none;}
			//.pag_conteudo  {width: 100%;  margin-left: 50%; transform: translateX(-50%); -ms-transform: translateX(-50%); overflow:hidden; min-height: calc(100% - 80px)}
			.anuncio_produto { margin-left: 50%; transform: translateX(-50%); -ms-transform: translateX(-50%);  }
			.btn_pasquisa_produto {position: relative; }
			.slide_produto {width: calc(100% - 5px); border-radius: 10px 10px 0px 0; height: 300px;}
		}
		@media screen and (max-width:450px)
		{
			.nav_label{display: none;}
			#nav_ecommerce *{font-size: 20px;}
			#home_icon{font-size: 25px;}
			#nav_busca {margin: 10px; width: calc(100% - 10px)}
			
		}
	}
	#body{background: #f2f2f2; padding: 0px;  width: 100%;}
	#btn_busca_nav {float: left;  margin-left: -41px; margin-top: 1px; border: none; border-left: solid 1px #d9d9d9; border-radius: 0;
	}
	#img_logo{position: absolute; top: 0px; height: 50px;  border: none; outline : none;  margin-top: 5px;}
	#img_logo_div{margin: 0px; float: left; padding: 10px;}
	
	.pag_categoria *{font-size: 15px;}
	.pag_categoria a{font-size: 15px;}
	#botoes_direita {margin: 0px; margin-right: 20px; float: right; padding: 10px;}
	.ui-dialog-titlebar-close{border: none; background: none;}
	#glass { /*para zoom imagem*/
		position: absolute;
		border-radius: 50%;
		box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.85), 0 0 7px 7px rgba(0, 0, 0, 0.25), inset 0 0 40px 2px rgba(0, 0, 0, 0.25);
		display: none;
		background-repeat: no-repeat;
		background-color: rgba(0,0,0,.6);
	}
	
	.tableAnalise {border: solid 1px #a7b5c3; }
	.tableAnalise td {padding: 3px; border: solid 1px #a7b5c3; font-size: 11px;  }
	.tableAnalise * {     font-size: 11px; }
	.tableAnalise thead * {font-size: 10px;  font-weight: bold;}
	.tableAnalise .tdTotalizadorBi { font-weight: bold; color: #404040;}
	.tableAnalise thead { transform: translate(0px, -2px);}
	.tableAnalise thead td {position: relative; }
	/*multipla escolha*/
	.divMultiPlaEscolha{width: 100%; display: block;}
	
	
	.navbar {border-radius: 0;}
	#conteudo {text-align: left;}
	.escolher_tipo_analise_filtro {float: left;  border: solid 1px white; padding: 10px; border-radius: 10px;}
	.escolher_tipo_analise_filtro:hover {border: solid 1px #b3b3b3;}/*usado na criação de análise*/
	.tableAnalise {border-collapse: collapse;}
	/*.tabulator-col, .tabulator-sortable {background: white; padding: 5px;}
	tabulator-cell {padding: 5px;}*/
	
	/*criação análise*/
	.form {border: solid 1px #d9d9d9;  }
	.etapas_criar_analise label{font-size: 11px; color: #999999;}
	.etapas_criar_analise .form{border: 0; border-bottom: solid 1px #d9d9d9; border-radius: 0; }
	.etapas_criar_analise select{padding: 4px;}
	.etapas_criar_analise b{font-size: 11px;}
	#query {color: #808080;}
	#etapa2 label{font-size: 11px;}
	#etapa2 b{font-size: 11px;}
	#etapa3 label{font-size: 11px;}
	#etapa2 .filtroForm {vertical-align: top;}
	#etapa3 .filtroForm {vertical-align: top;}
	#etapa3 b{font-size: 11px;}
	#etapa4 .filtroForm {vertical-align: top;}
	#etapa4 b{font-size: 11px;}
	
	
	
	/*.modal_conteudo {padding: 0; marign: 0; }*/
	#config_coluna td{font-size: 11px;}
	#config_coluna b{font-size: 11px;}
	#cores_dinamica td{font-size: 11px;}
	#cores_dinamica b{font-size: 11px;}
	
	/*ajusta tabela*/
	/*.tabulator *{border: none; margin: 0; padding: 0;}
	.tabulator-header {height: 50px;}
	.tabulator-headers {height: 50px;}
	.tabulator-sortable {background: white; height: 50px;}
	.tabulator-col-content {background: white; height: 50px; min-width: 120px;}
	.tabulator-col-title {padding: 10px;}
	.tabulator-col-resize-handle prev {border: none; margin: 0; width: 0;}
	.tabulator-col {border: none;}*/
	.tabulator-col, .tabulator-sortable{ border: 0; margin: 0;}
	.btnSuccess {background: #ededed; color: #808080; font-weight: bold; font-size: 12px; padding: 6px; padding-left: 15px; padding-right: 15px;}
	.btnDanger {font-size: 12px; padding: 6px; padding-left: 15px; padding-right: 15px;}
	/*Ajustar filtros e tab list*/
	.cards {width: 100%; overflow: auto; position: relative;}
	
	/*Ajustar pagina view*/
	.widgetcard {width: 227px;  padding: 25px; text-align: left; position: relative; background: white; height: 90px;}
	.widgetcardcapa {width: 227px;}
	.analise_item{margin-bottom: 5px; position: relative; border: solid 1px #f3f1f1; box-shadow: 0px 1px 3px 0px #d9d9d9;}
	.analise_item_left {float: left; display: Inline-block; margin-right: 7px; }
	.analise_item_right {float: right;}
	.analise_item_certer {display: Inline-block;}
	.analise_item_50 {width: calc(50% - 5px);}
	.analise_item_33 {width: calc(33% - 5px);}
	.analise_item_25 {width: calc(33% - 5px);}
	#modaleditarbi_pagina_header{display: table;}
	#modal_conteudobi_pagina {position: relative;}
	.texto p {	margin: 0;}
	.analise_item p {	margin: 0;}
	.cke_contents p {	margin: 0;}
	.cke_editable p {	margin: 0;}
	.analise_item_right { display: Inline-block;}
	@media not print {
		@media (max-width: 1250px) {
			.analise_item_right { float: left;  display: Inline-block;}
			
		}	
		@media (max-width: 980px) {
			.widgetcardcapa {width: calc(50% - 5px)}
			.widgetcard {width: 100%}
		   .analise_item_33 {width: 100%;}
		   .analise_item_25 {width: 100%;}
		   .analise_item_certer { float: left; margin-left: 5px; display: Inline-block;}
		   .analise_item_right { float: left; display: Inline-block;}
		   .clasTabChart {width: calc(100% - 5px)}
		   .analise_item_left { margin-right: 5px;}
		}
		@media (max-width: 850px) {
		   .analise_item_certer { float: left; margin-left: 5px; display: Inline-block;}
		   .analise_item_right { float: left; display: Inline-block;}
		   .analise_item_left { float: left; display: Inline-block; margin-right: 5px;}
		   .widgetcard {width: 100%}
		   .analise_item_33 {width: 100%;}
		   .analise_item_25 {width: 100%;}
		   
		}
		@media (max-width: 800px) {
		   .analise_item_50 {width: 100%;}
		   .analise_item_left { margin-right: 5px;}
		   
		}
	}
	#myNavbar{  margin-left: 188px;}
	@media not print {
		@media (max-width: 610px) {
		   .widgetcardcapa {width: 100%}
		   .widgetcard {width: 100%}
		   .navTopo {z-index: 9999;}
		   #myNavbar{  margin-left: 0;}
		   .analise_item_left { margin-right: 5px;}
		}
	}
	--ck-z-default: 100 !important;
	--ck-z-modal: calc( var(--ck-z-default) + 999 ) !important;
	.ck-content .table {
		width: auto;
	}
	:root {
		--ck-z-default: 100;
		--ck-z-panel: calc( var(--ck-z-default) + 999 );
	}
	.navbar-brand {width: 220px;}
	
	.linha_cor_dinamica *{font-size: 11px;}
	.linha_filtro *{font-size: 11px;}
	.modal {background: rgba(0,0,0, 0.8)}
	.modal_documento {height: calc(100% - 85px);}
	.select2-container--open {z-index: 99999;}
	.table {border: none; width: 100%;}
	.tableHead {border-top: none; border-left: none; border-right: none; background: white; width: 100%;}
	.table tr {border-top: none; border-left: none; border-right: none;}
	.table .colComplet {width: 100%;}
	.table tr td { white-space: nowrap; text-overflow: ellipsis; overflow: hidden;}
	.botaoDashLateral {width: 31px; transition: width 1s; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; border-radius: 5px;}
	.botaoDashLateral:hover { width: 130px;}
	#mySidenav {z-index: 15;}
	
	@media (max-width: 290px) {
	  .menuTitulo {display: none;}
	}
	.cke_notifications_area{display: none;}
	/*cor menu
	.navTopo{background: #373f49; color: #cccccc;}
	#mySidenav {background: #373f49; color: #cccccc;}
	.menuTitulo{background: #2c323a; color: #cccccc;}
	.navTopo *{color: #cccccc;}
	.menuTitulo *{color: #cccccc;}
	#mySidenav *{color: #cccccc;}
	.navbar-inverse .navbar-nav>li>a {
		color: #cccccc;
	}*/
	*{font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;}
	.nav {font-weight: bold;}
	/*.dropdown-menu {font-weight: bold; color: rgb(99, 113, 140);}
	.dropdown-menu a {font-weight: bold; color: rgb(99, 113, 140);}
	.dropdown-menu * {font-weight: bold; color: rgb(99, 113, 140);}*/
	.dropdown-menu {color: rgb(99, 113, 140);}
	.dropdown-menu a {color: rgb(99, 113, 140);}
	.dropdown-menu * {color: rgb(99, 113, 140);}
	@media print{
		#mySidenav, .botaoDashLateral, #navTopo, .dropdown_filtro, #btnOpenNav, .dropdown-item, .dropdown, .grupExport {display: none;}
		.dropdown *{display: none;}
		#mySidenav {width: 0px; margin-left: 0; width: 100%;}
		@page {
			   size: landscape letter;
			}
	}
	/*corrige select2 em modal
	.modal{z-index: 100000 !important;}*/
	.select2-container--open {	z-index: 9999999 !important;}
	/**/
</style>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/css/selectize.default.min.css"/>

<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.css" />
<link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder/dist/Control.Geocoder.css" />
<!--<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-rc.0/dist/css/select2.min.css" rel="stylesheet" />-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/leaflet/1.9.4/leaflet.js"></script>
</head>

<script src="<?php echo $dominio;?>js/jquery.min.js"></script>
<script src="<?php echo $dominio;?>js/sistema.js"></script>
<script src="<?php echo $dominio;?>js/slide.js"></script>
<script src="<?php echo $dominio;?>js/jquery.mask.js"></script>
<script src="<?php echo $dominio;?>js/wagnerStrap.js"></script>
<script src="<?php echo $dominio;?>vendor/jquery-ui/js/jquery-ui.js"></script>
<script src="<?php echo $dominio;?>vendor/ckeditor/ckeditor.js"></script>
<script src="<?php echo $dominio;?>vendor/ckeditor/js/sample.js"></script>
<script src="<?php echo $dominio;?>vendor/jquery-ui-timepicker/js/jquery-ui-timepicker-addon.js"></script>
<script src="<?php echo $dominio;?>vendor/tabulator-master/dist/js/tabulator.min.js"></script>
<script src="<?php echo $dominio;?>js/funcoes_tabela.js"></script>
<script src="<?php echo $dominio;?>vendor/select2/select2.min.js"></script>
<script src="<?php echo $dominio;?>js/funcoes_data.js"></script>
<!--<script src="vendor/lightzoom/glassstyle.min.css"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/selectize.js/0.15.2/js/selectize.min.js"></script>-->

<script src="https://code.highcharts.com/highcharts.js"></script>
<script src="https://code.highcharts.com/highcharts-more.js"></script>
<script src="https://code.highcharts.com/modules/data.js"></script>	
<body>

<button type="button" style="display: none;" id="btn_abrir_modal_avisos" class="btn btn-primary" data-toggle="modal" data-target="#modal_avisos" data-backdrop="static" data-keyboard="false">
  Abrir modal
</button>
<!-- Modal -->
<div class="modal fade" id="modal_avisos" data-focus="false" data-bs-focus="false"  role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header" style="display: none;" >
        <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
        <button type="button" class="close" data-dismiss="modal" aria-label="Close">
          <span aria-hidden="true">&times;</span>
        </button>
      </div>
      <div class="modal-body" id="conteudo_avisos">
        <b>Avisos</b>
      </div>
      <div class="modal-footer" style="display: none;" >
        <button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
        <button type="button" class="btn btn-primary">Save changes</button>
      </div>
    </div>
  </div>
</div>

<script>
	function altera_tipo_visualizacao_lista(tipo_table)
	{
		if(tipo_table == "card")
		{
			$(".tab_ou_card tbody").css({display: "table", width: "100%", position: "relative"});
			$(".tab_ou_card thead").css({display: "none"});
			$(".tab_ou_card").css({border: "none"});
			$(".tabulator").css({display: "none"});
			$(".tab_ou_card").css({display: "none"});
			$(".cards").css({display: "block"});
			
		}
		else
		{
			$(".tab_ou_card").css({border: "none"});
			$(".tabulator").css({display: "block"});
			$(".cards").css({display: "none"});
			 setTimeout(function() { 
				layout_table();
			}, 1);
			
		}
	}
	function abrir_modal_aviso(strAviso)
	{
		$("#modal_avisos").css("z-index", "1");
		$("#conteudo_avisos").html(strAviso);	
		$(".modal-backdrop").css("display", "block");
		$("#modal_avisos").css("display", "block");
		$("#modal_avisos").css("z-index", "9999999");
		$("#conteudo_avisos").css("z-index", "9999999");
		$("#conteudo_avisos").css("display", "block");
		$("#btn_abrir_modal_avisos").click();
		$('#modal_avisos').css('display',"block");	
		/*$( '#btn_abrir_modal_avisos' ).modal( {
			focus: false
		} );*/		
		
	}
	function fechar_modal_aviso()
	{
		
		setTimeout(function(){
			$("#btn_abrir_modal_avisos").click();
			$('#modal_avisos').css('display',"none");			
			//$("body").css("overflow", "visible");
			/*$(".modal").css("z-index", "999");
			$(".modal-backdrop").css("display", "none");
			$("#modal_avisos").css("display", "none");
			$("#conteudo_avisos").css("display", "none");*/
		}, 100);
		
					
	}
	$(document).on('click', '.modal_fechar', function () { 
		setTimeout(function(){
			$("body").css("overflow", "visible");
		}, 100);	
	});
	///Exemplo de layout https://codervent.com/rocker/demo/vertical/index.html
	//https://startbootstrap.com/theme/sb-admin-2
	//altera
	//$("#conteudo").load("src/controller/Bi_analiseControllerUser.php?mod=form_analise&codigo=36");
	//$("#conteudo").load("src/controller/Bi_analiseControllerUser.php?mod=form_grafico&codigo=40");
	//cria nova
	//$("#conteudo").load("src/controller/Bi_analiseControllerUser.php?mod=form_analise");
	//$("#conteudo").load("src/controller/Bi_analiseControllerUser.php?mod=form_grafico");
	requisicaoAtual = new XMLHttpRequest();
	requisicaoAtual.onreadystatechange = function(){
			if (requisicaoAtual.readyState == 4 && requisicaoAtual.status == 200){
				//callback(xmlhttp.responseText);
				$("#conteudo").html(requisicaoAtual.responseText);
			}
		}
	 $(document).on('click', '.listar_analises_adm', function () { 
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_analiseControllerUser.php?mod=filtro_user&carragar_formulario_seletor=modal_conteudobi_analise");
	});
	
	$(document).on('click', '.listar_analises', function () { 
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_analiseControllerUser.php?mod=filtro_analise&carragar_formulario_seletor=modal_conteudobi_analise");
	});
	$(document).on('click', '.lista_paginas_admin', function () {
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_paginaControllerUser.php?mod=filtro_admin&carragar_formulario_seletor=modal_conteudobi_pagina");
	});
	
	$(document).on('click', '.lista_areas_admin', function () { 
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_areaController.php?mod=filtro&carragar_formulario_seletor=modal_conteudobi_area");
	});
	$(document).on('click', '.lista_conexoes_admin', function () { 
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_conexaoController.php?mod=filtro&carragar_formulario_seletor=modal_conteudobi_conexao");
	});
	$(document).on('click', '.lista_modelos_dados', function () {  
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_modelo_dadosController.php?mod=filtro&carragar_formulario_seletor=modal_conteudobi_modelo_dados");
	});
	$(document).on('click', '.lista_grupo_permissao_admin', function () {  
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_grupo_permissaoController.php?mod=filtro&carragar_formulario_seletor=modal_conteudobi_grupo_permissao");
	});
	function listar_paginas()
	{
		$("body").css("background","RGB(247, 248, 251)");
		$("#list_pag").load("<?php echo $dominio;?>/src/controller/Bi_paginaControllerUser.php?mod=lista_paginas&carragar_formulario_seletor=modal_conteudobi_pagina");
	}
	$(document).on('click', '.lista_usuarios_admin', function () {   
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_usuarioControllerUser.php?mod=filtro_user&carragar_formulario_seletor=modal_conteudobi_usuario");
	});
	$(document).on('click', '.lista_permissao_analise', function () {   
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_permissao_analiseControllerUser.php?mod=filtro_user&carragar_formulario_seletor=modal_conteudobi_permissao_analise");
	});
	$(document).on('click', '.lista_permissao_pagina', function () {   
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_permissao_paginaControllerUser.php?mod=filtro_user&carragar_formulario_seletor=modal_conteudobi_permissao_pagina");
	});
	$(document).on('click', '.layout_importacao', function () {
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_layout_importacaoControllerUser.php?mod=filtro_user&carragar_formulario_seletor=modal_conteudobi_layout_importacao");
	});
	$(document).on('click', '.importacao_file', function () {
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_layout_importacaoControllerUser.php?mod=form_import&carragar_formulario_seletor=modal_conteudobi_layout_importacao");
	});
	$(document).on('click', '.log_acesso', function () {
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_log_acessoController.php?mod=filtro&carragar_formulario_seletor=modal_conteudobi_log_acesso");
	});
	$(document).on('click', '.carga_tabela', function () {
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_carga_dadosController.php?mod=filtro&carragar_formulario_seletor=modal_conteudobi_carga_dados");
	});
	function abrir_pagina(codigo)
	{
		
		cancelar_todas_requisicoes_analises();
		//requisicaoAtual.abort();
		//$("body").css("background","RGB(247, 248, 251)");
		//$("body").css("background-color","blue");
		//$("#pagina_vew").load("src/controller/Bi_paginaControllerUser.php?mod=pagina_view&codigo="+codigo);
		//$("#conteudo").html("Aguarde..");
		//$("body").css("background","RGB(247, 248, 251)");
		$("body").css("background","white");
		$("#conteudo").load("<?php echo $dominio;?>/src/controller/Bi_paginaControllerUser.php?mod=pagina_view&codigo="+codigo);
		
		  /*$.ajax({
			async: true,
            url: "src/controller/Bi_paginaControllerUser.php?mod=pagina_view&codigo="+codigo,
            success: function(data) {
              $("#conteudo").html(data);
            }
          });*/
		  
	}
	
	
	//adiciona afterShow nas datas datepicker ///correçõs no calendario ao avançar ou retroceder data/ pega o seletor proximo na pagina view
	$(function() {
		$.datepicker._updateDatepicker_original = $.datepicker._updateDatepicker;
		$.datepicker._updateDatepicker = function(inst) {
			$.datepicker._updateDatepicker_original(inst);
			var afterShow = this._get(inst, 'afterShow');
			if (afterShow)
				afterShow.apply((inst.input ? inst.input[0] : null));  // trigger custom callback
		}
	});
	/////
</script>
