<?php
/**
 * @package     Joomla.Site
 * @subpackage  Templates.protostar
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

defined('_JEXEC') or die;

/** @var JDocumentHtml $this */

$app  = JFactory::getApplication();
$user = JFactory::getUser();

// Output as HTML5
$this->setHtml5(true);

// Getting params from template
$params = $app->getTemplate(true)->params;

// Detecting Active Variables
$option   = $app->input->getCmd('option', '');
$view     = $app->input->getCmd('view', '');
$layout   = $app->input->getCmd('layout', '');
$task     = $app->input->getCmd('task', '');
$itemid   = $app->input->getCmd('Itemid', '');
$sitename = $app->get('sitename');

if ($task === 'edit' || $layout === 'form')
{
	$fullWidth = 1;
}
else
{
	$fullWidth = 0;
}

// Add JavaScript Frameworks
JHtml::_('bootstrap.framework');

// Add template js
JHtml::_('script', 'template.js', array('version' => 'auto', 'relative' => true));

// Add html5 shiv
JHtml::_('script', 'jui/html5.js', array('version' => 'auto', 'relative' => true, 'conditional' => 'lt IE 9'));

// Add Stylesheets
JHtml::_('stylesheet', 'template.css', array('version' => 'auto', 'relative' => true));

// Use of Google Font
if ($this->params->get('googleFont'))
{
	JHtml::_('stylesheet', '//fonts.googleapis.com/css?family=' . $this->params->get('googleFontName'));
	$this->addStyleDeclaration("
	h1, h2, h3, h4, h5, h6, .site-title {
		font-family: '" . str_replace('+', ' ', $this->params->get('googleFontName')) . "', sans-serif;
	}");
}

// Template color
if ($this->params->get('templateColor'))
{
	$this->addStyleDeclaration('
	body.site {
		border-top: 3px solid ' . $this->params->get('templateColor') . ';
		background-color: ' . $this->params->get('templateBackgroundColor') . ';
	}
	a {
		color: ' . $this->params->get('templateColor') . ';
	}
	.nav-list > .active > a,
	.nav-list > .active > a:hover,
	.dropdown-menu li > a:hover,
	.dropdown-menu .active > a,
	.dropdown-menu .active > a:hover,
	.nav-pills > .active > a,
	.nav-pills > .active > a:hover,
	.btn-primary {
		background: ' . $this->params->get('templateColor') . ';
	}');
}

// Check for a custom CSS file
JHtml::_('stylesheet', 'user.css', array('version' => 'auto', 'relative' => true));

// Check for a custom js file
JHtml::_('script', 'user.js', array('version' => 'auto', 'relative' => true));

// Load optional RTL Bootstrap CSS
JHtml::_('bootstrap.loadCss', false, $this->direction);

// Adjusting content width
$position7ModuleCount = $this->countModules('position-7');
$position8ModuleCount = $this->countModules('position-8');

if ($position7ModuleCount && $position8ModuleCount)
{
	$span = 'span6';
}
elseif ($position7ModuleCount && !$position8ModuleCount)
{
	$span = 'span9';
}
elseif (!$position7ModuleCount && $position8ModuleCount)
{
	$span = 'span9';
}
else
{
	$span = 'span12';
}

// Logo file or site title param
if ($this->params->get('logoFile'))
{
	$logo = '<img src="' . JUri::root() . $this->params->get('logoFile') . '" alt="' . $sitename . '" />';
}
elseif ($this->params->get('sitetitle'))
{
	$logo = '<span class="site-title" title="' . $sitename . '">' . htmlspecialchars($this->params->get('sitetitle'), ENT_COMPAT, 'UTF-8') . '</span>';
}
else
{
	$logo = '<span class="site-title" title="' . $sitename . '">' . $sitename . '</span>';
}
?>
<!DOCTYPE html>
<html lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>"><head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  
  <link href="tour/introjs.css" rel="stylesheet">

  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="painel-frontend/bower_components/bootstrap/dist/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="painel-frontend/bower_components/font-awesome/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="painel-frontend/bower_components/Ionicons/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="painel-frontend/dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="painel-frontend/dist/css/skins/_all-skins.min.css">
  <!-- Morris chart -->
  <link rel="stylesheet" href="painel-frontend/bower_components/morris.js/morris.css">
  <!-- jvectormap -->
  <link rel="stylesheet" href="painel-frontend/bower_components/jvectormap/jquery-jvectormap.css">
  <!-- Date Picker -->
  <link rel="stylesheet" href="painel-frontend/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
  <!-- Daterange picker -->
  <link rel="stylesheet" href="painel-frontend/bower_components/bootstrap-daterangepicker/daterangepicker.css">
  <!-- bootstrap wysihtml5 - text editor -->
  <link rel="stylesheet" href="painel-frontend/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.min.css">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

  <!-- Google Font -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
<script type="text/javascript" language="javascript" src="JS-LOCAL/jquery-3.3.1.js"></script>
<script type="text/javascript">
</script>
<style>

#dt_359{ width:100%!important;}
#dt_342{ width:100%!important;}
.fg-toolbar{ display:none;}
body {
  overflow: hidden; 
}
 
/* ini: Preloader */
 
#preloader {
    position:fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background-color:#2196f3; /* cor do background que vai ocupar o body */
    z-index:999999; /* z-index para jogar para frente e sobrepor tudo */
}
#preloader .inner {
    position: absolute;
    top: 50%; /* centralizar a parte interna do preload (onde fica a animação)*/
    left: 50%;
    transform: translate(-50%, -50%);
}
.bolas > div {
  display: inline-block;
  background-color: #fff;
  width: 25px;
  height: 25px;
  border-radius: 100%;
  margin: 3px;
  -webkit-animation-fill-mode: both;
  animation-fill-mode: both;
  animation-name: animarBola;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
   
}
.bolas > div:nth-child(1) {
    animation-duration:0.75s ;
    animation-delay: 0;
}
.bolas > div:nth-child(2) {
    animation-duration: 0.75s ;
    animation-delay: 0.12s;
}
.bolas > div:nth-child(3) {
    animation-duration: 0.75s  ;
    animation-delay: 0.24s;
}
 
