concat inferno

This commit is contained in:
mynah
2018-07-20 05:16:47 -05:00
parent e25fc46010
commit ef16d6f7b5
19 changed files with 518 additions and 423 deletions

View File

@@ -1,9 +0,0 @@
<section class="header flex">
<article class="header"> <p>Administracion</p> </article>
<article class="anav">
<a href="admin/casa"><p>Casa</p></a>
<a href="admin/radio"><p>Radio</p></a>
<a href="admin/evn"><p>Eventos</p></a>
<a href="admin/msg"><p>Mensajes</p></a>
</article>
</section>

View File

@@ -12,139 +12,134 @@
</article>
<article class="edit">
<!-- Evento ======================================================= -->
<div class="ehide" id="event"> <form action=" #nav admine" method="POST">
<!-- Evento ============================================================== -->
<div class="ehide" id="event"> <form action="/admin/eventos/e" method="POST">
<div class="flex field">
<label>Curso</label>
<select id="ecourse" name="ecourse">
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('ecourse')}) %><% if defined(stash('ecourse')); %>
<% } %><% (@{stash('courses')}) %><% if defined(stash('courses')); %>
</select>
</div>
<div class="flex field">
<label>Lugar</label> <!-- dropdown -->
<select id="eplace" name="eplace"> <!-- a#dropvar -->
<label>Lugar</label>
<select id="eplace" name="eplace">
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('eplace')}) %><% if defined(stash('eplace')); %>
<% } %><% (@{stash('places')}) %><% if defined(stash('places')); %>
</select>
</div>
<div class="flex field">
<label>Fecha inicio</label> <!-- dropdown -->
<input id="dini" type="number" min="1" max="31" name="dini" value="1"/> <!-- a#dropvar -->
<select id="mini" name="mini"> <!-- a#dropvar -->
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('emini')}) %><% if defined(stash('emini')); %>
<input id="dini" type="number" min="1" max="31" name="dini" value="1"/>
<select id="mini" name="mini">
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('months')}) %><% if defined(stash('months')); %>
</select>
<input id="yini" type="number" min="2017" max="2050" name="yini" value="2017"/> <!-- a#dropvar -->
<input id="yini" type="number" min="2017" max="2050" name="yini" value="2017"/>
</div>
<div class="flex field">
<label>Fecha fin</label> <!-- dropdown -->
<input id="dend" type="number" min="1" max="31" name="dend" value="1"/> <!-- a#dropvar -->
<select id="mend" name="mend"> <!-- a#dropvar -->
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('emini')}) %><% if defined(stash('emini')); %>
<!-- ##emini -->
<label>Fecha fin</label>
<input id="dend" type="number" min="1" max="31" name="dend" value="1"/>
<select id="mend" name="mend">
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('months')}) %><% if defined(stash('months')); %>
</select>
<input id="yend" type="number" min="2017" max="2050" name="yend" value="2017"/> <!-- a#dropvar -->
<input id="yend" type="number" min="2017" max="2050" name="yend" value="2017"/>
</div>
<div class="flex field">
<label>Costo</label> <input id="cost" type="text" name="cost"/> <!-- a#dropvar -->
<label>Costo</label> <input id="cost" type="text" name="cost"/>
</div>
<div class="flex field">
<label>Promoción</label><input id="promo" type="text" name="promo"/> <!-- a#dropvar -->
<label>Habilitar</label><input type="checkbox" checked="checked" id="pen" name="pen"/> <!-- a#dropvar -->
<label>Promoción</label><input id="promo" type="text" name="promo"/>
<label>Habilitar</label><input type="checkbox" checked="checked" id="pen" name="pen"/>
</div>
<div class="flex field">
<label>Imagen</label> <!-- dropdown -->
<select id="eimg" name="eimg"> <!-- a#dropvar -->
<label>Imagen</label>
<select id="eimg" name="eimg">
<option value="0" selected> -- Elegir imagen -- </option>
<% map{ %>
<% map{ %>
<option value="<%= $_ %>"><%= $_ %></option>
<% } %><% (@{stash('ilist')}) %><% if defined(stash('ilist')); %>
<% } %><% (@{stash('img')}) %><% if defined(stash('img')); %>
</select>
<div id=esimg></div>
</div>
<div class="flex field">
<label>Existente</label>
<select id="eprev" name="eprev"> <!-- a#dropvar -->
<select id="eprev" name="id">
<option value="0">-- Nuevo --</option>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('eprev')}) %><% if defined(stash('eprev')); %>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('events')}) %><% if defined(stash('events')); %>
</select>
</div>
<div class="flex field update">
<input type="hidden" name="update" value="1"> <!-- a#dropvar -->
<input type="submit" name="eup" value="Aceptar"> <!-- a#dropvar -->
<input type="submit" name="edel" value="Eliminar"> <!-- a#dropvar -->
<input type="submit" name="req" value="Aceptar">
<input type="submit" name="req" value="Eliminar">
<label>Habilitar</label>
<input id="een" type="checkbox" checked="checked" name="een" > <!-- a#dropvar -->
<input id="een" type="checkbox" checked="checked" name="een" >
</div>
</form> </div>
<!-- Curso ====================================================== -->
<div class="ehide" id="course"><form id="fcourse" action="/admin/event"
method="POST">
<!-- Curso ================================================================ -->
<div class="ehide" id="course"> <form id="fcourse" action="/admin/eventos/c" method="POST">
<div class="flex field">
<label>Nombre</label>
<input id="cname" type="text" name="cname"/> <!-- a#dropvar -->
<input id="cname" type="text" name="cname"/>
</div> <div class="flex field">
<label>Temario</label>
<textarea form="fcourse" id="csubjects" name="csubjects"></textarea> <!-- a#dropvar -->
<textarea form="fcourse" id="csubjects" name="csubjects"></textarea>
</div> <div class="flex field">
<label>Servicios</label>
<textarea form="fcourse" id="cservices" name="cservices"></textarea> <!-- a#dropvar -->
<textarea form="fcourse" id="cservices" name="cservices"></textarea>
</div> <div class="flex field">
<label>Existente</label>
<select id="cprev" name="cprev"> <!-- a#dropvar -->
<select id="cprev" name="id">
<option value="0">-- Nuevo --</option>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('ecourse')}) %><% if defined(stash('ecourse')); %>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('courses')}) %><% if defined(stash('courses')); %>
</select>
</div> <div class="flex field update">
<input type="hidden" name="update" value="1"> <!-- a#dropvar -->
<input type="submit" name="cup" value="Aceptar"> <!-- a#dropvar -->
<input type="submit" name="cdel" value="Eliminar"> <!-- a#dropvar -->
<input type="submit" name="req" value="Aceptar">
<input type="submit" name="req" value="Eliminar">
<label>Habilitar</label>
<input type="checkbox" checked="checked" id="cen" name="cen" > <!-- a#dropvar -->
<input type="checkbox" checked="checked" id="cen" name="cen" >
</div>
</form> </div>
<!-- Lugar ====================================================== -->
<div class="ehide" id="place"><form action="/admin/event" method="POST">
<!-- Lugar ================================================================ -->
<div class="ehide" id="place"><form action="/admin/eventos/p" method="POST">
<div class="flex field">
<label>Nombre</label><input type="text" id= "pname" name="pname"> <!-- a#dropvar -->
<label>Nombre</label><input type="text" id= "pname" name="pname">
</div> <div class="flex field">
<label>Direccion</label> <input type="text" id="paddr" name="paddr"> <!-- a#dropvar -->
<label>Direccion</label> <input type="text" id="paddr" name="paddr">
</div> <div class="flex field">
<label>Observación</label> <input type="text" id="pobs" name="pobs"> <!-- a#dropvar -->
<label>Observación</label> <input type="text" id="pobs" name="pobs">
</div> <div class="flex field">
<label>Municipio</label> <input type="text" id="pto" name="pto"> <!-- a#dropvar -->
<label>Municipio</label> <input type="text" id="pto" name="pto">
</div> <div class="flex field">
<label>Entidad</label> <input type="text" id="pst" name="pst"> <!-- a#dropvar -->
<label>Entidad</label> <input type="text" id="pst" name="pst">
</div> <div class="flex field">
<label>País</label> <input type="text" id="pco" name="pco"> <!-- a#dropvar -->
<label>País</label> <input type="text" id="pco" name="pco">
</div> <div class="flex field">
<label>Latitud</label> <input type="text"id="plat" name="plat"> <!-- a#dropvar -->
<label>Latitud</label> <input type="text"id="plat" name="plat">
</div> <div class="flex field">
<label>Longitud</label> <input type="text" id="plng" name="plng"> <!-- a#dropvar -->
<label>Longitud</label> <input type="text" id="plng" name="plng">
</div> <div class="flex field">
<label>Existente</label>
<select id="pprev" name="pprev"> <!-- a#dropvar -->
<select id="pprev" name="id">
<option value="0">-- Nuevo --</option>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('eplace')}) %><% if defined(stash('eplace')); %>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('places')}) %><% if defined(stash('places')); %>
</select>
</div> <div class="flex field update">
<input type="hidden" name="update" value="1"> <!-- a#dropvar -->
<input type="submit" name="pup" value="Aceptar"> <!-- a#dropvar -->
<input type="submit" name="pdel" value="Eliminar"> <!-- a#dropvar -->
<input type="submit" name="req" value="Aceptar">
<input type="submit" name="req" value="Eliminar">
<label>Habilitar</label>
<input id="pen" type="checkbox" checked="checked" name="pen" > <!-- a#dropvar -->
<input id="pen" type="checkbox" checked="checked" name="pen" >
</div>
</form> <div class="mapa"></div>
</article>

