cleaning the house

This commit is contained in:
mynah
2020-01-20 14:49:59 -06:00
parent 252ec865b3
commit 7dfd107c04
81 changed files with 426 additions and 958 deletions

View File

@@ -0,0 +1,15 @@
<article id="achat" class="std3">
<h2> Apagar / Encender Chat </h2>
<div class="onoffswitch">
<form action="" method="post">
<input type="checkbox" name="onoffswitch"
class="onoffswitch-checkbox" id="myonoffswitch" checked>
<label class="onoffswitch-label" for="myonoffswitch">
<span class="onoffswitch-inner"></span>
<span class="onoffswitch-switch"></span>
</label>
<input type="hidden" id="tooglechat" name="x" value="disable.sh">
</form>
</div>
<div id="clink" class="chat">Entra al Chat</div>
</article>

148
templates/admin/event.html.ep Executable file
View File

@@ -0,0 +1,148 @@
% stash css=>["/admin/admin.css","/admin/event/event.css"];
% stash js=>["//admin/event/event.js"];
<section class="name" flex> <article class="user">
<p class="title">Editar Eventos</p>
</article> </section>
<section class="event flex">
<article class="label">
<ul>
<li id="evento" value="event">Evento</li>
<li id="curso" value="course">Curso</li>
<li id="lugar" value="place">Lugar</li>
</ul>
</article>
<article class="edit">
<!-- 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('courses')}) %><% if defined(stash('courses')); %>
</select>
</div>
<div class="flex field">
<label>Lugar</label>
<select id="eplace" name="eplace">
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{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"/>
<select id="mini" name="mini">
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('months')}) %><% if defined(stash('months')); %>
</select>
<input id="yini" type="number" min="2019" max="2050" name="yini" value="2019"/>
</div>
<div class="flex field">
<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="2019" max="2050" name="yend" value="2019"/>
</div>
<div class="flex field">
<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"/>
<label>Habilitar</label><input type="checkbox" checked="checked" id="pen" name="pen"/>
</div>
<div class="flex field">
<label>Imagen</label>
<select id="eimg" name="eimg">
<option value="0" selected> -- Elegir imagen -- </option>
<% map{ %>
<option value="<%= $_ %>"><%= $_ %></option>
<% } %><% (@{stash('img')}) %><% if defined(stash('img')); %>
</select>
<div id=esimg></div>
</div>
<div class="flex field">
<label>Existente</label>
<select id="eprev" name="id">
<option value="0">-- Nuevo --</option>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('events')}) %><% if defined(stash('events')); %>
</select>
</div>
<div class="flex field update">
<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" >
</div>
</form> </div>
<!-- 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"/>
</div> <div class="flex field">
<label>Temario</label>
<textarea form="fcourse" id="csubjects" name="csubjects"></textarea>
</div> <div class="flex field">
<label>Servicios</label>
<textarea form="fcourse" id="cservices" name="cservices"></textarea>
</div> <div class="flex field">
<label>Existente</label>
<select id="cprev" name="id">
<option value="0">-- Nuevo --</option>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('courses')}) %><% if defined(stash('courses')); %>
</select>
</div> <div class="flex field update">
<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" >
</div>
</form> </div>
<!-- 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">
</div> <div class="flex field">
<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">
</div> <div class="flex field">
<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">
</div> <div class="flex field">
<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">
</div> <div class="flex field">
<label>Longitud</label> <input type="text" id="plng" name="plng">
</div> <div class="flex field">
<label>Existente</label>
<select id="pprev" name="id">
<option value="0">-- Nuevo --</option>
<% map{ %>
<option value="<%= $_->{'id'} %>"><%= $_->{'name'} %></option>
<% } %><% (@{stash('places')}) %><% if defined(stash('places')); %>
</select>
</div> <div class="flex field update">
<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" >
</div>
</form> <div class="mapa"></div>
</article>
</section>

63
templates/admin/home.html.ep Executable file
View File

@@ -0,0 +1,63 @@
% stash css=>["/admin/admin.css","/admin/home/admin.css"];
% stash js=>["/admin/home/buttons.js","/admin/home/fb.js"];
<section class="title flex">
<article class="title"> <p>Editar Casa</p> </article>
</section>
<section class="mod">
<form action="/admin/home" method="POST">
<label>Mensaje del día</label>
<textarea name="link" id="tmod" class="mod"><%= $mod %></textarea>
<input type="hidden" name="update" value="mod">
<input type="submit" name="hup" value="Cambiar" >
</form>
</section>
<section class="home flex"> <!-- col2 -->
<section class="col2"> <!-- col2 -->
<article id="msc" class="msc">
<%== $sc %>
</article>
<article class="mscl">
<form action="/admin/home" method="POST">
<input type="text" id="slink" name="link" value="">
<input type="button" id="sview" name="view" value="Ver">
<input type="submit" name="hup" value="Cambiar" >
<input type="hidden" name="update" value="sc">
</form>
</article>
<!-- face -->
<article class="mfb" id="amfb">
<div class="fb-post" id="fbdiv" data-href="<%= $fb %>"
data-width="450" data-show-text="true"></div>
</article>
<article class="mfbl">
<form action="/admin/home" method="POST">
<input type="text" id="flink" name="link" value="">
<input type="button" id="fview" name="view" value="Ver">
<input type="submit" name="hup" value="Cambiar" >
<input type="hidden" name="update" value="fb">
</form>
</article>
</section>
<section class="col2"> <!-- col2 --> <!-- yt -->
<article class="myt">
<div id="ytbox">
<iframe id="evideo"
src="https://www.youtube.com/embed/<%= $yt %> "
allowfullscreen></iframe>
</div>
</article>
<article class="mytl">
<form action="/admin/home" method="POST">
<input type="text" id="ylink" name="link">
<input type="button" id="yview" value="Ver">
<input type="submit" name="hup" value="Cambiar" >
<input type="hidden" name="update" value="yt">
</form>
</article>
</section>
</section>

