Commit 1ff9df63 authored by Francesco Iannuzzelli's avatar Francesco Iannuzzelli

Clean-up

parent f205ffcf
......@@ -651,26 +651,6 @@ class Events
return $db->QueryExe($rows, $sqlstr,true);
}
public function SearchProvince( $id_prov )
{
$rows = array();
$gjoin = $this->geo->GeoJoin("e.id_geo",true);
$db =& Db::globaldb();
$sqlstr = "SELECT UNIX_TIMESTAMP(e.start_date) AS start_date_ts,e.id_event,
e.title,e.place,e.place_details,e.length,e.jump_to_article,e.id_article,e.has_image,e.image_ratio,
e.contact_name,e.email,e.link,e.phone,e.description,
e.allday,e.id_topic,e.id_group,e.is_html,e.latitude,e.longitude,
UNIX_TIMESTAMP(end_date) AS end_date_ts,e.portal,e.facebook_id,e.address,
'event' AS item_type,evt.type,pr.pr AS geo_name,e.approved
FROM events e
INNER JOIN event_types evt ON e.id_event_type=evt.id_event_type
$gjoin[join]
WHERE e.approved=1 AND e.id_geo=$id_prov AND e.start_date>=DATE_SUB(curdate(), INTERVAL 1 MONTH)
ORDER BY e.start_date DESC ";
$db->QueryExe($rows, $sqlstr);
return $rows;
}
/**
* Events submitted by a specific person
* (only approved ones)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment