This commit is contained in:
Alfredo Lima
2020-02-26 15:43:19 -06:00
commit 9f2001c549
51 changed files with 42593 additions and 0 deletions
Vendored Executable
+3719
View File
File diff suppressed because it is too large Load Diff
+1
View File
File diff suppressed because one or more lines are too long
+7
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+331
View File
@@ -0,0 +1,331 @@
/*!
* Bootstrap Reboot v4.3.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors
* Copyright 2011-2019 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/
*,
*::before,
*::after {
box-sizing: border-box;
}
html {
font-family: sans-serif;
line-height: 1.15;
-webkit-text-size-adjust: 100%;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}
article, aside, figcaption, figure, footer, header, hgroup, main, nav, section {
display: block;
}
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
font-size: 1rem;
font-weight: 400;
line-height: 1.5;
color: #212529;
text-align: left;
background-color: #fff;
}
[tabindex="-1"]:focus {
outline: 0 !important;
}
hr {
box-sizing: content-box;
height: 0;
overflow: visible;
}
h1, h2, h3, h4, h5, h6 {
margin-top: 0;
margin-bottom: 0.5rem;
}
p {
margin-top: 0;
margin-bottom: 1rem;
}
abbr[title],
abbr[data-original-title] {
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
cursor: help;
border-bottom: 0;
-webkit-text-decoration-skip-ink: none;
text-decoration-skip-ink: none;
}
address {
margin-bottom: 1rem;
font-style: normal;
line-height: inherit;
}
ol,
ul,
dl {
margin-top: 0;
margin-bottom: 1rem;
}
ol ol,
ul ul,
ol ul,
ul ol {
margin-bottom: 0;
}
dt {
font-weight: 700;
}
dd {
margin-bottom: .5rem;
margin-left: 0;
}
blockquote {
margin: 0 0 1rem;
}
b,
strong {
font-weight: bolder;
}
small {
font-size: 80%;
}
sub,
sup {
position: relative;
font-size: 75%;
line-height: 0;
vertical-align: baseline;
}
sub {
bottom: -.25em;
}
sup {
top: -.5em;
}
a {
color: #007bff;
text-decoration: none;
background-color: transparent;
}
a:hover {
color: #0056b3;
text-decoration: underline;
}
a:not([href]):not([tabindex]) {
color: inherit;
text-decoration: none;
}
a:not([href]):not([tabindex]):hover, a:not([href]):not([tabindex]):focus {
color: inherit;
text-decoration: none;
}
a:not([href]):not([tabindex]):focus {
outline: 0;
}
pre,
code,
kbd,
samp {
font-family: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
font-size: 1em;
}
pre {
margin-top: 0;
margin-bottom: 1rem;
overflow: auto;
}
figure {
margin: 0 0 1rem;
}
img {
vertical-align: middle;
border-style: none;
}
svg {
overflow: hidden;
vertical-align: middle;
}
table {
border-collapse: collapse;
}
caption {
padding-top: 0.75rem;
padding-bottom: 0.75rem;
color: #6c757d;
text-align: left;
caption-side: bottom;
}
th {
text-align: inherit;
}
label {
display: inline-block;
margin-bottom: 0.5rem;
}
button {
border-radius: 0;
}
button:focus {
outline: 1px dotted;
outline: 5px auto -webkit-focus-ring-color;
}
input,
button,
select,
optgroup,
textarea {
margin: 0;
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
button,
input {
overflow: visible;
}
button,
select {
text-transform: none;
}
select {
word-wrap: normal;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
-webkit-appearance: button;
}
button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
cursor: pointer;
}
button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
padding: 0;
border-style: none;
}
input[type="radio"],
input[type="checkbox"] {
box-sizing: border-box;
padding: 0;
}
input[type="date"],
input[type="time"],
input[type="datetime-local"],
input[type="month"] {
-webkit-appearance: listbox;
}
textarea {
overflow: auto;
resize: vertical;
}
fieldset {
min-width: 0;
padding: 0;
margin: 0;
border: 0;
}
legend {
display: block;
width: 100%;
max-width: 100%;
padding: 0;
margin-bottom: .5rem;
font-size: 1.5rem;
line-height: inherit;
color: inherit;
white-space: normal;
}
progress {
vertical-align: baseline;
}
[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
height: auto;
}
[type="search"] {
outline-offset: -2px;
-webkit-appearance: none;
}
[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
::-webkit-file-upload-button {
font: inherit;
-webkit-appearance: button;
}
output {
display: inline-block;
}
summary {
display: list-item;
cursor: pointer;
}
template {
display: none;
}
[hidden] {
display: none !important;
}
/*# sourceMappingURL=bootstrap-reboot.css.map */
File diff suppressed because one or more lines are too long
+8
View File
@@ -0,0 +1,8 @@
/*!
* Bootstrap Reboot v4.3.1 (https://getbootstrap.com/)
* Copyright 2011-2019 The Bootstrap Authors
* Copyright 2011-2019 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* Forked from Normalize.css, licensed MIT (https://github.com/necolas/normalize.css/blob/master/LICENSE.md)
*/*,::after,::before{box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:transparent}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,"Noto Sans",sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";font-size:1rem;font-weight:400;line-height:1.5;color:#212529;text-align:left;background-color:#fff}[tabindex="-1"]:focus{outline:0!important}hr{box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:.5rem}p{margin-top:0;margin-bottom:1rem}abbr[data-original-title],abbr[title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}dl,ol,ul{margin-top:0;margin-bottom:1rem}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#007bff;text-decoration:none;background-color:transparent}a:hover{color:#0056b3;text-decoration:underline}a:not([href]):not([tabindex]){color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus,a:not([href]):not([tabindex]):hover{color:inherit;text-decoration:none}a:not([href]):not([tabindex]):focus{outline:0}code,kbd,pre,samp{font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:.75rem;padding-bottom:.75rem;color:#6c757d;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}button,input,optgroup,select,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}select{word-wrap:normal}[type=button],[type=reset],[type=submit],button{-webkit-appearance:button}[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled),button:not(:disabled){cursor:pointer}[type=button]::-moz-focus-inner,[type=reset]::-moz-focus-inner,[type=submit]::-moz-focus-inner,button::-moz-focus-inner{padding:0;border-style:none}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=date],input[type=datetime-local],input[type=month],input[type=time]{-webkit-appearance:listbox}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type=number]::-webkit-inner-spin-button,[type=number]::-webkit-outer-spin-button{height:auto}[type=search]{outline-offset:-2px;-webkit-appearance:none}[type=search]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none!important}
/*# sourceMappingURL=bootstrap-reboot.min.css.map */
File diff suppressed because one or more lines are too long
Vendored Executable
+10038
View File
File diff suppressed because it is too large Load Diff
+1
View File
File diff suppressed because one or more lines are too long
Vendored Executable
+7
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
Vendored Executable
+5
View File
File diff suppressed because one or more lines are too long
+15
View File
@@ -0,0 +1,15 @@
/*!
* Font Awesome Free 5.11.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
@font-face {
font-family: 'Font Awesome 5 Free';
font-style: normal;
font-weight: 400;
font-display: auto;
src: url("../webfonts/fa-regular-400.eot");
src: url("../webfonts/fa-regular-400.eot?#iefix") format("embedded-opentype"), url("../webfonts/fa-regular-400.woff2") format("woff2"), url("../webfonts/fa-regular-400.woff") format("woff"), url("../webfonts/fa-regular-400.ttf") format("truetype"), url("../webfonts/fa-regular-400.svg#fontawesome") format("svg"); }
.far {
font-family: 'Font Awesome 5 Free';
font-weight: 400; }
Vendored Executable
+5
View File
@@ -0,0 +1,5 @@
/*!
* Font Awesome Free 5.11.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
*/
@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:auto;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.far{font-family:"Font Awesome 5 Free";font-weight:400}
Vendored Executable
+7013
View File
File diff suppressed because it is too large Load Diff
+1
View File
File diff suppressed because one or more lines are too long
+7
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Vendored Executable
+4435
View File
File diff suppressed because it is too large Load Diff
+1
View File
File diff suppressed because one or more lines are too long
Vendored Executable
+7
View File
File diff suppressed because one or more lines are too long
+1
View File
File diff suppressed because one or more lines are too long
Vendored Executable
+10598
View File
File diff suppressed because it is too large Load Diff
+38
View File
@@ -0,0 +1,38 @@
<?php
class Conexion{
private static $conexion;
public static function abrirConexion(){
if(!isset(self::$conexion)){
try {
include_once 'config.bd.php';
self::$conexion = new PDO($DB, $userName, $Password);
self::$conexion ->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
self::$conexion -> exec('SET CHARACTER SET utf8');
} catch (PDOException $e) {
echo 'Falló la conexión: ' . $e->getMessage();
die();
}
}
}
public static function cerrarConexion(){
if(isset(self::$conexion)){
self::$conexion = null;
}
}
public static function obtenerConexion(){
return self::$conexion;
}
}
?>
+7
View File
@@ -0,0 +1,7 @@
<?php
$DB = 'mysql:dbname=P_orion_computo;host=132.248.80.194:3306';
$userName = 'lasc';
$Password = '';
?>
+31
View File
@@ -0,0 +1,31 @@
<?php
$verifica = TRUE;
$usuario = "";
$contra = "";
if(isset($_POST['ingresa'])){
if (!empty($_POST['usuario']) && !empty($_POST['contra'])){
require_once "config/conection.php";
Conexion::abrirConexion();
$conexion = Conexion::obtenerConexion();
$usuario = $_POST['usuario'];
$contra = md5($_POST['contra']);
$sql = "SELECT * FROM usuarios WHERE (username='$usuario' AND pass='$contra');";
$cursor = $conexion -> prepare($sql);
$cursor -> execute();
$resultado = $cursor -> fetchAll();
if(count($resultado)){
header("Location: menu.php");
exit;
}else{
$verifica = FALSE;
}
}else{
$verifica = FALSE;
}
}
?>
Executable
+77
View File
@@ -0,0 +1,77 @@
/* Header */
header{
height: 60px;
background-color: #003C71;
}
#tittle{
font-family: Verdana, Geneva, Tahoma, sans-serif;
font-size: 20px;
text-align: right;
color: white;
padding: 20px;
}
#logo, #logoF{
padding: 5px;
}
/* Fin de Header */
.container
{
max-width: 500px;
height: auto;
margin-left: auto;
margin-right: auto;
margin-top: 50px;
}
#question, #inc, #centro, #marca, #equipo
{
text-align: center;
font-family: Verdana, Geneva, Tahoma, sans-serif;
}
.form-group{
max-width: auto;
margin-left: auto;
margin-right: auto;
}
#txtPassword
{
width: 200px;
}
#menuButtons
{
display: flex;
flex-direction: row;
flex-flow: column;
margin: 5px;
margin-left: auto;
margin-right: auto;
max-width: 180px;
font-family: Verdana, Geneva, Tahoma, sans-serif;
text-align: center;
background-color: #003C71;
}
#button
{
margin-top: 10px;
background-color: #003C71;
}
.clasesita
{
width: 100%;
display: flex;
justify-content: space-between;
}
#stock
{
max-width: 800px;
margin-left: 0%;
margin-right: 0%;
}
Executable
+41
View File
@@ -0,0 +1,41 @@
<?php require('header.php');?>
<body>
<div class="container shadow p-3 mb-5 bg-white rounded">
<form>
<div class="form-group row">
<label for="exampleFormControlInput1">Número de inventario:</label>
<input type="text" class="form-control" id="noInventario" required>
<div class="form-group"><br>
<label for="exampleFormControlSelect1">Unidad responsable:</label>
<?php require_once "select/unidadResponsable.php";?>
<label for="serie">Ubicación:</label>
<input type="text" class="form-control" required><br>
<label for="equipo">Equipo:</label>
<?php require_once "select/equipo.php";?>
<label for="equipo">Marca:</label>
<?php require_once "select/marca.php";?>
<label for="serie">Número de serie:</label>
<input type="text" class="form-control" required><br>
<label for="serie">Número de resguardo:</label>
<input type="text" class="form-control" required><br>
<div class="form-group">
<label for="exampleFormControlTextarea1">Descripción adicional:</label>
<textarea class="form-control" id="exampleFormControlTextarea1" rows="3" required></textarea>
</div>
<div class="clasesita">
<button id="button" type="submit" class="btn btn-secondary" onclick="valida()">Agregar</button>
<button type="reset" class="btn btn-primary" id="button">Restablecer</button>
<a id="button" class="btn btn-secondary back" href="menuAlta.php" role="button" title="Regresar">Regresar</a>
</div>
</div>
</div>
</form>
</div>
<script src="/static/js/jquery-1.12.1.js"></script>
<script src="/static/js/bootstrap.js"></script>
</body>
</html>
Executable
+20
View File
@@ -0,0 +1,20 @@
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="boot/css/bootstrap.css">
<link rel="stylesheet" href="boot/css/bootstrap.min.css">
<link rel="stylesheet" href="css/styles.css">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script src="js/jquery-3.2.1.min.js" type="text/javascript"></script>
<title>Inventario de equipos</title>
<link rel="icon" type="img/png" href="img/Escudo-UNAM-escalable-blanco.png">
</head>
<header>
<a href="https://unam.mx"><img id="logo" src="img/logo-UNAM.svg" alt="Logo UNAM" align="left" height="50" width="50"></a>
<a href="https://acatlan.unam.mx"><img id="logoF" src="img/logo-FES.svg" alt="Logo FES Acatlán" align="left" height="55" width="175"></a>
<h3 id="tittle">CEDETEC</h3>
</header>
Binary file not shown.

