-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Criação da base da página de contribuicoes.php no módulo sócio [Issue #…
…821]
- Loading branch information
1 parent
9378419
commit f86d73f
Showing
1 changed file
with
203 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,203 @@ | ||
<?php | ||
require("../conexao.php"); | ||
// Adiciona a Função display_campo($nome_campo, $tipo_campo) | ||
require_once ROOT . "/html/personalizacao_display.php"; | ||
session_start(); | ||
if (!isset($_SESSION['usuario'])) header("Location: ../erros/login_erro/"); | ||
$id = $_SESSION['usuario']; | ||
$id_pessoa = $_SESSION['id_pessoa']; | ||
$resultado = mysqli_query($conexao, "SELECT `imagem`, `nome` FROM `pessoa` WHERE id_pessoa=$id_pessoa"); | ||
$pessoa = mysqli_fetch_array($resultado); | ||
$nome = $pessoa['nome']; | ||
|
||
$config_path = "config.php"; | ||
if (file_exists($config_path)) { | ||
require_once($config_path); | ||
} else { | ||
while (true) { | ||
$config_path = "../" . $config_path; | ||
if (file_exists($config_path)) break; | ||
} | ||
require_once($config_path); | ||
} | ||
|
||
if (!isset($_SESSION['usuario'])) { | ||
header("Location: " . WWW . "index.php"); | ||
} | ||
$conexao = mysqli_connect(DB_HOST, DB_USER, DB_PASSWORD, DB_NAME); | ||
$id_pessoa = $_SESSION['id_pessoa']; | ||
$resultado = mysqli_query($conexao, "SELECT * FROM funcionario WHERE id_pessoa=$id_pessoa"); | ||
if (!is_null($resultado)) { | ||
$id_cargo = mysqli_fetch_array($resultado); | ||
if (!is_null($id_cargo)) { | ||
$id_cargo = $id_cargo['id_cargo']; | ||
} | ||
$resultado = mysqli_query($conexao, "SELECT * FROM permissao WHERE id_cargo=$id_cargo and id_recurso=4"); | ||
if (!is_bool($resultado) and mysqli_num_rows($resultado)) { | ||
$permissao = mysqli_fetch_array($resultado); | ||
if ($permissao['id_acao'] < 7) { | ||
$msg = "Você não tem as permissões necessárias para essa página."; | ||
header("Location: " . WWW . "/html/home.php?msg_c=$msg"); | ||
} | ||
$permissao = $permissao['id_acao']; | ||
} else { | ||
$permissao = 1; | ||
$msg = "Você não tem as permissões necessárias para essa página."; | ||
header("Location: " . WWW . "/html/home.php?msg_c=$msg"); | ||
} | ||
} else { | ||
$permissao = 1; | ||
$msg = "Você não tem as permissões necessárias para essa página."; | ||
header("Location: " . WWW . "/html/home.php?msg_c=$msg"); | ||
} | ||
// Adiciona a Função display_campo($nome_campo, $tipo_campo) | ||
require_once ROOT . "/html/personalizacao_display.php"; | ||
|
||
?> | ||
<!DOCTYPE html> | ||
<html class="fixed"> | ||
|
||
<html lang="pt-br"> | ||
|
||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | ||
<title>Contribuições</title> | ||
<!-- 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="controller/bower_components/bootstrap/dist/css/bootstrap.min.css"> | ||
<!-- Font Awesome --> | ||
<link rel="stylesheet" href="controller/bower_components/font-awesome/css/font-awesome.min.css"> | ||
<!-- Theme style --> | ||
<link rel="stylesheet" href="controller/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="controller/dist/css/skins/_all-skins.min.css"> | ||
<!-- Morris chart --> | ||
<link rel="stylesheet" href="controller/bower_components/morris.js/morris.css"> | ||
<!-- jvectormap --> | ||
<link rel="stylesheet" href="controller/bower_components/jvectormap/jquery-jvectormap.css"> | ||
<!-- Date Picker --> | ||
<link rel="stylesheet" href="controller/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css"> | ||
<!-- Daterange picker --> | ||
<link rel="stylesheet" href="controller/bower_components/bootstrap-daterangepicker/daterangepicker.css"> | ||
<!-- bootstrap wysihtml5 - text editor --> | ||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script> | ||
|
||
<link rel="stylesheet" href="controller/css/animacoes.css"> | ||
<link rel="stylesheet" href="controller/css/tabelas.css"> | ||
<link href="https://fonts.googleapis.com/css2?family=Josefin+Sans:wght@700&display=swap" rel="stylesheet"> | ||
<!-- Google Font --> | ||
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic"> | ||
<link href="http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700,800|Shadows+Into+Light" rel="stylesheet" type="text/css"> | ||
<link rel="stylesheet" href="<?php echo WWW; ?>assets/vendor/font-awesome/css/font-awesome.css" /> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.1.1/css/all.css"> | ||
<link rel="stylesheet" href="<?php echo WWW; ?>assets/vendor/magnific-popup/magnific-popup.css" /> | ||
<link rel="stylesheet" href="<?php echo WWW; ?>assets/vendor/bootstrap-datepicker/css/datepicker3.css" /> | ||
<!--<link rel="icon" href="<?php //display_campo("Logo",'file'); | ||
?>" type="image/x-icon">--> | ||
|
||
<!-- Specific Page Vendor CSS --> | ||
<link rel="stylesheet" href="<?php echo WWW; ?>assets/vendor/select2/select2.css" /> | ||
<link rel="stylesheet" href="<?php echo WWW; ?>assets/vendor/jquery-datatables-bs3/assets/css/datatables.css" /> | ||
|
||
<!-- Theme CSS --> | ||
<link rel="stylesheet" href="<?php echo WWW; ?>assets/stylesheets/theme.css" /> | ||
|
||
<!-- Skin CSS --> | ||
<link rel="stylesheet" href="<?php echo WWW; ?>assets/stylesheets/skins/default.css" /> | ||
|
||
<!-- Theme Custom CSS --> | ||
<link rel="stylesheet" href="<?php echo WWW; ?>assets/stylesheets/theme-custom.css"> | ||
|
||
<!-- Head Libs --> | ||
<script src="<?php echo WWW; ?>assets/vendor/modernizr/modernizr.js"></script> | ||
|
||
<!-- Vendor --> | ||
<script src="<?php echo WWW; ?>assets/vendor/jquery/jquery.min.js"></script> | ||
<script src="<?php echo WWW; ?>assets/vendor/jquery-browser-mobile/jquery.browser.mobile.js"></script> | ||
<script src="<?php echo WWW; ?>assets/vendor/nanoscroller/nanoscroller.js"></script> | ||
<script src="<?php echo WWW; ?>assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script> | ||
<script src="<?php echo WWW; ?>assets/vendor/magnific-popup/magnific-popup.js"></script> | ||
<script src="<?php echo WWW; ?>assets/vendor/jquery-placeholder/jquery.placeholder.js"></script> | ||
|
||
<!-- Specific Page Vendor --> | ||
<script src="<?php echo WWW; ?>assets/vendor/jquery-autosize/jquery.autosize.js"></script> | ||
|
||
<!-- Theme Base, Components and Settings --> | ||
<script src="<?php echo WWW; ?>assets/javascripts/theme.js"></script> | ||
|
||
<!-- Theme Custom --> | ||
<script src="<?php echo WWW; ?>assets/javascripts/theme.custom.js"></script> | ||
|
||
<!-- Theme Initialization Files --> | ||
<script src="<?php echo WWW; ?>assets/javascripts/theme.init.js"></script> | ||
|
||
<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css"> | ||
<script src="https://code.jquery.com/jquery-1.12.4.js"></script> | ||
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> | ||
<link type="text/css" rel="stylesheet" charset="UTF-8" href="https://translate.googleapis.com/translate_static/css/translateelement.css"> | ||
|
||
<!-- javascript functions --> | ||
<script src="<?php echo WWW; ?>Functions/onlyNumbers.js"></script> | ||
<script src="<?php echo WWW; ?>Functions/onlyChars.js"></script> | ||
<script src="<?php echo WWW; ?>Functions/mascara.js"></script> | ||
<script src="<?php echo WWW; ?>html/contribuicao/js/geraboleto.js"></script> | ||
<script src="<?php echo WWW; ?>html/socio/sistema/controller/script/relatorios_socios.js"></script> | ||
|
||
<script type="text/javascript"> | ||
$(function() { | ||
$("#header").load("<?php echo WWW; ?>html/header.php"); | ||
$(".menuu").load("<?php echo WWW; ?>html/menu.php"); | ||
}); | ||
</script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/chart.js@2.9.3/dist/Chart.min.css"> | ||
</head> | ||
|
||
<body> | ||
|
||
<section class="body"> | ||
|
||
<!-- start: header --> | ||
<header id="header" class="header"> | ||
|
||
<!-- end: search & user box --> | ||
</header> | ||
|
||
<!-- end: header --> | ||
<div class="inner-wrapper"> | ||
<!-- start: sidebar --> | ||
<aside id="sidebar-left" class="sidebar-left menuu"></aside> | ||
<!-- end: sidebar --> | ||
|
||
<section role="main" class="content-body"> | ||
<header class="page-header"> | ||
<h2>Cobranças (Antigo)</h2> | ||
|
||
<div class="right-wrapper pull-right"> | ||
<ol class="breadcrumbs"> | ||
<li> | ||
<a href="../../home.php"> | ||
<i class="fa fa-home"></i> | ||
</a> | ||
</li> | ||
<li><span>Páginas</span></li> | ||
<li><span>Cobranças (Antigo)</span></li> | ||
</ol> | ||
|
||
<a class="sidebar-right-toggle"><i class="fa fa-chevron-left"></i></a> | ||
</div> | ||
</header> | ||
|
||
</section> | ||
|
||
<?php require_once("./controller/import_scripts.php"); ?> | ||
|
||
<div align="right"> | ||
<iframe src="https://www.wegia.org/software/footer/socio.html" width="200" height="60" style="border:none;"></iframe> | ||
</div> | ||
|
||
</body> | ||
|
||
</html> |