Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
dantecc10 committed Jul 23, 2024
1 parent c663032 commit 117d064
Show file tree
Hide file tree
Showing 24 changed files with 39 additions and 39 deletions.
6 changes: 3 additions & 3 deletions Inventario.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
header("Location: login.php");
}

include "php scripts/Conexión.php";
include "php-scripts/Conexión.php";
?>

<!DOCTYPE html>
Expand Down Expand Up @@ -149,7 +149,7 @@
<li class="nav-item dropdown no-arrow">
<div class="nav-item dropdown no-arrow"><a class="dropdown-toggle nav-link" aria-expanded="false" data-bs-toggle="dropdown" href="#"><span class="d-none d-lg-inline me-2 text-gray-600 small"><?php echo ($_SESSION['Nombre']); ?></span><img class="rounded-circle img-fluid border img-profile" src="<?php echo ("assets/img/avatars/" . $_SESSION['ID'] . ".png"); ?>"></a>
<div class="dropdown-menu shadow dropdown-menu-end animated--grow-in"><a class="dropdown-item" href="#"><i class="fas fa-user fa-sm fa-fw me-2 text-gray-400"></i>&nbsp;Perfil</a><a class="dropdown-item" href="Perfil.php"><i class="fas fa-cogs fa-sm fa-fw me-2 text-gray-400"></i>&nbsp;Configuraciones</a><a class="dropdown-item" href="Actividad.php"><i class="fas fa-list fa-sm fa-fw me-2 text-gray-400"></i>&nbsp;Actividad</a>
<div class="dropdown-divider"></div><a class="dropdown-item" href="php scripts/logout.php"><i class="fas fa-sign-out-alt fa-sm fa-fw me-2 text-gray-400"></i>&nbsp;Logout</a>
<div class="dropdown-divider"></div><a class="dropdown-item" href="php-scripts/logout.php"><i class="fas fa-sign-out-alt fa-sm fa-fw me-2 text-gray-400"></i>&nbsp;Logout</a>
</div>
</div>
</li>
Expand Down Expand Up @@ -219,7 +219,7 @@
</div>
<div class="table-responsive table mt-2" id="dataTable" role="grid" aria-describedby="dataTable_info">
<?php
include "php scripts/ConstruirTablaRefacciones.php";
include "php-scripts/ConstruirTablaRefacciones.php";
#ConstruirTablaCarga();
?>
</div>
Expand Down
6 changes: 3 additions & 3 deletions RegistroDisplay.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
header("Location: login.php");
}