View File

@@ -0,0 +1,19 @@
% stash css=>["/admin/admin.css","/admin/mensajes/msg.css"];
% stash js=>["/admin/mensajes/msg.js"];
<section class="flex messages">
<article class="select">
<select id="sentry" class="entry" size=10>
<% map{ %> <option value="<%= $_->{'mid'} %>" class="entry" ><%= $_->{'entry'} %> </option> <% } %><% (@{stash('h')}); %>
</select>
</article>
<article class="view">
<p id="fecha">fecha</p>
<div class="spcr"></div>
<p id="nombre">nombre</p>
<div class="spcr"></div>
<p id="correo">correo</p>
<div class="spcr"></div>
<p id="mensaje">mensaje</p>
</article>
</section>

45
templates/admin/radio.html.ep Executable file
View File

@@ -0,0 +1,45 @@
% stash css=>[
% "/admin/admin.css",
% "/admin/radio/admin.css",
% "/admin/candySwitch/main.css",
% "/admin/candySwitch/switch.css"
% ];
% stash js=>[
% "/admin/radio/loadInfo.js",
% "/admin/candySwitch/cSwitch.js"
% ];
<section class="title flex">
<article class="title"> <p>Radio</p> </article>
<article class="bcast"> <form action="/admin/radio" method="post">
<div><label>Contraseña Video</label></div>
<div>
<input type="text" name="gpass" id="gpass" class="gpass" value="<%= $gpass %>"</input>
</div>
<input type="hidden" name="update" value="gpass">
<div><input type="submit" name="pup" value="Cambiar"></div>
</section>
<section class="radio flex">
<article class="info">
<div class="cont"><p id="rhead">Estado:</p> <div id="onAir"></div></div>
<div class="cont"><p id="now"></p></div>
<div class="cont">
<p>En línea:</p><p id="online"></p><p>Max:</p><p id="onmax"></p>
</div>
<div id="histg">grafiquita</div>
</article>
<article class="rmod">
<form action="/admin/radio" method="post">
<label>Aviso para el radio</label>
<textarea name="link" id="tmod" class="rmod"><%= $rmod %></textarea> <!-- a#dropvar -->
<input type="hidden" name="update" value="rmod"> <!-- a#dropvar -->
<input type="submit" name="hup" value="Cambiar"> <!-- a#dropvar -->
</form>
</article>
</section>
<script>
let radio_server="<%= $config->{radio_server} %>";
</script>

62
templates/admin/tienda.html.ep Executable file
View File

@@ -0,0 +1,62 @@
% stash css=>["/admin/admin.css","/admin/tienda/tienda.css"];
% stash js=>["/admin/tienda/tienda.js"];
<section class="flex">
<article class="select">
<select id="suser" class="entry" size=10>
<% map{ %>
<option value="<%= $_->{'id'} %>" class="entry">
<%= $_->{'usuario'}%>, <%= $_->{'nombre'} %>
</option>
<% } %><% (@{stash('u')}); %>
</select>
</article>
<article class="users">
<div class="spcr"></div>
<p id="correo">correo</p>
<div class="spcr"></div>
<p id="tel">tel</p>
<div class="spcr"></div>
<p id="obs">obs</p>
<div class="spcr"></div>
<p id="ultima">ultima</p>
</article>
<article class=store">
<div class="spcr"></div>
<p id="nombre">nombre</p>
<div class="spcr"></div>
<p id="correo">correo</p>
<div class="spcr"></div>
<p id="obs">mensaje</p>
</article>
</section>
<section class="flex byElement">
<article class="select">
<select id="sentry" class="entry" size=10>
<% map{ %>
<option value="<%= $_->{'id'} %>"
class="entry <% if ($_->{'existencia'} =~/^[0-5]$/ ){ %>warn<% } %>">
<%= $_->{'nombre'} %>, $<%= $_->{'precio'} %>
</option>
<% } %><% (@{stash('s')}); %>
</select>
</article>
<article class="users">
<div class="spcr"></div>
<p id="imagen">nombre</p>
<div class="spcr"></div>
<p id="precio">correo</p>
<div class="spcr"></div>
<p id="descripcion">mensaje</p>
<p id="vigencia">mensaje</p>
<p id="entrega">mensaje</p>
</article>
</article>
<article class=store">
<div class="spcr"></div>
<p id="nombre">nombre</p>
<div class="spcr"></div>
<p id="correo">correo</p>
<div class="spcr"></div>
<p id="obs">mensaje</p>
</article>
</section>