Comienzo de segunda version
This commit is contained in:
Generated
+4
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="Encoding" addBOMForNewFiles="with NO BOM" />
|
||||
</project>
|
||||
Generated
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="WEB_MODULE" version="4">
|
||||
<component name="NewModuleRootManager">
|
||||
<content url="file://$MODULE_DIR$" />
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
</component>
|
||||
</module>
|
||||
Generated
+6
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="JavaScriptSettings">
|
||||
<option name="languageLevel" value="ES6" />
|
||||
</component>
|
||||
</project>
|
||||
Generated
+8
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/inventario_material_pdo.iml" filepath="$PROJECT_DIR$/.idea/inventario_material_pdo.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
Generated
+277
@@ -0,0 +1,277 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ChangeListManager">
|
||||
<list default="true" id="5a994365-f5b3-4c35-9d02-b2cfee414581" name="Default Changelist" comment="" />
|
||||
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
||||
<option name="SHOW_DIALOG" value="false" />
|
||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
||||
<option name="LAST_RESOLUTION" value="IGNORE" />
|
||||
</component>
|
||||
<component name="FileEditorManager">
|
||||
<leaf>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/busqueda_t.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="117">
|
||||
<caret line="28" column="53" selection-start-line="28" selection-start-column="18" selection-end-line="28" selection-end-column="53" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="true">
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/solicitud/actualizacion_p.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="29">
|
||||
<caret line="32" lean-forward="true" selection-start-line="32" selection-end-line="32" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/solicitud/actualizacion_t.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-15">
|
||||
<caret line="29" column="16" selection-start-line="29" selection-start-column="16" selection-end-line="29" selection-end-column="16" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/solicitud/spapel.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-147">
|
||||
<caret line="142" column="12" lean-forward="true" selection-start-line="142" selection-start-column="12" selection-end-line="142" selection-end-column="12" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/solicitud/stoner.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="249">
|
||||
<caret line="164" column="10" lean-forward="true" selection-start-line="164" selection-start-column="10" selection-end-line="164" selection-end-column="10" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
<file pinned="false" current-in-tab="false">
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/busqueda_p.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="360">
|
||||
<caret line="25" column="57" selection-start-line="25" selection-start-column="22" selection-end-line="25" selection-end-column="57" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</file>
|
||||
</leaf>
|
||||
</component>
|
||||
<component name="IdeDocumentHistory">
|
||||
<option name="CHANGED_PATHS">
|
||||
<list>
|
||||
<option value="$PROJECT_DIR$/public_html/conexion.php" />
|
||||
<option value="$PROJECT_DIR$/public_html/login.php" />
|
||||
<option value="$PROJECT_DIR$/public_html/js/main.js" />
|
||||
<option value="$PROJECT_DIR$/public_html/sitio/admin/busqueda_p.php" />
|
||||
<option value="$PROJECT_DIR$/public_html/sitio/admin/busqueda_t.php" />
|
||||
<option value="$PROJECT_DIR$/public_html/sitio/admin/solicitud/actualizacion_p.php" />
|
||||
<option value="$PROJECT_DIR$/public_html/sitio/admin/solicitud/actualizacion_t.php" />
|
||||
<option value="$PROJECT_DIR$/public_html/sitio/admin/solicitud/spapel.php" />
|
||||
<option value="$PROJECT_DIR$/public_html/sitio/admin/solicitud/stoner.php" />
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="ProjectFrameBounds" extendedState="6">
|
||||
<option name="x" value="-8" />
|
||||
<option name="y" value="-8" />
|
||||
<option name="width" value="1382" />
|
||||
<option name="height" value="784" />
|
||||
</component>
|
||||
<component name="ProjectView">
|
||||
<navigator proportions="" version="1">
|
||||
<foldersAlwaysOnTop value="true" />
|
||||
</navigator>
|
||||
<panes>
|
||||
<pane id="ProjectPane">
|
||||
<subPane>
|
||||
<expand>
|
||||
<path>
|
||||
<item name="inventario_material_pdo" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="inventario_material_pdo" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="inventario_material_pdo" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="inventario_material_pdo" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="public_html" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="inventario_material_pdo" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="inventario_material_pdo" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="public_html" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="sitio" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="inventario_material_pdo" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="inventario_material_pdo" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="public_html" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="sitio" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="admin" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
<path>
|
||||
<item name="inventario_material_pdo" type="b2602c69:ProjectViewProjectNode" />
|
||||
<item name="inventario_material_pdo" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="public_html" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="sitio" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="admin" type="462c0819:PsiDirectoryNode" />
|
||||
<item name="solicitud" type="462c0819:PsiDirectoryNode" />
|
||||
</path>
|
||||
</expand>
|
||||
<select />
|
||||
</subPane>
|
||||
</pane>
|
||||
<pane id="Scope" />
|
||||
</panes>
|
||||
</component>
|
||||
<component name="PropertiesComponent">
|
||||
<property name="WebServerToolWindowFactoryState" value="false" />
|
||||
<property name="last_opened_file_path" value="$PROJECT_DIR$" />
|
||||
<property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
|
||||
<property name="nodejs_npm_path_reset_for_default_project" value="true" />
|
||||
</component>
|
||||
<component name="RunDashboard">
|
||||
<option name="ruleStates">
|
||||
<list>
|
||||
<RuleState>
|
||||
<option name="name" value="ConfigurationTypeDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
<RuleState>
|
||||
<option name="name" value="StatusDashboardGroupingRule" />
|
||||
</RuleState>
|
||||
</list>
|
||||
</option>
|
||||
</component>
|
||||
<component name="SvnConfiguration">
|
||||
<configuration />
|
||||
</component>
|
||||
<component name="TaskManager">
|
||||
<task active="true" id="Default" summary="Default task">
|
||||
<changelist id="5a994365-f5b3-4c35-9d02-b2cfee414581" name="Default Changelist" comment="" />
|
||||
<created>1550099561838</created>
|
||||
<option name="number" value="Default" />
|
||||
<option name="presentableId" value="Default" />
|
||||
<updated>1550099561838</updated>
|
||||
<workItem from="1550099564614" duration="15491000" />
|
||||
</task>
|
||||
<servers />
|
||||
</component>
|
||||
<component name="TimeTrackingManager">
|
||||
<option name="totallyTimeSpent" value="15491000" />
|
||||
</component>
|
||||
<component name="ToolWindowManager">
|
||||
<frame x="-8" y="24" width="1382" height="752" extended-state="6" />
|
||||
<layout>
|
||||
<window_info id="Favorites" order="0" side_tool="true" />
|
||||
<window_info active="true" content_ui="combo" id="Project" order="1" visible="true" weight="0.19742814" />
|
||||
<window_info id="Structure" order="2" side_tool="true" weight="0.25" />
|
||||
<window_info anchor="bottom" id="Terminal" order="0" />
|
||||
<window_info anchor="bottom" id="Database Changes" order="1" />
|
||||
<window_info anchor="bottom" id="Event Log" order="2" side_tool="true" />
|
||||
<window_info anchor="bottom" id="Version Control" order="3" />
|
||||
<window_info anchor="bottom" id="Docker" order="4" show_stripe_button="false" />
|
||||
<window_info anchor="bottom" id="Message" order="5" />
|
||||
<window_info anchor="bottom" id="Find" order="6" />
|
||||
<window_info anchor="bottom" id="Run" order="7" />
|
||||
<window_info anchor="bottom" id="Debug" order="8" weight="0.4" />
|
||||
<window_info anchor="bottom" id="Cvs" order="9" weight="0.25" />
|
||||
<window_info anchor="bottom" id="Inspection" order="10" weight="0.4" />
|
||||
<window_info anchor="bottom" id="TODO" order="11" />
|
||||
<window_info anchor="right" id="Database" order="0" />
|
||||
<window_info anchor="right" id="Commander" internal_type="SLIDING" order="1" type="SLIDING" weight="0.4" />
|
||||
<window_info anchor="right" id="Ant Build" order="2" weight="0.25" />
|
||||
<window_info anchor="right" content_ui="combo" id="Hierarchy" order="3" weight="0.25" />
|
||||
</layout>
|
||||
</component>
|
||||
<component name="TypeScriptGeneratedFilesManager">
|
||||
<option name="version" value="1" />
|
||||
</component>
|
||||
<component name="editorHistoryManager">
|
||||
<entry file="file://$PROJECT_DIR$/public_html/header.php">
|
||||
<provider selected="true" editor-type-id="text-editor" />
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/index.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="88">
|
||||
<caret line="4" column="53" lean-forward="true" selection-start-line="4" selection-start-column="53" selection-end-line="4" selection-end-column="53" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/conexion.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="132">
|
||||
<caret line="8" column="23" selection-start-line="8" selection-start-column="23" selection-end-line="8" selection-end-column="23" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/js/busqueda_p.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-352" />
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/js/main.js">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="263">
|
||||
<caret line="19" column="44" selection-start-line="19" selection-start-column="44" selection-end-line="19" selection-end-column="44" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/login.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-1">
|
||||
<caret line="5" column="16" lean-forward="true" selection-start-line="5" selection-start-column="16" selection-end-line="5" selection-end-column="16" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/solicitud/actualizacion_t.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-15">
|
||||
<caret line="29" column="16" selection-start-line="29" selection-start-column="16" selection-end-line="29" selection-end-column="16" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/busqueda_t.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="117">
|
||||
<caret line="28" column="53" selection-start-line="28" selection-start-column="18" selection-end-line="28" selection-end-column="53" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/busqueda_p.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="360">
|
||||
<caret line="25" column="57" selection-start-line="25" selection-start-column="22" selection-end-line="25" selection-end-column="57" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/solicitud/spapel.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="-147">
|
||||
<caret line="142" column="12" lean-forward="true" selection-start-line="142" selection-start-column="12" selection-end-line="142" selection-end-column="12" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/solicitud/stoner.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="249">
|
||||
<caret line="164" column="10" lean-forward="true" selection-start-line="164" selection-start-column="10" selection-end-line="164" selection-end-column="10" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
<entry file="file://$PROJECT_DIR$/public_html/sitio/admin/solicitud/actualizacion_p.php">
|
||||
<provider selected="true" editor-type-id="text-editor">
|
||||
<state relative-caret-position="29">
|
||||
<caret line="32" lean-forward="true" selection-start-line="32" selection-end-line="32" />
|
||||
</state>
|
||||
</provider>
|
||||
</entry>
|
||||
</component>
|
||||
</project>
|
||||
@@ -0,0 +1,36 @@
|
||||
<?php
|
||||
/*
|
||||
* conexion a viper
|
||||
* */
|
||||
$host = '132.248.80.194';
|
||||
$user = 'usr_inv_material';
|
||||
$pass = 'tint4sBond';
|
||||
$dbname = 'kalinga_inventario_material';
|
||||
$dsn = 'mysql:host=' . $host . ';dbname=' .$dbname;
|
||||
|
||||
|
||||
|
||||
try{
|
||||
|
||||
$conexion = new PDO($dsn,$user,$pass);
|
||||
$conexion->setAttribute(PDO::ATTR_ERRMODE,PDO::ERRMODE_EXCEPTION);
|
||||
$conexion->exec('SET CHARACTER SET utf8');
|
||||
}catch(PDOException $e){
|
||||
$error = "Error en la linea:" . $e->getLine(). "<br>";
|
||||
$error = "Error: " . $e->getMessage() . "<br>";
|
||||
echo $error;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
* conexion local
|
||||
* */
|
||||
/*
|
||||
|
||||
$mysqli = new mysqli("132.248.80.194",
|
||||
"usr_inv_material",
|
||||
"tint4sBond",
|
||||
"P_orion_inventario_material");
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,12 @@
|
||||
<?php
|
||||
/**
|
||||
* Created by PhpStorm.
|
||||
* User: Gabriel Fuentes
|
||||
* Date: 15/01/2019
|
||||
* Time: 05:59 PM
|
||||
*/
|
||||
|
||||
session_start();
|
||||
session_destroy();
|
||||
header('Location: index.php');
|
||||
?>
|
||||
@@ -0,0 +1,142 @@
|
||||
*{
|
||||
font-family: 'Arial';
|
||||
}
|
||||
.nav-link-white {
|
||||
color: #fff;
|
||||
}
|
||||
.nav-link-white:hover{
|
||||
text-decoration: none;
|
||||
color: rgba(0,0,0,.5);
|
||||
}
|
||||
.bg-gold{
|
||||
background-color: #bb8800;
|
||||
}
|
||||
.navbar-blanco{
|
||||
color: #fff;
|
||||
}
|
||||
.item-show{
|
||||
color: #fff;
|
||||
}
|
||||
.item-show:hover{
|
||||
background-color: rgba(0,0,0,.2);
|
||||
color: #fff;
|
||||
}
|
||||
.custom-toggler.navbar-toggler:focus {
|
||||
outline-color: rgba(0,0,0,0.1);
|
||||
}
|
||||
.custom-toggler .navbar-toggler-icon {
|
||||
background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(250,250,250)' stroke-width='4' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
|
||||
}
|
||||
.mostrar{
|
||||
background-color: #E9AD0C !important;
|
||||
}
|
||||
.caja{
|
||||
background-color: #bb8800;
|
||||
border-radius: 6px;
|
||||
}
|
||||
.caja a{
|
||||
color: #fff;
|
||||
}
|
||||
*{
|
||||
margin: 0px;
|
||||
padding: 0px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
.wrap{
|
||||
width: 1000px;
|
||||
max-width: 90%;
|
||||
margin: 30px auto;
|
||||
}
|
||||
|
||||
ul.tabs{
|
||||
width: 100%;
|
||||
background: #363636;
|
||||
list-style: none;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
ul.tabs li{
|
||||
width: 18%;
|
||||
}
|
||||
|
||||
ul.tabs li a{
|
||||
color: #fff;
|
||||
text-decoration: none;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
|
||||
display: block;
|
||||
padding: 20px 0px;
|
||||
}
|
||||
|
||||
.active{
|
||||
background: #0984CC;
|
||||
}
|
||||
|
||||
ul.tabs li a .tab-text{
|
||||
margin-left: 8px;
|
||||
}
|
||||
|
||||
.secciones{
|
||||
width: 100%;
|
||||
background: #fff;
|
||||
}
|
||||
|
||||
.secciones article{
|
||||
padding: 30px;
|
||||
}
|
||||
|
||||
.secciones article p{
|
||||
text-align: justify;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 700px){
|
||||
ul.tabs li{
|
||||
width: none;
|
||||
flex-basis: 0;
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
||||
@media screen and (max-width: 450px){
|
||||
ul.tabs li a{
|
||||
padding: 15px 0px;
|
||||
}
|
||||
|
||||
ul.tabs li a .tab-text{
|
||||
display: none;
|
||||
}
|
||||
|
||||
.secciones article{
|
||||
padding: 20px;
|
||||
}
|
||||
}
|
||||
/*tabla */
|
||||
|
||||
table td {
|
||||
transition: all .5s;
|
||||
}
|
||||
|
||||
/* Table */
|
||||
.tabla_datos {
|
||||
border-collapse: collapse;
|
||||
font-size: 14px;
|
||||
min-width: 537px;
|
||||
}
|
||||
|
||||
.tabla_datos tbody td {
|
||||
color: #353535;
|
||||
}
|
||||
|
||||
.tabla_datos tbody tr:hover td {
|
||||
background-color: #ffffa2;
|
||||
border-color: #ffff0f;
|
||||
}
|
||||
.tabla_datos tbody td:empty
|
||||
{
|
||||
background-color: #ffcccc;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,19 @@
|
||||
<br><br><br><br><br>
|
||||
<footer>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col text-center" style="color:#fff; font-size: 90%;">
|
||||
<p class=" mt-4 mb-0">Hecho en México, todos los derechos reservados 2018.</p>
|
||||
<p class="my-0">Esta página puede ser reproducida con fines no lucrativos, siempre y cuando no se mutile, se cite la fuente</p>
|
||||
<p class="my-0">completa y su dirección electrónica. De otra forma, requiere permiso previo por escrito de la institución.</p>
|
||||
<p>Sitio web administrado por: Facultad de Estudios Superiores Acatlán. web2.0@apolo.acatlan.unam.mx</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
<script src="js/jquery-3.3.1.min.js"></script>
|
||||
<script src="js/main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,50 @@
|
||||
<html lang="es">
|
||||
<head>
|
||||
|
||||
<title>CEDETEC | Inventario </title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="estilos.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Spicy+Rice" rel="stylesheet">
|
||||
<link rel="shortcut icon" type="image/png" href="img/escudo-unam.ico">
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<header>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 d-flex d-sm-none d-md-block justify-content-sm-center justify-content-md-start my-2">
|
||||
<img src="img/Logo-UNAM.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 d-flex justify-content-sm-center justify-content-md-end my-3">
|
||||
<img src="img/logo_fesa.png" style=" height: 60px;" alt="">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!--/HEADER-->
|
||||
|
||||
<!--NAVBAR-->
|
||||
<nav class="container navbar navbar-expand-lg navbar-light bg-gold" style="color: white;">
|
||||
<div class="container">
|
||||
|
||||
<button class="navbar-toggler custom-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="index.php" role="button" >
|
||||
Inicio
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<br><br>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 19 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 132 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
@@ -0,0 +1,38 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] == 'Jefatura')
|
||||
{
|
||||
header('Location: sitio/admin/admin.php');
|
||||
}
|
||||
else if($_SESSION['usuario']['perfil'] == 'Area')
|
||||
{
|
||||
header('Location: sitio/usuario/usuario.php');
|
||||
}
|
||||
}
|
||||
?>
|
||||
<?php include("header.php") ?>
|
||||
|
||||
|
||||
<div class="container" style="margin-top: 1%;">
|
||||
<h1>Iniciar sesión</h1>
|
||||
<br>
|
||||
|
||||
<div class="error alert alert-danger alert-dismissible fade show" style="display: none; text-align: center;">
|
||||
<span style="font-size: 18px;">Los Datos ingresados no válidos, intentalo nuevamente.</span>
|
||||
</div>
|
||||
<br>
|
||||
<form action="" id="formlg">
|
||||
<div class="form-group" style="width: 30%;">
|
||||
<label>Cuenta</label>
|
||||
<input type="text" class="form-control" pattern="[A-Za-z0-9_-]{1,15}" required name="usuariolg">
|
||||
</div>
|
||||
<div class="form-group" style="width: 30%;">
|
||||
<label>Password</label>
|
||||
<input type="Password" class="form-control" required name="passlg">
|
||||
</div>
|
||||
<input type="submit" class="btn btn-primary botonlg" value="Iniciar Sesion">
|
||||
</form>
|
||||
</div>
|
||||
<?php include("footer.php") ?>
|
||||
Vendored
+2
File diff suppressed because one or more lines are too long
@@ -0,0 +1,44 @@
|
||||
jQuery(document).on('submit','#formlg',function(event){
|
||||
event.preventDefault();
|
||||
|
||||
jQuery.ajax({
|
||||
url: 'login.php',
|
||||
type: 'POST',
|
||||
dataType: 'json',
|
||||
data: $(this).serialize(),
|
||||
beforeSend: function() {
|
||||
$('.botonlg').val('Validando...');
|
||||
}
|
||||
})
|
||||
.done(function (respuesta) {
|
||||
console.log('hola');
|
||||
if (!respuesta.error){
|
||||
if (respuesta.perfil === 'Jefatura')
|
||||
{
|
||||
location.href = 'sitio/admin/admin.php';
|
||||
}
|
||||
else if (respuesta.perfil === 'Area')
|
||||
{
|
||||
console.log("Area");
|
||||
location.href = 'sitio/usuario/usuario.php';
|
||||
}
|
||||
}
|
||||
else{
|
||||
$('.error').slideDown('slow');
|
||||
setTimeout(function () {
|
||||
$('.error').slideUp('slow')
|
||||
|
||||
},3000);
|
||||
|
||||
$('.botonlg').val('Iniciar Sesion');
|
||||
}
|
||||
})
|
||||
.fail(function (resp) {
|
||||
console.log(resp.responseText);
|
||||
})
|
||||
.always(function(){
|
||||
console.log("complete");
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
if (!empty($_SERVER['HTTP_X_REQUESTED_WITH']) && strtolower($_SERVER['HTTP_X_REQUESTED_WITH']) == 'xmlhttprequest'){
|
||||
|
||||
require 'conexion.php';
|
||||
sleep(1.2);
|
||||
session_start();
|
||||
|
||||
$usuario = $_POST['usuariolg'];
|
||||
$pass = $_POST['passlg'];
|
||||
|
||||
$sql ='CALL st_login(:user, :pas)';
|
||||
$resultado = $conexion->prepare($sql);
|
||||
$resultado->bindValue(':user', $usuario);
|
||||
$resultado->bindValue(':pas', $pass);
|
||||
|
||||
$resultado->execute();
|
||||
|
||||
|
||||
if ($resultado->rowCount() == 1){
|
||||
$datos = $resultado->fetch(PDO::FETCH_ASSOC);
|
||||
$_SESSION['usuario'] = $datos;
|
||||
echo json_encode(array('error' => false, 'perfil' => $datos['perfil'], 'id' => $datos['id_usuario']));
|
||||
}
|
||||
else{
|
||||
echo json_encode(array('error' => true));
|
||||
}
|
||||
$conexion=null;
|
||||
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,8 @@
|
||||
|
||||
select
|
||||
a.id_impresora_inventario,c.impresora,a.inventario,d.color,d.modelo,d.clave,d.cantidad
|
||||
from impresora_inventario a
|
||||
inner join impresora_toner b
|
||||
on(a.id_impresora_inventario=b.id_impresora_inventario)
|
||||
inner join cat_impresora c on(a.id_impresora=c.id_impresora)
|
||||
inner join toner_entrada d on(d.id_toner=b.id_toner);
|
||||
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Jefatura"){
|
||||
header("Location: ../usuario/usuario.php");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
require "../../conexion.php";
|
||||
?>
|
||||
|
||||
<html lang="es">
|
||||
<head>
|
||||
<title>CEDETEC | Inventario </title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="../../estilos.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Spicy+Rice" rel="stylesheet">
|
||||
<link rel="shortcut icon" type="image/png" href="../../img/escudo-unam.ico">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 d-flex d-sm-none d-md-block justify-content-sm-center justify-content-md-start my-2">
|
||||
<img src="../../img/Logo-UNAM.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 d-flex justify-content-sm-center justify-content-md-end my-3">
|
||||
<img src="../../img/logo_fesa.png" style=" height: 60px;" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<h4 style="margin-left: 20px; color: white;">
|
||||
<?php echo $_SESSION['usuario']['nombre']; ?>
|
||||
</h4>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!--/HEADER-->
|
||||
|
||||
<!--NAVBAR-->
|
||||
<nav class="container navbar navbar-expand-lg navbar-light bg-gold" style="color: white;">
|
||||
<div class="container">
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="alta.php" role="button" >
|
||||
Alta de Material
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../../destroy.php" role="button" >
|
||||
Cerrar sesion
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wrap">
|
||||
<h1 style="margin-left:35%; margin-bottom: 5%;">Material en Stock</h1>
|
||||
<ul class="tabs">
|
||||
<li><a href="#tab1"><span class=""></span><span class="tab-text">Papel</span></a></li>
|
||||
<li><a href="#tab2"><span class=""></span><span class="tab-text">Toner</span></a></li>
|
||||
<li><a href="#tab3"><span class=""></span><span class="tab-text">Papeleria</span></a></li>
|
||||
<li><a href="#tab4"><span class=""></span><span class="tab-text">Otros</span></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="secciones">
|
||||
|
||||
<article id="tab1">
|
||||
<div class="form-1-2">
|
||||
<input placeholder="Buscar..." style="width: 30%;" class="form-control" type="text" name="caja_busqueda" id="caja_busqueda">
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<div id="datos">
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
<article id="tab2">
|
||||
<div class="form-1-2">
|
||||
<input placeholder="Buscar..." style="width: 30%;" class="form-control" type="text" name="caja_busqueda_t" id="caja_busqueda_t">
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<div id="datos_t">
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
<article id="tab3">
|
||||
<h1>En construccion</h1>
|
||||
</article>
|
||||
|
||||
|
||||
<article id="tab4">
|
||||
<h1>En construccion</h1>
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
<footer>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col text-center" style="color:#fff; font-size: 90%;">
|
||||
<p class=" mt-4 mb-0">Hecho en México, todos los derechos reservados 2018.</p>
|
||||
<p class="my-0">Esta página puede ser reproducida con fines no lucrativos, siempre y cuando no se mutile, se cite la fuente</p>
|
||||
<p class="my-0">completa y su dirección electrónica. De otra forma, requiere permiso previo por escrito de la institución.</p>
|
||||
<p>Sitio web administrado por: Facultad de Estudios Superiores Acatlán. web2.0@apolo.acatlan.unam.mx</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="../../https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="../../https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
<script src="../../js/jquery-3.3.1.min.js"></script>
|
||||
<script src="../../js/main.js"></script>
|
||||
<script src="js/secciones.js"></script>
|
||||
<script src="js/busqueda_p.js"></script>
|
||||
<script src="js/busqueda_t.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,88 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Jefatura"){
|
||||
header("Location: ../usuario/usuario.php");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
|
||||
<html lang="es">
|
||||
<head>
|
||||
<title>CEDETEC | Inventario </title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="../../estilos.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Spicy+Rice" rel="stylesheet">
|
||||
<link rel="shortcut icon" type="image/png" href="../../img/escudo-unam.ico">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 d-flex d-sm-none d-md-block justify-content-sm-center justify-content-md-start my-2">
|
||||
<img src="../../img/Logo-UNAM.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 d-flex justify-content-sm-center justify-content-md-end my-3">
|
||||
<img src="../../img/logo_fesa.png" style=" height: 60px;" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<h3 style="margin-left: 20px; color: white;">
|
||||
<?php echo $_SESSION['usuario']['nombre']; ?>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!--/HEADER-->
|
||||
|
||||
<!--NAVBAR-->
|
||||
<nav class="container navbar navbar-expand-lg navbar-light bg-gold" style="color: white;">
|
||||
<div class="container">
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="admin.php" role="button" >
|
||||
Stock
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../../destroy.php" role="button" >
|
||||
Cerrar sesion
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<br><br>
|
||||
|
||||
<footer>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col text-center" style="color:#fff; font-size: 90%;">
|
||||
<p class=" mt-4 mb-0">Hecho en México, todos los derechos reservados 2018.</p>
|
||||
<p class="my-0">Esta página puede ser reproducida con fines no lucrativos, siempre y cuando no se mutile, se cite la fuente</p>
|
||||
<p class="my-0">completa y su dirección electrónica. De otra forma, requiere permiso previo por escrito de la institución.</p>
|
||||
<p>Sitio web administrado por: Facultad de Estudios Superiores Acatlán. web2.0@apolo.acatlan.unam.mx</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="../../https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="../../https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
<script src="../../js/jquery-3.3.1.min.js"></script>
|
||||
<script src="../../js/main.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
session_start();
|
||||
require "../../conexion.php";
|
||||
|
||||
|
||||
$salida = "";
|
||||
$query = "CALL st_despliega_papel('');";
|
||||
if(isset($_POST['consulta'])){
|
||||
$q = $_POST['consulta'];
|
||||
$query = "CALL st_despliega_papel('%$q%');";
|
||||
}
|
||||
$resultado = $conexion->query($query);
|
||||
if($resultado->rowCount() > 0){
|
||||
$salida.="<table class='tabla_datos table'>
|
||||
<thead class='table-primary'>
|
||||
<tr>
|
||||
<td>Concepto</td>
|
||||
<td style=\"text-align:center;\">Tipo</td>
|
||||
<td style=\"text-align:center;\">Marca</td>
|
||||
<td style=\"text-align:center;\">Descripción</td>
|
||||
<td style=\"text-align:center;\">Existencia</td>
|
||||
<td style=\"text-align:center;\">Operación</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>";
|
||||
while($fila = $resultado->fetch(PDO::FETCH_ASSOC)){
|
||||
|
||||
if ($fila['existencia'] > 0) {
|
||||
$salida.="<tr>
|
||||
<td>".$fila['concepto']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['tipo']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['marca']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['descripcion']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['existencia']."</td>
|
||||
<td style=\"text-align:center;\"> <a href='solicitud/spapel.php?id=".$fila['concepto']."'>Solicitar</a></td>
|
||||
<tr>";
|
||||
}
|
||||
else {
|
||||
$salida.="<tr>
|
||||
<td>".$fila['concepto']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['tipo']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['marca']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['descripcion']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['existencia']."</td>
|
||||
<td style=\"text-align:center;\"> <a></a></td>
|
||||
<tr>";
|
||||
}
|
||||
}
|
||||
|
||||
$salida.="</tbody></table>";
|
||||
|
||||
}
|
||||
else{
|
||||
$salida.= "No hay datos que coincidan con tu busqueda";
|
||||
}
|
||||
echo $salida;
|
||||
$conexion = null;
|
||||
?>
|
||||
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
session_start();
|
||||
require "../../conexion.php";
|
||||
|
||||
|
||||
$salida = "";
|
||||
$query = "CALL st_muestra_toner('');";
|
||||
if(isset($_POST['consulta'])){
|
||||
$q = $_POST['consulta'];
|
||||
$query = "CALL st_muestra_toner('%$q%');";
|
||||
}
|
||||
|
||||
$resultado = $conexion->query($query);
|
||||
|
||||
if($resultado->rowCount() > 0){
|
||||
$salida.="<table class='tabla_datos table'>
|
||||
<thead class='table-primary'>
|
||||
<tr>
|
||||
<td style=\"text-align:center;\">Impresora</td>
|
||||
<td style=\"text-align:center;\">Inventario</td>
|
||||
<td style=\"text-align:center;\">Color</td>
|
||||
<td style=\"text-align:center;\">Modelo</td>
|
||||
<td style=\"text-align:center;\">Clave</td>
|
||||
<td style=\"text-align:center;\">Existencia</td>
|
||||
<td style=\"text-align:center;\">Operacion</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>";
|
||||
while($fila = $resultado->fetch(PDO::FETCH_ASSOC)){
|
||||
|
||||
if ($fila['existencia'] > 0) {
|
||||
$salida.="<tr>
|
||||
<td>".$fila['impresora']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['inventario']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['color']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['modelo']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['clave']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['existencia']."</td>
|
||||
<td style=\"text-align:center;\"> <a href='solicitud/stoner.php?id=".$fila['id_impresora_toner']."'>Solicitar</a></td>
|
||||
|
||||
<tr>";
|
||||
}
|
||||
else {
|
||||
$salida.="<tr>
|
||||
<td>".$fila['impresora']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['inventario']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['color']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['modelo']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['clave']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['existencia']."</td>
|
||||
<td style=\"text-align:center;\"><a></a></td>
|
||||
|
||||
<tr>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$salida.="</tbody></table>";
|
||||
|
||||
}
|
||||
else{
|
||||
$salida.= "No hay datos que coincidan con tu busqueda";
|
||||
}
|
||||
echo $salida;
|
||||
$conexion = null;
|
||||
?>
|
||||
@@ -0,0 +1,59 @@
|
||||
$(buscar_datos_p());
|
||||
|
||||
function buscar_datos_p(consulta){
|
||||
$.ajax({
|
||||
url: 'busqueda_p.php',
|
||||
type: 'POST',
|
||||
dataType: 'html',
|
||||
data: {consulta: consulta},
|
||||
})
|
||||
.done(function (respuesta) {
|
||||
$('#datos').html(respuesta);
|
||||
})
|
||||
|
||||
.fail(function () {
|
||||
console.log("error");
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
$(document).on('keyup','#caja_busqueda', function(){
|
||||
var valor = $(this).val();
|
||||
console.log(valor);
|
||||
if (valor != "") {
|
||||
buscar_datos_p(valor);
|
||||
}else{
|
||||
buscar_datos_p();
|
||||
}
|
||||
});
|
||||
/*
|
||||
//funcion global
|
||||
var buscar = function(consulta){
|
||||
$.ajax({
|
||||
url: 'busqueda_p.php',
|
||||
type: 'POST',
|
||||
dataType: 'html',
|
||||
data: {consulta: consulta, text:'asd'},
|
||||
})
|
||||
.done(function (respuesta) {
|
||||
$('#datos').html(respuesta);
|
||||
console.log(respuesta)
|
||||
})
|
||||
|
||||
.fail(function () {
|
||||
console.log("error");
|
||||
})
|
||||
}
|
||||
buscar()
|
||||
let input = document.getElementById('caja_busqueda')
|
||||
|
||||
input.addEventListener("keyup",function(){
|
||||
if (input.value == ""){
|
||||
buscar()
|
||||
}else{
|
||||
console.log("lleno")
|
||||
|
||||
buscar(input.value)
|
||||
|
||||
}
|
||||
})*/
|
||||
@@ -0,0 +1,28 @@
|
||||
$(buscar_datos());
|
||||
|
||||
function buscar_datos(consulta){
|
||||
$.ajax({
|
||||
url: 'busqueda_t.php',
|
||||
type: 'POST',
|
||||
dataType: 'html',
|
||||
data: {consulta: consulta},
|
||||
})
|
||||
.done(function (respuesta) {
|
||||
$('#datos_t').html(respuesta);
|
||||
|
||||
})
|
||||
|
||||
.fail(function () {
|
||||
console.log("error");
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
$(document).on('keyup','#caja_busqueda_t', function(){
|
||||
var valor = $(this).val();
|
||||
if (valor != "") {
|
||||
buscar_datos(valor);
|
||||
}else{
|
||||
buscar_datos();
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
$('ul.tabs li a:first').addClass('active');
|
||||
$('.secciones article').hide();
|
||||
$('.secciones article:first').show();
|
||||
|
||||
$('ul.tabs li a').click(function(){
|
||||
$('ul.tabs li a').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
$('.secciones article').hide();
|
||||
|
||||
var activeTab = $(this).attr('href');
|
||||
$(activeTab).show();
|
||||
return false;
|
||||
});
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', '1');
|
||||
session_start();
|
||||
include("../../../conexion.php");
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Jefatura"){
|
||||
header("Location: ../usuario/usuario.php");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
|
||||
|
||||
$periodo = $_POST['periodo'];
|
||||
$cantidad = $_POST['cantidad'];
|
||||
$id_papel = $_POST['id_papel'];
|
||||
$usuario = $_SESSION['usuario']['nombre'];
|
||||
$id_usuario = $_SESSION['usuario']['id_usuario'];
|
||||
$fecha_usuario =$_POST['fecha-u'];
|
||||
$fecha_movimiento = $_POST['fecha-m'];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$consulta = $conexion->prepare("CALL st_salida_papel('$fecha_usuario',$cantidad,'$periodo',$id_papel,$id_usuario)");
|
||||
$consulta->execute();
|
||||
$consulta = null;
|
||||
header("Location: ../admin.php");
|
||||
|
||||
|
||||
/*
|
||||
echo "periodo:";
|
||||
print_r($periodo);
|
||||
echo" Cantidad:";
|
||||
print_r($cantidad);
|
||||
echo" id de papel:";
|
||||
print_r($id_papel);
|
||||
echo" Usuario:";
|
||||
print_r($usuario);
|
||||
echo" ID Usuario:";
|
||||
print_r($id_usuario);
|
||||
echo" Fecha del movimiento:";
|
||||
print_r($fecha_movimiento);
|
||||
echo" Fecha registrada por usuario:";
|
||||
print_r($fecha_usuario);
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,50 @@
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', '1');
|
||||
session_start();
|
||||
include("../../../conexion.php");
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Jefatura"){
|
||||
header("Location: ../usuario/usuario.php");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
|
||||
$id_impresora_toner = $_POST['id_impresora_toner'];
|
||||
$fecha_usuario =$_POST['fecha-u'];
|
||||
$cantidad = $_POST['cantidad'];
|
||||
$periodo = $_POST['periodo'];
|
||||
$id_impresora_inventario = $_POST['id_impresora_inventario'];
|
||||
$id_usuario = $_SESSION['usuario']['id_usuario'];
|
||||
$modelo = $_POST['modelo'];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$consulta = $conexion->prepare("CALL st_salida_toner($id_impresora_toner, '$fecha_usuario', $cantidad,'$periodo',$id_impresora_inventario,$id_usuario,'$modelo')");
|
||||
$consulta->execute();
|
||||
$consulta = null;
|
||||
header("Location: ../admin.php");
|
||||
|
||||
|
||||
/*
|
||||
echo "id_impresora_toner:";
|
||||
print_r($id_impresora_toner);
|
||||
echo " fecha_usuario:";
|
||||
print_r($fecha_usuario);
|
||||
echo" Cantidad:";
|
||||
print_r($cantidad);
|
||||
echo" periodo:";
|
||||
print_r($periodo);
|
||||
echo" id_impresora_inventario:";
|
||||
print_r($id_impresora_inventario);
|
||||
echo" ID Usuario:";
|
||||
print_r($id_usuario);
|
||||
echo" modelo:";
|
||||
print_r($modelo);
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,169 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Jefatura"){
|
||||
header("Location: ../usuario/usuario.php");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
include("../../../conexion.php");
|
||||
?>
|
||||
|
||||
|
||||
<html lang="es">
|
||||
<head>
|
||||
<title>CEDETEC | Inventario </title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="../../../estilos.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Spicy+Rice" rel="stylesheet">
|
||||
<link rel="shortcut icon" type="image/png" href="../../../img/escudo-unam.ico">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 d-flex d-sm-none d-md-block justify-content-sm-center justify-content-md-start my-2">
|
||||
<img src="../../../img/Logo-UNAM.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 d-flex justify-content-sm-center justify-content-md-end my-3">
|
||||
<img src="../../../img/logo_fesa.png" style=" height: 60px;" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<h3 style="margin-left: 20px; color: white;">
|
||||
<?php echo $_SESSION['usuario']['nombre']; ?>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!--/HEADER-->
|
||||
|
||||
<!--NAVBAR-->
|
||||
<nav class="container navbar navbar-expand-lg navbar-light bg-gold" style="color: white;">
|
||||
<div class="container">
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../admin.php" role="button" >
|
||||
Stock
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../admin.php" role="button" >
|
||||
Alta de Material
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../../../destroy.php" role="button" >
|
||||
Cerrar sesion
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<?php
|
||||
date_default_timezone_set('America/Mexico_City');
|
||||
$fecha = date("Y-m-d H:i:s");
|
||||
$concepto=$_REQUEST['id'];
|
||||
$query = "CALL st_despliega_papel('$concepto')";
|
||||
$resultado = $conexion->query($query) or die($mysqli->error);
|
||||
$row = $resultado->fetch(PDO::FETCH_ASSOC);
|
||||
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1 style="margin-left:40%; margin-bottom: 5%;">Solicitud</h1>
|
||||
<h2>Descripcion de solicitud:</h2>
|
||||
<table class='tabla_datos table'>
|
||||
<thead class='table-primary'>
|
||||
<tr>
|
||||
<td style="text-align:center;">Concepto</td>
|
||||
<td style="text-align:center;">Tipo</td>
|
||||
<td style="text-align:center;">Marca</td>
|
||||
<td style="text-align:center;">Descripción</td>
|
||||
<td style="text-align:center;">Existencia</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:center;"><?php echo $row['concepto']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['tipo']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['marca']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['descripcion']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['existencia']?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<form action="actualizacion_p.php" method="POST">
|
||||
<div class="input-group mb-3" style="width: 20%; ">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Periodo</label>
|
||||
</div>
|
||||
<select class="custom-select disabled" name="periodo" id="inputGroupSelect01" style="text-align:center;">
|
||||
<option value="2019-2" name="1" selected>2019-2</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-group mb-3" style="width: 20%;">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Cantidad</label>
|
||||
</div>
|
||||
<select class="custom-select" id="inputGroupSelect01" name="cantidad" style="text-align:center;" required>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<input type="hidden" name="id_papel" value="<?php echo $row['id_papel'];?>"/>
|
||||
<input type="hidden" name="usuario" value="<?php echo $_SESSION['usuario']['nombre'];?>"/>
|
||||
<input type="hidden" name="fecha-m" value="<?php echo $fecha;?>"/>
|
||||
<div class="input-group-prepend" style="width: 20%;">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Fecha</label>
|
||||
<input type="date" name="fecha-u" required>
|
||||
</div>
|
||||
<br>
|
||||
<button type="submit" class="btn btn-primary">Solicitar</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<footer>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col text-center" style="color:#fff; font-size: 90%;">
|
||||
<p class=" mt-4 mb-0">Hecho en México, todos los derechos reservados 2018.</p>
|
||||
<p class="my-0">Esta página puede ser reproducida con fines no lucrativos, siempre y cuando no se mutile, se cite la fuente</p>
|
||||
<p class="my-0">completa y su dirección electrónica. De otra forma, requiere permiso previo por escrito de la institución.</p>
|
||||
<p>Sitio web administrado por: Facultad de Estudios Superiores Acatlán. web2.0@apolo.acatlan.unam.mx</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="../../https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="../../https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
<script src="../../../js/jquery-3.3.1.min.js"></script>
|
||||
<script src="../../../js/main.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,173 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Jefatura"){
|
||||
header("Location: ../usuario/usuario.php");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
include("../../../conexion.php");
|
||||
//prueba
|
||||
?>
|
||||
|
||||
|
||||
<html lang="es">
|
||||
<head>
|
||||
<title>CEDETEC | Inventario </title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="../../../estilos.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Spicy+Rice" rel="stylesheet">
|
||||
<link rel="shortcut icon" type="image/png" href="../../../img/escudo-unam.ico">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 d-flex d-sm-none d-md-block justify-content-sm-center justify-content-md-start my-2">
|
||||
<img src="../../../img/Logo-UNAM.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 d-flex justify-content-sm-center justify-content-md-end my-3">
|
||||
<img src="../../../img/logo_fesa.png" style=" height: 60px;" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<h3 style="margin-left: 20px; color: white;">
|
||||
<?php echo $_SESSION['usuario']['nombre']; ?>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!--/HEADER-->
|
||||
|
||||
<!--NAVBAR-->
|
||||
<nav class="container navbar navbar-expand-lg navbar-light bg-gold" style="color: white;">
|
||||
<div class="container">
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../admin.php" role="button" >
|
||||
Stock
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../admin.php" role="button" >
|
||||
Alta de Material
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../../../destroy.php" role="button" >
|
||||
Cerrar sesion
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<?php
|
||||
date_default_timezone_set('America/Mexico_City');
|
||||
$fecha = date("Y-m-d H:i:s");
|
||||
$concepto=$_REQUEST['id'];
|
||||
$query = "CALL st_muestra_toner('$concepto')";
|
||||
$resultado = $conexion->query($query);
|
||||
$row = $resultado->fetch(PDO::FETCH_ASSOC);
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1 style="margin-left:40%; margin-bottom: 5%;">Solicitud</h1>
|
||||
<h2>Descripcion de solicitud:</h2>
|
||||
<table class='tabla_datos table'>
|
||||
<thead class='table-primary'>
|
||||
<tr>
|
||||
<td style="text-align:center;">Impresora</td>
|
||||
<td style="text-align:center;">Inventario</td>
|
||||
<td style="text-align:center;">Color</td>
|
||||
<td style="text-align:center;">Modelo</td>
|
||||
<td style="text-align:center;">Clave</td>
|
||||
<td style="text-align:center;">Existencia</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:center;"><?php echo $row['impresora']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['inventario']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['color']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['modelo']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['clave']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['existencia']?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<form action="actualizacion_t.php" method="POST">
|
||||
<div class="input-group mb-3" style="width: 20%; ">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Periodo</label>
|
||||
</div>
|
||||
<select class="custom-select disabled" name="periodo" id="inputGroupSelect01" style="text-align:center;">
|
||||
<option value="2019-2" name="1" selected>2019-2</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-group mb-3" style="width: 20%;">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Cantidad</label>
|
||||
</div>
|
||||
<select class="custom-select" id="inputGroupSelect01" name="cantidad" style="text-align:center;" required>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<input type="hidden" name="id_impresora_toner" value="<?php echo $row['id_impresora_toner'];?>"/>
|
||||
<input type="hidden" name="id_impresora_inventario" value="<?php echo $row['id_impresora_inventario'];?>"/>
|
||||
<input type="hidden" name="usuario" value="<?php echo $_SESSION['usuario']['nombre'];?>"/>
|
||||
<input type="hidden" name="fecha-m" value="<?php echo $fecha;?>"/>
|
||||
<input type="hidden" name="modelo" value="<?php echo $row['modelo'];?>"/>
|
||||
<div class="input-group-prepend" style="width: 20%;">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Fecha</label>
|
||||
<input type="date" name="fecha-u" required>
|
||||
</div>
|
||||
<br>
|
||||
<button type="submit" class="btn btn-primary">Solicitar</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<footer>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col text-center" style="color:#fff; font-size: 90%;">
|
||||
<p class=" mt-4 mb-0">Hecho en México, todos los derechos reservados 2018.</p>
|
||||
<p class="my-0">Esta página puede ser reproducida con fines no lucrativos, siempre y cuando no se mutile, se cite la fuente</p>
|
||||
<p class="my-0">completa y su dirección electrónica. De otra forma, requiere permiso previo por escrito de la institución.</p>
|
||||
<p>Sitio web administrado por: Facultad de Estudios Superiores Acatlán. web2.0@apolo.acatlan.unam.mx</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="../../https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="../../https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
<script src="../../../js/jquery-3.3.1.min.js"></script>
|
||||
<script src="../../../js/main.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
session_start();
|
||||
require "../../conexion.php";
|
||||
|
||||
$salida = "";
|
||||
$query = "CALL st_despliega_papel('');";
|
||||
if(isset($_POST['consulta'])){
|
||||
$q = $_POST['consulta'];
|
||||
$query = "CALL st_despliega_papel('%$q%');";
|
||||
}
|
||||
$resultado = $conexion->query($query);
|
||||
|
||||
if($resultado->rowCount() > 0){
|
||||
$salida.="<table class='tabla_datos table'>
|
||||
<thead class='table-primary'>
|
||||
<tr>
|
||||
<td>Concepto</td>
|
||||
<td style=\"text-align:center;\">Tipo</td>
|
||||
<td style=\"text-align:center;\">Marca</td>
|
||||
<td style=\"text-align:center;\">Descripción</td>
|
||||
<td style=\"text-align:center;\">Existencia</td>
|
||||
<td style=\"text-align:center;\">Operación</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>";
|
||||
while($fila = $resultado->fetch(PDO::FETCH_ASSOC)){
|
||||
|
||||
if ($fila['existencia'] > 0) {
|
||||
$salida.="<tr>
|
||||
<td>".$fila['concepto']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['tipo']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['marca']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['descripcion']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['existencia']."</td>
|
||||
<td style=\"text-align:center;\"> <a href='solicitud/spapel.php?id=".$fila['concepto']."'>Solicitar</a></td>
|
||||
<tr>";
|
||||
}
|
||||
else {
|
||||
$salida.="<tr>
|
||||
<td>".$fila['concepto']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['tipo']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['marca']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['descripcion']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['existencia']."</td>
|
||||
<td style=\"text-align:center;\"> </a></td>
|
||||
<tr>";
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
$salida.="</tbody></table>";
|
||||
|
||||
}
|
||||
else{
|
||||
$salida.= "No hay datos que coincidan con tu busqueda";
|
||||
}
|
||||
echo $salida;
|
||||
$conexion = null;
|
||||
?>
|
||||
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
session_start();
|
||||
require "../../conexion.php";
|
||||
|
||||
|
||||
$salida = "";
|
||||
$query = "CALL st_muestra_toner('');";
|
||||
if(isset($_POST['consulta'])){
|
||||
$q = $_POST['consulta'];
|
||||
$query = "CALL st_muestra_toner('%$q%');";
|
||||
}
|
||||
|
||||
$resultado = $conexion->query($query);
|
||||
|
||||
if($resultado->rowCount() > 0){
|
||||
$salida.="<table class='tabla_datos table'>
|
||||
<thead class='table-primary'>
|
||||
<tr>
|
||||
<td style=\"text-align:center;\">Impresora</td>
|
||||
<td style=\"text-align:center;\">Inventario</td>
|
||||
<td style=\"text-align:center;\">Color</td>
|
||||
<td style=\"text-align:center;\">Modelo</td>
|
||||
<td style=\"text-align:center;\">Clave</td>
|
||||
<td style=\"text-align:center;\">Existencia</td>
|
||||
<td style=\"text-align:center;\">Operacion</td>
|
||||
</tr>
|
||||
</thead>
|
||||
</tbody>";
|
||||
while($fila = $resultado->fetch(PDO::FETCH_ASSOC)){
|
||||
|
||||
if ($fila['existencia'] > 0) {
|
||||
$salida.="<tr>
|
||||
<td>".$fila['impresora']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['inventario']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['color']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['modelo']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['clave']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['existencia']."</td>
|
||||
<td style=\"text-align:center;\"> <a href='solicitud/stoner.php?id=".$fila['id_impresora_toner']."'>Solicitar</a></td>
|
||||
|
||||
<tr>";
|
||||
}
|
||||
else {
|
||||
$salida.="<tr>
|
||||
<td>".$fila['impresora']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['inventario']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['color']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['modelo']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['clave']."</td>
|
||||
<td style=\"text-align:center;\">".$fila['existencia']."</td>
|
||||
<td style=\"text-align:center;\"><a></a></td>
|
||||
|
||||
<tr>";
|
||||
}
|
||||
}
|
||||
|
||||
$salida.="</tbody></table>";
|
||||
|
||||
}
|
||||
else{
|
||||
$salida.= "No hay datos que coincidan con tu busqueda";
|
||||
}
|
||||
echo $salida;
|
||||
$conexion = null;
|
||||
?>
|
||||
@@ -0,0 +1,28 @@
|
||||
$(buscar_datos_p());
|
||||
function buscar_datos_p(consulta){
|
||||
$.ajax({
|
||||
url: 'busqueda_p.php',
|
||||
type: 'POST',
|
||||
dataType: 'html',
|
||||
data: {consulta: consulta},
|
||||
})
|
||||
.done(function (respuesta) {
|
||||
$('#datos').html(respuesta);
|
||||
|
||||
})
|
||||
|
||||
.fail(function () {
|
||||
console.log("error");
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
$(document).on('keyup','#caja_busqueda', function(){
|
||||
var valor = $(this).val();
|
||||
if (valor != "") {
|
||||
buscar_datos_p(valor);
|
||||
console.log(valor);
|
||||
}else{
|
||||
buscar_datos_p();
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,28 @@
|
||||
$(buscar_datos());
|
||||
|
||||
function buscar_datos(consulta){
|
||||
$.ajax({
|
||||
url: 'busqueda_t.php',
|
||||
type: 'POST',
|
||||
dataType: 'html',
|
||||
data: {consulta: consulta},
|
||||
})
|
||||
.done(function (respuesta) {
|
||||
$('#datos_t').html(respuesta);
|
||||
|
||||
})
|
||||
|
||||
.fail(function () {
|
||||
console.log("error");
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
$(document).on('keyup','#caja_busqueda_t', function(){
|
||||
var valor = $(this).val();
|
||||
if (valor != "") {
|
||||
buscar_datos(valor);
|
||||
}else{
|
||||
buscar_datos();
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,13 @@
|
||||
$('ul.tabs li a:first').addClass('active');
|
||||
$('.secciones article').hide();
|
||||
$('.secciones article:first').show();
|
||||
|
||||
$('ul.tabs li a').click(function(){
|
||||
$('ul.tabs li a').removeClass('active');
|
||||
$(this).addClass('active');
|
||||
$('.secciones article').hide();
|
||||
|
||||
var activeTab = $(this).attr('href');
|
||||
$(activeTab).show();
|
||||
return false;
|
||||
});
|
||||
@@ -0,0 +1,48 @@
|
||||
<?php
|
||||
error_reporting(E_ALL);
|
||||
ini_set('display_errors', '1');
|
||||
session_start();
|
||||
include("../../../conexion.php");
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Area"){
|
||||
header("Location: ../admin/admin.php");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
|
||||
$periodo = $_POST['periodo'];
|
||||
$cantidad = $_POST['cantidad'];
|
||||
$id_papel = $_POST['id_papel'];
|
||||
$usuario = $_SESSION['usuario']['nombre'];
|
||||
$id_usuario = $_SESSION['usuario']['id_usuario'];
|
||||
$fecha_usuario =$_POST['fecha-u'];
|
||||
$fecha_movimiento = $_POST['fecha-m'];
|
||||
|
||||
|
||||
$consulta = $conexion->prepare("CALL st_salida_papel('$fecha_usuario',$cantidad,'$periodo',$id_papel,$id_usuario)");
|
||||
$consulta->execute();
|
||||
$consulta = null;
|
||||
header("Location: ../usuario.php");
|
||||
|
||||
|
||||
|
||||
/*
|
||||
echo "periodo:";
|
||||
print_r($periodo);
|
||||
echo" Cantidad:";
|
||||
print_r($cantidad);
|
||||
echo" id de papel:";
|
||||
print_r($id_papel);
|
||||
echo" Usuario:";
|
||||
print_r($usuario);
|
||||
echo" ID Usuario:";
|
||||
print_r($dato['id_usuario']);
|
||||
echo" Fecha del movimiento:";
|
||||
print_r($fecha_movimiento);
|
||||
echo" Fecha registrada por usuario:";
|
||||
print_r($fecha_usuario);
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,49 @@
|
||||
<?php
|
||||
|
||||
session_start();
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Area"){
|
||||
header("Location: ../admin/admin.php");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
include("../../../conexion.php");
|
||||
|
||||
$id_impresora_toner = $_POST['id_impresora_toner'];
|
||||
$fecha_usuario =$_POST['fecha-u'];
|
||||
$cantidad = $_POST['cantidad'];
|
||||
$periodo = $_POST['periodo'];
|
||||
$id_impresora_inventario = $_POST['id_impresora_inventario'];
|
||||
$id_usuario = $_SESSION['usuario']['id_usuario'];
|
||||
$modelo = $_POST['modelo'];
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
$consulta = $conexion->prepare("CALL st_salida_toner($id_impresora_toner, '$fecha_usuario', $cantidad,'$periodo',$id_impresora_inventario,$id_usuario,'$modelo')");
|
||||
$consulta->execute();
|
||||
$consulta = null;
|
||||
header("Location: ../usuario.php");
|
||||
|
||||
|
||||
/*
|
||||
echo "id_impresora_toner:";
|
||||
print_r($id_impresora_toner);
|
||||
echo " fecha_usuario:";
|
||||
print_r($fecha_usuario);
|
||||
echo" Cantidad:";
|
||||
print_r($cantidad);
|
||||
echo" periodo:";
|
||||
print_r($periodo);
|
||||
echo" id_impresora_inventario:";
|
||||
print_r($id_impresora_inventario);
|
||||
echo" ID Usuario:";
|
||||
print_r($id_usuario);
|
||||
echo" modelo:";
|
||||
print_r($modelo);
|
||||
*/
|
||||
?>
|
||||
@@ -0,0 +1,165 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Area"){
|
||||
header("Location: ../admin/admin.php");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
include("../../../conexion.php");
|
||||
?>
|
||||
|
||||
|
||||
<html lang="es">
|
||||
<head>
|
||||
<title>CEDETEC | Inventario </title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="../../../estilos.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Spicy+Rice" rel="stylesheet">
|
||||
<link rel="shortcut icon" type="image/png" href="../../../img/escudo-unam.ico">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 d-flex d-sm-none d-md-block justify-content-sm-center justify-content-md-start my-2">
|
||||
<img src="../../../img/Logo-UNAM.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 d-flex justify-content-sm-center justify-content-md-end my-3">
|
||||
<img src="../../../img/logo_fesa.png" style=" height: 60px;" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<h3 style="margin-left: 20px; color: white;">
|
||||
<?php echo $_SESSION['usuario']['nombre']; ?>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!--/HEADER-->
|
||||
|
||||
<!--NAVBAR-->
|
||||
<nav class="container navbar navbar-expand-lg navbar-light bg-gold" style="color: white;">
|
||||
<div class="container">
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../usuario.php" role="button" >
|
||||
Stock
|
||||
</a>
|
||||
</li>
|
||||
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../../../destroy.php" role="button" >
|
||||
Cerrar sesion
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<?php
|
||||
date_default_timezone_set('America/Mexico_City');
|
||||
$fecha = date("Y-m-d H:i:s");
|
||||
$concepto=$_REQUEST['id'];
|
||||
$query = "CALL st_despliega_papel('$concepto')";
|
||||
$resultado = $conexion->query($query) or die($mysqli->error);
|
||||
$row = $resultado->fetch(PDO::FETCH_ASSOC);
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1 style="margin-left:40%; margin-bottom: 5%;">Solicitud</h1>
|
||||
<h2>Descripcion de solicitud:</h2>
|
||||
<table class='tabla_datos table'>
|
||||
<thead class='table-primary'>
|
||||
<tr>
|
||||
<td style="text-align:center;">Concepto</td>
|
||||
<td style="text-align:center;">Tipo</td>
|
||||
<td style="text-align:center;">Marca</td>
|
||||
<td style="text-align:center;">Descripción</td>
|
||||
<td style="text-align:center;">Existencia</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:center;"><?php echo $row['concepto']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['tipo']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['marca']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['descripcion']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['existencia']?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<form action="actualizacion_p.php" method="POST">
|
||||
<div class="input-group mb-3" style="width: 20%; ">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Periodo</label>
|
||||
</div>
|
||||
<select class="custom-select disabled" name="periodo" id="inputGroupSelect01" style="text-align:center;">
|
||||
<option value="2019-2" name="1" selected>2019-2</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-group mb-3" style="width: 20%;">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Cantidad</label>
|
||||
</div>
|
||||
<select class="custom-select" id="inputGroupSelect01" name="cantidad" style="text-align:center;" required>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<input type="hidden" name="id_papel" value="<?php echo $row['id_papel'];?>"/>
|
||||
<input type="hidden" name="usuario" value="<?php echo $_SESSION['usuario']['nombre'];?>"/>
|
||||
<input type="hidden" name="fecha-m" value="<?php echo $fecha;?>"/>
|
||||
<div class="input-group-prepend" style="width: 20%;">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Fecha</label>
|
||||
<input type="date" name="fecha-u" required>
|
||||
</div>
|
||||
<br>
|
||||
<button type="submit" class="btn btn-primary">Solicitar</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<footer>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col text-center" style="color:#fff; font-size: 90%;">
|
||||
<p class=" mt-4 mb-0">Hecho en México, todos los derechos reservados 2018.</p>
|
||||
<p class="my-0">Esta página puede ser reproducida con fines no lucrativos, siempre y cuando no se mutile, se cite la fuente</p>
|
||||
<p class="my-0">completa y su dirección electrónica. De otra forma, requiere permiso previo por escrito de la institución.</p>
|
||||
<p>Sitio web administrado por: Facultad de Estudios Superiores Acatlán. web2.0@apolo.acatlan.unam.mx</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="../../https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="../../https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
<script src="../../../js/jquery-3.3.1.min.js"></script>
|
||||
<script src="../../../js/main.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,171 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Area"){
|
||||
header("Location: ../admin/admin.php");
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
header("Location: ../../index.php");
|
||||
}
|
||||
include("../../../conexion.php");
|
||||
?>
|
||||
|
||||
<html lang="es">
|
||||
<head>
|
||||
<title>CEDETEC | Inventario </title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="../../../estilos.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Spicy+Rice" rel="stylesheet">
|
||||
<link rel="shortcut icon" type="image/png" href="../../../img/escudo-unam.ico">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 d-flex d-sm-none d-md-block justify-content-sm-center justify-content-md-start my-2">
|
||||
<img src="../../../img/Logo-UNAM.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 d-flex justify-content-sm-center justify-content-md-end my-3">
|
||||
<img src="../../../img/logo_fesa.png" style=" height: 60px;" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<h3 style="margin-left: 20px; color: white;">
|
||||
<?php echo $_SESSION['usuario']['nombre']; ?>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!--/HEADER-->
|
||||
|
||||
<!--NAVBAR-->
|
||||
<nav class="container navbar navbar-expand-lg navbar-light bg-gold" style="color: white;">
|
||||
<div class="container">
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../admin.php" role="button" >
|
||||
Stock
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../admin.php" role="button" >
|
||||
Alta de Material
|
||||
</a>
|
||||
</li>
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../../../destroy.php" role="button" >
|
||||
Cerrar sesion
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<?php
|
||||
date_default_timezone_set('America/Mexico_City');
|
||||
$fecha = date("Y-m-d H:i:s");
|
||||
$concepto=$_REQUEST['id'];
|
||||
$query = "CALL st_muestra_toner('$concepto')";
|
||||
$resultado = $conexion->query($query);
|
||||
$row = $resultado->fetch(PDO::FETCH_ASSOC);
|
||||
?>
|
||||
<div class="wrap">
|
||||
<h1 style="margin-left:40%; margin-bottom: 5%;">Solicitud</h1>
|
||||
<h2>Descripcion de solicitud:</h2>
|
||||
<table class='tabla_datos table'>
|
||||
<thead class='table-primary'>
|
||||
<tr>
|
||||
<td style="text-align:center;">Impresora</td>
|
||||
<td style="text-align:center;">Inventario</td>
|
||||
<td style="text-align:center;">Color</td>
|
||||
<td style="text-align:center;">Modelo</td>
|
||||
<td style="text-align:center;">Clave</td>
|
||||
<td style="text-align:center;">Existencia</td>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="text-align:center;"><?php echo $row['impresora']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['inventario']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['color']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['modelo']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['clave']?></td>
|
||||
<td style="text-align:center;"><?php echo $row['existencia']?></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<br>
|
||||
|
||||
<form action="actualizacion_t.php" method="POST">
|
||||
<div class="input-group mb-3" style="width: 20%; ">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Periodo</label>
|
||||
</div>
|
||||
<select class="custom-select disabled" name="periodo" id="inputGroupSelect01" style="text-align:center;">
|
||||
<option value="2019-2" name="1" selected>2019-2</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="input-group mb-3" style="width: 20%;">
|
||||
<div class="input-group-prepend">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Cantidad</label>
|
||||
</div>
|
||||
<select class="custom-select" id="inputGroupSelect01" name="cantidad" style="text-align:center;" required>
|
||||
<option value="1">1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
<option value="4">4</option>
|
||||
<option value="5">5</option>
|
||||
<option value="6">6</option>
|
||||
<option value="7">7</option>
|
||||
<option value="8">8</option>
|
||||
<option value="9">9</option>
|
||||
|
||||
|
||||
</select>
|
||||
</div>
|
||||
<input type="hidden" name="id_impresora_toner" value="<?php echo $row['id_impresora_toner'];?>"/>
|
||||
<input type="hidden" name="id_impresora_inventario" value="<?php echo $row['id_impresora_inventario'];?>"/>
|
||||
<input type="hidden" name="usuario" value="<?php echo $_SESSION['usuario']['nombre'];?>"/>
|
||||
<input type="hidden" name="fecha-m" value="<?php echo $fecha;?>"/>
|
||||
<input type="hidden" name="modelo" value="<?php echo $row['modelo'];?>"/>
|
||||
<div class="input-group-prepend" style="width: 20%;">
|
||||
<label class="input-group-text" for="inputGroupSelect01">Fecha</label>
|
||||
<input type="date" name="fecha-u" required>
|
||||
</div>
|
||||
<br>
|
||||
<button type="submit" class="btn btn-primary">Solicitar</button>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<footer>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col text-center" style="color:#fff; font-size: 90%;">
|
||||
<p class=" mt-4 mb-0">Hecho en México, todos los derechos reservados 2018.</p>
|
||||
<p class="my-0">Esta página puede ser reproducida con fines no lucrativos, siempre y cuando no se mutile, se cite la fuente</p>
|
||||
<p class="my-0">completa y su dirección electrónica. De otra forma, requiere permiso previo por escrito de la institución.</p>
|
||||
<p>Sitio web administrado por: Facultad de Estudios Superiores Acatlán. web2.0@apolo.acatlan.unam.mx</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="../../https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="../../https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
<script src="../../../js/jquery-3.3.1.min.js"></script>
|
||||
<script src="../../../js/main.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,134 @@
|
||||
<?php
|
||||
session_start();
|
||||
if (isset($_SESSION['usuario'])){
|
||||
if ($_SESSION['usuario']['perfil'] != "Area"){
|
||||
header("Location: ../admin/admin.php");
|
||||
}
|
||||
} else{
|
||||
header("Location ../../index.php");
|
||||
}
|
||||
?>
|
||||
<html lang="es">
|
||||
<head>
|
||||
<title>CEDETEC | Inventario </title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
|
||||
<link rel="stylesheet" href="../../estilos.css">
|
||||
<link href="https://fonts.googleapis.com/css?family=Spicy+Rice" rel="stylesheet">
|
||||
<link rel="shortcut icon" type="image/png" href="../../img/escudo-unam.ico">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col-sm-12 col-md-6 d-flex d-sm-none d-md-block justify-content-sm-center justify-content-md-start my-2">
|
||||
<img src="../../img/Logo-UNAM.png" alt="">
|
||||
</div>
|
||||
<div class="col-sm-12 col-md-6 d-flex justify-content-sm-center justify-content-md-end my-3">
|
||||
<img src="../../img/logo_fesa.png" style=" height: 60px;" alt="">
|
||||
</div>
|
||||
<div>
|
||||
<h3 style="margin-left: 20px; color: white;">
|
||||
<?php echo $_SESSION['usuario']['nombre']; ?>
|
||||
</h3>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
<!--/HEADER-->
|
||||
|
||||
<!--NAVBAR-->
|
||||
<nav class="container navbar navbar-expand-lg navbar-light bg-gold" style="color: white;">
|
||||
<div class="container">
|
||||
|
||||
<div class="collapse navbar-collapse" id="navbarSupportedContent">
|
||||
<ul class="navbar-nav mr-auto">
|
||||
<li class="nav-item dropdown my-2 mr-3">
|
||||
<a class="nav-link-white" href="../../destroy.php" role="button" >
|
||||
Cerrar sesion
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="wrap">
|
||||
<h1 style="margin-left:35%; margin-bottom: 5%;">Material en Stock</h1>
|
||||
<ul class="tabs">
|
||||
<li><a href="#tab1"><span class=""></span><span class="tab-text">Papel</span></a></li>
|
||||
<li><a href="#tab2"><span class=""></span><span class="tab-text">Toner</span></a></li>
|
||||
<li><a href="#tab3"><span class=""></span><span class="tab-text">Papeleria</span></a></li>
|
||||
<li><a href="#tab4"><span class=""></span><span class="tab-text">Otros</span></a></li>
|
||||
</ul>
|
||||
|
||||
<div class="secciones">
|
||||
|
||||
<article id="tab1">
|
||||
<div class="form-1-2">
|
||||
<input placeholder="Buscar..." style="width: 30%;" class="form-control" type="text" name="caja_busqueda" id="caja_busqueda">
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<div id="datos">
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
<article id="tab2">
|
||||
<div class="form-1-2">
|
||||
<input placeholder="Buscar..." style="width: 30%;" class="form-control" type="text" name="caja_busqueda_t" id="caja_busqueda_t">
|
||||
</div>
|
||||
<br>
|
||||
|
||||
<div id="datos_t">
|
||||
</div>
|
||||
|
||||
</article>
|
||||
|
||||
|
||||
<article id="tab3">
|
||||
<h1>En construccion</h1>
|
||||
</article>
|
||||
|
||||
|
||||
<article id="tab4">
|
||||
<h1>En construccion</h1>
|
||||
</article>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<footer>
|
||||
<div class="container" style="background-color: #1B3D70;">
|
||||
<div class="row">
|
||||
<div class="col text-center" style="color:#fff; font-size: 90%;">
|
||||
<p class=" mt-4 mb-0">Hecho en México, todos los derechos reservados 2018.</p>
|
||||
<p class="my-0">Esta página puede ser reproducida con fines no lucrativos, siempre y cuando no se mutile, se cite la fuente</p>
|
||||
<p class="my-0">completa y su dirección electrónica. De otra forma, requiere permiso previo por escrito de la institución.</p>
|
||||
<p>Sitio web administrado por: Facultad de Estudios Superiores Acatlán. web2.0@apolo.acatlan.unam.mx</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="../../https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49" crossorigin="anonymous"></script>
|
||||
<script src="../../https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy" crossorigin="anonymous"></script>
|
||||
<script src="../../js/jquery-3.3.1.min.js"></script>
|
||||
<script src="../../js/main.js"></script>
|
||||
<script src="js/secciones.js"></script>
|
||||
<script src="js/busqueda_p.js"></script>
|
||||
<script src="js/busqueda_t.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user