include "php scripts/Conexión.php";
include "php-scripts/Conexión.php";
?>
<!DOCTYPE html>
<html>
Expand Down Expand Up @@ -143,7 +143,7 @@
<li class="nav-item dropdown no-arrow">
<div class="nav-item dropdown no-arrow"><a class="dropdown-toggle nav-link" aria-expanded="false" data-bs-toggle="dropdown" href="#"><span class="d-none d-lg-inline me-2 text-gray-600 small"><?php echo ($_SESSION['Nombre']); ?></span><img class="rounded-circle img-fluid border img-profile" src="<?php echo ("assets/img/avatars/" . $_SESSION['ID'] . ".png"); ?>"></a>
<div class="dropdown-menu shadow dropdown-menu-end animated--grow-in"><a class="dropdown-item" href="#"><i class="fas fa-user fa-sm fa-fw me-2 text-gray-400"></i>&nbsp;Perfil</a><a class="dropdown-item" href="Perfil.php"><i class="fas fa-cogs fa-sm fa-fw me-2 text-gray-400"></i>&nbsp;Configuraciones</a><a class="dropdown-item" href="Actividad.php"><i class="fas fa-list fa-sm fa-fw me-2 text-gray-400"></i>&nbsp;Actividad</a>
<div class="dropdown-divider"></div><a class="dropdown-item" href="php scripts/logout.php"><i class="fas fa-sign-out-alt fa-sm fa-fw me-2 text-gray-400"></i>&nbsp;Logout</a>
<div class="dropdown-divider"></div><a class="dropdown-item" href="php-scripts/logout.php"><i class="fas fa-sign-out-alt fa-sm fa-fw me-2 text-gray-400"></i>&nbsp;Logout</a>
</div>
</div>
</li>
Expand All @@ -156,7 +156,7 @@
<section>
<h1 class="text-center text-capitalize">Displays</h1>
<div class="container">
<form id="application-form" action="php scripts/registrarDisplay.php" method="post">
<form id="application-form" action="php-scripts/registrarDisplay.php" method="post">
<div class="form-group mb-3">
<div class="row">
<div class="col">
Expand Down
2 changes: 1 addition & 1 deletion Reparaciones.html
Original file line number Diff line number Diff line change
Expand Up @@ -669,7 +669,7 @@ <h4 class="modal-title fw-bold ms-3" style="color: var(--bs-kalicel-rojo);">Regi
</div>
<div class="modal-body p-2">
<p class="small mb-1 px-4" style="text-indent: 5%;">Llena el formulario para registrar la operación. Los campos marcados con un (*) son obligatorios.</p>
<form action="php scripts/add-fix-order.php" method="post" name="add-fix-order">
<form action="php-scripts/add-fix-order.php" method="post" name="add-fix-order">
<div class="row m-0">
<div class="col col-12"><label class="form-label my-1 py-0" for="customer"><i class="fas fa-user-tag"></i>&nbsp;Cliente&nbsp;<span class="text-danger">*</span></label><input class="form-control p-1" type="text" name="customer" required="" placeholder="Nombre completo del cliente"></div>
<div class="col col-12"><label class="form-label my-1 py-0" for="brand">Marca&nbsp;<span class="text-danger">*</span></label><select name="brand" class="form-select p-1" required>
Expand Down
6 changes: 3 additions & 3 deletions Reparaciones.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
if (empty($_SESSION['ID'])) {
header("Location: login.php");
}
include_once "php scripts/functions.php";
include_once "php-scripts/functions.php";

//include "php scripts/Conexión.php";
//include "php-scripts/Conexión.php";
?>