@keyframes animarBola {
  0% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1;
  }
  16% {
    -webkit-transform: scale(0.1);
    transform: scale(0.1);
    opacity: 0.7;
  }
  33% {
    -webkit-transform: scale(1);
    transform: scale(1);
    opacity: 1; 
  } 
}
/* end: Preloader */
</style>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<!-- início do preloader -->
    <div id="preloader">
        <div class="inner">
           <!-- HTML DA ANIMAÇÃO -->
           <div class="bolas">
              <div></div>
              <div></div>
              <div></div>                    
           </div>
        </div>
    </div>
    <!-- fim do preloader -->
<div class="wrapper">
<script>
//<![CDATA[
$(window).on('load', function () {
    $('#preloader .inner').fadeOut();
    $('#preloader').delay(350).fadeOut('slow'); 
    $('body').delay(350).css({'overflow': 'visible'});
})
//]]>
</script>
  <header class="main-header">
    <!-- Logo -->
    <a href="acesso-restrito" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>D</b>FT</span>
      <!-- logo for regular state and mobile devices -->
      <span class="logo-lg"><b>DATAF</b>ull</span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top">
      <!-- Sidebar toggle button-->
      
      <a href="#" class="sidebar-toggle" data-step="1" data-intro="Abrir ou fechar menu lateral!" data-toggle="push-menu" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
<jdoc:include type="modules" name="buscarapida" />
<jdoc:include type="modules" name="barramenuinterna" />
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <!-- Messages: style can be found in dropdown.less-->
          <li class="bg-verde">
           
              

            
          </li>
          <!-- Notifications: style can be found in dropdown.less -->
          <li class="bg-laranja" data-step="9" data-intro="Voltar para página inicial do Acesso Restrito!">
            <a style="text-align:center;" href="acesso-restrito" data-tooltip="Início" class="tooltip-bottom">
              <i class="fa fa-home"></i>
              
            </a>
          
         <li class="bg-laranja" data-step="10" data-intro="Sempre acesse as notificações do sistema para eventuais melhorias ou correções!">
            <a style="text-align:center;" href="#" id="myBtn" data-tooltip="Notificações" class="tooltip-bottom">
              <i class="fa fa-bell-o"></i>
              
            </a>
            
             <li class="bg-laranja" data-step="11" data-intro="Se desejar, acesse o painel em tela cheia para facilitar a visualização!">
            <a style="text-align:center;" href="#" id="btnFullscreen" data-tooltip="Tela Cheia" class="tooltip-bottom">
              <i class="fa fa-arrows-alt"></i>
              
            </a>
            
            
           

