updatedb
This commit is contained in:
27
public/home/admin/mensajes/cssMsg.css
Executable file
27
public/home/admin/mensajes/cssMsg.css
Executable 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;
|
||||
}
|
||||
23
public/home/admin/mensajes/htmlMensajes.html
Executable file
23
public/home/admin/mensajes/htmlMensajes.html
Executable 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>
|
||||
11
public/home/admin/mensajes/jsMsg.js
Executable file
11
public/home/admin/mensajes/jsMsg.js
Executable 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);
|
||||
}}});
|
||||
});
|
||||
19
public/home/admin/mensajes/json/qGetInfo.q
Executable file
19
public/home/admin/mensajes/json/qGetInfo.q
Executable 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 ";
|
||||
|
||||
13
public/home/admin/mensajes/qEntries.q
Executable file
13
public/home/admin/mensajes/qEntries.q
Executable 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;
|
||||
|
||||
Reference in New Issue
Block a user