parriba
This commit is contained in:
@@ -1,11 +1,15 @@
|
||||
insert into curso
|
||||
(nombre,temario,servicios,estado)
|
||||
values(
|
||||
?, # cname
|
||||
?, # csubjects
|
||||
?, # cservices
|
||||
case ? when "on" then 1 else 0 end #cen
|
||||
);
|
||||
|
||||
insert into curso (
|
||||
nombre,
|
||||
subnombre,
|
||||
descripcion,
|
||||
imagena,
|
||||
maestro,
|
||||
temario,
|
||||
servicios,
|
||||
estado
|
||||
)
|
||||
values(?,?,?,?,?,?,?,?);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,14 +1,20 @@
|
||||
insert into evento
|
||||
(lugar_id, fecha_inicio, fecha_fin, precio, promocion, promo_estado, curso_id, imagen_chica, estado)
|
||||
values(
|
||||
?, # eplace
|
||||
concat(?,"-",?,"-",?), # yini - mini - dini
|
||||
concat(?,"-",?,"-",?), # yend - mend - dend
|
||||
?, # cost ,
|
||||
?, # promo ,
|
||||
case ? when "on" then 1 else 0 end, # pen
|
||||
?, # ecourse ,
|
||||
?, # eimg ,
|
||||
case ? when "on" then 1 else 0 end # een
|
||||
);
|
||||
|
||||
insert into curso_tienda (
|
||||
lugar_id,
|
||||
fecha_inicio,
|
||||
fecha_fin,
|
||||
imagen_chica,
|
||||
comentario,
|
||||
precio,
|
||||
promocion,
|
||||
promo_estado,
|
||||
playera_estado,
|
||||
spay,
|
||||
store,
|
||||
meses,
|
||||
cupo,
|
||||
curso_id,
|
||||
estado
|
||||
)
|
||||
values( ?,?,?,?,?,?,?,?,?,?,?,?,?,?,?);
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
insert into lugar
|
||||
(nombre,direccion,observacion,municipio,federativa,pais,lat,lng,estado)
|
||||
values(
|
||||
?, # pname
|
||||
?, # paddr
|
||||
?, # pobs
|
||||
?, # pto
|
||||
?, # pst
|
||||
?, # pco
|
||||
?, # plat
|
||||
?, # plng
|
||||
case ? when "on" then 1 else 0 end #pen
|
||||
);
|
||||
|
||||
insert into curso_lugar (
|
||||
nombre,
|
||||
direccion,
|
||||
observacion,
|
||||
municipio,
|
||||
federativa,
|
||||
pais,
|
||||
lat,
|
||||
lng,
|
||||
estado
|
||||
)
|
||||
values(?,?,?,?,?,?,?,?,?);
|
||||
|
||||
|
||||
|
||||
@@ -1,6 +1,11 @@
|
||||
update curso set
|
||||
nombre = ?, # cname
|
||||
temario = ?, # csubjects
|
||||
servicios = ?, # cservices
|
||||
estado = case ? when "on" then 1 else 0 end # cen
|
||||
where id = ? ; # cprev
|
||||
|
||||
update curso set
|
||||
nombre=?,
|
||||
subnombre=?,
|
||||
descripcion=?,
|
||||
imagena=?,
|
||||
maestro=?,
|
||||
temario=?,
|
||||
servicios=?,
|
||||
estado=?
|
||||
where id = ? ; # cprev
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
delete from evento where id = ? ; # eprev
|
||||
delete from curso_tienda where id = ? ; # eprev
|
||||
|
||||
|
||||
@@ -1,12 +1,19 @@
|
||||
update evento set
|
||||
lugar_id = ?, # eplace
|
||||
fecha_inicio = concat(?,"-",?,"-",?), # yini - mini - dini
|
||||
fecha_fin = concat(?,"-",?,"-",?), # 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
|
||||
|
||||
update curso_tienda set
|
||||
lugar_id=?,
|
||||
fecha_inicio=?,
|
||||
fecha_fin=?,
|
||||
imagen_chica=?,
|
||||
comentario=?,
|
||||
precio=?,
|
||||
promocion=?,
|
||||
promo_estado=?,
|
||||
playera_estado=?,
|
||||
spay=?,
|
||||
store=?,
|
||||
meses=?,
|
||||
cupo=?,
|
||||
curso_id=?,
|
||||
estado=?
|
||||
where id = ?; # eprev
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
delete from lugar where id = ?; # pprev ;
|
||||
delete from curso_lugar where id = ?; # pprev ;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
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 ;
|
||||
|
||||
update curso_lugar set
|
||||
nombre= ?, # pname
|
||||
direccion= ?, # paddr
|
||||
observacion= ?,# pobs
|
||||
municipio= ?, # pto
|
||||
federativa= ?, # pst
|
||||
pais= ?, # pco
|
||||
lat=?, # plat
|
||||
lng=?, # plng
|
||||
estado = ?
|
||||
where id = ?; # pprev ;
|
||||
|
||||
|
||||
@@ -1,8 +1,14 @@
|
||||
|
||||
select
|
||||
id as "cid",
|
||||
nombre as "cname",
|
||||
subnombre as "csubname",
|
||||
descripcion as "cdesc",
|
||||
imagen_a as "cimga",
|
||||
maestro as "cmas",
|
||||
temario as "csubjects",
|
||||
servicios as "cservices"
|
||||
servicios as "cservices",
|
||||
estado as "cestado"
|
||||
from curso
|
||||
where id= ? ; #course ;
|
||||
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
|
||||
select
|
||||
"event" as "tag",
|
||||
id,
|
||||
lugar_id as "pid",
|
||||
curso_id as "cid",
|
||||
precio as "cost",
|
||||
promocion as "promo",
|
||||
promo_estado as "pen",
|
||||
day(fecha_inicio) as "dini",
|
||||
month(fecha_inicio) as "mini",
|
||||
year(fecha_inicio) as "yini",
|
||||
@@ -13,9 +10,18 @@ select
|
||||
month(fecha_fin) as "mend",
|
||||
year(fecha_fin) as "yend",
|
||||
coalesce(imagen_chica,0) as "eimg",
|
||||
|
||||
comentario as "comment",
|
||||
precio as "cost",
|
||||
promocion as "promo",
|
||||
promo_estado as "pen",
|
||||
playera_estado as "ten",
|
||||
spay,
|
||||
estore,
|
||||
meses,
|
||||
cupo,
|
||||
curso_id as "cid",
|
||||
estado as "een"
|
||||
from evento
|
||||
where id= ? ; # ecourse ;
|
||||
from curso_tienda
|
||||
where id= ? ; # ecourse ;
|
||||
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@ select
|
||||
lat as "plat",
|
||||
lng as "plng",
|
||||
estado as "pen"
|
||||
from lugar
|
||||
from curso_lugar
|
||||
where id= ? ; # course ;
|
||||
|
||||
|
||||
|
||||
@@ -1,10 +1,3 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_user */
|
||||
/* c#password #dbdata_pass */
|
||||
|
||||
|
||||
|
||||
select
|
||||
"cprev" as "tag",
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_user */
|
||||
/* c#password #dbdata_pass */
|
||||
|
||||
|
||||
select
|
||||
"ecourse" as "tag",
|
||||
nombre as "name",
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_user */
|
||||
/* c#password #dbdata_pass */
|
||||
|
||||
|
||||
|
||||
select
|
||||
"emend" as "tag",
|
||||
nombre as "name",
|
||||
id
|
||||
from mes;
|
||||
@@ -1,14 +0,0 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_user */
|
||||
/* c#password #dbdata_pass */
|
||||
|
||||
|
||||
|
||||
|
||||
select
|
||||
"emini" as "tag",
|
||||
nombre as "name",
|
||||
id
|
||||
from mes;
|
||||
@@ -1,13 +1,6 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_user */
|
||||
/* c#password #dbdata_pass */
|
||||
|
||||
|
||||
|
||||
select
|
||||
"eplace" as "tag",
|
||||
nombre as "name",
|
||||
id
|
||||
from lugar where estado=1;
|
||||
from curso_lugar where estado=1;
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
select
|
||||
concat(day(e.fecha_inicio)," de ",m.nombre," ",l.nombre) as "name",
|
||||
e.id as id
|
||||
from evento as e
|
||||
inner join lugar as l on e.lugar_id=l.id
|
||||
inner join mes as m on month(e.fecha_inicio)=m.id
|
||||
where e.estado=1
|
||||
order by e.fecha_inicio desc;
|
||||
|
||||
select
|
||||
concat(month(t.fecha_inicio)," ",day(t.fecha_inicio)," ",l.nombre) as "name",
|
||||
t.id as id
|
||||
from curso_tienda as t
|
||||
inner join curso_lugar as l on t.lugar_id=l.id
|
||||
where t.estado=1
|
||||
order by t.fecha_inicio desc;
|
||||
|
||||
|
||||
@@ -1,15 +1,8 @@
|
||||
|
||||
/* c#host localhost*/
|
||||
/* c#database #dbdata */
|
||||
/* c#user #dbdata_user */
|
||||
/* c#password #dbdata_pass */
|
||||
|
||||
|
||||
|
||||
select
|
||||
"pprev" as "tag",
|
||||
nombre as "name",
|
||||
id
|
||||
from lugar
|
||||
from curso_lugar
|
||||
order by nombre asc;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user