<!-- The Modal -->
<div id="myModal" class="modal2" style=" display:none;">

  <!-- Modal content -->
  <div class="modal2-content">
    <span class="close">X</span>
    <jdoc:include type="modules" name="notificacoes" />
  </div>

</div>

<script>
// Get the modal
var modal = document.getElementById('myModal');

// Get the button that opens the modal
var btn = document.getElementById("myBtn");

// Get the <span> element that closes the modal
var span = document.getElementsByClassName("close")[0];

// When the user clicks the button, open the modal 

btn.onclick = function() {
    modal.style.display = "block";
}

// When the user clicks on <span> (x), close the modal
span.onclick = function() {
    modal.style.display = "none";
}

// When the user clicks anywhere outside of the modal, close it
window.onclick = function(event) {
    if (event.target == modal) {
        modal.style.display = "none";
    }
}
</script>
         
          <!-- User Account: style can be found in dropdown.less -->
          <li class="dropdown user user-menu" data-step="12" data-intro="Avatar, Nome e Matrícula. Clique se desejar acessar seu perfil!">
            <a href="dados-cadastrais" class="dropdown-toggle" data-toggle="dropdown">
            
<jdoc:include type="modules" name="nomelogado" />
            </a>
           
          <li class="bg-preto" data-step="13" data-intro="Mudar cores do painel e varias opções extras!">
            <a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
          </li>
        </ul>
      </div>
    </nav>
  </header>
  <!-- Left side column. contains the logo and sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- Sidebar user panel -->

      <!-- search form -->
      <form action="#" method="get" style="display:none;" class="sidebar-form">
        <div class="input-group">
          <input type="text" name="q" class="form-control" placeholder="Search...">
          <span class="input-group-btn">
                <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
                </button>
              </span>
        </div>
      </form>
      <!-- /.search form -->
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu" data-widget="tree">
        <li class="header">USUÁRIO</li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-user"></i> <span>Seus Dados</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
<img src="<?php echo K2HelperUtilities::getAvatar($user->id, $user->email); ?>" alt="" width="218" height="150" class="user-image" style="background: url(images/no-image.png) no-repeat center center; border-radius:3px; margin-top:5px;">
         
          <jdoc:include type="modules" name="minhaspub" />
          </ul>
        </li>
        
        <li class="treeview">
          <a href="#">
            <i class="fa fa-exclamation-circle"></i>
            <span>Dicas Importantes</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
  <li><a href="#"><i class="fa fa-caret-right"></i> Em breve...</a></li>

          </ul>
        </li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-book"></i> <span>Orientações aos Usuários</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
  <li><a href="#"><i class="fa fa-caret-right"></i> Em breve...</a></li>
          </ul>
        </li>
        <li><a href="javascript:void(0);" onClick="javascript:introJs().setOption('showProgress', true).start();"><i class="fa fa-question-circle text-blue"></i> <span>Tutorial Rápido</span></a></li>

        <li class="header">INFORMAÇÕES</li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-users"></i> <span>Usuários Online</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu" style="white-space:normal;">
<li style="padding-bottom:0px;"><a><jdoc:include type="modules" name="usuariosonline" /></a></li>
<!-- Relatórios Restrito Gestor -->
<?php
$user = JFactory::getUser();
$groups = $user->get('groups');
$isSuperAdmin = false;
if (in_array(17,$groups) ){
	$isSuperAdmin = true;
	}?>
<?php if ($isSuperAdmin) :?>
<li style=""><a href="relatorio-de-usuarios"><strong><i class="fa fa-dot-circle-o"></i> Relatório Usuários</strong></a></li>
<li style="padding-bottom:5px;"><a href="administrar-usuarios"><strong><i class="fa fa-dot-circle-o"></i> Administrar Usuários</strong></a></li>
<?php endif; ?>

          </ul>
        </li>
        <li class="header">RESTRITO SERVIDORES</li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-commenting"></i>
            <span>Atividades Internas</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
          <li><a href="#"><i class="fa fa-dot-circle-o"></i> Comunicação Interna</a></li>
<li><a data-k2-modal="edit" href="component/k2/item/add?tmpl=component&context=modalselector"><i class="fa fa-dot-circle-o"></i> Novo memorando</a></li>
<li><a href="memorandos-restrito"><i class="fa fa-dot-circle-o"></i> Todos Memorandos</a></li>


          </ul>
        </li>
        <li class="header">PORTAL</li>
        
        
        <li class="treeview">
          <a href="#">
            <i class="fa fa-cubes"></i> <span>Secretarias</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Administração
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-administracao-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-administracao-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-administracao-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Agricultura
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-agricultura-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-agricultura-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-agricultura-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Assistência Social
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-assistencia-social-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-assistencia-social-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-assistencia-social-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
                        
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Educação
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-educacao-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-educacao-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-educacao-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Fazenda
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-fazenda-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-fazenda-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-fazenda-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Gabinete
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
              	<li><a href="#"><i class="fa fa-caret-right"></i> Legislação</a></li>
                <li><a href="estrutura-organizacional-restrito"><i class="fa fa-caret-right"></i> Estrutura Organizacional</a></li>
                <li><a href="audiencias-publicas-restrito"><i class="fa fa-caret-right"></i> Audiências Públicas</a></li>
                <li><a href="compras-e-servicos-gabinete-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-gabinete-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-gabinete-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
     
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Meio Ambiente
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-meio-ambiente-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-meio-ambiente-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-fazenda-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Obras
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-obras-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-obras-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-fazenda-obras"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Planejamento
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-planejamento-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-planejamento-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-planejamento-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Saúde
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-saude-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-saude-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-fazenda-saude"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
          </ul>
        </li>
        
        <li class="treeview">
          <a href="#">
            <i class="fa fa-sitemap"></i> <span>Departamentos</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> CPL
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Contabilidade
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
              	<li><a href="prestacao-de-contas-restrito"><i class="fa fa-caret-right"></i> Prestação de Contas</a></li>
                <li><a href="ordem-cronologica-restrito"><i class="fa fa-caret-right"></i> Ordem Cronológica</a></li>
                <li><a href="compras-e-servicos-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
                        <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Convênios
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
              	<li><a href="resultado-filtro-restrito?issearch=1&theme=convenios&isc=1&category_id=113&xf_3015=3"><i class="fa fa-caret-right"></i> Municipal</a></li>
                <li><a href="resultado-filtro-restrito?issearch=1&theme=convenios&isc=1&category_id=113&xf_3015=2"><i class="fa fa-caret-right"></i> Estadual</a></li>
                <li><a href="resultado-filtro-restrito?issearch=1&theme=convenios&isc=1&category_id=113&xf_3015=1"><i class="fa fa-caret-right"></i> Federal</a></li>
                <li><a href="convenios-restrito"><i class="fa fa-caret-right"></i> Todos</a></li>
              </ul>
            </li>
            
            <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Controle Iterno
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
              	<li><a href="controle-interno-restrito"><i class="fa fa-caret-right"></i> Controle Interno</a></li>
                <li><a href="prestacao-de-contas-restrito"><i class="fa fa-caret-right"></i> Prestação de Contas</a></li>
              	<li><a href="audiencias-publicas-ao-vivo-restrito"><i class="fa fa-caret-right"></i> Audiências Públicas Ao Vivo</a></li>
                <li><a href="compras-e-servicos-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
                        
            
                        <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Jurídico
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
              	<li><a href="#"><i class="fa fa-caret-right"></i> Legislação</a></li>
                <li><a href="#"><i class="fa fa-caret-right"></i> Ouvidoria</a></li>
                <li><a href="compras-e-servicos-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
                        <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Protocolo
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="compras-e-servicos-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>
            
                        <li class="treeview">
              <a href="#"><i class="fa fa-dot-circle-o"></i> Recursos Humanos
                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
              	<li><a target="_blank" href="http://web.buritis.ro.gov.br/admRH/"><i class="fa fa-caret-right"></i> Painel RH-WEB</a></li>
              	<li><a href="processo-seletivo-restrito"><i class="fa fa-caret-right"></i> Processo Seletivo</a></li>
              	<li><a href="concursos-publicos-restrito"><i class="fa fa-caret-right"></i> Concursos</a></li>
                <li><a href="pccs-restrito"><i class="fa fa-caret-right"></i> PCCS</a></li>
                <li><a href="compras-e-servicos-restrito"><i class="fa fa-caret-right"></i> Compras e Serviços</a></li>
                <li><a href="processos-de-diarias-restrito"><i class="fa fa-caret-right"></i> Processos de Diárias</a></li>
                <li><a href="memorandos-restrito"><i class="fa fa-caret-right"></i> Memorandos</a></li>
              </ul>
            </li>

          </ul>
        </li>
        
        <li class="treeview">
          <a href="#">
            <i class="fa fa-gavel"></i>
            <span>Legislações</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
