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

23
public/admin/tienda/tienda.js Executable file
View 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);
}}});
});