incorporacion de vista presentacion al index con el prefijo 'c'

This commit is contained in:
humano 2017-10-28 12:07:30 -05:00
parent 42b01c16aa
commit 4da9e8ff60

122
index.php
View File

@ -96,13 +96,58 @@ $variable= $_REQUEST['variable'];
if(isset($_REQUEST['plantilla'])){
$plantilla= $_REQUEST['plantilla'];
}else {$plantilla= "landingpage";}
/*
if($variable =='' AND isset($_SESSION['id_empresa'])) {
$variable ="e$_SESSION[id_empresa]";
}else { $variable =""; }
*/
//$variable="e50";
//$variable="a74";
$presentacion_cabeza = "
<link rel='stylesheet' href='librerias/reveal/css/reveal.css'>
<link rel='stylesheet' href='librerias/reveal/css/theme/$tema.css' id='theme'>
<!-- Theme used for syntax highlighting of code -->
<link rel='stylesheet' href='librerias/reveal/lib/css/zenburn.css'>
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'lbrerias/reveal/css/print/pdf.css' : 'librerias/reveal/css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src='lib/js/html5shiv.js'></script>
<![endif]-->
";
$presentacion_pie="
<script src='librerias/reveal/lib/js/head.min.js'></script>
<script src='librerias/reveal/js/reveal.js'></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'librerias/reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'librerias/reveal/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'librerias/reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'librerias/reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'librerias/reveal/plugin/zoom-js/zoom.js', async: true },
{ src: 'librerias/reveal/plugin/notes/notes.js', async: true }
]
});
</script>
";
if ($variable !=''){
$v = decodifica_parametro($variable);
@ -295,56 +340,8 @@ if ($variable !=''){
$no_mostrar ="display:none; ";
if($_REQUEST['tema'] !="") { $tema= "$_REQUEST[tema]";}
else {$tema="moon";}
$librerias_cabeza = "
<link rel='stylesheet' href='librerias/reveal/css/reveal.css'>
<link rel='stylesheet' href='librerias/reveal/css/theme/$tema.css' id='theme'>
<!-- Theme used for syntax highlighting of code -->
<link rel='stylesheet' href='librerias/reveal/lib/css/zenburn.css'>
<!-- Printing and PDF exports -->
<script>
var link = document.createElement( 'link' );
link.rel = 'stylesheet';
link.type = 'text/css';
link.href = window.location.search.match( /print-pdf/gi ) ? 'lbrerias/reveal/css/print/pdf.css' : 'librerias/reveal/css/print/paper.css';
document.getElementsByTagName( 'head' )[0].appendChild( link );
</script>
<!--[if lt IE 9]>
<script src='lib/js/html5shiv.js'></script>
<![endif]-->
";
$librerias_pie="
<script src='librerias/reveal/lib/js/head.min.js'></script>
<script src='librerias/reveal/js/reveal.js'></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// More info https://github.com/hakimel/reveal.js#dependencies
dependencies: [
{ src: 'librerias/reveal/lib/js/classList.js', condition: function() { return !document.body.classList; } },
{ src: 'librerias/reveal/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'librerias/reveal/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'librerias/reveal/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'librerias/reveal/plugin/zoom-js/zoom.js', async: true },
{ src: 'librerias/reveal/plugin/notes/notes.js', async: true }
]
});
</script>
";
$librerias_cabeza =$presentacion_cabeza;
$librerias_pie =$presentacion_pie;
$onload="
<div class='reveal'>
@ -424,15 +421,7 @@ $registros
<h2>Estadísticas</h2>
$estadisticas
</div>
<span>Powered by <a href='https://github.com/humano/milfs' target='milfs'>MILFS</a></span>
<div class='container' style='background-color:white' >
@ -442,6 +431,9 @@ $estadisticas
</div>
";
$aplicacion="";
$onload = "$footer $aplicacion ";
}