<li><a href="lei-organica-restrito"><i class="fa fa-dot-circle-o"></i> Lei Orgânica</a></li>
<li><a href="portarias-restrito"><i class="fa fa-dot-circle-o"></i> Portarias</a></li>
<li><a href="decretos-restrito"><i class="fa fa-dot-circle-o"></i> Decretos</a></li>
<li><a href="leis-ordinarias-restrito"><i class="fa fa-dot-circle-o"></i> Leis Ordinárias</a></li>
<li><a href="leis-complementares-restrito"><i class="fa fa-dot-circle-o"></i> Leis Complementares</a></li>
<li><a href="resolucoes-restrito"><i class="fa fa-dot-circle-o"></i> Resoluções</a></li>
<li><a href="atos-normativos-restrito"><i class="fa fa-dot-circle-o"></i> Atos Normativos</a></li>

          </ul>
        </li>
        
        
        <li><a href="graficos-restrito"><i class="fa fa-bar-chart"></i> <span> Gráficos</span></a></li>
        <li class="treeview">
          <a href="#">
            <i class="fa fa-gears"></i>
            <span>Configurações</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
<li><a href="portal-restrito"><i class="fa fa-caret-right"></i> Portal</a></li>
<li><a href="http://esic.buritis.ro.gov.br/limited/" target="_blank"><i class="fa fa-caret-right"></i> eSIC</a></li>
<li class="treeview">
          <a href="#">
            <i class="fa fa-dot-circle-o"></i>
            <span>Ouvidoria</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
<li><a href="http://ouvidoria.buritis.ro.gov.br/" target="_blank"><i class="fa fa-caret-right"></i> Formulário</a></li>
<?php
$user = JFactory::getUser();
$groups = $user->get('groups');
$isSuperAdmin = false;
if (in_array(8,$groups) or in_array(17, $groups) ){
	$isSuperAdmin = true;
	}?>
<?php if ($isSuperAdmin) :?>
<li><a href="solicitacoes-ouvidoria"><i class="fa fa-caret-right"></i> Solicitações</a></li>
<?php endif; ?>

          </ul>
        </li>


          </ul>
        </li>
        
        
        
        <li class="treeview" style="display:none">
          <a href="#">
            <i class="fa fa-bar-chart-o"></i>
            <span>Relatório Geral</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu" style="white-space:normal; color:#FFFFFF;">
