$html = CRM_Utils_Request::retrieve('html', 'Positive', $this, FALSE, 0);
$rss = CRM_Utils_Request::retrieve('rss', 'Positive', $this, FALSE, 0);
+ CRM_Utils_System::setTitle(ts('Current and Upcoming Events'));
+
$info = CRM_Event_BAO_Event::getCompleteInfo($start, $type, $id, $end);
$this->assign('events', $info);
$this->assign('timezone', @date_default_timezone_get());
protected $_eventTitle;
protected $_pager;
-
+
function preProcess() {
$this->_id = CRM_Utils_Request::retrieve('id', 'Integer', $this, TRUE);
$fromClause = "
FROM civicrm_contact
-INNER JOIN civicrm_participant ON civicrm_contact.id = civicrm_participant.contact_id
+INNER JOIN civicrm_participant ON civicrm_contact.id = civicrm_participant.contact_id
INNER JOIN civicrm_event ON civicrm_participant.event_id = civicrm_event.id
";
$object = CRM_Core_DAO::executeQuery($query, $params);
$statusLookup = CRM_Event_PseudoConstant::participantStatus();
while ($object->fetch()) {
+ $status = CRM_Utils_Array::value($object->status_id, $statusLookup);
+ if ($status) {
+ $status = ts($status);
+ }
$row = array(
'id' => $object->contact_id,
'participantID' => $object->participant_id,
'name' => $object->name,
- 'email' => $object->email,
- 'status' => CRM_Utils_Array::value($object->status_id,
- $statusLookup
- ),
+ 'status' => $status,
'date' => $object->register_date,
);
$rows[] = $row;