rehaciendo cambios pullrequest

This commit is contained in:
Hacky Purple 2018-07-03 00:11:19 -05:00
parent 48d39b03b2
commit 13628556c0
3 changed files with 158 additions and 158 deletions

244
index.php
View File

@ -15,7 +15,7 @@ if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
<!DOCTYPE html>
<html lang="en">
<head >
<meta http-equiv="Cache-control" content="public">
<meta charset="UTF-8">
<meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1">
@ -77,8 +77,8 @@ $librerias_pie ="";
/// k= suite
/// l= Listado
/// m = checklist
/// n=notas
/// o=parallax
/// n=notas
/// o=parallax
/// p= Planilla
/// s= SET DE DATOS *
@ -130,10 +130,10 @@ $presentacion_cabeza = "
<!--[if lt IE 9]>
<script src='lib/js/html5shiv.js'></script>
<![endif]-->
<![endif]-->
";
$presentacion_pie="
<script src='librerias/reveal/lib/js/head.min.js'></script>
<script src='librerias/reveal/js/reveal.js'></script>
@ -160,11 +160,11 @@ $presentacion_pie="
]
});
</script>
</script>
";
if ($variable !=''){
if($v[0] =='e') {
/// e = EMPRESA
$id_empresa = $v[1];
@ -177,7 +177,7 @@ if ($variable !=''){
";
if($titulo[0] !="") {
$logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
$descripcion = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
//$background_imagen = buscar_imagen('',"","","$id_empresa");
$background_imagen = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
@ -188,17 +188,17 @@ if ($variable !=''){
$vista_favorita = vista_favorita($pagina_inicio_definida[0]);
//$set= $pagina_inicio_definida[0];
$onload = "<script type=\"text/javascript\">window.location.href='$vista_favorita';</script> ";
}
}
$acceso = 1;
$menu ="
<div class='col-sm-2 hidden-xs hidden-sm' id='caja_lateral_derecha'>
<div class='col-sm-3 col-lg-2 hidden-xs hidden-sm' id='caja_lateral_derecha'>
<div class='container'>
<nav style=' max-height:95% !important ; overflow:auto !important; ' id='toc' data-spy='affix' data-toggle='toc'></nav>
</div>
</div>";
$cols_interior ="10";
}else {
$onload = "<script type=\"text/javascript\">location.href='404';</script> ";
$onload = "<script type=\"text/javascript\">location.href='404';</script> ";
}
}
elseif($v[0] =='b') {
@ -220,7 +220,7 @@ if ($variable !=''){
<script src='./librerias/bootstrap-toc/bootstrap-toc.min.js'></script>
";
$orden="";
$menu ="</div>
<div class='col-sm-2 hidden-xs hidden-sm' id='caja_lateral_derecha'>
<div class='container'>
@ -231,7 +231,7 @@ if ($variable !=''){
$cols_interior ="10";
//$onload = landingpage_contenido_formulario($set);
$publico = remplacetas('form_id','id',"$set",'publico',"") ;
if($publico[0] =='1' OR $_SESSION['id_empresa'] == $id_empresa ) {$acceso = 1;}
if($publico[0] =='1' OR $_SESSION['id_empresa'] == $id_empresa ) {$acceso = 1;}
}
elseif($v[0] =='s') {
/// s= SET DE DATOS
@ -246,9 +246,9 @@ if ($variable !=''){
$uri_set = "";
//$onload = landingpage_contenido_formulario($set);
//$onload = "".consultar_contenido_formulario("$set",'5','','','',"$plantilla")."";
$publico = remplacetas('form_id','id',"$set",'publico',"") ;
if($publico[0] =='1' OR $_SESSION['id_empresa'] == $id_empresa ) {$acceso = 1;}
if($publico[0] =='1' OR $_SESSION['id_empresa'] == $id_empresa ) {$acceso = 1;}
//$acceso=1;
}
elseif($v[0] =='S') {
@ -276,7 +276,7 @@ if ($variable !=''){
$empresa = remplacetas('form_id','id',"$set",'id_empresa',"") ;
$logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ;
$id_empresa = $empresa[0];
if(strlen($identificador) > 32) {
$identificador_original= $identificador;
$key = substr($identificador, 32, $length = 40);
@ -350,15 +350,15 @@ if ($variable !=''){
//$onload = formulario_embebido_ajax($form[0],'$identificador','edit');
$librerias_cabeza ="
<script src='./librerias/summernote/summernote.js'></script>
<script src='./librerias/summernote/summernote.js'></script>
<link href='./librerias/summernote/summernote.css' rel='stylesheet'>
";
";
$librerias_pie ="
<script type='text/javascript'>
//// wysiwyg
var edit = function() {
$('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:
$('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:
[
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript', 'fontname']],
@ -409,15 +409,15 @@ if ($variable !=''){
$empresa = remplacetas('form_id','id',$form,'id_empresa',"") ;
$id_empresa = $empresa[0];
$librerias_cabeza ="
<script src='./librerias/summernote/summernote.js'></script>
<script src='./librerias/summernote/summernote.js'></script>
<link href='./librerias/summernote/summernote.css' rel='stylesheet'>
";
";
$librerias_pie ="
<script type='text/javascript'>
//// wysiwyg
var edit = function() {
$('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:
$('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:
[
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript', 'fontname']],
@ -458,7 +458,7 @@ if ($variable !=''){
else {$tema="moon";}
$librerias_cabeza =$presentacion_cabeza;
$librerias_pie =$presentacion_pie;
$onload="
<div class='reveal'>
<div class='slides'>
@ -485,7 +485,7 @@ if ($variable !=''){
<script src='librerias/reveal/js/reveal.js'></script>
<script>
@ -505,36 +505,36 @@ if ($variable !=''){
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
]
});
</script>
</script>
<script src='librerias/slick/slick.js' type='text/javascript' charset='utf-8'></script>
";
$librerias_galeria ="
$librerias_galeria ="
<!-- <link rel='manifest' href='manifest.json'> -->
<link rel='stylesheet' type='text/css' href='librerias/slick/slick.css'>
<link rel='stylesheet' type='text/css' href='librerias/slick/slick-theme.css'>
<link rel='stylesheet' type='text/css' href='librerias/slick/style.css'>
<script src='manup.js'></script>
";
$registros=1;
$plantilla="landingpage";
$librerias_cabeza ="
<script src='./librerias/ekko-lightbox/4.0.1/ekko-lightbox.min.js'></script>
<script src='./librerias/ekko-lightbox/4.0.1/ekko-lightbox.min.js'></script>
<script src='./librerias/charts/Chart.bundle.js'></script>
<script src='./librerias/charts/utils.js'></script>
$presentacion_cabeza $librerias_galeria
<script src='./librerias/charts/utils.js'></script>
$presentacion_cabeza $librerias_galeria
";
$librerias_pie ="
$aplicacion_pie
$aplicacion_pie
<!-- <script>
if('serviceWorker' in navigator) {
navigator.serviceWorker
@ -570,7 +570,7 @@ if('serviceWorker' in navigator) {
count++;
}
});
loadArticle(1,$form,'galeria',$registros,'scroll-galeria');
loadArticle(2,$form,'galeria',$registros,'scroll-galeria');
loadArticle(3,$form,'galeria',$registros,'scroll-galeria');
@ -594,7 +594,7 @@ if('serviceWorker' in navigator) {
count++;
}
});
});
@ -604,7 +604,7 @@ if('serviceWorker' in navigator) {
</script>
</script>
";
@ -621,7 +621,7 @@ if('serviceWorker' in navigator) {
$id_campo = $campo_imagen[0];
if($id_campo[0] =="") {
$galeria="";
}else{
$galeria= "
<section id='galeria' class='' >
@ -630,24 +630,24 @@ if('serviceWorker' in navigator) {
</div>
</div>
</section>
";
}
if($geo[0] != "") {
$mapa = "
<a name='mapa'></a>
<embed class='' src='mapero.php?id=$form' width='100%' style='height: calc(100vh - 150px);' webkitAllowFullScreen mozallowfullscreen allowFullScreen ></embed>
";
}else {$mapa = "";}
$estadisticas = portal_listado_campos("$form");
$acciones= formulario_acciones("$form","aplicacion");
$no_mostrar="display:none; ";
$footer="
$footer="
<nav class='navbar navbar-inverse navbar-fixed-bottom'>
<div class='list-inline'>
<ul class='center-block' style='
float:none;
margin:0 auto;
@ -658,10 +658,10 @@ if('serviceWorker' in navigator) {
</div>
</nav>";
$onload="
<div class='reveal' style='bottom: 80px !important; '>
<div class='slides' >
<section id='inicio' class='text-center scrollable' >
@ -677,12 +677,12 @@ if('serviceWorker' in navigator) {
<hr>
<a href='https://tupale.co'>Tupale.co</a>
</section>
$galeria
<section id='estadisticas' class='scrollable' >
$estadisticas
</section>
<section id='mapa'>
$mapa
@ -709,15 +709,15 @@ if('serviceWorker' in navigator) {
$embebido = "1";
$onload = formulario_embebido($form,$opciones);
$librerias_cabeza ="
<script src='./librerias/summernote/summernote.js'></script>
<script src='./librerias/summernote/summernote.js'></script>
<link href='./librerias/summernote/summernote.css' rel='stylesheet'>
";
";
$librerias_pie ="
<script type='text/javascript'>
//// wysiwyg
var edit = function() {
$('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:
$('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:
[
['style', ['bold', 'italic', 'underline', 'clear']],
['font', ['strikethrough', 'superscript', 'subscript', 'fontname']],
@ -762,7 +762,7 @@ if('serviceWorker' in navigator) {
$no_mostrar ="display:none; ";
/*if($titulo[0] !="") {
$logo = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
$descripcion = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
//$background_imagen = buscar_imagen('',"","","$id_empresa");
$background_imagen = remplacetas('empresa','id',"$id_empresa",'imagen','') ;
@ -798,22 +798,22 @@ $aplicacion_pie="
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
]
});
</script>
</script>
<script src='librerias/slick/slick.js' type='text/javascript' charset='utf-8'></script>
";
$librerias_pie = "$aplicacion_pie";
$librerias_cabeza ="
$presentacion_cabeza ";
$suite_listado = suite_listado("$id","$_REQUEST[suite]");
$onload = "$suite_listado";
}
elseif($v[0] =='m') {
@ -822,7 +822,7 @@ $aplicacion_pie="
$librerias_cabeza='
<link rel="stylesheet" type="text/css" href="librerias/datatables/datatables.css">
<script type="text/javascript" charset="utf8" src="librerias/datatables/datatables.js"></script>
';
$empresa = remplacetas('form_id','id',$form,'id_empresa',"") ;
$razon_social_portal = remplacetas('empresa','id',"$empresa[0]",'razon_social','') ;
@ -837,32 +837,32 @@ $aplicacion_pie="
$form =$v[1];
$embebido = "1";
$no_mostrar ="display:none; ";
$publico = remplacetas('form_id','id',$form,'publico','') ;
$empresa_seguridad = remplacetas('form_id','id',$form,'id_empresa','') ;
if($publico[0] != "1" and ( $_SESSION['id_empresa'] != $empresa_seguridad[0] ) ) {
$resultado = " <div class='alert alert-danger'><h1><a href='./milfs/'>Ingresa</a> con tu usuario para consultar esta aplicación. <i class='fa fa-user-circle-o'></i></h1>";
$onload =$resultado;
}
else {
$librerias_cabeza ="
<script type='text/javascript' src='librerias/notas/script.js'></script>
<script type='text/javascript' src='./librerias/jquery/jquery-ui.min.js'></script>
<script type='text/javascript' src='./librerias/jquery/jquery.ui.touch-punch.js'></script>
<script type='text/javascript' src='./librerias/jquery/jquery.touch.js'></script>
<script type='text/javascript' src='./librerias/jquery/jquery-ui.min.js'></script>
<script type='text/javascript' src='./librerias/jquery/jquery.ui.touch-punch.js'></script>
<script type='text/javascript' src='./librerias/jquery/jquery.touch.js'></script>
<script type='text/javascript' src='./librerias/notas/jquery.infinitedrag.js'></script>
<link rel='stylesheet' type='text/css' href='./librerias/notas/styles.css' />
";
$tablero = notas_tablero("$form");
$onload = "$tablero";
}
}
elseif($v[0] =='o') {
/// f= FORMULARIO
$form =$v[1];
@ -882,20 +882,20 @@ $aplicacion_pie="
if($geo[0] != "") {
$mapa = "
<a name='mapa'></a>
<embed class='' src='mapero.php?id=$form' width='100%' style='height: calc(100vh - 50px);' webkitAllowFullScreen mozallowfullscreen allowFullScreen ></embed>
";
$boton_mapa ="<li><a href='#mapa'><i class='fa fa-map-o' aria-hidden='true'></i> Mapa</a></li>";
}else {$mapa = ""; $boton_mapa="";}
$onload="
<style>
.parallax_banner {
.parallax_banner {
/* The image used */
background-image: url('milfs/images/secure/?file=600/$logo[0]');
/* Full height */
height: 50%;
height: 50%;
/* Create the parallax scrolling effect */
background-attachment: fixed;
@ -924,18 +924,18 @@ $aplicacion_pie="
</style>
<div class='parallax_banner'></div>
<div style='min-height:200px;'>
$banner
</div>
<div class='barra nav ' id='barra_aplicaciones'>
<div class='navbar-header'>
@ -966,10 +966,10 @@ $aplicacion_pie="
</div>
<div id='mapa' class='container'><a name ='mapa' ></a>$mapa</div>
$presentacion
<script>
// When the user scrolls the page, execute myFunction
// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};
// Get the header
@ -986,7 +986,7 @@ function myFunction() {
header.classList.remove('sticky');
}
}
</script>
";
}
@ -1081,7 +1081,7 @@ $uri = $_SERVER['REQUEST_URI'];
<script type='text/javascript' src='librerias/exif/exif.js'></script>
<link rel="apple-touch-icon-precomposed" href="<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>">
<title><?php echo @$titulo[0]; ?> <?php echo strip_tags($slogan[0]); ?> Tupale.co </title>
<!--
<!--
<link href="./librerias/sidebar/css/simple-sidebar.css" rel="stylesheet" >
@ -1089,7 +1089,7 @@ $uri = $_SERVER['REQUEST_URI'];
<?php $xajax->printJavascript("milfs/xajax/");
$xajax->statusMessagesOn();
$css = remplacetas('form_parametrizacion','campo',"index",'descripcion'," tabla='css' and opcion = 'bootstrap' and id_empresa = '$id_empresa'") ;
if($css[0] !="") {
@ -1148,11 +1148,11 @@ $uri = $_SERVER['REQUEST_URI'];
<!-- <script src="./librerias/charts/Chart.bundle.js"></script>
<script src="./librerias/charts/utils.js"></script> -->
<script src="./librerias/lazy/jquery.lazy.min.js"></script>
<script src='./librerias/summernote/summernote.js'></script>
<script src='./librerias/summernote/summernote.js'></script>
<link href='./librerias/summernote/summernote.css' rel='stylesheet'>
<script type='text/javascript'> var edit = function() { $('.wysiwyg').summernote({height: 250, codemirror: { theme: 'default' },dialogsInBody: true, toolbar:[ ['style', ['bold', 'italic', 'underline', 'clear']], ['font', ['strikethrough', 'superscript', 'subscript', 'fontname']], ['fontsize', ['fontsize']], ['color', ['color']], ['para', ['ul', 'ol', 'paragraph', 'style']], ['height', ['height']], ['insert', ['picture', 'link', 'video', 'table', 'hr']], ['misc', ['fullscreen', 'codeview', 'undo', 'redo']] ] }); }; var save = function() { var makrup = $('.wysiwyg').summernote('code'); $('.wysiwyg').summernote('destroy'); }; $(document).ready(function() { $('.wysiwyg_auto').summernote({dialogsInBody: true}); }); </script>
<script>
$(function() {
$('.lazy').lazy({
// your configuration goes here
@ -1161,7 +1161,7 @@ $uri = $_SERVER['REQUEST_URI'];
// scrollDirection: 'vertical',
//effect: 'fadeIn',
//visibleOnly: true,
onError: function(element) {
console.log('error loading ' + element.data('src'));
}
@ -1214,8 +1214,8 @@ $menu_lateral = "
<h3 >".@$titulo[0]."</h3>
<p>".@$descripcion[0]." </p>
<ul class='fh5co-social'>
$soporte
$soporte
<li><a href='https://twitter.com/$twitter[0]'><i class='icon-twitter'></i></a></li>
<li><a href='https://www.facebook.com/$facebook[0]'><i class='icon-facebook'></i></a></li>
@ -1245,7 +1245,7 @@ $menu_lateral = "
}
?>
<link href="./milfs/css/style.css" rel="stylesheet">
<script src="milfs/js/scripts.js"></script>
@ -1260,7 +1260,7 @@ $menu_lateral = "
<!-- <script src="./librerias/ekko-lightbox/4.0.1/ekko-lightbox.min.js"></script> -->
<!--firma -->
<!--
<!--
<script src="librerias/firma/signature_pad.js"></script>
<!-- firma pie -->
@ -1268,10 +1268,10 @@ $menu_lateral = "
<script src="librerias/firma/app.js"></script>
-->
<?php echo $css_adicional;
<?php echo $css_adicional;
if(!isset($_SESSION['id']) ){ ?>
<script type="text/javascript">
function addLink() {
var body_element = document.getElementsByTagName('body')[0];
var selection;
@ -1304,12 +1304,12 @@ document.oncopy = addLink;
echo " " ;
}
if(isset($_SESSION['id'])) {$id_empresa_portada='1'; echo "
<span style=' $no_mostrar '>".panel_aplicaciones('1',"$_SESSION[id_empresa]","")."</span>"; }
if(isset($_REQUEST['eventos'])) {
//$embebido='1';
$librerias_pie="
<link href='librerias/calendar/fullcalendar.min.css' rel='stylesheet' />
<link href='librerias/calendar/fullcalendar.print.min.css' rel='stylesheet' media='print' />
@ -1333,7 +1333,7 @@ $css_adicional
<script>
$(document).ready(function() {
$('#calendar').fullCalendar({
header: {
left: 'prev,next today',
@ -1345,7 +1345,7 @@ $css_adicional
themeSystem: 'bootstrap3',
navLinks: true, // can click day/week names to navigate views
editable: false,
eventLimit: true, // allow \"more\" link when too many events
events: {
url: 'milfs/api.php',
@ -1357,7 +1357,7 @@ $css_adicional
error: function() {
$('#script-warning').show();
}
},
},
buttonText: {
listMonth: 'Agenda',
listYear: 'Año',
@ -1366,7 +1366,7 @@ $css_adicional
loading: function(bool) {
$('#loading').toggle(bool);
}
,
eventMouseover: function (data, event, view) {
@ -1403,9 +1403,9 @@ $css_adicional
viewDisplay: function () {
tooltip.hide()
},
});
});
</script><h1 class='titulo_eventos text-center'>$titulo[0]</h1><div class='container-fluid' id='calendar'></div><br>";
@ -1457,7 +1457,7 @@ echo $css_adicional;
</body>
</html>
<!-- fin embebido -->
<?php
@ -1491,7 +1491,7 @@ echo $css_adicional;
<div id='meta_cabecera' class="col-lg-12 col-md-12 ">
<div class="container">
<div class="col-md-9">
<div id='formulario_login' class='' ></div>
<div class='container' div='contenedor_cabecera'>
@ -1501,7 +1501,7 @@ echo $css_adicional;
</a>
</div>
<div class='col-md-9'>
<h1 id="titulo_cabecera" data-toc-skip ><a href="<?php if($id_form !=""){echo "s".$id_form;} ?>"><?php echo $titulo[0]; ?></a></h1>
<h1 id="titulo_cabecera" data-toc-skip ><a href="<?php if($id_form !=""){echo "s".$id_form;} ?>"><?php echo $titulo[0]; ?></a></h1>
<div id='slogan_cabecera'><p><?php echo "$slogan[0] "; ?> </p></div>
</div>
</div>
@ -1542,17 +1542,17 @@ echo $css_adicional;
</header>
<div class="container">
<?php
<?php
$id_campo = campo_titulo($set) ;
$corpus = formulario_corpus("$set","$id_campo","contenido","barras","texto_articulo");
$ultimos = mas_visto("ultimos","5","1","$set","$id_empresa");
if ($v[0]=='s'){
$buscar_datos = buscar_datos("*formato*","$set","$plantilla","texto_articulo");
if ($v[0]=='s'){
$buscar_datos = buscar_datos("*formato*","$set","$plantilla","texto_articulo");
echo "
<div class='col-md-3 hidden-xs '>
<aside id='aside_index'>
$buscar_datos
<div class='col-md-3 hidden-xs '>
<aside id='aside_index'>
$buscar_datos
<div id='grid_resultado_landing'></div>
<br>
<hr>
@ -1581,7 +1581,7 @@ echo $css_adicional;
//echo mas_visto("formulario","4","");
echo "";
}
if($acceso ==1) {
if($set != "") {

View File

@ -1,6 +1,6 @@
<?php session_start();
<?php session_start();
//ini_set('display_errors', 'On');
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
require ('milfs/xajax/xajax.inc.php');
$xajax = new xajax();
require ("milfs/funciones/conex.php");
@ -23,10 +23,10 @@ if(isset($_REQUEST['debug'])) {ini_set('display_errors', 'On');}
<?php $xajax->printJavascript("xajax/"); ?>
<link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha256-k2/8zcNbxVIh5mnQ52A0r3a6jAgMGxFJFE2707UxGCk= sha512-ZV9KawG2Legkwp3nAlxLIVFudTauWuBpC10uEafMHYL0Sarrz5A7G79kXh5+5+woxQ5HM559XX2UZjMJ36Wplg==" crossorigin="anonymous">
<?php
<?php
//$xajax->debugOn('');
$embebido =0;
if( isset($_REQUEST['empresa']) OR empty($_REQUEST) OR isset($_REQUEST['set']) OR isset($_REQUEST['identificador']) ) {
@ -38,7 +38,7 @@ if($id[0]=="") { $id_empresa = "1";}
if(!isset($_REQUEST['set'])){
$titulo = remplacetas('empresa','id',"$id_empresa",'razon_social','') ;
$descripcion = remplacetas('empresa','id',"$id_empresa",'slogan','') ;
$background_imagen = buscar_imagen('',"","","$id_empresa");
$background_imagen = buscar_imagen('',"","","$id_empresa");
$uri_set = "";
$acceso = 1;
}
@ -47,19 +47,19 @@ if($id[0]=="") { $id_empresa = "1";}
$id_empresa = $empresa[0];
$titulo = remplacetas('form_id','id',$_REQUEST['set'],'nombre',"") ;
$descripcion = remplacetas('form_id','id',$_REQUEST['set'],'descripcion',"") ;
$background_imagen = buscar_imagen($_REQUEST['set'],"","","$id_empresa");
$background_imagen = buscar_imagen($_REQUEST['set'],"","","$id_empresa");
$uri_set = "";
$publico = remplacetas('form_id','id',$_REQUEST['set'],'publico',"") ;
if($publico[0] =='1') {$acceso = 1;}
}
if( isset($_REQUEST['identificador'])){
$empresa = remplacetas('form_datos','control',$_REQUEST['identificador'],'id_empresa',"") ;
$empresa = remplacetas('form_datos','control',$_REQUEST['identificador'],'id_empresa',"") ;
$id_empresa = $empresa[0];
$form = remplacetas('form_datos','control',$_REQUEST['identificador'],'form_id',"") ;
$form = remplacetas('form_datos','control',$_REQUEST['identificador'],'form_id',"") ;
$titulo = remplacetas('form_id','id',$form['0'],'nombre',"") ;
$descripcion = remplacetas('form_id','id',$form['0'],'descripcion',"") ;
$background_imagen = buscar_imagen($form[0],"","","$id_empresa");
$background_imagen = buscar_imagen($form[0],"","","$id_empresa");
$uri_set = "<a class='' href='?set=$form[0]'>$titulo[0]</a>";
$publico = remplacetas('form_id','id',$form[0],'publico',"") ;
if($publico[0] =='1') {$acceso = 1;}
@ -80,7 +80,7 @@ $sigla = remplacetas('empresa','id',"$id_empresa",'sigla','') ;
<!-- Custom CSS -->
<!-- Custom Fonts -->
<link href="http://fonts.googleapis.com/css?family=Lato:300,400,700,300italic,400italic,700italic" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
@ -115,7 +115,7 @@ h6 {
}
.topnav {
font-size: 14px;
font-size: 14px;
}
.lead {
@ -282,7 +282,7 @@ p.copyright {
<span class="icon-bar"></span>
</button>
<a class="navbar-brand topnav" href="?empresa=<?php echo $id_empresa; ?>"><i class='fa fa-home'></i> <?php echo $sigla[0]; ?></a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
@ -309,9 +309,9 @@ p.copyright {
<div class="row">
<div class="col-lg-12">
<div class="intro-message">
<h1><?php echo $titulo[0]; ?></h1>
<h3><?php echo $descripcion[0]; ?></h3>
<hr class="intro-divider">
<ul class="list-inline intro-social-buttons">
@ -337,17 +337,17 @@ p.copyright {
<!-- Page Content -->
<a name="formularios"></a>
<?php
if($acceso ==1) {
if(isset($_REQUEST['set'])) {
if(isset($_REQUEST['set'])) {
echo landingpage_contenido_formulario($_REQUEST['set']); }
elseif(isset($_REQUEST['identificador'])) { echo landingpage_contenido_identificador($_REQUEST['identificador']); }
else{ echo landingpage_contenido($id_empresa);}
}
?>
<a name="contact"></a>
<div class="banner">
@ -439,7 +439,7 @@ if (isset($_REQUEST['c'])) {$c = $_REQUEST['c'];} else {$c = "";}
if (isset($_REQUEST['f'])) {$f = $_REQUEST['f'];} else {$f = "";}
if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";}
?>
<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 href='css/estilos.php?dd' rel='stylesheet'>
@ -447,7 +447,7 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";}
<style>
#map {width: 500px;height:200px;}
</style>
@ -467,11 +467,11 @@ if (isset($_REQUEST['t'])) {$t = $_REQUEST['t'];} else {$t = "";}
<script src="js/scripts.js"></script>
<script type="text/javascript">
function evdragstart(ev,el) { //ev= el evento, el=elemento arrastrado.
cont1=el.parentNode; //guardamos el elemento padre del elemento en una variable.
ev.dataTransfer.setData("text",ev.target.id); //guardamos datos del elemento.
ev.dataTransfer.setData("text",ev.target.id); //guardamos datos del elemento.
}
function evdragover (ev) { //ev=el evento.
@ -479,7 +479,7 @@ function evdragover (ev) { //ev=el evento.
}
function evdrop(ev,el) { //ev=el evento; el=receptor de soltado
ev.stopPropagation(); //impedir otras acciones
ev.stopPropagation(); //impedir otras acciones
ev.preventDefault(); //quitar comportamiento por defecto
var data=ev.dataTransfer.getData("text"); //recogemos datos del elemento
mielem=ev.target.appendChild(document.getElementById(data)); //obtenemos el elemento arrastrado
@ -504,7 +504,7 @@ function evdrop(ev,el) { //ev=el evento; el=receptor de soltado
</head>
<body >
<?php if($embebido ==1) {
<?php if($embebido ==1) {
if($form!=''){ echo formulario_embebido($form,$opciones);}
elseif($identificador !='') { echo mostrar_identificador($identificador,$id);}
//elseif($_REQUEST['psi'] !='') { include("psi.php") ; echo $aviso;}
@ -514,9 +514,9 @@ else{}
?>
<?php echo @$onload; ?>
<?php
<?php
if ( isset ( $_SESSION['id'] ) ) { ?>
<div class="navbar navbar-inverse nav-bar-fixed-top " role="navigation">
<div class="navbar navbar-inverse navbar-fixed-top " role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
@ -538,12 +538,12 @@ else{}
<div id='debug'></div>
<div class='container'>
<div id='contenido'>
<?php
<?php
if(!isset($_SESSION['id_empresa'])) {$id_empresa_portada='1';} else{$id_empresa_portada = $_SESSION['id_empresa'];}
$encabezado = empresa_datos("$id_empresa_portada",'encabezado');
$pie = empresa_datos("$id_empresa_portada",'pie');
echo "$encabezado";
echo "$encabezado";
?>xxx
<?php echo buscar_imagen("21","","",""); ?>
xxx
@ -551,7 +551,7 @@ else{}
echo cambiar_password_formato("$_REQUEST[change]");
}
revisar_ingreso('');
?>
?>
<?php echo $pie; ?>
<img class='img-responsive center-block' src="images/logo.png" alt="MILFS">
@ -577,8 +577,8 @@ revisar_ingreso('');
<div id='muestra_form'></div>
</div>
<div class='modal-footer' id='pie_modal'>
</div>
</div>
</div>
@ -591,7 +591,7 @@ revisar_ingreso('');
<div class="container">
<a href='http://QWERTY.co/milfs'>&copy; MILFS Un proyecto de http://QWERTY.co</a> Se distribuye bajo licencia GPL V3
<a href="?psi" target="_psi"><i class="fa fa-smile-o "></i> Políticas de privacidad y protección de datos.</a>
</div>
</div>
</div>
<?php } ?>

2
milfs

@ -1 +1 @@
Subproject commit 3abf313533b9ec3763a76db79bd5e785b1874672
Subproject commit 749d4a3d1e9f41e2ac433ef6be4541d095277c69