This commit is contained in:
mynah
2018-07-18 04:28:26 -05:00
parent 0a7d71e21c
commit 4f0061cd7d
61 changed files with 1396 additions and 43 deletions

View File

@@ -0,0 +1,27 @@
section.messages{
justify-content:end;
}
article.select{
flex:1;
overflow:auto;
min-width:200px;
max-width:400px;
}
select.entry{
margin:10px;
}
option.entry{
margin:10px;
}
article.view{
flex:1;
min-width:200px;
max-width:500px;
}
article.view p{}
div.spcr{
background-color:gray;
height:3px;
width:30px;
}

View File

@@ -0,0 +1,23 @@
<section class="flex messages">
<article class="select">
<select id="sentry" class="entry" size=10>
<!-- ##mlist -->
<!-- r##hide -->
<!-- c#mlist <option value=" #mid " class="entry"> #entry </option> -->
<!-- rr#hide -->
</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>

View File

@@ -0,0 +1,11 @@
d3.select("select#sentry").on("change",function(){
var msg_id=d3.select("select#sentry").node().value;
d3.json(" #data admin/mensajes/json/qGetInfo.q&imid="+msg_id ,function(d){
if(d[0] !=undefined) {if(d[0] != 0){
d3.select("p#fecha").text(d[0].imdate);
d3.select("p#correo").text(d[0].imail);
d3.select("p#nombre").text(d[0].imname);
d3.select("p#mensaje").text(d[0].immsg);
}}});
});

View File

@@ -0,0 +1,19 @@
/* c#host localhost*/
/* c#database #dbmsg */
/* c#user #dbmsg_user */
/* c#password #dbmsg_pass */
select
e.id as imid,
concat(day(e.fecha)," de ",m.nombre," ", year(e.fecha)) as imdate,
e.nombre as imname,
e.correo as imail,
e.texto as immsg
from entrada as e
inner join vuelo.mes as m on m.id=month(e.fecha)
where e.id= " #imid ";

View File

@@ -0,0 +1,13 @@
/* c#host localhost*/
/* c#database #dbmsg */
/* c#user #dbmsg_user */
/* c#password #dbmsg_pass */
select
"mlist" as tag,
id as mid,
concat(nombre," ",date(fecha)) as "entry"
from entrada
order by fecha;