implementacion bootstrap 4

This commit is contained in:
humano 2019-04-01 14:55:30 -05:00
parent f52f89fc42
commit 80ebc4569f
8 changed files with 382 additions and 273 deletions

View File

@ -4,7 +4,7 @@ el otro archivo css style.css que está en la carpeta milfs
#barra_milfs{ #barra_milfs{
position: absolute; #position: absolute;
} }
#contenedor_principal{ #contenedor_principal{
padding-top: 10em; padding-top: 10em;

View File

@ -16,7 +16,7 @@ function Conectarse(){
if (!($link=mysqli_connect($servidor,$usuario,$password,$db))) if (!($link=mysqli_connect($servidor,$usuario,$password,$db)))
{ {
echo " Error conectando a la base de datos. "; echo " Error conectando a la base de datos. ($db) ";
exit(); exit();
} }
/* if (!mysqli_select_db($db,$link)) /* if (!mysqli_select_db($db,$link))

File diff suppressed because it is too large Load Diff

View File

@ -11,7 +11,7 @@ function login_boton($formulario){
if(isset($_SESSION['id'])){ if(isset($_SESSION['id'])){
$accion = "<li><a class=' btn ' onclick=\"xajax_login_boton('x') \"><i class='glyphicon glyphicon-log-out fa-fw'></i>$_SESSION[username]</a></li>"; $accion = "<li class='nav-item'><a class=' nav-link btn ' onclick=\"xajax_login_boton('x') \"><i class='glyphicon glyphicon-log-out fa-fw'></i>$_SESSION[username]</a></li>";
}else{ }else{
$accion = registro_express("nuevo_$nombre_formato","boton"); $accion = registro_express("nuevo_$nombre_formato","boton");
print $accion; print $accion;

View File

@ -1,13 +1,13 @@
<?php <?php
$usuario="root"; $usuario="pmauser";
$password="toor";// $password="toor";//
$servidor="localhost"; $servidor="localhost";
$db="galenux_troconis"; $db="galenux_cloud";
$usuarios_sesion="GaleNUx_htroconis"; $usuarios_sesion="GaleNUx_cloud";
$path_instalacion ="/var/www/html/milfs/"; $path_instalacion ="/var/www/html/galenux_cloud/milfs/";
$path_images_secure ="/home/images_secure"; $path_images_secure ="/home/images_secure";
$url = "http://localhost/milfs/"; $url = "http://localhost/cloud_galenux/milfs/";
$site = "http://localhost/"; $site = "http://localhost/cloud_galenux";
/// ESCAPAR LAS COMILLAS CON (\) /// ESCAPAR LAS COMILLAS CON (\)
$codigo_analizador = " "; $codigo_analizador = " ";
/// Depende de la variable http://php.net/upload-max-filesize o en el .htaccess /// Depende de la variable http://php.net/upload-max-filesize o en el .htaccess

View File

@ -42,9 +42,7 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";}
<meta name="description" content=""> <meta name="description" content="">
<?php <?php
$xajax->printJavascript("xajax/");
// $xajax->debugOn();
//$xajax->statusMessagesOn();
?> ?>
<link rel="shortcut icon" href="favicon-152.png"> <link rel="shortcut icon" href="favicon-152.png">
<link rel="apple-touch-icon-precomposed" href="favicon-152.png"> <link rel="apple-touch-icon-precomposed" href="favicon-152.png">
@ -53,9 +51,38 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";}
//echo "<link href='css/embebidoXXX.css' rel='stylesheet'>"; //echo "<link href='css/embebidoXXX.css' rel='stylesheet'>";
}else{ }else{
//echo "<link href='css/estilos.php?dd' rel='stylesheet'>"; //echo "<link href='css/estilos.php?dd' rel='stylesheet'>";
} ?> }
$xajax->printJavascript("xajax/");
// $xajax->debugOn();
//$xajax->statusMessagesOn();
if(!isset($_REQUEST['experimental'])){
$bootstrap= "
<script
src='https://code.jquery.com/jquery-3.3.1.min.js'
integrity='sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8='
crossorigin='anonymous'></script>
<script src='https://code.jquery.com/jquery-3.3.1.slim.min.js' integrity='sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo' crossorigin='anonymous'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js' integrity='sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1' crossorigin='anonymous'></script>
<script src='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js' integrity='sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM' crossorigin='anonymous'></script>
<link rel='stylesheet' href='https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css' integrity='sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T' crossorigin='anonymous'>
<link href='https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' rel='stylesheet'>
";
}else{
$bootstrap="
<script src='../librerias/jquery/jquery-2.1.4.min.js'></script>
<script src='../librerias/bootstrap/js/bootstrap.min.js'></script>
<link href='../librerias/bootstrap/css/bootstrap.min.css' rel='stylesheet' type='text/css'>
";
}
echo $bootstrap; ?>
<link rel="stylesheet" type="text/css" media="screen" href="css/milfs.css"> <link rel="stylesheet" type="text/css" media="screen" href="css/milfs.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-markdown.css"> <link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-markdown.css">
<link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-markdown.min.css"> <link rel="stylesheet" type="text/css" media="screen" href="css/bootstrap-markdown.min.css">
@ -200,26 +227,22 @@ else{}
<?php echo @$onload; ?> <?php echo @$onload; ?>
<?php <?php
if ( isset ( $_SESSION['id'] ) ) { ?> if ( isset ( $_SESSION['id'] ) ) { ?>
<div class="navbar navbar-inverse navbar-fixed-top " id="barra_milfs" role="navigation"> <nav class="navbar navbar-expand-lg navbar-dark bg-dark " id="barra_milfs" role="navigation">
<div class="container-fluid"> <a class="navbar-brand" href="#"><img src="favicon-152.png" style="width:60px" alt="MILFS" title="Multi Interactive Light Form System"></a>
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header"> <button type="button" class="navbar-toggler" data-toggle="collapse" data-target="#navbar-collapse">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".navbar-collapse"> <span class="navbar-toggler-icon"></span>
<span class="sr-only">MILFS</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button> </button>
<a class="navbar-brand" href="#"><img src="favicon-152.png" style="width:60px" alt="MILFS" title="Multi Interactive Light Form System"></a>
</div>
<?php echo milfs() ?> <?php echo milfs() ?>
</div><!-- /.container-fluid -->
</div> </nav>
<?php }else{ } ?> <?php }else{ } ?>

View File

@ -1,3 +1,35 @@
function mueveReloj(){
var tiempo = new Date();
var hora = tiempo.getHours();
var minutos = tiempo.getMinutes();
var segundos = tiempo.getSeconds();
var meses = new Array ("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
var diasSemana = new Array("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");
var f=new Date();
var fecha = diasSemana[f.getDay()] + ", " + f.getDate() + " de " + meses[f.getMonth()] + " de " + f.getFullYear();
var temp = "" + ((hora > 12) ? hora - 12 : hora);
if (hora == 0)
temp = "12";
temp += ((minutos < 10) ? ":0" : ":") + minutos;
temp += ((segundos < 10) ? ":0" : ":") + segundos;
temp += (hora >= 12) ? " P.M." : " A.M.";
// horaImprimible = year+" "+dia+" "+hora + " : " + minuto + " : " + segundo
document.form_session.reloj.value = " "+fecha +" "+temp
setTimeout("mueveReloj()",1000)
}
function delayTimer() { function delayTimer() {
var timer; var timer;
return function (fun, time) { return function (fun, time) {
@ -20,7 +52,7 @@ function delayTimer() {
restante = (tiempo - transcurrido_minutos); restante = (tiempo - transcurrido_minutos);
prefin = (tiempo*60)-transcurrido; prefin = (tiempo*60)-transcurrido;
document.form_session.tiempo_session.value = "Cierra en: "+restante+" minutos "; document.form_session.tiempo_session.value = "Cierra en "+restante+" minutos ";
if(restante == 1 ){ if(restante == 1 ){
//alert(transcurrido); //alert(transcurrido);

View File

@ -32,7 +32,7 @@
<?php <?php
if ($_REQUEST['lat'] !='') {$lat=$_REQUEST['lat'];}else {$lat= "-72";} if ($_REQUEST['lat'] !='') {$lat=$_REQUEST['lat'];}else {$lat= "-72";}
if ($_REQUEST['lon'] !='') {$lon=$_REQUEST['lon'];}else {$lon= "4";} if ($_REQUEST['lon'] !='') {$lon=$_REQUEST['lon'];}else {$lon= "4";}
if ($_REQUEST['zoom'] !='') {$zoom=$_REQUEST['zoom'];}else {$zoom= "20";} if ($_REQUEST['zoom'] !='') {$zoom=$_REQUEST['zoom'];}else {$zoom= "5";}
?> ?>
<script> <script>