Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; params.ini config file
- ; cross-environment and application-specific config params.
- ; for environment-specific, zend framework related use appplication.ini
- ; NOTA: Se consideró usar, mientras sea posible, consultas directa desde la app
- ; clasificados hacia las bases de datos de las demás aplicaciones con el fin de
- ; mantener independencia cuando se requiera modificar/aumentar/eliminar items
- ; de los listados.
- ; Por un tema de seguridad se consideró usar archivos de configuración en lugar
- ; de base de datos para poder almacenar la configuración del portal. Por lo cual
- ; no se dispone de un panel de administración.
- [sites]
- aptitus.url = 'http://aptitus.pe'
- aptitus.nombre = aptitus
- aptitus.queryStringBusqueda = '/buscar/query/%s'
- aptitus.baseLinkUrl = '/buscar/areas/%s?ref=ecc'
- aptitus.ubigeoBaseLinkUrl = '%s'
- ;aptitus.baseLinksSql = "SELECT 'Marketing' as nombre, 'marketing' as routeparam, 856 as n UNION SELECT 'Ingenieria', 'ingenieria', 731 UNION SELECT 'Operaciones', 'operaciones', 952 UNION SELECT 'Otros', 'otros', 1485 {%ubigeo%};"
- aptitus.baseLinksSql = "SELECT a.nombre, count(aw.id_area) as n, concat('/buscar/ubicacion/',replace(u.search_name,' ', '-'),'/areas/',a.slug) as link FROM area a JOIN anuncio_web aw ON a.id=aw.id_area JOIN ubigeo u ON u.id=aw.id_ubigeo WHERE a.id IN (1,2,4,3,5,12,8,10,11,13,14,19,16,9,17,18,21,23,24,25) AND aw.online=1 {%ubigeo%} GROUP BY aw.id_area ORDER BY a.nombre;"
- aptitus.ubigeoLinkSql ="SELECT concat('/buscar/ubicacion/',replace(u.search_name,' ', '-')) AS routeparam from ubigeo u where u.nombre is not null {%ubigeo%};"
- ;aptitus.ubicacion.home = " AND u.padre = 3926 "
- aptitus.ubicacion.lima = " AND u.padre = 3927 "
- aptitus.ubicacion.miraflores = " AND u.id = 3949 "
- aptitus.ubicacion.san-isidro = " AND u.id = 3958 "
- aptitus.ubicacion.santiago-de-surco = " AND u.id = 3967 "
- aptitus.ubicacion.san-borja = " AND u.id = 3957 "
- aptitus.ubicacion.san-miguel = " AND u.id = 3963 "
- aptitus.ubicacion.la-molina = " AND u.id = 3941 "
- aptitus.ubicacion.cercado-de-lima = " AND u.id = 3928 "
- aptitus.ubicacion.otros-distritos-de-lima = " AND u.padre in (3927) and u.id not in (3927,3949,3958,3967,3957,3963,3941,3928) "
- aptitus.ubicacion.callao = " AND u.id = 3285 "
- aptitus.ubicacion.arequipa = " AND u.id = 2900 "
- aptitus.ubicacion.chiclayo = " AND u.id = 3885 "
- aptitus.ubicacion.piura = " AND u.id = 4236 "
- aptitus.ubicacion.trujillo = " AND u.id = 3789 "
- aptitus.ubicacion.otras-ciudades = " AND u.padre not in (3927,3285,3789,2900,3885,4236) "
- ;aptitus.totalPublicadosSql = 'SELECT 7321 {%ubigeo%} ;'
- ;aptitus.extralink.0.nombre = 'Alta Gerencia 1'
- ;aptitus.extralink.0.link = '/buscar/nivel/alta-gerencia1'
- ;aptitus.extralink.0.countsql = 'SELECT 123 {%ubigeo%} ;'
- ;aptitus.extralink.1.nombre = 'Alta Gerencia 2'
- ;aptitus.extralink.1.link = '/buscar/nivel/alta-gerencia2'
- ;aptitus.extralink.1.countsql = 'SELECT 234 {%ubigeo%} ;'
- ;aptitus.extralink.2.nombre = 'Alta Gerencia 3'
- ;aptitus.extralink.2.link = '/buscar/nivel/alta-gerencia3'
- ;aptitus.extralink.2.countsql = 'SELECT 345 {%ubigeo%} ;'
- urbania.url = 'http://urbania.pe'
- urbania.nombre = urbania
- urbania.queryStringBusqueda = '/alquiler/busqueda/%s'
- urbania.baseLinkUrl = '%s'
- urbania.ubigeoBaseLinkUrl = '/alquiler/inmuebles-en-%s-en-lima-1'
- ;urbania.baseLinksSql = "SELECT 'Casas' as nombre, 'casas' as routeparam, 654 as n UNION SELECT 'Departamentos', 'departamentos', 321 UNION SELECT 'Habitaciones', 'habitaciones', 634 UNION SELECT 'Locales', 'locales', 346 UNION SELECT 'Oficinas', 'oficinas', 11 UNION SELECT 'Terrenos', 'terrenos', 745 {%ubigeo%};"
- ;urbania.baseLinksSql = "SELECT (case when (i.parent=6) then concat('Habitaciones en ',if(i.type=1,'Venta','Alquiler')) when (i.parent=4) then concat('Locales Comerciales en ',if(i.type=1,'Venta','Alquiler')) when (i.parent=14) then concat('Oficinas en ',if(i.type=1,'Venta','Alquiler')) when (i.parent=1) then concat('Terrenos en ',if(i.type=1,'Venta','Alquiler')) else concat('Departamentos y Casas en ',if(i.type=1,'Venta','Alquiler')) end ) as nombre, count(i.id) as n, concat(if(i.type=1,'/venta/','/alquiler/'), (case when (i.parent=6) then 'habitaciones' when (i.parent=4) then 'locales' when (i.parent=14) then 'oficinas' when (i.parent=1) then 'terrenos' else 'casas-departamentos' end ), '-en-',replace(ly.alias,' ', '-'),'-en-',replace(sd.alias,' ', '-'),'-1') as routeparam FROM tb_properties_products AS i INNER JOIN tb_properties_profiles AS pf ON i.extra10 = pf.id inner join tb_properties_locality as ly on ly.id = i.lid inner join tb_properties_state as sd on sd.id = ly.parent LEFT JOIN tb_detalle_paquete AS dp ON dp.tb_properties_products_id = i.id WHERE (i.extra39 = 0) AND (i.published = 1 OR i.published = 4) AND (pf.status = 0) AND (pf.iddocumento > 0) AND (i.type in (1,2)) AND (i.parent in (1,3,4,5,6,14)) {%ubigeo%} group by nombre UNION SELECT 'Casas de Playa' as nombre, count(i.id) as n, '/alquiler/inmuebles-de-playa' as routeparam FROM `tb_properties_products` AS `i` INNER JOIN `tb_properties_playa` AS `pl` ON i.uid = pl.id INNER JOIN `tb_properties_profiles` AS `pf` ON i.extra10 = pf.id LEFT JOIN `tb_detalle_paquete` AS `dp` ON dp.tb_properties_products_id = i.id WHERE (i.uid > 0) AND (i.extra39 = 0) AND (i.published = 1 OR i.published = 4) AND (pf.status = 0) AND (pf.iddocumento > 0) AND (i.type = 2) AND (i.parent = 3 OR i.parent = 5 OR i.parent = 6 OR i.parent = 4 OR i.parent = 14 OR i.parent = 1) UNION SELECT 'Proyectos Inmobiliarios' as nombre, count(distinct p.id) as n, concat('/venta/inmuebles-de-estreno-en-',replace(ly.alias,' ', '-'),'-en-',replace(sd.alias,' ', '-'),'-2') as routeparam FROM `tb_properties_projects` AS `p` inner join `tb_properties_products` AS `i` ON p.id = i.extra39 INNER JOIN `tb_properties_project_type` AS `tp` ON tp.tb_properties_proyects_id = p.id INNER JOIN `tb_properties_profiles` AS `pf` ON p.tb_properties_profile_id = pf.id inner join tb_properties_locality as ly on ly.id = p.locality_id inner join tb_properties_state as sd on sd.id = ly.parent INNER JOIN `tb_ente` AS `e` ON pf.iddocumento = e.id WHERE (p.published = 1) AND (pf.status = 0) AND (pf.iddocumento > 0) AND (i.parent = 3 OR i.parent = 5 OR i.parent = 14) {%ubigeo%} GROUP BY nombre"
- urbania.baseLinksSql = "SELECT (case when (i.parent=6) then concat('Habitaciones en ',if(i.type=1,'Venta','Alquiler')) when (i.parent=4) then concat('Locales Comerciales en ',if(i.type=1,'Venta','Alquiler')) when (i.parent=14) then concat('Oficinas en ',if(i.type=1,'Venta','Alquiler')) when (i.parent=1) then concat('Terrenos en ',if(i.type=1,'Venta','Alquiler')) else concat('Departamentos y Casas en ',if(i.type=1,'Venta','Alquiler')) end ) as nombre, count(i.id) as n, concat(if(i.type=1,concat('|','/venta/'),concat('|','/alquiler/')), (case when (i.parent=6) then concat('|','habitaciones' )when (i.parent=4) then concat('|','locales') when (i.parent=14) then concat('|','oficinas' )when (i.parent=1) then concat('|','terrenos' )else concat('|','casas-departamentos') end ), concat('|','-en-'),concat('|',replace(ly.alias,' ', '-')),'-en-',replace(sd.alias,' ', '-'),'-1') as routeparam FROM tb_properties_products AS i INNER JOIN tb_properties_profiles AS pf ON i.extra10 = pf.id inner join tb_properties_locality as ly on ly.id = i.lid inner join tb_properties_state as sd on sd.id = ly.parent LEFT JOIN tb_detalle_paquete AS dp ON dp.tb_properties_products_id = i.id WHERE (i.extra39 = 0) AND (i.published = 1 OR i.published = 4) AND (pf.status = 0) AND (pf.iddocumento > 0) AND (i.type in (1,2)) AND (i.parent in (1,3,4,5,6,14)) {%ubigeo%} group by nombre UNION SELECT 'Casas de Playa' as nombre, count(i.id) as n, concat('|','/alquiler' ,'|' ,'/inmuebles' ,'|','-de-playa') as routeparam FROM `tb_properties_products` AS `i` INNER JOIN `tb_properties_playa` AS `pl` ON i.uid = pl.id INNER JOIN `tb_properties_profiles` AS `pf` ON i.extra10 = pf.id LEFT JOIN `tb_detalle_paquete` AS `dp` ON dp.tb_properties_products_id = i.id WHERE (i.uid > 0) AND (i.extra39 = 0) AND (i.published = 1 OR i.published = 4) AND (pf.status = 0) AND (pf.iddocumento > 0) AND (i.type = 2) AND (i.parent = 3 OR i.parent = 5 OR i.parent = 6 OR i.parent = 4 OR i.parent = 14 OR i.parent = 1) UNION SELECT 'Proyectos Inmobiliarios' as nombre, count(distinct p.id) as n, concat('|','/venta','|', '/inmuebles-de-estreno-en-',concat('|',replace(ly.alias,' ', '-')),'-en-',replace(sd.alias,' ', '-'),'-2') as routeparam FROM `tb_properties_projects` AS `p` inner join `tb_properties_products` AS `i` ON p.id = i.extra39 INNER JOIN `tb_properties_project_type` AS `tp` ON tp.tb_properties_proyects_id = p.id INNER JOIN `tb_properties_profiles` AS `pf` ON p.tb_properties_profile_id = pf.id inner join tb_properties_locality as ly on ly.id = p.locality_id inner join tb_properties_state as sd on sd.id = ly.parent INNER JOIN `tb_ente` AS `e` ON pf.iddocumento = e.id WHERE (p.published = 1) AND (pf.status = 0) AND (pf.iddocumento > 0) AND (i.parent = 3 OR i.parent = 5 OR i.parent = 14) {%ubigeo%} GROUP BY nombre;"
- urbania.ubigeoLinkSql ="SELECT replace(ly.alias,' ', '-') AS routeparam from tb_properties_locality ly where ly.name is not null {%ubigeo%};"
- urbania.ubicacion.home = "-- (ubigeo) "
- urbania.ubicacion.lima = " AND (ly.parent = 1) "
- urbania.ubicacion.miraflores = " AND (ly.id = 19) "
- urbania.ubicacion.san-isidro = " AND (ly.id = 28) "
- urbania.ubicacion.san-borja = " AND (ly.id = 46) "
- urbania.ubicacion.san-miguel = " AND (ly.id = 47) "
- urbania.ubicacion.santiago-de-surco = " AND (ly.id = 2) "
- urbania.ubicacion.la-molina = " AND (ly.id = 14) "
- urbania.ubicacion.cercado-de-lima = " AND (ly.id = 1) "
- urbania.ubicacion.otros-distritos-de-lima = " AND ly.id not in (1,19,28,46,47,2,14) "
- urbania.ubicacion.callao = " AND (ly.parent = 41) "
- urbania.ubicacion.arequipa = " AND (ly.parent = 74) "
- urbania.ubicacion.chiclayo = " AND (ly.parent = 114) "
- urbania.ubicacion.piura = " AND (ly.parent = 91) "
- urbania.ubicacion.trujillo = " AND (ly.parent = 108) "
- urbania.ubicacion.otras-ciudades = " AND ly.parent not in (1,2,18,25,16,26) "
- ;urbania.totalPublicadosSql = 'SELECT 8323 {%ubigeo%} ;'
- ;urbania.extralink.0.nombre = 'Todo Alquiler'
- ;urbania.extralink.0.link = '/alquiler/inmuebles'
- ;urbania.extralink.0.countsql = 'SELECT 555 {%ubigeo%} ;'
- ;urbania.extralink.1.nombre = 'Casas de Playas'
- ;urbania.extralink.1.link = '/casas-de-playa'
- ;urbania.extralink.1.countsql = 'SELECT 67 {%ubigeo%} ;'
- ;urbania.extralink.2.nombre = 'Proyectos'
- ;urbania.extralink.2.link = '/venta/de-estreno'
- ;urbania.extralink.2.countsql = 'SELECT 28 {%ubigeo%} ;'
- neoauto.url = 'http://neoauto.pe'
- neoauto.nombre = neoauto
- neoauto.queryStringBusqueda = '/venta/?texto=%s'
- neoauto.baseLinkUrl = '/venta/%s'
- neoauto.ubigeoBaseLinkUrl = '/venta/%s'
- ;neoauto.baseLinksSql = "SELECT 'Toyota' as nombre, 'toyota' as routeparam, 654 as n UNION SELECT 'Nissan', 'nissan', 321 UNION SELECT 'Volkswagen', 'volkswagen', 634 UNION SELECT 'Hyundai', 'hyundai', 346 UNION SELECT 'Honda', 'honda', 11 UNION SELECT 'Suzuki', 'susuki', 745 UNION SELECT 'Volvo', 'volvo', 52 {%ubigeo%};"
- ;neoauto.baseLinksSql = "SELECT t.name AS nombre, COUNT(a.id) AS n, concat(t.slug_search,'-en-',u.slug_search) AS routeparam FROM neoauto_cartype t INNER JOIN neoauto_carmodel m ON m.type_id = t.id INNER JOIN neoauto_car c ON c.model_id=m.id INNER JOIN neoauto_carad a ON a.car_id = c.id INNER JOIN locations_location u ON u.id = a.location_id WHERE a.STATUS = 3 AND t.id IN (5,6,7,8,9,10,11) {%ubigeo%} GROUP BY (t.name) UNION ALL SELECT b.name AS nombre , COUNT(a.id) AS n , concat(b.slug_search,'-en-',u.slug_search) AS routeparam FROM neoauto_carbrand b INNER JOIN neoauto_carmodel m ON m.brand_id = b.id INNER JOIN neoauto_car c ON c.model_id=m.id INNER JOIN neoauto_carad a ON a.car_id = c.id INNER JOIN locations_location u ON u.id = a.location_id WHERE a.STATUS = 3 AND b.id IN (403,309,189,287,433,36,240,181) {%ubigeo%} GROUP BY (b.name)"
- neoauto.baseLinksSql = "SELECT t.name AS nombre, COUNT(a.id) AS n,
- concat('|',t.slug_search,'|','-en-','|',u.slug_search) AS routeparam
- FROM neoauto_cartype t INNER JOIN neoauto_carmodel m ON m.type_id = t.id INNER JOIN neoauto_car c
- ON c.model_id=m.id
- INNER JOIN neoauto_carad a ON a.car_id = c.id
- INNER JOIN locations_location u ON u.id = a.location_id WHERE a.STATUS = 3 AND
- t.id IN (5,6,7,8,9,10,11) {%ubigeo%}
- GROUP BY (t.name)
- UNION ALL SELECT
- b.name AS nombre , COUNT(a.id) AS n , concat('|',b.slug_search,'|','-en-','|',u.slug_search) AS routeparam
- FROM neoauto_carbrand b
- INNER JOIN neoauto_carmodel m ON m.brand_id = b.id
- INNER JOIN neoauto_car c ON c.model_id=m.id
- INNER JOIN neoauto_carad a ON a.car_id = c.id
- INNER JOIN locations_location u ON u.id = a.location_id WHERE a.STATUS = 3 AND
- b.id IN (403,309,189,287,433,36,240,181) {%ubigeo%}
- GROUP BY (b.name);"
- neoauto.ubigeoLinkSql ="select concat('-en-',u.slug_search) AS routeparam from locations_location as u where u.slug_search is not null {%ubigeo%} "
- neoauto.baseUbigeoLinksSql ="SELECT u.slug_search AS routeparam
- FROM neoauto_cartype t INNER JOIN neoauto_carmodel m ON m.type_id = t.id INNER JOIN neoauto_car c
- ON c.model_id=m.id
- INNER JOIN neoauto_carad a ON a.car_id = c.id
- INNER JOIN locations_location u ON u.id = a.location_id WHERE a.STATUS = 3 AND
- t.id IN (5,6,7,8,9,10,11)
- {%ubigeo%}
- GROUP BY (u.slug_search)
- UNION ALL SELECT
- u.slug_search AS routeparam
- FROM neoauto_carbrand b
- INNER JOIN neoauto_carmodel m ON m.brand_id = b.id
- INNER JOIN neoauto_car c ON c.model_id=m.id
- INNER JOIN neoauto_carad a ON a.car_id = c.id
- INNER JOIN locations_location u ON u.id = a.location_id WHERE a.STATUS = 3 AND
- b.id IN (403,309,189,287,433,36,240,181)
- {%ubigeo%}
- GROUP BY (u.slug_search) "
- neoauto.ubicacion.home = "-- (ubigeo)"
- neoauto.ubicacion.lima = " AND u.parent_id = 3927 AND u.id in (3949,3958,3967,3957,3963,3941,3928) "
- neoauto.ubicacion.miraflores = " AND u.id = 3949"
- neoauto.ubicacion.san-isidro = " AND u.id = 3958"
- neoauto.ubicacion.santiago-de-surco = " AND u.id = 3967"
- neoauto.ubicacion.san-borja = " AND u.id = 3957"
- neoauto.ubicacion.san-miguel = " AND u.id = 3963"
- neoauto.ubicacion.la-molina = " AND u.id = 3941"
- neoauto.ubicacion.cercado-de-lima = " AND u.id = 3928"
- neoauto.ubicacion.otros-distritos-de-lima = " AND u.parent_id in (3927) AND u.id not in (3926,3949,3958,39673957,3963,3941,3928) "
- neoauto.ubicacion.callao = " AND u.id = 3285"
- neoauto.ubicacion.arequipa = " AND u.id = 2901"
- neoauto.ubicacion.chiclayo = " AND u.id = 3885"
- neoauto.ubicacion.piura = " AND u.id = 4237"
- neoauto.ubicacion.trujillo = " AND u.id = 3789"
- neoauto.ubicacion.otras-ciudades = " AND u.id not in (3926) and u.parent_id not in (3927,3285,2901,3885,4237,3789) "
- ;neoauto.totalPublicadosSql = 'SELECT 8323 {%ubigeo%} ;'
- ;neoauto.totalPublicadosSql = 'SELECT 8323 ;'
- neoauto.extralink.0.nombre = 'Venta Usados'
- neoauto.extralink.0.link = '/venta/usados'
- ;neoauto.extralink.0.countsql = 'SELECT 5525 {%ubigeo%} ;'
- neoauto.extralink.1.nombre = 'Venta Nuevos'
- neoauto.extralink.1.link = '/venta/nuevos'
- ;neoauto.extralink.1.countsql = 'SELECT 2676 {%ubigeo%} ;'
- guiagps.url = 'http://guiagps.pe'
- guiagps.nombre = guiagps
- guiagps.queryStringBusqueda = '/restaurantes/busqueda?abuscar=%s'
- guiagps.baseLinkUrl = '/restaurantes/%s'
- guiagps.ubigeoBaseLinkUrl = '/restaurantes/%s'
- guiagps.baseLinksSql = "SELECT cast(v.STR_VALOR as char character set utf8) as nombre,
- COUNT(distinct ce.txt_rznsoc_nombre) as n,
- CAST(
- CONCAT(v.STR_VALOR,'|',u.TXT_NOMBRE_DEPARTAMENTO,'|',
- u.TXT_NOMBRE_PROVINCIA,'|',
- IF(2>0,u.TXT_NOMBRE_DISTRITO,''),'?',
- '|', u.ID_DEPARTAMENTO ,
- '|',u.ID_PROVINCIA,
- '|',f.ID_VALOR,
- '|', IF(2>0,u.ID_DISTRITO,'')
- )AS CHAR CHARACTER SET utf8) AS routeparam
- FROM cnf_valor v
- INNER JOIN fic_rest_param f ON v.ID_VALOR = f.ID_VALOR
- INNER JOIN fic_ficha_ente fi ON f.ID_FICHA = fi.ID_FICHA
- INNER JOIN cnf_ente as ce ON ce.id_ente = fi.id_ente
- INNER JOIN fic_rest_ficha res ON f.ID_FICHA = res.ID_FICHA AND f.ID_REST_FICHA = res.ID_REST_FICHA
- INNER JOIN fic_ubigeo u ON res.ID_UBIGEO_DE = u.ID_DEPARTAMENTO AND res.ID_UBIGEO_PR = u.ID_PROVINCIA
- AND res.ID_UBIGEO_DI = u.ID_DISTRITO
- WHERE v.ID_PARAMETRO='22' AND f.ID_VALOR IN (19, 277, 280, 288, 291, 295, 297, 315, 1017, 1021)
- AND fi.ID_ESTADO='6' AND fi.ID_FICHA_EDITADA=0
- {%ubigeo%}
- AND fi.ID_TIPO_SITE='2'
- GROUP BY f.ID_VALOR"
- guiagps.ubigeoLinkSql ="select CAST(
- CONCAT('|',
- u.TXT_NOMBRE_DEPARTAMENTO,'|',
- u.TXT_NOMBRE_PROVINCIA ,'|',
- '?', '|',
- 'cmbDepartamento=','|',u.ID_DEPARTAMENTO ,'|' ,
- '&cmbProvincia=', '|' ,u.ID_PROVINCIA, '|',
- '&cmbDistrito[]=', '|', IF(u.ID_DISTRITO >0,u.ID_DISTRITO,'')
- ) AS CHAR CHARACTER SET utf8) as routeparam
- from fic_ubigeo as u WHERE u.txt_nombre_departamento is not null
- {%ubigeo%} limit 1"
- guiagps.ubicacion.home = "-- (ubigeo)"
- guiagps.ubicacion.lima = " AND u.ID_DEPARTAMENTO='15' AND u.ID_PROVINCIA='1' "
- guiagps.ubicacion.miraflores = " AND u.ID_DEPARTAMENTO='15' AND u.ID_PROVINCIA='1' AND (IF(IFNULL(2, 0)>0, u.ID_DISTRITO =22, u.ID_PROVINCIA = '1' )) "
- guiagps.ubicacion.san-isidro = " AND u.ID_DEPARTAMENTO='15' AND u.ID_PROVINCIA='1' AND (IF(IFNULL(2, 0)>0, u.ID_DISTRITO =31, u.ID_PROVINCIA = '1' )) "
- guiagps.ubicacion.san-borja = " AND u.ID_DEPARTAMENTO='15' AND u.ID_PROVINCIA='1' AND (IF(IFNULL(2, 0)>0, u.ID_DISTRITO =30, u.ID_PROVINCIA = '1' )) "
- guiagps.ubicacion.san-miguel = " AND u.ID_DEPARTAMENTO='15' AND u.ID_PROVINCIA='1' AND (IF(IFNULL(2, 0)>0, u.ID_DISTRITO =36, u.ID_PROVINCIA = '1' )) "
- guiagps.ubicacion.la-molina = " AND u.ID_DEPARTAMENTO='15' AND u.ID_PROVINCIA='1' AND (IF(IFNULL(2, 0)>0, u.ID_DISTRITO =14, u.ID_PROVINCIA = '1' )) "
- guiagps.ubicacion.santiago-de-surco =" AND u.ID_DEPARTAMENTO='15' AND u.ID_PROVINCIA='1' AND (IF(IFNULL(2, 0)>0, u.ID_DISTRITO =40, u.ID_PROVINCIA = '1' )) "
- guiagps.ubicacion.cercado-de-lima = " AND u.ID_DEPARTAMENTO='15' AND u.ID_PROVINCIA='1' AND (IF(IFNULL(2, 0)>0, u.ID_DISTRITO =1, u.ID_PROVINCIA = '1' )) "
- guiagps.ubicacion.otros-distritos-de-lima = " AND u.ID_DEPARTAMENTO='15'
- AND u.ID_PROVINCIA='1'
- AND u.ID_DISTRITO NOT IN (1,22,31,30,36,14,40) "
- guiagps.ubicacion.callao = " AND u.ID_DEPARTAMENTO='7' AND u.ID_PROVINCIA='1' "
- guiagps.ubicacion.arequipa = " AND u.ID_DEPARTAMENTO='4' AND u.ID_PROVINCIA='1' "
- guiagps.ubicacion.trujillo = " AND u.ID_DEPARTAMENTO='13' AND u.ID_PROVINCIA='1' "
- guiagps.ubicacion.chiclayo = " AND u.ID_DEPARTAMENTO='14' AND u.ID_PROVINCIA='1' "
- guiagps.ubicacion.piura = " AND u.ID_DEPARTAMENTO='20' AND u.ID_PROVINCIA='1' "
- guiagps.ubicacion.otras-ciudades = " AND u.ID_DEPARTAMENTO NOT IN (7,4,13,14,20,15)"
- ;guiagps.totalPublicadosSql = 'SELECT 8323 ;'
- ;guiagps.extralink.0.nombre = 'Promociones'
- ;guiagps.extralink.0.link = '/restaurantes/ofertas_promociones'
- ;guiagps.extralink.0.countsql = 'SELECT 5 ;'
- ;guiagps.extralink.1.nombre = 'Mapa de Restaurantes'
- ;guiagps.extralink.1.link = '/restaurantes/mapa_restaurantes'
- kotear.url = 'http://kotear.pe'
- kotear.nombre = kotear
- kotear.queryStringBusqueda = '/busqueda/?q=%s'
- kotear.ubigeoBaseLinkUrl = '/busqueda/?q&categs=%s'
- kotear.baseLinkUrl = '/busqueda/?q&categs=/%s'
- ;kotear.baseLinksSql = "SELECT 'Animales y Mascotas' as nombre, '217-animales-y-mascotas' as routeparam, 220 as n UNION SELECT 'Antigüedades, Artesanías', '219-antigüedades-arte-y-artesanias', 423 UNION SELECT 'Celulares, Telefonía y Faxes', '237-celulares-telefonia-y-faxes', 3731 UNION SELECT 'Coleccionables y Hobbies', '243-coleccionables-y-hobbies', 2892 {%ubigeo%};"
- kotear.baseLinksSql = "SELECT agr.L1_NOM AS nombre, COUNT(agr.L1) AS n, CONVERT(VARCHAR(6),agr.L1) + '?&ub='+CONVERT(VARCHAR(6),avi.ID_UBIGEO) +'&ubic[]='+CONVERT(VARCHAR(6),avi.ID_UBIGEO) AS routeparam FROM KO_AVISO_CATEGORIA acat INNER JOIN KO_AVISO avi ON avi.ID_AVISO=acat.ID_AVISO AND avi.EST=1 INNER JOIN KO_AGRUPADOR agr ON agr.L1 IN (231,221,237,243,235,208,228,234,226,233,232,244,230,1909, 229,1621,219,247,1381,241,217,3489) AND (acat.ID_CATEGORIA=agr.ID_CATEGORIA) AND avi.FLAG_MODERACION=0 AND FLAG_MODERACION_ADMIN=0 AND FEC_FIN>GETDATE() {%ubigeo%} GROUP BY agr.L1_NOM,agr.L1 , avi.ID_UBIGEO"
- kotear.ubigeoLinkSql ="-- {%ubigeo%} "
- kotear.ubicacion.home = "-- (ubigeo)"
- kotear.ubicacion.lima = " AND avi.ID_UBIGEO = 15 "
- kotear.ubicacion.miraflores = " AND avi.ID_UBIGEO = 15 "
- kotear.ubicacion.san-isidro = " AND avi.ID_UBIGEO = 15 "
- kotear.ubicacion.san-borja = " AND avi.ID_UBIGEO = 15 "
- kotear.ubicacion.san-miguel = " AND avi.ID_UBIGEO = 15 "
- kotear.ubicacion.la-molina = " AND avi.ID_UBIGEO = 15 "
- kotear.ubicacion.santiago-de-surco = " AND avi.ID_UBIGEO = 15 "
- kotear.ubicacion.cercado-de-lima = " AND avi.ID_UBIGEO = 15 "
- kotear.ubicacion.otros-distritos-de-lima = " AND avi.ID_UBIGEO = 15 "
- kotear.ubicacion.callao = " AND avi.ID_UBIGEO = 7 "
- kotear.ubicacion.arequipa = " AND avi.ID_UBIGEO = 4 "
- kotear.ubicacion.trujillo = " AND avi.ID_UBIGEO = 13 "
- kotear.ubicacion.chiclayo = " AND avi.ID_UBIGEO = 14 "
- kotear.ubicacion.piura = " AND avi.ID_UBIGEO = 20 "
- kotear.ubicacion.otras-ciudades = " AND avi.ID_UBIGEO NOT IN (20,14,13,4,7,15) "
- ;kotear.totalPublicadosSql = 'SELECT 8323 -- {%ubigeo%} ;'
- ;kotear.extralink.0.nombre = 'Promociones'
- ;kotear.extralink.0.link = '/restaurantes/ofertas_promociones'
- ;kotear.extralink.0.countsql = 'SELECT 5 -- {%ubigeo%} ;'
- ;kotear.extralink.1.nombre = 'Mapa de Restaurantes'
- ;kotear.extralink.1.link = '/restaurantes/mapa_restaurantes'
- [ubicaciones]
- lima.nombre = "Lima" ; opcional (Si no se define nombre, aplica un ucwords al indice)
- lima.slug = 'lima' ; opcional (Si no se define slug, se toma el indice como slug)
- lima.nodos.miraflores[] =
- lima.nodos.san-isidro[] =
- lima.nodos.santiago-de-surco.nombre = "Santiago de Surco"
- lima.nodos.san-borja[] =
- lima.nodos.san-miguel[] =
- lima.nodos.la-molina[] =
- lima.nodos.cercado-de-lima.nombre = "Cercado de Lima"
- lima.nodos.otros-distritos-de-lima.nombre = "Otros Distritos de Lima"
- callao[] =
- arequipa[] =
- arequipa[] =
- chiclayo[] =
- piura[] =
- trujillo[] =
- otras-ciudades[] =
- [default]
- site = none
- ubicacion = lima
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement