Skip to content

Commit

Permalink
Merge pull request #738 from nilsonLazarin/footers
Browse files Browse the repository at this point in the history
Atualizacao das imagens nos footers
  • Loading branch information
nilsonLazarin authored Sep 27, 2024
2 parents 70091ca + 6d98627 commit 580256f
Show file tree
Hide file tree
Showing 28 changed files with 1,841 additions and 1,776 deletions.
181 changes: 93 additions & 88 deletions html/adicionar_almoxarifado.php
Original file line number Diff line number Diff line change
@@ -1,50 +1,51 @@
<?php
session_start();
if(!isset($_SESSION['usuario'])){
header ("Location: ../index.php");
session_start();
if (!isset($_SESSION['usuario'])) {
header("Location: ../index.php");
}

$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;
}

$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);
require_once($config_path);
}
$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'];
}
$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=21");
if(!is_bool($resultado) and mysqli_num_rows($resultado)){
$permissao = mysqli_fetch_array($resultado);
if($permissao['id_acao'] < 3){
$msg = "Você não tem as permissões necessárias para essa página.";
header("Location: ./home.php?msg_c=$msg");
}
$permissao = $permissao['id_acao'];
}else{
$permissao = 1;
$resultado = mysqli_query($conexao, "SELECT * FROM permissao WHERE id_cargo=$id_cargo and id_recurso=21");
if (!is_bool($resultado) and mysqli_num_rows($resultado)) {
$permissao = mysqli_fetch_array($resultado);
if ($permissao['id_acao'] < 3) {
$msg = "Você não tem as permissões necessárias para essa página.";
header("Location: ./home.php?msg_c=$msg");
}
}else{
}
$permissao = $permissao['id_acao'];
} else {
$permissao = 1;
$msg = "Você não tem as permissões necessárias para essa página.";
header("Location: ./home.php?msg_c=$msg");
}
// Adiciona a Função display_campo($nome_campo, $tipo_campo)
require_once "personalizacao_display.php";
}
} else {
$permissao = 1;
$msg = "Você não tem as permissões necessárias para essa página.";
header("Location: ./home.php?msg_c=$msg");
}
// Adiciona a Função display_campo($nome_campo, $tipo_campo)
require_once "personalizacao_display.php";
?>
<!doctype html>
<html class="fixed">

<head>
<!-- Basic -->
<meta charset="UTF-8">
Expand All @@ -63,7 +64,7 @@
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v6.1.1/css/all.css">
<link rel="stylesheet" href="../assets/vendor/magnific-popup/magnific-popup.css" />
<link rel="stylesheet" href="../assets/vendor/bootstrap-datepicker/css/datepicker3.css" />
<link rel="icon" href="<?php display_campo("Logo",'file');?>" type="image/x-icon" id="logo-icon">
<link rel="icon" href="<?php display_campo("Logo", 'file'); ?>" type="image/x-icon" id="logo-icon">

<!-- Theme CSS -->
<link rel="stylesheet" href="../assets/stylesheets/theme.css" />
Expand All @@ -85,44 +86,48 @@
<script src="../assets/vendor/bootstrap-datepicker/js/bootstrap-datepicker.js"></script>
<script src="../assets/vendor/magnific-popup/magnific-popup.js"></script>
<script src="../assets/vendor/jquery-placeholder/jquery.placeholder.js"></script>

<!-- Specific Page Vendor -->
<script src="../assets/vendor/jquery-autosize/jquery.autosize.js"></script>

<!-- Theme Base, Components and Settings -->
<script src="../assets/javascripts/theme.js"></script>

<!-- Theme Custom -->
<script src="../assets/javascripts/theme.custom.js"></script>

<!-- Theme Initialization Files -->
<script src="../assets/javascripts/theme.init.js"></script>

<!-- javascript functions --> <script
src="../Functions/onlyNumbers.js"></script> <script
src="../Functions/onlyChars.js"></script> <script
src="../Functions/mascara.js"></script>
<!-- javascript functions -->
<script
src="../Functions/onlyNumbers.js"></script>
<script
src="../Functions/onlyChars.js"></script>
<script
src="../Functions/mascara.js"></script>

<!-- jquery functions -->
<script>
document.write('<a href="' + document.referrer + '"></a>');
document.write('<a href="' + document.referrer + '"></a>');
</script>

<script type="text/javascript">
$(function () {
$("#header").load("header.php");
$(".menuu").load("menu.php");
});
$(function() {
$("#header").load("header.php");
$(".menuu").load("menu.php");
});
</script>

</head>

<body>
<section class="body">

<!-- start: header -->
<header id="header" class="header">
<!-- end: search & user box -->

<!-- end: search & user box -->
</header>
<!-- end: header -->
<div class="inner-wrapper">
Expand All @@ -133,7 +138,7 @@
<section role="main" class="content-body">
<header class="page-header">
<h2>Cadastro</h2>

<div class="right-wrapper pull-right">
<ol class="breadcrumbs">
<li>
Expand All @@ -144,15 +149,15 @@
<li><span>Páginas</span></li>
<li><span>Adicionar Almoxarifado</span></li>
</ol>

<a class="sidebar-right-toggle"><i class="fa fa-chevron-left"></i></a>
</div>
</header>