<li><a><jdoc:include type="modules" name="relatorios" /></a></li>
          </ul>
        </li>
        
        
        <li style="display:none">
          <a href="pages/calendar.html">
            <i class="fa fa-calendar"></i> <span>Calendar</span>
            <span class="pull-right-container">
              <small class="label pull-right bg-red">3</small>
              <small class="label pull-right bg-blue">17</small>
            </span>
          </a>
        </li>
        <li style="display:none">
          <a href="pages/mailbox/mailbox.html">
            <i class="fa fa-envelope"></i> <span>Mailbox</span>
            <span class="pull-right-container">
              <small class="label pull-right bg-yellow">12</small>
              <small class="label pull-right bg-green">16</small>
              <small class="label pull-right bg-red">5</small>
            </span>
          </a>
        </li>
        <li class="treeview" style="display:none">
          <a href="#">
            <i class="fa fa-folder"></i> <span>Examples</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu" style="display:none">
            <li><a href="pages/examples/invoice.html"><i class="fa fa-caret-right"></i> Invoice</a></li>
            <li><a href="pages/examples/profile.html"><i class="fa fa-caret-right"></i> Profile</a></li>
            <li><a href="pages/examples/login.html"><i class="fa fa-caret-right"></i> Login</a></li>
            <li><a href="pages/examples/register.html"><i class="fa fa-caret-right"></i> Register</a></li>
            <li><a href="pages/examples/lockscreen.html"><i class="fa fa-caret-right"></i> Lockscreen</a></li>
            <li><a href="pages/examples/404.html"><i class="fa fa-caret-right"></i> 404 Error</a></li>
            <li><a href="pages/examples/500.html"><i class="fa fa-caret-right"></i> 500 Error</a></li>
            <li><a href="pages/examples/blank.html"><i class="fa fa-caret-right"></i> Blank Page</a></li>
            <li><a href="pages/examples/pace.html"><i class="fa fa-caret-right"></i> Pace Page</a></li>
          </ul>
        </li>
        <li class="treeview" style="display:none">
          <a href="#">
            <i class="fa fa-share"></i> <span>Multilevel</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
            <li><a href="#"><i class="fa fa-caret-right"></i> Level One</a></li>
            <li class="treeview">
              <a href="#"><i class="fa fa-caret-right"></i> Level One

                <span class="pull-right-container">
                  <i class="fa fa-angle-left pull-right"></i>
                </span>
              </a>
              <ul class="treeview-menu">
                <li><a href="#"><i class="fa fa-caret-right"></i> Level Two</a></li>
                <li class="treeview">
                  <a href="#"><i class="fa fa-caret-right"></i> Level Two
                    <span class="pull-right-container">
                      <i class="fa fa-angle-left pull-right"></i>
                    </span>
                  </a>
                  <ul class="treeview-menu">
                    <li><a href="#"><i class="fa fa-caret-right"></i> Level Three</a></li>
                    <li><a href="#"><i class="fa fa-caret-right"></i> Level Three</a></li>
                  </ul>
                </li>
              </ul>
            </li>
            <li><a href="#"><i class="fa fa-caret-right"></i> Level One</a></li>
          </ul>
        </li>
        
        
        
        <li class="header">SISTEMA</li>
        
        <li><a href="canais-de-atendimento"><i class="fa fa-circle-o text-yellow"></i> <span>Atendimento</span></a></li>
        <li><a href="desconectar"><i class="fa fa-circle-o text-red"></i> <span>Desconectar</span></a></li>
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">
   

    <!-- Main content -->

      <!-- Small boxes (Stat box) -->
      
      <!-- Main row -->
      

<div id="filtro" style="display: none;">
<div id="filtrogeral">
<jdoc:include type="modules" name="filtro" />
</div>
</div>
<jdoc:include type="modules" name="tabelabotoes" />

      <div id="componentefull">
<jdoc:include type="component" />
<jdoc:include type="modules" name="conteudoadm" />
<jdoc:include type="modules" name="pagebuilder" />
<jdoc:include type="modules" name="colunahome0" />

<table width="100%" border="0">
    <td width="33.333333333333%" valign="top"><jdoc:include type="modules" name="colunahome01" style="xhtml" /></td>
    <td width="33.333333333333%" style="padding-left:10px; padding-right:10px;" valign="top"><jdoc:include type="modules" name="colunahome02"  style="xhtml" /></td>
    <td width="33.333333333333%" valign="top"><jdoc:include type="modules" name="colunahome03"  style="xhtml" /></td>
  </tr>
</table>

