Mini Shell
<meta name="netconn " content="HTML-Based Android App">
<meta name="viewport" content="user-scalable=no, width=device-width">
<?
session_start();
$idUsuario = $_SESSION['idUsuario'];
$permissao = $_SESSION['permissao'];
if(empty($idUsuario))
{
header("Location: index.php");
exit();
}
else
{
}
function formataData($data) {
$hora = substr($data,10,6);
$data = substr($data,0,10);
if (substr($data, 2, 1) == "/")
return implode('-', array_reverse(explode('/', $data))).$hora;
else
return implode('/', array_reverse(explode('-', $data))).$hora;
}
include"conexao.php";
$sql = "select * from log where idUsuario = '$idUsuario' order by id DESC limit 01";
$res = mysqli_query($con, $sql);
$total = mysqli_num_rows($res);
while ($f = mysqli_fetch_array($res))
{
$ultimologin = $f['data'];
}
$ultimologin = formataData("$ultimologin");
$sql = "select * from tab_usuario where id_usuario = '$idUsuario'";
$res = mysqli_query($con, $sql);
$total = mysqli_num_rows($res);
while ($f = mysqli_fetch_array($res))
{
$nomeUsuario = $f['nome'];
$login = $f['login'];
$nomeUsuario = utf8_encode($nomeUsuario);
}
?>
<html>
<title><? echo "$nomeUsuario";?> | Sicomercio MPPA</title>
<meta charset="utf-8">
<link rel="shortcut icon" href="..//logo.png" type="image/x-icon">
<link rel="icon" href="..//logo.png" type="image/x-icon">
<link rel='stylesheet prefetch' href='https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.1/animate.min.css'>
<link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css">
<script src="https://code.jquery.com/jquery-latest.js"></script>
<script src="https://www.riobrasil.net/boot/assets/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://code.jquery.com/ui/1.9.0/themes/base/jquery-ui.css" />
<script src="https://code.jquery.com/ui/1.9.0/jquery-ui.js"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.0.47/jquery.fancybox.min.js" type="text/javascript"></script>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/fancybox/3.0.47/jquery.fancybox.min.css" />
<script src="https://www.riobrasil.net/ajax/micoxAjax.js?12" type="text/javascript" language="javascript"></script>
<style>
/* Table Base */
table {
font-family: arial;
max-width: 100%;
background-color: transparent;
border-collapse: collapse;
border-spacing: 0;
}
.table {
width: 100%;
margin-bottom: 20px;
}
.table th,
.table td {
font-weight: normal;
font-size: 12px;
padding: 8px 15px;
line-height: 20px;
text-align: left;
vertical-align: middle;
border-top: 1px solid #dddddd;
}
.table thead th {
background: #eeeeee;
vertical-align: bottom;
}
.table tbody > tr:nth-child(odd) > td,
.table tbody > tr:nth-child(odd) > th {
background-color: #fafafa;
}
.table .t-small {
width: 5%;
}
.table .t-medium {
width: 25%;
}
.table .t-status {
font-weight: bold;
}
.table .t-active {
color: #46a546;
}
.table .t-inactive {
color: #e00300;
}
.table .t-draft {
color: #f89406;
}
.table .t-scheduled {
color: #049cdb;
}
/* Small Sizes */
@media (max-width: 480px) {
.table-action thead {
display: none;
}
.table-action tr {
border-bottom: 1px solid #dddddd;
}
.table-action td {
border: 0;
}
.table-action td:not(:first-child) {
display: block;
}
}
</style>
<style>
@media screen and (min-width: 600px) {
div.zap {
display: none;
}
}
.navbar .navbar-nav {
display: inline-block;
float: none !important;
}
.navbar .navbar-collapse {
text-align: right;
}
</style>
<script type="text/javascript" src="https://www.riobrasil.net/util/top.js"></script>
<style>
.centered {
margin: 0 auto !important;
float: none !important;
}
</style>
<body background="#cococo">
<div id="menutravado">
<nav class="navbar navbar-autocollapse navbar-static-top navbar-default">
<div class="container-fluid">
<div class="navbar-header"> <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar1">
<span class="sr-only"></span> <span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> </button> <a class="navbar-brand" href="index.php">
<img style="z-index: 99999; position:absolute; width:100px; left:15px; top:20px; border-radius: 20%;" src=<? echo"..//logo.png" ;?> class="img-responsiveee" border="0" >
</a> </div>
<div id="navbar1" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li class="divider"> </li>
<li class="active"> </li>
<li class="divider"> </li>
</p></p>
</br></br></br>
<div class="table_wrapper" style="display: block; overflow-x: auto; white-space: nowrap;">
<?
// var_dump($_SESSION);
$sql = "select * from menu where permissao = '$permissao' or permissao = '0' order by ordem asc ";
$res = mysqli_query($con, $sql);
$total = mysqli_num_rows($res);
// echo"$total $sql";
while ($f = mysqli_fetch_array($res))
{
$opcao = $f['opcao'];
$link = $f['link'];
$opcao = utf8_encode($opcao);
echo"<label><li> <a href=\"$link\"><b><h5> $opcao </h5></b></a></li> </label>";
}
?>
<li class="divider"> </li>
</ul>
<? echo "</p><label> <font color = \"#000000\" size=\"2\"> <b>Olá $login</b> </label> "; ?></font>
|
<a href="cadastro"><i class="fa fa-edit" style="font-size:10px;color:#000000">SEU CADASTRO </i></a>
|
<a href="logout"><i class="fa fa-window-close" style="font-size:10px;color:red">SAIR</i></a>
<?
?></div>
</div>
</div>
</div>
<html>
Zerion Mini Shell 1.0