<!-- start: page -->
<div class="row">
<div class="col-md-4 col-lg-2" style="visibility: hidden;"></div>
<div class="col-md-8 col-lg-8" >
<div class="col-md-8 col-lg-8">
<div class="tabs">
<ul class="nav nav-tabs tabs-primary">
<li class="active">
Expand All @@ -164,43 +169,43 @@
<div id="overview" class="tab-pane active">
<fieldset>
<form method="post" id="formulario" action="../controle/control.php">
<?php
if($permissao == 1){
echo($msg);
}else{
?>
<div class="form-group"><br>
<label class="col-md-3 control-label">Almoxarifado</label>
<div class="col-md-8">
<input type="text" class="form-control" name="descricao_almoxarifado" id="descricao_almoxarifado" required>
</div>
</div><br/>
<input type="hidden" name="nomeClasse" value="AlmoxarifadoControle">
<input type="hidden" name="metodo" value="incluir">
<div class="row">
<div class="col-md-9 col-md-offset-3">
<button id="enviar" class="btn btn-primary" type="submit">Enviar</button>
<input type="reset" class="btn btn-default">
<a href="cadastro_entrada.php" style="color: white; text-decoration: none;">
<button class="btn btn-info" type="button">Voltar</button>
</a>
<a href="listar_almox.php" style="color: white; text-decoration:none;">
<button class="btn btn-success" type="button">Listar almoxarifado</button></a>
<?php
if ($permissao == 1) {
echo ($msg);
} else {
?>
<div class="form-group"><br>
<label class="col-md-3 control-label">Almoxarifado</label>
<div class="col-md-8">
<input type="text" class="form-control" name="descricao_almoxarifado" id="descricao_almoxarifado" required>
</div>
</div><br />
<input type="hidden" name="nomeClasse" value="AlmoxarifadoControle">
<input type="hidden" name="metodo" value="incluir">
<div class="row">
<div class="col-md-9 col-md-offset-3">
<button id="enviar" class="btn btn-primary" type="submit">Enviar</button>
<input type="reset" class="btn btn-default">
<a href="cadastro_entrada.php" style="color: white; text-decoration: none;">
<button class="btn btn-info" type="button">Voltar</button>
</a>
<a href="listar_almox.php" style="color: white; text-decoration:none;">
<button class="btn btn-success" type="button">Listar almoxarifado</button></a>
</div>
</div>
</div>
<?php
}
}
?>
</form>
</fieldset>
</fieldset>
</div>
</div>
</div>
</div>
</div>
<!-- end: page -->
<!-- end: page -->
</section>
</div>
</div>
<aside id="sidebar-right" class="sidebar-right">
<div class="nano">
<div class="nano-content">
Expand All @@ -210,9 +215,9 @@
</div>
</div>
</aside>
</section>
<div align="right">
<iframe src="https://www.wegia.org/software/footer/estoque.html" width="200" height="60" style="border:none;"></iframe>
</div>
<div align="right">
<iframe src="https://www.wegia.org/software/footer/memorando.html" width="200" height="60" style="border:none;"></iframe>
</div>
</body>
</html>

</html>
4 changes: 4 additions & 0 deletions html/atendido/Informacao_Atendido.php
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,10 @@ function clicar(id) {
<script src="../../assets/javascripts/tables/examples.datatables.default.js"></script>
<script src="../../assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
<script src="../../assets/javascripts/tables/examples.datatables.tabletools.js"></script>

<div align="right">
<iframe src="https://www.wegia.org/software/footer/pessoa.html" width="200" height="60" style="border:none;"></iframe>
</div>
</body>
</html>

4 changes: 4 additions & 0 deletions html/atendido/cadastro_ocorrencia.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,5 +575,9 @@
<script src="<?php echo WWW;?>assets/javascripts/tables/examples.datatables.default.js"></script>
<script src="<?php echo WWW;?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
<script src="<?php echo WWW;?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>

<div align="right">
<iframe src="https://www.wegia.org/software/footer/pessoa.html" width="200" height="60" style="border:none;"></iframe>
</div>
</body>
</html>
4 changes: 4 additions & 0 deletions html/atendido/listar_ocorrencias_ativas.php
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,10 @@ function clicar(id) {
<script src="../../assets/javascripts/tables/examples.datatables.default.js"></script>
<script src="../../assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
<script src="../../assets/javascripts/tables/examples.datatables.tabletools.js"></script>

<div align="right">
<iframe src="https://www.wegia.org/software/footer/pessoa.html" width="200" height="60" style="border:none;"></iframe>
</div>
</body>
</html>

4 changes: 3 additions & 1 deletion html/atendido/pre_cadastro_atendido.php
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,9 @@ function validarCPF(strCPF) {
<script src="<?php echo WWW; ?>assets/javascripts/tables/examples.datatables.row.with.details.js"></script>
<script src="<?php echo WWW; ?>assets/javascripts/tables/examples.datatables.tabletools.js"></script>


<div align="right">
<iframe src="https://www.wegia.org/software/footer/pessoa.html" width="200" height="60" style="border:none;"></iframe>
</div>
</body>

</html>
Loading

0 comments on commit 580256f

Please sign in to comment.