re-arrange travel report columns
This commit is contained in:
@@ -438,8 +438,8 @@ function booking_report_travel() {
|
||||
//define sorting information with the header
|
||||
//as per http://www.drup-all.com/blog/table-sort-pagination-drupal-7
|
||||
$header = array();
|
||||
$header[] = array('data' => t('Edit'), 'field' => 'nid', 'sort' => 'asc');
|
||||
$header[] = array('data' => t('Name'), 'field' => 'booking_lastname');
|
||||
//$header[] = array('data' => t('Edit'), 'field' => 'nid', 'sort' => 'asc');
|
||||
$header[] = array('data' => t('State'), 'field' => 'booking_state');
|
||||
$header[] = array('data' => t('Transport Type'), 'field' => 'booking_transport_type');
|
||||
$header[] = array('data' => t('Catching train from airport?'), 'field' => 'booking_transport_from_morriset_reqd');
|
||||
@@ -469,10 +469,10 @@ function booking_report_travel() {
|
||||
$this_row = array();
|
||||
|
||||
//define the row for this person
|
||||
$this_row[] = $travel_link = l(t('Travel'), t('node/!id', array('!id' => $person->tid)));
|
||||
//$this_row[] = $travel_link = l(t('Travel'), t('node/!id', array('!id' => $person->tid)));
|
||||
//$this_row[] = l(t('Edit !id', array('!id' => $person->nid)), t('node/!id/edit', array('!id' => $person->nid)));
|
||||
$this_row[] = l(t('!first !last', array('!first' => ucwords($person->booking_firstname), '!last' => ucwords($person->booking_lastname))),
|
||||
t('node/!id', array('!id' => $person->nid))
|
||||
t('node/!id', array('!id' => $person->tid))
|
||||
);
|
||||
$this_row[] = t('!state', array('!state' => $person->booking_state));
|
||||
//$this_row[] = _booking_status_generate($person->booking_status);
|
||||
|
Reference in New Issue
Block a user