<table width="100%" border="0">
    <td width="50%" style="padding-right:10px;" valign="top"><jdoc:include type="modules" name="colunahome04"  style="xhtml" /></td>
    <td width="50%" style="padding-left:10px;" valign="top"><jdoc:include type="modules" name="colunahome05"  style="xhtml" /></td>
  </tr>
</table>

<table width="100%" border="0">
    <td width="25%" valign="top"><jdoc:include type="modules" name="colunahome06" style="xhtml" /></td>
    <td width="25%" style="padding-left:10px; padding-right:10px;" valign="top"><jdoc:include type="modules" name="colunahome07"  style="xhtml" /></td>
    <td width="25%" style="padding-right:10px;" valign="top"><jdoc:include type="modules" name="colunahome08"  style="xhtml" /></td>
    <td width="25%" valign="top"><jdoc:include type="modules" name="colunahome09"  style="xhtml" /></td>
  </tr>
</table>


<div id="recentes" style="display: none;">
<div id="publicacoesrecentes">
<p>
<jdoc:include type="modules" name="publicacoesrecentes" />
</div>
</div>
      
	  
      </div>

      <!-- /.row (main row) -->


    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->
  <footer class="main-footer">
    <div class="pull-right hidden-xs">
    </div>
    <strong>&copy; <?php echo date(Y); ?> <a target="_blank" href="http://datafull.com.br/">DATAFull Tecnologia</a>.</strong> Todos os Direitos Reservados. <span style="font-size:80%; font-weight:bold; color:#FF3300">Versão 3.0</span><br>
Resolução Mínima <span style="font-size:90%; font-weight:bold; color: #FF6600">1280x800</span> - Resolução Recomendada <span style="font-size:90%; font-weight:bold; color: #0066FF">1366x760</span> <a style="text-align:center; z-index:; color: #333; font-size:110%;" data-tooltip="O sistema foi configurado para funcionar em qualquer resolução, mas em resoluções maiores como 1366x760, o acesso será mais agradavél sem problemas visuais." class="tooltip-top"> <i class="fa fa-question-circle"></i></a>
  </footer>

  <!-- Control Sidebar -->
  <aside class="control-sidebar control-sidebar-dark">
    <!-- Create the tabs -->
    <ul class="nav nav-tabs nav-justified control-sidebar-tabs">
      <li><a href="#control-sidebar-home-tab" data-toggle="tab"><i class="fa fa-wrench"></i></a></li>
      <li><a href="#control-sidebar-settings-tab" data-toggle="tab"><i class="fa fa-gears"></i></a></li>
    </ul>
    <!-- Tab panes -->
    <div class="tab-content">
      <!-- Home tab content -->
      <div class="tab-pane" id="control-sidebar-home-tab">
<h4 class="control-sidebar-heading">Outros Serviços</h4>
          <jdoc:include type="modules" name="outrosservicos" />

      </div>
      <!-- /.tab-pane -->
      <!-- Stats tab content -->
      <div class="tab-pane" id="control-sidebar-stats-tab">Bloco Disponível...</div>
      <!-- /.tab-pane -->
      <!-- Settings tab content -->
      <div class="tab-pane" id="control-sidebar-settings-tab">

          <h4 class="control-sidebar-heading">Certidões</h4>
          <jdoc:include type="modules" name="certidoes" />
          
          <h4 class="control-sidebar-heading">Serviços Úteis</h4>
          <jdoc:include type="modules" name="servicosuteis" />
</div>

</aside>
  <!-- /.control-sidebar -->
  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>
</div>
<!-- ./wrapper -->

<!-- jQuery 3 -->

<script src="painel-frontend/bower_components/jquery/dist/jquery.min.js"></script>
<script type="text/javascript" language="javascript" src="https://cdn.datatables.net/1.10.16/js/jquery.dataTables.min.js"></script>

<!-- jQuery UI 1.11.4 -->
<script src="painel-frontend/bower_components/jquery-ui/jquery-ui.min.js"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
  $.widget.bridge('uibutton', $.ui.button);
