noche, actualiza tablas eventos

This commit is contained in:
mynah
2018-07-19 03:45:46 -05:00
parent 5a7566eaf7
commit e25fc46010
31 changed files with 207 additions and 258 deletions

View File

@@ -0,0 +1,3 @@
delete from curso where id = ? ; # cprev

View File

@@ -0,0 +1,6 @@
update curso set
nombre = ?, # cname
temario = ?, # csubjects
servicios = ?, # cservices
estado = case ? when "on" then 1 else 0 end # cen
where id = ? ; # cprev

View File

@@ -0,0 +1,2 @@
delete from evento where id = ? ; # eprev

View File

@@ -0,0 +1,12 @@
update evento set
lugar_id = ?, # eplace ,
fecha_inicio='?-?-?', # yini - mini - dini ',
fecha_fin='?-?-?', # yend - mend - dend ',
precio= ?, # cost ,
promocion= ?, # promo ,
promo_estado = case ? when "on" then 1 else 0 end, #pen
curso_id= ?, # ecourse ,
imagen_chica= ?, # eimg ,
estado = case ? when "on" then 1 else 0 end # een
where id = ?; # eprev ;

View File

@@ -0,0 +1,4 @@
delete from lugar where id = ?; # pprev ;

View File

@@ -0,0 +1,12 @@
update lugar set
nombre= ?, # pname
direccion= ?, # paddr
observacion= ?,# pobs
municipio= ?, # pto
federativa= ?, # pst
pais= ?, # pco
lat=?, # plat
lng=?, # plng
estado = case ? when "on" then 1 else 0 end # pen
where id = ?; # pprev ;