After

Width:  |  Height:  |  Size: 250 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

+1
View File
@@ -0,0 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="eye-slash" class="svg-inline--fa fa-eye-slash fa-w-20" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 640 512"><path fill="currentColor" d="M320 400c-75.85 0-137.25-58.71-142.9-133.11L72.2 185.82c-13.79 17.3-26.48 35.59-36.72 55.59a32.35 32.35 0 0 0 0 29.19C89.71 376.41 197.07 448 320 448c26.91 0 52.87-4 77.89-10.46L346 397.39a144.13 144.13 0 0 1-26 2.61zm313.82 58.1l-110.55-85.44a331.25 331.25 0 0 0 81.25-102.07 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64a308.15 308.15 0 0 0-147.32 37.7L45.46 3.37A16 16 0 0 0 23 6.18L3.37 31.45A16 16 0 0 0 6.18 53.9l588.36 454.73a16 16 0 0 0 22.46-2.81l19.64-25.27a16 16 0 0 0-2.82-22.45zm-183.72-142l-39.3-30.38A94.75 94.75 0 0 0 416 256a94.76 94.76 0 0 0-121.31-92.21A47.65 47.65 0 0 1 304 192a46.64 46.64 0 0 1-1.54 10l-73.61-56.89A142.31 142.31 0 0 1 320 112a143.92 143.92 0 0 1 144 144c0 21.63-5.29 41.79-13.9 60.11z"></path></svg>

