mirror of
https://github.com/ganglyglub2-gif/cotizador-impresion-3D.git
synced 2026-07-21 04:15:10 +00:00
Actualizar diseño visual del cotizador y corregir estilos
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
$db_name = 'pm012020db';
|
||||
try {
|
||||
$pdo = new PDO("pgsql:host=127.0.0.1;port=5432;dbname=".$db_name, "usrpm012020", 'Pr0y3ct0s2020#');
|
||||
} catch (PDOException $e) {
|
||||
echo "Error de conexión! ";
|
||||
print_r($e->getMessage());
|
||||
exit();
|
||||
}
|
||||
unset($db_name);
|
||||
?>
|
||||
@@ -0,0 +1,5 @@
|
||||
<?php
|
||||
define ("SECRET", "s3cr3t0.M00dl3#");
|
||||
define ("PERIODO", 3);
|
||||
|
||||
?>
|
||||
@@ -0,0 +1,104 @@
|
||||
<div class="container-fluid">
|
||||
<footer class="footer mt-4" >
|
||||
<div class="footerTop">
|
||||
<div class="container marco">
|
||||
<div class="logotipo"><img src="./img/lasalle-logo-blanco.png" alt="Universidad La Salle">
|
||||
<h3> <span>Profesionales</span>con <strong>Valor</strong></h3>
|
||||
</div>
|
||||
<div class="ubicacion">
|
||||
<div class="address">
|
||||
<div class="tabs">
|
||||
<ul class="nav list-inline" id="tabsFooter" role="tablist">
|
||||
<li class="list-inline-item">
|
||||
<a class="nav-link active" id="unidad1-tab" data-toggle="tab" href="#unidad1" role="tab" aria-controls="calendario" aria-selected="true">Unidad Condesa</a>
|
||||
</li>
|
||||
<li class="list-inline-item">
|
||||
<a class="nav-link " id="unidad2-tab" data-toggle="tab" href="#unidad2" role="tab" aria-controls="lista" aria-selected="false">Unidad Santa Teresa</a>
|
||||
</li>
|
||||
<li class="list-inline-item">
|
||||
<a class="nav-link " id="unidad3-tab" data-toggle="tab" href="#unidad3" role="tab" aria-controls="lista" aria-selected="false">Unidad San Fernando</a>
|
||||
</li>
|
||||
<li class="list-inline-item">
|
||||
<a class="nav-link" id="unidad4-tab" data-toggle="tab" href="#unidad4" role="tab" aria-controls="lista" aria-selected="false">Unidad Santa Lucía</a>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="tab-content" id="tabsCont">
|
||||
<div class="tab-pane fade show active" id="unidad1" role="tabpanel" aria-labelledby="unidad1-tab">
|
||||
<p>Benjamín Franklin No 45, Col. Condesa, Alc. Cuauhtémoc, CDMX, CP 06140 <span class="tel">Tel. <a href="tel:+525552789500">55 5278-9500</a> / <a href="tel:+8005272553">800 LASALLE</a></span><br>
|
||||
<a class="btnMap " href="https://www.google.com/maps/place/Universidad+La+Salle/@19.4085702,-99.1810039,15z/data=!4m5!3m4!1s0x0:0x3108b5797f9c9ecd!8m2!3d19.4085702!4d-99.1810039" target="_blank"> <span class="fas fa-map-marker-alt mr-1"></span>¿Cómo llegar?</a></p>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="unidad2" role="tabpanel" aria-labelledby="unidad2-tab">
|
||||
<p>Camino a Santa Teresa 811, Col. Rinconada del Pedregal, Alc. Tlalpan, CDMX, CP 14010 <span class="tel">Tel. <a href="tel:5552789500">55 5278-9500</a> / <a href="tel:+8005272553">800 LASALLE</a></span><br>
|
||||
<a class="btnMap " href="https://www.google.com/maps/place/Universidad+La+Salle+Unidad+Santa+Teresa/@19.299013,-99.196093,15z/data=!4m5!3m4!1s0x0:0xdfc2b61c9b67aac2!8m2!3d19.299013!4d-99.196093" target="_blank"> <span class="fas fa-map-marker-alt mr-1"></span>¿Cómo llegar?</a></p>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="unidad3" role="tabpanel" aria-labelledby="unidad3-tab">
|
||||
<p>Av. De Las Fuentes 17, Col. Tlalpan, Alc. Tlalpan, CDMX, CP 14000 <span class="tel">Tel. <a href="tel:+525552789500">55 5278-9500</a> / <a href="tel:+8005272553">800 LASALLE</a></span><br>
|
||||
<a class="btnMap " href="https://www.google.com/maps/place/Universidad+La+Salle+Facultad+de+Medicina/@19.2930318,-99.1720808,15z/data=!4m5!3m4!1s0x0:0x29b7725e5a004277!8m2!3d19.2930318!4d-99.1720808" target="_blank"> <span class="fas fa-map-marker-alt mr-1"></span>¿Cómo llegar?</a></p>
|
||||
</div>
|
||||
<div class="tab-pane fade" id="unidad4" role="tabpanel" aria-labelledby="unidad4-tab">
|
||||
<p>Av. Tamaulipas 3, Col. Zona Federal, Alc. Álvaro Obregón, CDMX, CP 01357 <span class="tel">Tel. <a href="tel:5556021130">55 5602-1130</a> </span><br>
|
||||
<a class="btnMap " href="https://www.google.com/maps/place/Unidad+Deportiva+La+Salle/@19.3662852,-99.2421597,15z/data=!4m5!3m4!1s0x0:0x88e0334f044bc518!8m2!3d19.3662852!4d-99.2421597" target="_blank"> <span class="fas fa-map-marker-alt mr-1"></span>¿Cómo llegar?</a></p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="redes">
|
||||
<h4>Compartir :</h4>
|
||||
<ul>
|
||||
<li><a href="https://www.facebook.com/LaSalleMXIngenieria" target="_blank"><i class="fab fa-facebook-f fa-fw"></i></a></li>
|
||||
<!--<li><a href="https://twitter.com/lasalle_mx" target="_blank"><i class="fab fa-twitter fa-fw"></i></a></li>-->
|
||||
<li><a href="https://www.youtube.com/user/IngenieriaLaSalle/" target="_blank"><i class="fab fa-youtube fa-fw"></i></a></li>
|
||||
<!--<li><a href="https://www.instagram.com/lasalle_mx/" target="_blank"><i class="fab fa-instagram fa-fw"></i></a></li>-->
|
||||
<!--<li><a href="https://www.linkedin.com/school/universidad-la-salle?pathWildcard=24227" target="_blank"><i class="fab fa-linkedin-in fa-fw"></i></a></li>-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footerMiddle">
|
||||
<div class="container marco">
|
||||
<div class="row justify-content-md-center">
|
||||
<nav class="col-12 col-md-10">
|
||||
<a class="footerMore menuMore" href="#">Sistema y Red La Salle</a>
|
||||
<ul>
|
||||
<li><a href="http://bajio.delasalle.edu.mx/" target="_blank">Bajío</a></li>
|
||||
<li><a href="http://www.lasalle.mx/" target="_blank">Ciudad de México</a></li>
|
||||
<li><a href="http://lasallecancun.edu.mx/" target="_blank">Cancún</a></li>
|
||||
<li><a href="http://www.ulsapuebla.mx/" target="_blank">Puebla</a></li>
|
||||
<li><a href="http://www.ulsapuebla.mx/" target="_blank">Chihuahua</a></li>
|
||||
<li><a href="http://www.lasallecuernavaca.edu.mx/wp/" target="_blank">Cuernavaca</a></li>
|
||||
<li><a href="http://www.ulsalaguna.edu.mx/" target="_blank">Laguna</a></li>
|
||||
<li><a href="http://www.lasallemorelia.edu.mx/" target="_blank">Morelia</a></li>
|
||||
<li><a href="http://www.ulsaneza.edu.mx/" target="_blank">Nezahualcóyotl</a></li>
|
||||
<li><a href="http://www.ulsa-noroeste.edu.mx/n2015/" target="_blank">Noroeste</a></li>
|
||||
<li><a href="http://www.ulsaoaxaca.edu.mx/" target="_blank">Oaxaca</a></li>
|
||||
<li><a href="http://www.lasallep.edu.mx/" target="_blank">Pachuca</a></li>
|
||||
<li><a href="https://www.ulsasaltillo.edu.mx/" target="_blank">Saltillo</a></li>
|
||||
<li><a href="https://www.lasallevictoria.edu.mx/" target="_blank">Victoria</a></li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="footerBottom">
|
||||
<div class="container marco">
|
||||
<div class="logotipos">
|
||||
<ul>
|
||||
<li><a href="http://redlasalle.mx/" target="_blank"><img src="./img/la-salle-logo-red-universidades.png" alt="La Salle - logotipo" class="img-responsive" width="80"></a></li>
|
||||
<li><a href="http://ialu.org/english/" target="_blank"><img src="./img/la-salle-logo-international-ia.png" alt="La Salle - logotipo" class="img-responsive" width="80"></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="legales">
|
||||
<a class="footerMore menuMore" href="#">Legales</a>
|
||||
<ul>
|
||||
<li><a href="https://lasalle.mx/globales/contacto.html" target="_blank">Contacto</a></li>
|
||||
<li><a href="https://lasalle.mx/globales/terminos-y-condiciones.html" target="_blank">Términos y condiciones</a></li>
|
||||
<li><a href="https://lasalle.mx/globales/aviso-de-privacidad.html" target="_blank">Aviso de Privacidad</a></li>
|
||||
<!--<li><a href="https://lasalle.mx/globales/mapa-de-sitio.html" target="_blank">Mapa de sitio</a></li>
|
||||
<li><a href="https://lasalle.mx/globales/preguntas-frecuentes/" target="_blank">Preguntas frecuentes</a></li>-->
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
</div>
|
||||
@@ -0,0 +1,28 @@
|
||||
<div class="overlay"></div><!-- Dark Overlay element -->
|
||||
|
||||
|
||||
|
||||
|
||||
<header class="sticky-top bg-white bg-head">
|
||||
<div class="menu d-flex align-items-center" style="visibility: visible;">
|
||||
<div class="logotipo"><a href="https://lasalle.mx/" target="_blank"><img id="logo" src="img/logo_lasalle.png" border="0" class="img-fluid" ></a></div>
|
||||
<div class="flex-grow-1 d-flex justify-content-end">
|
||||
<nav class="navbar navbar-expand-md d-none d-sm-flex">
|
||||
</nav>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
|
||||
<div class="row bg-light mx-0">
|
||||
<div class="marco">
|
||||
<div class="col-12">
|
||||
<div class="mx-0 py-3 marco">
|
||||
|
||||
<h2 class="text-uppercase">Cotizador de Impresión 3D</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/*
|
||||
* Funciones de utilidad
|
||||
*/
|
||||
|
||||
function fechaGuion($fechaTxt){//convierte fecha a guiones
|
||||
$fechaTxt = trim($fechaTxt);
|
||||
if(substr($fechaTxt,2,1) == "/" && substr($fechaTxt,5,1) == "/"){// dd/mm/aaaa
|
||||
$fechaArr = explode("/", $fechaTxt);
|
||||
return $fechaArr[2]."-".$fechaArr[1]."-".$fechaArr[0];
|
||||
}
|
||||
if(substr($fechaTxt,4,1) == "-" && substr($fechaTxt,7,1) == "-")// aaaa-mm-dd
|
||||
return $fechaTxt;
|
||||
return "";
|
||||
}
|
||||
function fechaSlash($fechaTxt){//convierte fecha a /
|
||||
$fechaTxt = trim($fechaTxt);
|
||||
if(substr($fechaTxt,2,1) == "/" && substr($fechaTxt,5,1) == "/"){// dd/mm/aaaa
|
||||
return $fechaTxt;
|
||||
}
|
||||
if(substr($fechaTxt,4,1) == "-" && substr($fechaTxt,7,1) == "-"){// aaaa-mm-dd
|
||||
$fechaArr = explode("-", $fechaTxt);
|
||||
return $fechaArr[2]."/".$fechaArr[1]."/".$fechaArr[0];
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
function fechaTexto($fechaTxt, $showYear = true){//convierte fecha a cadena de texto
|
||||
$fechaTxt = trim($fechaTxt);
|
||||
if(substr($fechaTxt,2,1) == "/" && substr($fechaTxt,5,1) == "/"){// dd/mm/aaaa
|
||||
$fechaArr = explode("/", $fechaTxt);
|
||||
if($showYear)
|
||||
return intval($fechaArr[0])." de ".mesNombre($fechaArr[1])." de ".$fechaArr[2];
|
||||
else
|
||||
return intval($fechaArr[0])." de ".mesNombre($fechaArr[1]);
|
||||
}
|
||||
if(substr($fechaTxt,4,1) == "-" && substr($fechaTxt,7,1) == "-"){// aaaa-mm-dd
|
||||
$fechaArr = explode("-", $fechaTxt);
|
||||
if($showYear)
|
||||
return intval($fechaArr[2])." de ".mesNombre($fechaArr[1])." de ".$fechaArr[0];
|
||||
else
|
||||
return intval($fechaArr[2])." de ".mesNombre($fechaArr[1]);
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
function mesNombre($num){
|
||||
$meses=array(1=>"enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre");
|
||||
return $meses[intval($num)];
|
||||
}
|
||||
|
||||
function diaNombre($num){
|
||||
$dias=array("domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado");
|
||||
return $dias[intval($num)];
|
||||
}
|
||||
|
||||
function horaMin($arr, $campo = "Horario_hora"){
|
||||
$min = "";
|
||||
foreach($arr as $horario){
|
||||
if($min == "" || date('H:i', strtotime($horario[$campo])) < date('H:i', strtotime($min))){
|
||||
$min = $horario[$campo];
|
||||
}
|
||||
}
|
||||
return date('H:i', strtotime($min));
|
||||
}
|
||||
|
||||
function horaMax($arr, $campo = "Horario_hora_final"){
|
||||
$max = "";
|
||||
foreach($arr as $horario){
|
||||
if($max == "" || date('H:i', strtotime($horario[$campo])) > date('H:i', strtotime($max))){
|
||||
$max = $horario[$campo];
|
||||
}
|
||||
}
|
||||
return date('H:i', strtotime($max));
|
||||
}
|
||||
function duracionMinutos($fechahora_i, $fechahora_f){
|
||||
return round((strtotime($fechahora_f) - strtotime($fechahora_i)) / 60,2);
|
||||
}
|
||||
|
||||
function validaPassword($pass){
|
||||
$expr = '/^\S*(?=\S{5,})(?=\S*[a-zA-Z])(?=\S*[\d])(?=\S*[\W])\S*$/';
|
||||
return preg_match($expr, $pass);
|
||||
}
|
||||
|
||||
function quitaNumeros($words){
|
||||
$words = strtoupper($words);
|
||||
return preg_replace('/\d/', '', $words );
|
||||
}
|
||||
function quitaLetras($words){
|
||||
$words = strtoupper($words);
|
||||
return preg_replace("/[^0-9]/", "", $words);
|
||||
}
|
||||
|
||||
function getIniciales($materia){
|
||||
$ret = '';
|
||||
$materia = str_ireplace( array("Á","É","Í","Ó","Ú","Ñ","Ä","Ë","Ï","Ö","Ü","Â","Ê","Î","Ô","Û","Ã"), array("A","E","I","O","U","N","A","E","I","O","U","A","E","I","O","U","A"), utf8_encode($materia));
|
||||
foreach (explode(' ', $materia) as $word){
|
||||
if(ctype_alpha($word[0]))
|
||||
$ret .= $word[0];
|
||||
}
|
||||
return strtoupper($ret);
|
||||
}
|
||||
Reference in New Issue
Block a user