<!DOCTYPE html>
Expand Down Expand Up @@ -479,7 +479,7 @@
Llena el formulario para registrar la operación. Los campos
marcados con un (*) son obligatorios.
</p>
<form action="php scripts/add-fix-order.php" method="post" name="add-fix-order">
<form action="php-scripts/add-fix-order.php" method="post" name="add-fix-order">
<div class="row m-0">
<div class="col col-12">
<label class="form-label my-1 py-0" for="customer"><i class="fas fa-user-tag"></i>&nbsp;Cliente&nbsp;<span class="text-danger">*</span></label><input class="form-control p-1" type="text" autocomplete="off" name="customer" required="" placeholder="Nombre completo del cliente" />
Expand Down
2 changes: 1 addition & 1 deletion add-display.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ <h1 class="text-center text-capitalize">Displays</h1>
<div class="justify-content-center d-flex form-group mb-3">
<div id="submit-btn" style="width: 50%;">
<div class="row"><button class="btn btn-primary btn-light m-0 rounded-pill px-4 submit-formulario" type="button"
style="min-width: 500px;" action="php scripts/registrarDisplay.php" method="post">Registrar display</button></div>
style="min-width: 500px;" action="php-scripts/registrarDisplay.php" method="post">Registrar display</button></div>
</div>
</div>
</form>
Expand Down
6 changes: 3 additions & 3 deletions assets/js/AjaxFiltros.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ function buscarDisplays() {
console.log("Se busca: '" + búsqueda + "'");
if (búsqueda != "" || búsqueda != null) {
var urlCompuesta, urlVariables = "", uriPHP, filtro = true;
uriPHP = "php scripts/ConstruirTablaRefacciones.php";
uriPHP = "php-scripts/ConstruirTablaRefacciones.php";
urlVariables = ("?búsqueda=" + búsqueda + "&filtro=" + filtro);
urlCompuesta = (uriPHP + urlVariables);

Expand All @@ -56,8 +56,8 @@ function buscarDisplays() {
document.getElementById("dataTable").innerHTML = this.responseText;
}
};
xmlhttp.open("GET", "php scripts/ConstruirTablaRefacciones.php", true);
console.log("URL: " + "php scripts/ConstruirTablaRefacciones.php" + "\nURL Variables: " + "Nada");
xmlhttp.open("GET", "php-scripts/ConstruirTablaRefacciones.php", true);
console.log("URL: " + "php-scripts/ConstruirTablaRefacciones.php" + "\nURL Variables: " + "Nada");
//console.log("ModoFiltro: " + ModoFiltro);
xmlhttp.send();
return;
Expand Down
2 changes: 1 addition & 1 deletion assets/js/AltasBajas.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function bajaAltaCantidad(claveObjetivo, operación) {
var cantidad = cantidadActual;

if (id != "" || id != null) {
var urlCompuesta, urlVariables = ("?id=" + id + "&cantidad=" + cantidad + "&operación=" + operación), uriPHP = "php scripts/AltasBajas.php";
var urlCompuesta, urlVariables = ("?id=" + id + "&cantidad=" + cantidad + "&operación=" + operación), uriPHP = "php-scripts/AltasBajas.php";
urlCompuesta = (uriPHP + urlVariables);

//Petición AJAX
Expand Down
8 changes: 4 additions & 4 deletions assets/js/Funciones.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function opcionesModelos(modo) {

if (Marca != "" || Marca != null) {
var urlCompuesta, urlVariables = "", uriPHP;
uriPHP = "php scripts/Modelos.php";
uriPHP = "php-scripts/Modelos.php";
urlVariables = ("?Marca=" + Marca);
urlCompuesta = (uriPHP + urlVariables);

Expand Down Expand Up @@ -33,7 +33,7 @@ function opcionesModelos(modo) {

if ((Modelo != "" || Modelo != null) && (Marca != "" || Marca != null)) {
var urlCompuesta, urlVariables = "", uriPHP;
uriPHP = "php scripts/Modelos.php";
uriPHP = "php-scripts/Modelos.php";
urlVariables = ("?Marca=" + Marca + "&Modelo=" + Modelo);
urlCompuesta = (uriPHP + urlVariables);

Expand Down Expand Up @@ -64,7 +64,7 @@ function opcionesModelos() {

if (Marca != "" || Marca != null) {
var urlCompuesta, urlVariables = "", uriPHP;
uriPHP = "php scripts/Modelos.php";
uriPHP = "php-scripts/Modelos.php";
urlVariables = ("?Marca=" + Marca);
urlCompuesta = (uriPHP + urlVariables);

Expand Down Expand Up @@ -94,7 +94,7 @@ function filtrarMarca() {

if (Marca != "" || Marca != null) {
var urlCompuesta, urlVariables = "", uriPHP;
uriPHP = "php scripts/FiltrarMarca.php";
uriPHP = "php-scripts/FiltrarMarca.php";
urlVariables = ("?Marca=" + Marca);
urlCompuesta = (uriPHP + urlVariables);

Expand Down
2 changes: 1 addition & 1 deletion assets/js/extra.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function update_status(element) {
var target_id = get_service_id(element);

var xhr = new XMLHttpRequest();
var url = "php scripts/status-ajax-updater.php";
var url = "php-scripts/status-ajax-updater.php";
var params = ("target_id=" + target_id);
xhr.open("POST", url, true);

Expand Down
2 changes: 1 addition & 1 deletion blank-1.html
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ <h1 class="text-center text-capitalize">Displays</h1>
<div class="justify-content-center d-flex form-group mb-3">
<div id="submit-btn" style="width: 50%;">
<div class="row"><button class="btn btn-primary btn-light m-0 rounded-pill px-4 submit-formulario" type="button"
style="min-width: 500px;" action="php scripts/registrarDisplay.php" method="post">Registrar display</button></div>
style="min-width: 500px;" action="php-scripts/registrarDisplay.php" method="post">Registrar display</button></div>
</div>
</div>
</form>
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@
header("Location: login.php");
}

include "php scripts/Conexión.php";
include "php-scripts/Conexión.php";
?>
6 changes: 3 additions & 3 deletions login.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@
<h4 class="text-dark mb-4">Bienvenido</h4>
</div>
<!--
action="php scripts/controlador_login.php"
action="php-scripts/controlador_login.php"
-->
<form class="user" method="POST" action="<?php echo ("https://kalicel.castelancarpinteyro.com/admin/php scripts/controlador_login.php"); ?>">
<form class="user" method="POST" action="<?php echo ("https://kalicel.castelancarpinteyro.com/admin/php-scripts/controlador_login.php"); ?>">
<div class="mb-3"><input class="form-control form-control-user" type="email" id="exampleInputEmail" aria-describedby="emailHelp" placeholder="Ingrese su email" name="email"></div>
<div class="mb-3"><input class="form-control form-control-user" type="password" id="exampleInputPassword" placeholder="Contraseña" name="password" value="current-password"></div>
<div class="mb-3">
Expand All @@ -46,7 +46,7 @@
<hr><a class="btn btn-primary d-block btn-google btn-user w-100 mb-2" role="button"><i class="fab fa-google"></i>&nbsp; Login with Google</a><a class="btn btn-primary d-block btn-facebook btn-user w-100" role="button"><i class="fab fa-facebook-f"></i>&nbsp; Login with Facebook</a>
<hr>
<?php
//include "php scripts/controlador_login.php";
//include "php-scripts/controlador_login.php";
?>
</form>
<div class="text-center"><a class="small" href="forgot.php">¿Olvidaste la contraseña?</a></div>
Expand Down
2 changes: 1 addition & 1 deletion php scripts/controlador_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if (!empty($_POST['email']) && !empty($_POST['password'])) {
$email = $_POST['email'];
$password = $_POST['password'];
#include "php scripts/Conexión.php";
#include "php-scripts/Conexión.php";
$conexión = new mysqli("localhost", "kalicel", "kalicelrepair", "kalicel");
$sql = $conexión->query("SELECT * FROM `usuarios` WHERE `email_usuario`='$email' AND `contraseña_usuario`='$password'");
if ($datos = $sql->fetch_object()) {
Expand Down
2 changes: 1 addition & 1 deletion php scripts/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function fetch_fields($table, $fields, $id, $custom_query)
{
#$connection = new mysqli("localhost", "cuinos_fc", "CuinosFC24!!", "cuinos_fc");
if(!include_once "connection.php"){
include_once "php scripts/connection.php";
include_once "php-scripts/connection.php";
}
//session_start();
//(($_SESSION['email'] == "[email protected]") or ($_SESSION['user'] == "demo_user")) ? $connection = new mysqli("localhost", "comercial_demo", $data[1], ($table . "_demo")):(false);
Expand Down
2 changes: 1 addition & 1 deletion php scripts/vendor/dompdf/dompdf/src/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function render(Frame $frame)
if ($node->getAttribute("type") === "text/php" ||
$node->getAttribute("language") === "php"
) {
// Evaluate embedded php scripts
// Evaluate embedded php-scripts
$this->_render_frame("php", $frame);
} elseif ($node->getAttribute("type") === "text/javascript" ||
$node->getAttribute("language") === "javascript"
Expand Down
4 changes: 2 additions & 2 deletions php scripts/vendor/mpdf/mpdf/qrcode/_lisez_moi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Informations :
-------------
Generateur de QRCode
(QR Code is registered trademark of DENSO WAVE INCORPORATED | http://www.denso-wave.com/qrcode/)
Fortement inspiré de "QRcode image PHP scripts version 0.50g (C)2000-2005,Y.Swetake"
Fortement inspiré de "QRcode image php-scripts version 0.50g (C)2000-2005,Y.Swetake"

Programmation en PHP5

Expand All @@ -44,6 +44,6 @@ Informations :

Remerciement :
-------------
* Y.Swetake pour "QRcode image PHP scripts version 0.50g"
* Y.Swetake pour "QRcode image php-scripts version 0.50g"
* Josep S. pour l'ajout de displayPNG

2 changes: 1 addition & 1 deletion php scripts/vendor/mpdf/mpdf/qrcode/qrcode.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* Generateur de QRCode
* (QR Code is registered trademark of DENSO WAVE INCORPORATED | http://www.denso-wave.com/qrcode/)
* Fortement inspiré de "QRcode image PHP scripts version 0.50g (C)2000-2005,Y.Swetake"
* Fortement inspiré de "QRcode image php-scripts version 0.50g (C)2000-2005,Y.Swetake"
*
* Distribué sous la licence LGPL.
*
Expand Down
2 changes: 1 addition & 1 deletion php scripts/vendor/setasign/fpdf/FAQ.htm
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ <h1>FAQ</h1>
There is no particular limit. There are some constraints, however:
<br>
<br>
- There is usually a maximum memory size allocated to PHP scripts. For very big documents,
- There is usually a maximum memory size allocated to php-scripts. For very big documents,
especially with images, the limit may be reached (the file being built in memory). The
parameter is configured in the php.ini file.
<br>
Expand Down
2 changes: 1 addition & 1 deletion php-scripts/controlador_login.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
if (!empty($_POST['email']) && !empty($_POST['password'])) {
$email = $_POST['email'];
$password = $_POST['password'];
#include "php scripts/Conexión.php";
#include "php-scripts/Conexión.php";
$conexión = new mysqli("localhost", "kalicel", "kalicelrepair", "kalicel");
$sql = $conexión->query("SELECT * FROM `usuarios` WHERE `email_usuario`='$email' AND `contraseña_usuario`='$password'");
if ($datos = $sql->fetch_object()) {
Expand Down
2 changes: 1 addition & 1 deletion php-scripts/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function fetch_fields($table, $fields, $id, $custom_query)
{
#$connection = new mysqli("localhost", "cuinos_fc", "CuinosFC24!!", "cuinos_fc");
if(!include_once "connection.php"){
include_once "php scripts/connection.php";
include_once "php-scripts/connection.php";
}
//session_start();
//(($_SESSION['email'] == "[email protected]") or ($_SESSION['user'] == "demo_user")) ? $connection = new mysqli("localhost", "comercial_demo", $data[1], ($table . "_demo")):(false);
Expand Down
2 changes: 1 addition & 1 deletion php-scripts/vendor/dompdf/dompdf/src/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ public function render(Frame $frame)
if ($node->getAttribute("type") === "text/php" ||
$node->getAttribute("language") === "php"
) {
// Evaluate embedded php scripts
// Evaluate embedded php-scripts
$this->_render_frame("php", $frame);
} elseif ($node->getAttribute("type") === "text/javascript" ||
$node->getAttribute("language") === "javascript"
Expand Down
4 changes: 2 additions & 2 deletions php-scripts/vendor/mpdf/mpdf/qrcode/_lisez_moi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Informations :
-------------
Generateur de QRCode
(QR Code is registered trademark of DENSO WAVE INCORPORATED | http://www.denso-wave.com/qrcode/)
Fortement inspiré de "QRcode image PHP scripts version 0.50g (C)2000-2005,Y.Swetake"
Fortement inspiré de "QRcode image php-scripts version 0.50g (C)2000-2005,Y.Swetake"

Programmation en PHP5

Expand All @@ -44,6 +44,6 @@ Informations :

Remerciement :
-------------
* Y.Swetake pour "QRcode image PHP scripts version 0.50g"
* Y.Swetake pour "QRcode image php-scripts version 0.50g"
* Josep S. pour l'ajout de displayPNG

2 changes: 1 addition & 1 deletion php-scripts/vendor/mpdf/mpdf/qrcode/qrcode.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*
* Generateur de QRCode
* (QR Code is registered trademark of DENSO WAVE INCORPORATED | http://www.denso-wave.com/qrcode/)
* Fortement inspiré de "QRcode image PHP scripts version 0.50g (C)2000-2005,Y.Swetake"
* Fortement inspiré de "QRcode image php-scripts version 0.50g (C)2000-2005,Y.Swetake"
*
* Distribué sous la licence LGPL.
*
Expand Down
2 changes: 1 addition & 1 deletion php-scripts/vendor/setasign/fpdf/FAQ.htm
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ <h1>FAQ</h1>
There is no particular limit. There are some constraints, however:
<br>
<br>
- There is usually a maximum memory size allocated to PHP scripts. For very big documents,
- There is usually a maximum memory size allocated to php-scripts. For very big documents,
especially with images, the limit may be reached (the file being built in memory). The
parameter is configured in the php.ini file.
<br>
Expand Down

0 comments on commit 117d064

Please sign in to comment.