</script>
<!-- Bootstrap 3.3.7 -->
<script src="painel-frontend/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- Morris.js charts -->
<script src="painel-frontend/bower_components/raphael/raphael.min.js"></script>
<script src="painel-frontend/bower_components/morris.js/morris.min.js"></script>
<!-- Sparkline -->
<script src="painel-frontend/bower_components/jquery-sparkline/dist/jquery.sparkline.min.js"></script>
<!-- jvectormap -->
<script src="painel-frontend/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js"></script>
<script src="painel-frontend/plugins/jvectormap/jquery-jvectormap-world-mill-en.js"></script>
<!-- jQuery Knob Chart -->
<script src="painel-frontend/bower_components/jquery-knob/dist/jquery.knob.min.js"></script>
<!-- daterangepicker -->
<script src="painel-frontend/bower_components/moment/min/moment.min.js"></script>
<script src="painel-frontend/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<!-- datepicker -->
<script src="painel-frontend/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<!-- Bootstrap WYSIHTML5 -->
<script src="painel-frontend/plugins/bootstrap-wysihtml5/bootstrap3-wysihtml5.all.min.js"></script>
<!-- Slimscroll -->
<script src="painel-frontend/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<!-- FastClick -->
<script src="painel-frontend/bower_components/fastclick/lib/fastclick.js"></script>
<!-- AdminLTE App -->
<script src="painel-frontend/dist/js/adminlte.min.js"></script>
<!-- AdminLTE dashboard demo (This is only for demo purposes) -->
<script src="painel-frontend/dist/js/pages/dashboard.js"></script>
<!-- AdminLTE for demo purposes -->
<script src="painel-frontend/dist/js/demo.js"></script>
<script>
  $(function () {
    "use strict";
//DONUT CHART
    var donut = new Morris.Donut({
      element: 'sales-chart',
      resize: true,
      colors: ["#3c8dbc", "#f56954", "#00a65a"],
      data: [
        {label: "Download Sales", value: 12},
        {label: "In-Store Sales", value: 30},
        {label: "Mail-Order Sales", value: 20}
      ],
      hideHover: 'auto'
    });
    
  });
  
  function abrirrecentes() {
var x = document.getElementById('recentes');
if (x.style.display === 'none') {
    x.style.display = 'block';
} else {
    x.style.display = 'none';
   }
}

var acc = document.getElementsByClassName("accordion");
var i;

for (i = 0; i < acc.length; i++) {
    acc[i].addEventListener("click", function() {
        this.classList.toggle("active");
        var panel2 = this.nextElementSibling;
        if (panel2.style.display === "block") {
            panel2.style.display = "none";
        } else {
            panel2.style.display = "block";
        }
    });
}

function abrirfiltro() {
var x = document.getElementById('filtro');
if (x.style.display === 'none') {
    x.style.display = 'block';
} else {
    x.style.display = 'none';
   }
}

function abrirfiltrok2() {
var x = document.getElementById('filtrok2');
if (x.style.display === 'none') {
    x.style.display = 'block';
} else {
    x.style.display = 'none';
   }
}

function toggleFullscreen(elem) {
  elem = elem || document.documentElement;
  if (!document.fullscreenElement && !document.mozFullScreenElement &&
    !document.webkitFullscreenElement && !document.msFullscreenElement) {
    if (elem.requestFullscreen) {
      elem.requestFullscreen();
    } else if (elem.msRequestFullscreen) {
      elem.msRequestFullscreen();
    } else if (elem.mozRequestFullScreen) {
      elem.mozRequestFullScreen();
    } else if (elem.webkitRequestFullscreen) {
      elem.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT);
    }
  } else {
    if (document.exitFullscreen) {
      document.exitFullscreen();
    } else if (document.msExitFullscreen) {
      document.msExitFullscreen();
    } else if (document.mozCancelFullScreen) {
      document.mozCancelFullScreen();
    } else if (document.webkitExitFullscreen) {
      document.webkitExitFullscreen();
    }
  }
}

document.getElementById('btnFullscreen').addEventListener('click', function() {
  toggleFullscreen();
});

document.getElementById('exampleImage').addEventListener('click', function() {
  toggleFullscreen(this);
});
</script>


</body>
</html>
<script type="text/javascript" src="tour/intro.js"></script>
<jdoc:include type="head" />