View File

@@ -11,7 +11,6 @@
<div class="spacer"></div>
</section>
% foreach my $d( @{ $r->{$_->{id}} } ) {
<!-- blocktext -->
<a class="cal" href="event/<%= $d->{eeid} %> ">
<section class="event flex">
<article class="data">
@@ -29,7 +28,6 @@
</section>
</a>
%}
<!-- blocktext -->
%}
</section>

View File

@@ -0,0 +1,9 @@
<section class="header flex">
<article class="header"> <p>Administracion</p> </article>
<article class="anav">
<a href="/admin/home"><p>Casa</p></a>
<a href="/admin/radio"><p>Radio</p></a>
<a href="/admin/eventos"><p>Eventos</p></a>
<a href="/admin/mensajes"><p>Mensajes</p></a>
</article>
</section>

View File

@@ -1,14 +1,14 @@
<section class="shop">
<article class="heading"> <p class="heading">TIENDA VIRTUAL</p> </article>
% for my $d (@$r){
% for (@$r){
<article class="shop flex">
<div class="simage" > <img src=<%= "$controller/$action/img/$d->{imagen} "%> ></div>
<div class="simage" > <img src=<%= "$controller/$action/img/$_->{imagen} "%> ></div>
<div class="description">
<p class="title"> <%= $d->{titulo} %> </p>
<p class="description"> <%= $d->{descripcion} %> </p>
<p class="price"> $<%= $d->{precio} %> pesos </p>
<p class="options"> <%= $d->{opciones} %> </p>
<p class="promo"> <%= $d->{promocion} %> </p>
<p class="title"> <%= $_->{titulo} %> </p>
<p class="description"> <%= $_->{descripcion} %> </p>
<p class="price"> $<%= $_->{precio} %> pesos </p>
<p class="options"> <%= $_->{opciones} %> </p>
<p class="promo"> <%= $_->{promocion} %> </p>
</div>
</article>
<article class="separator"></article>

View File

@@ -27,9 +27,9 @@
<article class="series"><ul>
<!-- ##series -->
% for my $s(@$series){
<li class="series" value="<%= $s->{group} %>">
<%= $s->{name} %>
% for (@$videos){
<li class="series" value="<%= $_->{group} %>">
<%= $_->{name} %>
</li>
% }
<!-- c#series -->
@@ -39,9 +39,9 @@
<article class="chap"> <ul>
<!-- ##table -->
% for my $t(@$table){
<li class="chap <%= $t->{group} %> " value="<%= $t->{link} %> ">
<%= $t->{order} %> <%= $t->{name} %>
% for (@$table){
<li class="chap <%= $_->{group} %> " value="<%= $_->{link} %> ">
<%= $_->{order} %> <%= $_->{name} %>
</li>
% }
<!-- c#table -->

View File

@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html>
<head>
<title><%= title %></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- <script src="https://d3js.org/d3.v4.min.js" charset="utf-8"></script> -->
<%= javascript "/ext/d3.v4.min.js"; %>
<%= stylesheet "/global/layout.css" %>
<%= stylesheet "/global/nav/cssSide.css" %>
<%= stylesheet "/global/nav/cssNav.css" %>
<%= stylesheet "/global/chaos/c.css" %>
<%= stylesheet "/home/admin/cssAdmin.css" %>
<% map{%><%= stylesheet "$_"%><%}(@{stash('css')}) if defined(stash('css'));%>
</head>
<body>
%= include 'home/htmlNav'
%= include 'home/htmlSide'
%= include 'home/htmlAdmin'
<% map{%><%= include "$_"%><%}(@{stash('prepend')})
if defined(stash('prepend'));%>
<%= content %>
<% map{%><%= include "$_"%><%}(@{stash('apend')})
if defined(stash('apend'));%>
%= include 'home/htmlChaos'
<%= javascript "/global/nav/d3Side.js"; %>
<% map{%><%= javascript "$_"%><%}(@{stash('js')}) if defined(stash('js'));%>
</body>
</html>