cleaning the house
This commit is contained in:
29
public/admin/tienda/tienda.css
Executable file
29
public/admin/tienda/tienda.css
Executable file
@@ -0,0 +1,29 @@
|
||||
section.messages{
|
||||
justify-content:end;
|
||||
}
|
||||
article.select{
|
||||
flex:1;
|
||||
overflow:auto;
|
||||
min-width:200px;
|
||||
max-width:400px;
|
||||
|
||||
}
|
||||
select.entry{
|
||||
margin:10px;
|
||||
min-height:400px;
|
||||
}
|
||||
option.entry{
|
||||
margin:10px;
|
||||
}
|
||||
article.view{
|
||||
flex:1;
|
||||
min-width:200px;
|
||||
max-width:500px;
|
||||
padding-right: 40px;
|
||||
}
|
||||
article.view p{}
|
||||
div.spcr{
|
||||
background-color:gray;
|
||||
height:3px;
|
||||
width:30px;
|
||||
}
|
||||
23
public/admin/tienda/tienda.js
Executable file
23
public/admin/tienda/tienda.js
Executable file
@@ -0,0 +1,23 @@
|
||||
|
||||
d3.select("select#suser").on("change",function(){
|
||||
var uid=d3.select("select#suser").node().value;
|
||||
d3.json("/admin/json/usuarios/"+uid ,function(d){
|
||||
if(d !=undefined) {if(d != 0){
|
||||
d3.select("p#correo").text(d.correo);
|
||||
d3.select("p#tel").text(d.tel);
|
||||
d3.select("p#obs").text(d.obs);
|
||||
d3.select("p#ultima").text(d.ultima);
|
||||
}}});
|
||||
});
|
||||
|
||||
d3.select("select#sentry").on("change",function(){
|
||||
var tid=d3.select("select#sentry").node().value;
|
||||
d3.json("/admin/json/tienda/"+tid ,function(d){
|
||||
if(d !=undefined) {if(d != 0){
|
||||
d3.select("p#imagen").text(d.imagen);
|
||||
d3.select("p#precio").text(d.precio);
|
||||
d3.select("p#descripcion").text(d.descripcion);
|
||||
d3.select("p#vigencia").text(d.vigencia);
|
||||
d3.select("p#entrega").text(d.entrega);
|
||||
}}});
|
||||
});
|
||||
Reference in New Issue
Block a user