After

Width:  |  Height:  |  Size: 973 B

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

+1
View File
@@ -0,0 +1 @@
<svg aria-hidden="true" focusable="false" data-prefix="fas" data-icon="eye" class="svg-inline--fa fa-eye fa-w-18" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 576 512"><path fill="currentColor" d="M572.52 241.4C518.29 135.59 410.93 64 288 64S57.68 135.64 3.48 241.41a32.35 32.35 0 0 0 0 29.19C57.71 376.41 165.07 448 288 448s230.32-71.64 284.52-177.41a32.35 32.35 0 0 0 0-29.19zM288 400a144 144 0 1 1 144-144 143.93 143.93 0 0 1-144 144zm0-240a95.31 95.31 0 0 0-25.31 3.79 47.85 47.85 0 0 1-66.9 66.9A95.78 95.78 0 1 0 288 160z"></path></svg>

After

Width:  |  Height:  |  Size: 556 B

+2283
View File
File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 172 KiB

+3506
View File
File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 264 KiB

Executable
+43
View File
@@ -0,0 +1,43 @@
<?php require('config/start.php'); ?>
<?php require('header.php');?>
<body>
<div class="container">
<div class="shadow p-3 mb-5 bg-white rounded">
<h3 id="question">
Ingresar al sistema:
</h3>
<div>
<form action="<?php echo $_SERVER['PHP_SELF']?>" method="POST">
<div class="form-group ">
<label for="formGroupExampleInput">Usuario:</label>
<input type="text" name="usuario" class="form-control" id="formGroupExampleInput" value="<?php
echo $usuario; ?>">
</div>
<div class="form-group">
<label for="formGroupExampleInput2">Contraseña:</label>
<div class="input-group">
<input ID="txtPassword" name="contra" type="Password" Class="form-control">
<div class="input-group-append" background-color="003C71">
<button class="btn btn-primary eye" name="show_password" type="button" onclick="mostrarPassword()" title="Mostrar contraseña">
<img id="show_password" src="img/icons/eye-solid.png" width="15px" height="15px"></button>
</div>
</div>
<?php if(!$verifica) { ?>
<br>
<div id="inc" class="alert alert-danger" role="alert">
Error: usuario y/o contraseña incorrecta.
</div>
<?php
}
?>
<button id="button" class="btn btn-secondary" name="ingresa" type="submit">Aceptar</button>
</div>
</form>
</div>
</div>
</div>
<script src="js/hidePassword.js"></script>
<script src="/static/js/jquery-1.12.1.js"></script>
<script src="/static/js/bootstrap.js"></script>
</body>
</html>
+17
View File
@@ -0,0 +1,17 @@
function mostrarPassword(){
var cambio = document.getElementById("txtPassword");
if(cambio.type == "Password"){
cambio.type = "text";
cambio.src = "img/icons/eye-slash-solid.png";
}else{
cambio.type = "Password";
cambio.src = "img/icons/eye-solid.png";
}
}
$(document).ready(function () {
//CheckBox mostrar contraseña
$('#ShowPassword').click(function () {
$('#Password').attr('type', $(this).is(':checked') ? 'text' : 'password');
});
});
Executable
+6
View File
@@ -0,0 +1,6 @@
<?php
session_start();
session_unset();
session_destroy();
header("Location: index.php");
?>
Executable
+17
View File
@@ -0,0 +1,17 @@
<?php require('header.php');
session_start();
?>
<div class="container">
<div class="shadow p-3 mb-5 bg-white rounded">
<h3 id="question">Seleccione una opción:</h3>
<a id="menuButtons" class="btn btn-secondary" href="query.php" role="button" title="Consulta de inventario">Consulta</a>
<a id="menuButtons" class="btn btn-secondary" href="modify.php" role="button" title="Modificación del inventario">Modificación</a>
<a id="menuButtons" class="btn btn-secondary" href="menuAlta.php" role="button" title="Dar de alta un número de inventario">Dar de alta</a>
<a id="menuButtons" class="btn btn-secondary" href="logout.php" role="button" title="Cerrar sesión">Salir</a>
</div>
</div>
<script src="/static/js/jquery-1.12.1.js"></script>
<script src="/static/js/bootstrap.js"></script>
</body>
</html>
Executable
+13
View File
@@ -0,0 +1,13 @@
<?php require('header.php'); ?>
<div class="container">
<div class="shadow p-3 mb-5 bg-white rounded">
<h3 id="question">Seleccione una opción:</h3>
<a id="menuButtons" class="btn btn-secondary" href="dardealta.php" role="button" title="Dar de alta nuevo inventario">Inventario</a>
<a id="menuButtons" class="btn btn-secondary" href="userReg.php" role="button" title="Dar de alta nuevo usuario">Usuario</a>
<a id="menuButtons" class="btn btn-secondary back" href="menu.php" role="button" title="Regresar">Regresar</a>
</div>
</div>
<script src="/static/js/jquery-1.12.1.js"></script>
<script src="/static/js/bootstrap.js"></script>
</body>
</html>
Executable
+12
View File
@@ -0,0 +1,12 @@
<?php require('header.php'); ?>
<?php require('verUser.php') ?>
<div class="container shadow p-3 mb-5 bg-white rounded">
<form class="form-group">
<label for="modStock">Número de inventario: </label>
<input type="search" class="form-control" id="modStock">
<div class="clasesita">
<button id="button" type="submit" class="btn btn-secondary">Buscar</button>
<a id="button" class="btn btn-secondary back" href="menu.php" role="button" title="Regresar">Regresar</a>
</div>
</form>
</div>
Executable
+3
View File
@@ -0,0 +1,3 @@
<?php
$conn = mysqli_connect('localhost', 'root', '', 'computo');
?>
Executable
+21
View File
@@ -0,0 +1,21 @@
<?php require('header.php'); ?>
<div class="container">
<div class="shadow p-3 mb-5 bg-white rounded">
<form>
<p id="stock" class="form-group">
<label for="formGroupExampleInput">Número de inventario: </label>
<input type="search" class="form-control" id="textPassword">
<div class="clasesita">
<button id="button" type="submit" class="btn btn-secondary">Buscar</button>
<a id="button" class="btn btn-secondary back" href="menu.php" role="button" title="Regresar">Regresar</a>
</div>
</p>
</form>
</div>
</div>
<script src="/static/js/jquery-1.12.1.js"></script>
<script src="/static/js/bootstrap.js"></script>
</body>
</html>
+13
View File
@@ -0,0 +1,13 @@
<select class="form-control" id="equipo" required>
<option value="">──Seleccione un equipo──</option>
<option>COMPUTADORA</option>
<option>COMPUTADORA DE MANO</option>
<option>COMPUTADORA PORTÁTIL (LAPTOP)</option>
<option>CONCENTRADOR</option>
<option>ESTACIÓN DE DATOS</option>
<option>ESTACIÓN DE TRABAJO</option>
<option>MICROCOMPUTADORA</option>
<option>PROCESADOR CENTRAL</option>
<option>SERVIDOR</option>
<option>TERMINAL DE COMPUTACIÓN</option>
</select><br>
+35
View File
@@ -0,0 +1,35 @@
<select id="marca" class="form-control" required>
<option value="">──Seleccione una marca──</option>
<option>3COM</option>
<option>ACER</option>
<option>ACERMATE</option>
<option>AMX</option>
<option>AOPEN</option>
<option>APPLE</option>
<option>ASUS</option>
<option>BARRACUDA</option>
<option>BLUE CODE</option>
<option>CAVALIER</option>
<option>CISCO SYSTEMS</option>
<option>COMPAQ</option>
<option>DELL</option>
<option>ECOIN</option>
<option>GATEWAY</option>
<option>HP</option>
<option>HP COMPAQ</option>
<option>IBM</option>
<option>IWLL</option>
<option>LANIX</option>
<option>LENOVO</option>
<option>LEXPRO</option>
<option>LUFAC</option>
<option>MICROSOFT</option>
<option>NAHERSA</option>
<option>SIN MODELO</option>
<option>SAMSUNG</option>
<option>SONY</option>
<option>SUN</option>
<option>TEXA</option>
<option>TOSHIBA</option>
<option>VULCAN</option>
</select><br>
+108
View File
@@ -0,0 +1,108 @@
<select class="form-control" id="centro" required>
<option value="">──Seleccione un área──</option>
<option>ÁREA DE CURSOS DEL CENTRO DE DESARROLLO TECNOLÓGICO</option>
<option>ÁREA DE SERVICIOS DE CÓMPUTO DE LA SECRETARÍA ADMINISTRATIVA</option>
<option>BIENES EN TRÁMITE DE ACTA ADMINISTRATIVA</option>
<option>BIENES PENDIENTES POR LOCALIZAR Y RESGUARDAR</option>
<option>CENTRO DE DESARROLLO TECNOLÓGICO</option>
<option>CENTRO DE DIFUSIÓN CULTURAL</option>
<option>CENTRO DE EDUCACIÓN CONTINUA</option>
<option>CENTRO DE ENSEÑANZA DE IDIOMAS</option>
<option>CENTRO DE ESTUDIOS MUNICIPALES Y METROPOLITANOS</option>
<option>CENTRO TECNOLÓGICO PARA LA EDUCACIÓN A DISTANCIA, CETED</option>
<option>COORDINACIÓN DE ACTIVIDADES DEPORTIVAS Y RECREATIVAS</option>
<option>COORDINACIÓN DE COMUNICACIÓN SOCIAL</option>
<option>COORDINACIÓN DE GESTIÓN DE LA DIRECCIÓN</option>
<option>COORDINACIÓN DE INVESTIGACIÓN MULTIDISCIPLINARIA</option>
<option>COORDINACIÓN DE SERVICIOS ACADÉMICOS</option>
<option>COORDINACIÓN DEL PROGRAMA DE ESTUDIOS DE POSGRADO</option>
<option>DEPARTAMENTO DE HEMEROTECA Y DOCUMENTACIÓN</option>
<option>DEPARTAMENTO DE ACTIVIDADES CULTURALES Y DIFUSIÓN</option>
<option>DEPARTAMENTO DE ADQUISICIONES</option>
<option>DEPARTAMENTO DE ADQUISICIONES BIBLIOGRÁFICAS Y PROCESOS TÉCNICOS</option>
<option>DEPARTAMENTO DE ALEMÁN, GRIEGO Y RUSO</option>
<option>DEPARTAMENTO DE ALMACENES E INVENTARIOS</option>
<option>DEPARTAMENTO DE ANÁLISIS DE RIESGOS NATURALES Y ANTROPOÉNICOS (UIM)</option>
<option>DEPARTAMENTO DE APOYO TÉCNICO AL CENTRO CULTURAL</option>
<option>DEPARTAMENTO DE CONSULTA</option>
<option>DEPARTAMENTO DE ESPAÑOL PARA EXT. Y LENGUAS NO INDOEUROPEAS</option>
<option>DEPARTAMENTO DE ESTUDIOS DE GOBIERNO Y POLÍTICAS PÚBLICAS</option>
<option>DEPARTAMENTO DE ESTUDIOS DE PROCURACIÓN DE JUSTICIA Y SEGURIDAD PÚBLICA</option>
<option>DEPARTAMENTO DE EXTENSIÓN CULTURAL</option>
<option>DEPARTAMENTO DE FORMACIÓN DOCENTE Y SUPERACIÓN ACADÉMICA</option>
<option>DEPARTAMENTO DE FRANCÉS</option>
<option>DEPARTAMENTO DE IMAGEN CORPORATIVA E INSTITUCIONAL</option>
<option>DEPARTAMENTO DE INGLÉS</option>
<option>DEPARTAMENTO DE INTENDENCIA</option>
<option>DEPARTAMENTO DE INVESTIGACIÓN EDUCATIVA</option>
<option>DEPARTAMENTO DE INVESTIGACIÓN EN COMUNICACIÓN Y ESTUDIOS CULTURALES</option>
<option>DEPARTAMENTO DE ITALIANO Y LATÍN</option>
<option>DEPARTAMENTO DE OBRA CIVIL Y PROYECTOS</option>
<option>DEPARTAMENTO DE ORIENTACIÓN EDUCATIVA</option>
<option>DEPARTAMENTO DE PERSONAL</option>
<option>DEPARTAMENTO DE PORTUGUÉS</option>
<option>DEPARTAMENTO DE PRESUPUESTO</option>
<option>DEPARTAMENTO DE PROMOCIÓN Y ORGANIZACIÓN DEPORTIVA</option>
<option>DEPARTAMENTO DE PROYECCIÓN EMPRESARIAL E INTERCAMBIO Y COLABORACIÓN INSTITUCIONAL</option>
<option>DEPARTAMENTO DE PROYECTOS ADMINISTRATIVOS</option>
<option>DEPARTAMENTO DE REDES Y SOPORTE TÉCNICO (CEDETEC)</option>
<option>DEPARTAMENTO DE REGISTRO Y CERTIFICACIÓN DE LA DIVISIÓN S.U.A.</option>
<option>DEPARTAMENTO DE REGISTRO Y CERTIFICACIÓN DE POSGRADO</option>
<option>DEPARTAMENTO DE REGISTRO Y CERTIFICACION DEL C.E.I.</option>
<option>DEPARTAMENTO DE REPRODUCCIONES GRÁFICAS</option>
<option>DEPARTAMENTO DE SERVICIO SOCIAL Y BOLSA DE TRABAJO</option>
<option>DEPARTAMENTO DE SERVICIOS AL PÚBLICO (CID)</option>
<option>DEPARTAMENTO DE SERVICIOS AUDIOVISUALES</option>
<option>DEPARTAMENTO DE SERVICIOS DE CÓMPUTO</option>
<option>DEPARTAMENTO DE SERVICIOS GENERALES DE MANTENIMIENTO</option>
<option>DEPARTAMENTO DE SISTEMAS DE INFORMACIÓN</option>
<option>DEPARTAMENTO DE SUPERVISIÓN TÉCNICA Y SEGUIMIENTO</option>
<option>DEPARTAMENTO DE TALLERES Y LABORATORIOS</option>
<option>DEPARTAMENTO DE TECNOLOGÍA AMBIENTAL (UIM)</option>
<option>DEPARTAMENTO DE TIPOGRAFÍA Y DISEÑO</option>
<option>DEPARTAMENTO DE TÍTULOS PROFESIONALES Y CERTIFICACIÓN</option>
<option>DEPARTAMENTO DE TRANSPORTES Y SERVICIOS DE APOYO</option>
<option>DEPARTAMENTO DE VIGILANCIA</option>
<option>DEVOLUCIÓN DE ACTIVO FIJO AL ALMACÉN POR OBSOLESCENCIA, DESUSO O DESTRUCCIÓN</option>
<option>DIVISIÓN DE CIENCIAS JURÍDICAS</option>
<option>DIVISIÓN DE CIENCIAS SOCIOECONÓMICAS</option>
<option>DIVISIÓN DE DISEÑO Y EDIFICACIÓN</option>
<option>DIVISIÓN DE HUMANIDADES</option>
<option>DIVISIÓN DE MATEMÁTICAS E INGENIERÍA</option>
<option>DIVISIÓN DEL SISTEMA DE UNIVERSIDAD ABIERTA Y EDUCACIÓN A A DISTANCIA</option>
<option>LIBRERÍA UNIVERSITARIA DE LA FES ACATLÁN</option>
<option>NO APLICA, LOS BIENES FUERON DADOS DE BAJA</option>
<option>PAIDI (DEVOLVER LOS BIENES AL ALMACÉN AL TÉRMINO DEL PROYECTO)</option>
<option>PAPIME (LOS BIENES DEBEN SER DEVUELTOS AL ALMACÉN AL TERMINAR EL PROYECTO)</option>
<option>PAPITT (LOS BIENES DEBEN SER DEVUELTOS AL ALMACÉN AL TERMINAR EL PROYECTO)</option>
<option>PROGRAMA DE ACTUARÍA</option>
<option>PROGRAMA DE ARQUITECTURA</option>
<option>PROGRAMA DE COMUNICACIÓN</option>
<option>PROGRAMA DE DERECHO</option>
<option>PROGRAMA DE DISEÑO GRÁFICO</option>
<option>PROGRAMA DE ECONOMÍA</option>
<option>PROGRAMA DE ENSEÑANZA DEL INGLÉS</option>
<option>PROGRAMA DE HUMANIDADES</option>
<option>PROGRAMA DE INGENIERÍA CIVIL</option>
<option>PROGRAMA DE MATEMÁTICAS APLICADAS Y COMPUTACIÓN</option>
<option>PROGRAMA DE PEDAGOGÍA</option>
<option>PROGRAMA DE SOCIOLOGÍA</option>
<option>PROGRAMA POLÍTICO</option>
<option>SECRETARÍA ADMINISTRATIVA</option>
<option>SECRETARÍA DE ESTUDIOS PROFESIONALES</option>
<option>SECRETARÍA DE EXTENSIÓN UNIVERSITARIA Y VINCULACIÓN INSTITUCIONAL</option>
<option>SECRETARÍA DE LA DIRECCIÓN</option>
<option>SECRETARÍA DE POSGRADO E INVESTIGACIÓN</option>
<option>SECRETARÍA GENERAL</option>
<option>SERVICIO MÉDICO</option>
<option>SUPERINTENDENCIA DE OBRAS Y MANTENIMIENTO</option>
<option>UNIDAD DE ADMINISTRACIÓN ESCOLAR</option>
<option>UNIDAD DE ADMINISTRACIÓN Y RECURSOS</option>
<option>UNIDAD DE LA OFICINA JURÍDICA</option>
<option>UNIDAD DE PLANEACIÓN</option>
<option>UNIDAD DE PROCESO (U.P.A.)</option>
<option>UNIDAD DE SERVICIOS A LA COMUNIDAD</option>
<option>UNIDAD DE SERVICIOS EDITORIALES</option>
<option>UNIDAD DE TALLERES, LABORATORIOS Y AUDIOVISUALES</option>
<option>UNIDAD DEL CENTRO DE INFORMACIÓN Y DOCUMENTACIÓN</option>
</select><br>
Executable
+74
View File
@@ -0,0 +1,74 @@
<?php require('header.php');
require('verUser.php');
?>
<div class="container">
<div class="shadow p-3 mb-5 bg-white rounded">
<form action="<?php echo $_SERVER['PHP_SELF']?>" method="POST">
<div class="form-group row">
<label for="usuario">Usuario:</label>
<input type="text" name="usuario" class="form-control" value="<?php
if (isset($_POST['usuario'])){
echo htmlspecialchars($_POST['usuario']);}
?>" required>
<br>
<label for="contra">Tipo de usuario:</label>
<div class="input-group">
<select name="tipo" type="Password" Class="form-control" required>
<option value="">──Seleccione un tipo──</option>
<option value="">Todos los privilegios</option>
<option value="">Modificación</option>
<option value="">Búsqueda</option>
</select>
</div>
<label for="contra">Contraseña:</label>
<div class="input-group">
<input ID="txtPassword" name="contra1" type="Password" Class="form-control" required>
</div>
<br>
<label for="contra">Repita la contraseña:</label>
<div class="input-group">
<input ID="txtPassword" name="contra2" type="Password" Class="form-control" required>
</div>
</div>
<?php
$usuario = "";
$contra1 = "";
$contra2 = "";
$tipo = 0;
if (isset($_POST['tipo'])){
if($_POST['tipo'] === 'Todos los privilegios'){
$tipo = 1;
}
elseif ($_POST['tipo'] === 'Modificación'){
$tipo = 2;
}
elseif ($_POST['tipo'] === 'Búsqueda'){
$tipo = 3;
}
}
if (isset($_POST['contra1'])){
$contra1 = $_POST['contra1'];
}
if (isset($_POST['contra2'])){
$contra2 = $_POST['contra2'];
}
if($contra1 != $contra2) { ?>
<br>
<div id="inc" class="alert alert-danger" role="alert">
Error: las contraseñas no coinciden.
</div>
<?php } ?>
<div class="clasesita">
<button id="button" type="submit" class="btn btn-secondary">Agregar</button>
<a id="button" class="btn btn-secondary back" href="menuAlta.php" role="button" title="Regresar">Regresar</a>
</div>
</form>
</div>
</div>
<script src="/static/js/jquery-1.12.1.js"></script>
<script src="/static/js/bootstrap.js"></script>
</body>
</html>
Executable
+20
View File
@@ -0,0 +1,20 @@
<?php
require('prepara.php');
require('config/start.php');
$consulta = "SELECT tipo FROM usuarios WHERE usuario=$usuario;";
$res = mysqli_query($conn, $consulta);
$mostrar = mysqli_fetch_array($res);
if (mysqli_connect_errno()) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}
if($mostrar["tipo"] != 1)
{
echo $mostrar["tipo"];
echo "<script language=\"javascript\">alert(\"Error: No tienes los permisos para realizar esta función.".$mostrar["tipo"]."\");</script>";
echo $mostrar;
//header("Location: menuAlta.php");
exit;
}
?>