Example #1
0
 function action_manageRegistrations($convention_id = NULL)
 {
     // Set headers
     $this->template->title = __('Admin: Manage Registrations');
     $this->template->heading = __('Admin: Manage Registrations');
     $this->template->subheading = __('View the list of registrations (per event).');
     // Get the list of conventions and convention id's.
     $crows = ORM::factory('Convention')->find_all()->as_array('id', 'name');
     $convention_id = Controller_Admin::getConventionId($convention_id, $crows);
     // Optional parameters
     $opt_conditions = array('convention_id' => $convention_id);
     $opt_viewAttributes = array('convention_id' => $convention_id, 'crows' => $crows);
     $this->genericManageEntity('Registration', 'Registrations', $opt_conditions, $opt_viewAttributes);
 }