| Server IP : 20.75.53.88 / Your IP : 216.73.217.72 [ Web Server : Apache System : Linux VMRALP-3 4.4.0-256-generic #290~14.04.1-Ubuntu SMP Thu Jun 20 09:24:50 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29+esm15 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, Domains : 3 Domains MySQL : ON | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/html/portais/camarabeberibe/admin/ |
Upload File : |
<?php
/**
* Created by PhpStorm.
* User: ralpb
* Date: 24/07/2018
* Time: 08:20
*/
// error_reporting(0);
setlocale(LC_ALL, 'pt_BR', 'pt_BR.utf-8', 'pt_BR.utf-8', 'portuguese');
date_default_timezone_set('America/Sao_Paulo');
ini_set('display_errors', 'off');
ini_set('default_charset', 'utf8');
session_start();
include_once("../conexaoBanco.php");
include_once("../Db.php");
include_once("../aviso.php");
$a = new aviso();
$db = new conexao();
$db = $db->conexaoDb();
//$conn = conexao::getInstance();
if ((!isset ($_SESSION['login'])==true) and (!isset ($_SESSION['password'])==true)) {
unset($_SESSION['login']);
unset($_SESSION['password']);
header('location:login.php');
exit();
}
$_login = $_SESSION['login'];
$_password = $_SESSION['password'];
$_cod_usuario = $_SESSION['cod_usuario'];
$_nome = $_SESSION['nome'];
$_cpf = $_SESSION['cpf'];
$_email = $_SESSION['email'];
$_fone = $_SESSION['fone'];
$_ativo = $_SESSION['ativo'];
$_usu_admin = $_SESSION['usu_admin'];
$_usu_cidade = $_SESSION['usu_cidade'];
$_usu_prefeitura = $_SESSION['usu_prefeitura'];
$_usu_transparencia = $_SESSION['usu_transparencia'];
$_usu_imprensa = $_SESSION['usu_imprensa'];
$_usu_publicacoes = $_SESSION['usu_publicacoes'];
$_usu_licitacoes = $_SESSION['usu_licitacoes'];
$emp = $db->select("empresa")->fetch();
$c = $db->select("prefeitura")->fetch();
?>
<html>
<body style="font-family: Roboto;">
<header>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta property="og:site_name" content="<?php echo $c->tag_title ?> - Portal"/>
<meta property="og:title" content="<?php echo $c->tag_title ?> - Portal">
<meta property="og:description" content="Painel Administrativo">
<meta property="og:image" content="admin/assets/logo/favicon.jpg">
<meta property="og:type" content="website">
<meta property="og:url" content="<?php echo $emp->link ?>">
<meta property="og:locale" content="pt_BR"/>
<title><?php echo $c->tag_title ?></title>
<link rel="shortcut icon" href="admin/assets/logo/favicon.jpg">
<link rel="icon" href="admin/assets/logo/favicon.jpg">
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script>
<script src="//code.jquery.com/jquery-1.11.1.min.js"></script>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
<!-- FullCalendar -->
<link href='../assets/FullCalendar/css/fullcalendar.css' rel='stylesheet'/>
<ToDO Editor de texto>
<script type="text/javascript" src="assets/nicEdit-latest.js"></script>
<script type="text/javascript">
bkLib.onDomLoaded(function () {
new nicEditor(
{
fullPanel: true,
//maxHeight: 450
}
).panelInstance('area2');
});
</script>
</ToDO>
<ToDO Colobox>
<!--ABRIR JANELA COLORBOX-->
<link rel="stylesheet" href="admin/assets/colorbox/example5/colorbox.css"/>
<script src="admin/assets/colorbox/jquery.colorbox.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$(".janela90").colorbox({
iframe: true, title: "Portal - <?php echo $c->tag_title ?>", width: "90%", height: "90%",
overlayClose: false,
fixed: true,
fadeOut: 300,
scrolling: true,
overlayClose: false,
scalePhotos: true,
photo: true,
close: "<i class='fa fa-times-circle fa-2x text-orange' title='voltar'></i>",
//onClosed: function () {
// location.reload(true);
//}
});
$(".janela90R").colorbox({
iframe: true, title: "Portal - <?php echo $c->tag_title ?>", width: "90%", height: "90%",
overlayClose: false,
fixed: true,
fadeOut: 300,
scrolling: true,
overlayClose: false,
scalePhotos: true,
photo: true,
close: "<i class='fa fa-times-circle fa-2x text-orange' title='voltar'></i>",
onClosed: function () {
location.reload(true);
}
});
});
</script>
</ToDO>
<style>
body {
position: relative;
overflow-x: hidden;
}
body,
html {
height: 100%;
}
.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus {
background-color: transparent;
}
/*-------------------------------*/
/* Wrappers */
/*-------------------------------*/
#wrapper {
padding-left: 0;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
#wrapper.toggled {
padding-left: 220px;
}
#sidebar-wrapper {
z-index: 1000;
left: 220px;
font-family: Roboto;
width: 0;
height: 100%;
margin-left: -220px;
overflow-y: auto;
overflow-x: hidden;
background: #3c73ac;
-webkit-transition: all 0.5s ease;
-moz-transition: all 0.5s ease;
-o-transition: all 0.5s ease;
transition: all 0.5s ease;
}
#sidebar-wrapper::-webkit-scrollbar {
display: none;
}
#wrapper.toggled #sidebar-wrapper {
width: 220px;
}
#page-content-wrapper {
width: 100%;
padding-top: 70px;
}
#wrapper.toggled #page-content-wrapper {
position: absolute;
margin-right: -220px;
}
/*-------------------------------*/
/* Sidebar nav styles */
/*-------------------------------*/
.sidebar-nav {
position: absolute;
top: 0;
width: 520px;
margin: 0;
padding: 0;
list-style: none;
}
.sidebar-nav li {
position: relative;
line-height: 20px;
display: inline-block;
width: 100%;
}
.sidebar-nav li:before {
content: '';
position: absolute;
top: 0;
left: 0;
z-index: -1;
height: 100%;
width: 3px;
background-color: #1c1c1c;
-webkit-transition: width .2s ease-in;
-moz-transition: width .2s ease-in;
-ms-transition: width .2s ease-in;
transition: width .2s ease-in;
}
.sidebar-nav li:first-child a {
color: #fff;
background-color: #1a1a1a;
}
.sidebar-nav li:nth-child(2):before {
background-color: #ec1b5a;
}
.sidebar-nav li:nth-child(3):before {
background-color: #79aefe;
}
.sidebar-nav li:nth-child(4):before {
background-color: #314190;
}
.sidebar-nav li:nth-child(5):before {
background-color: #279636;
}
.sidebar-nav li:nth-child(6):before {
background-color: #7d5d81;
}
.sidebar-nav li:nth-child(7):before {
background-color: #ead24c;
}
.sidebar-nav li:nth-child(8):before {
background-color: #2d2366;
}
.sidebar-nav li:nth-child(9):before {
background-color: #35acdf;
}
.sidebar-nav li:hover:before,
.sidebar-nav li.open:hover:before {
width: 100%;
-webkit-transition: width .2s ease-in;
-moz-transition: width .2s ease-in;
-ms-transition: width .2s ease-in;
transition: width .2s ease-in;
}
.sidebar-nav li a {
display: block;
color: #ddd;
text-decoration: none;
padding: 10px 15px 10px 30px;
}
.sidebar-nav li a:hover,
.sidebar-nav li a:active,
.sidebar-nav li a:focus,
.sidebar-nav li.open a:hover,
.sidebar-nav li.open a:active,
.sidebar-nav li.open a:focus {
color: #fff;
text-decoration: none;
background-color: transparent;
}
.sidebar-nav > .sidebar-brand {
height: 80px;
font-size: 22px;
line-height: 44px;
}
.sidebar-nav .dropdown-menu {
position: relative;
width: 100%;
padding: 0;
margin: 0;
border-radius: 15px;
border: none;
background-color: #428bca;
box-shadow: none;
}
/*-------------------------------*/
/* Hamburger-Cross */
/*-------------------------------*/
.hamburger {
position: fixed;
top: 20px;
z-index: 999;
display: block;
width: 32px;
height: 32px;
margin-left: 15px;
background: transparent;
border: none;
}
.hamburger:hover,
.hamburger:focus,
.hamburger:active {
outline: none;
}
.hamburger.is-closed:before {
content: '';
display: block;
width: 100px;
font-size: 14px;
color: #fff;
line-height: 32px;
text-align: center;
opacity: 0;
-webkit-transform: translate3d(0, 0, 0);
-webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed:hover:before {
opacity: 1;
display: block;
-webkit-transform: translate3d(-100px, 0, 0);
-webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed .hamb-top,
.hamburger.is-closed .hamb-middle,
.hamburger.is-closed .hamb-bottom,
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-middle,
.hamburger.is-open .hamb-bottom {
position: absolute;
left: 0;
height: 4px;
width: 100%;
}
.hamburger.is-closed .hamb-top,
.hamburger.is-closed .hamb-middle,
.hamburger.is-closed .hamb-bottom {
background-color: #1a1a1a;
}
.hamburger.is-closed .hamb-top {
top: 5px;
-webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed .hamb-middle {
top: 50%;
margin-top: -2px;
}
.hamburger.is-closed .hamb-bottom {
bottom: 5px;
-webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed:hover .hamb-top {
top: 0;
-webkit-transition: all .35s ease-in-out;
}
.hamburger.is-closed:hover .hamb-bottom {
bottom: 0;
-webkit-transition: all .35s ease-in-out;
}
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-middle,
.hamburger.is-open .hamb-bottom {
background-color: #1a1a1a;
}
.hamburger.is-open .hamb-top,
.hamburger.is-open .hamb-bottom {
top: 50%;
margin-top: -2px;
}
.hamburger.is-open .hamb-top {
-webkit-transform: rotate(45deg);
-webkit-transition: -webkit-transform .2s cubic-bezier(.73, 1, .28, .08);
}
.hamburger.is-open .hamb-middle {
display: none;
}
.hamburger.is-open .hamb-bottom {
-webkit-transform: rotate(-45deg);
-webkit-transition: -webkit-transform .2s cubic-bezier(.73, 1, .28, .08);
}
.hamburger.is-open:before {
content: '';
display: block;
width: 100px;
font-size: 14px;
color: #fff;
line-height: 32px;
text-align: center;
opacity: 0;
-webkit-transform: translate3d(0, 0, 0);
-webkit-transition: all .35s ease-in-out;
}
.hamburger.is-open:hover:before {
opacity: 1;
display: block;
-webkit-transform: translate3d(-100px, 0, 0);
-webkit-transition: all .35s ease-in-out;
}
/*-------------------------------*/
/* Overlay */
/*-------------------------------*/
.overlay {
position: fixed;
display: none;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: rgba(250, 250, 250, .8);
z-index: 1;
}
</style>
<link rel="stylesheet" href="https://cdn.datatables.net/1.10.18/css/jquery.dataTables.min.css">
<script type="text/javascript" src="https://cdn.datatables.net/1.10.18/js/jquery.dataTables.min.js"></script>
<script type="text/javascript">
$(document).ready(function () {
$('#dtabela').DataTable({
stateSave: true,
"processing": true,
responsive: true,
"oLanguage": {
"sProcessing": "Processando. Aguarde...",
"sLengthMenu": "Mostrar _MENU_ registros",
"sZeroRecords": "<span class='text-orange text-bold'>NENHUM REGISTRO ENCONTRADO!</span>",
"sInfo": "Registro _END_ de _TOTAL_",
"sInfoEmpty": "Sem registros",
"sInfoFiltered": "(de _MAX_ registros)",
"sInfoPostFix": "",
"sSearch": "<em class='fa fa-search' title='pesquisar'></em>",
"sUrl": "",
"oPaginate": {
"sFirst": "primeiro registro",
"sPrevious": "registro anterior",
"sNext": "próximo registro",
"sLast": "último registro"
},
"language": {
"decimal": ",",
"thousands": "."
}
}
});
});
</script>
</header>
<div id="wrapper">
<div class=""></div>
<?php include_once "menu.php" ?>
<!--CONTEUDO (FORMS) -->
<div class="content-wrapper">
<?php
if (isset($_GET['page'])) {
$page = $_GET['page'];
include_once("paginas/$page.php");
} else {
include_once("inicio.php");
}
?>
</div>
<!--END CONTEUDO (FORMS)-->
</div>
<script>
$(document).ready(function () {
var trigger = $('.hamburger'),
overlay = $('.overlay'),
isClosed = false;
trigger.click(function () {
hamburger_cross();
});
function hamburger_cross() {
if (isClosed == true) {
overlay.hide();
trigger.removeClass('is-open');
trigger.addClass('is-closed');
isClosed = false;
} else {
overlay.show();
trigger.removeClass('is-closed');
trigger.addClass('is-open');
isClosed = true;
}
}
$('[data-toggle="offcanvas"]').click(function () {
$('#wrapper').toggleClass('toggled');
});
});
</script>
</body>
</html>