Extra flight fields, improved data import function
This commit is contained in:
@@ -1671,9 +1671,26 @@ function booking_view($node, $view_mode) {
|
||||
$rows[] = array(t('Passport Exact Issued Name:'), $node->booking_passport_issue_name);
|
||||
$rows[] = array(t('Passport Issue Location:'), $node->booking_passport_issue_location);
|
||||
$rows[] = array(t('Destination Country:'), $node->booking_destination_country);
|
||||
$rows[] = array(t('Travel Insurance details:'), $node->booking_travel_insurance);
|
||||
$rows[] = array(t('Internal Flight Outbound:'), $node->booking_internal_flight_outbound);
|
||||
$rows[] = array(t('Internal Flight Returning:'), $node->booking_internal_flight_inbound);
|
||||
$rows[] = array(t('Travel Insurance details:'), $node->booking_travel_insurance);
|
||||
|
||||
$flight_rows[] = array(t('Internal Flight Booking Reference:'), $node->booking_outflight_bookingnum);
|
||||
$flight_rows[] = array(t('Internal Flight Number:'), $node->booking_outflight_flightnum);
|
||||
$flight_rows[] = array(t('Internal Flight Origin to Destination:'), $node->booking_outflight_origin);
|
||||
$flight_rows[] = array(t('Internal Flight Departure Time:'), format_date($node->booking_outflight_origin_ts, 'custom', 'd/m/Y H:i') );
|
||||
$flight_rows[] = array(t('Connecting Flight Number:'), $node->booking_outflight_connecting_flightnum);
|
||||
$flight_rows[] = array(t('Connecting Flight Origin to Destination:'), $node->booking_outflight_destination);
|
||||
$flight_rows[] = array(t('Internal Flight Arrival Time:'), format_date($node->booking_outflight_destination_ts, 'custom', 'd/m/Y H:i') );
|
||||
|
||||
//add the flight info to a new section
|
||||
$flight_heading = t("<h2>Internal Flight Details</h2>");
|
||||
$node->content['flight-heading'] = array(
|
||||
'#markup' => $flight_heading,
|
||||
'#weight' => 2,
|
||||
);
|
||||
$node->content['flight-details'] = array(
|
||||
'#markup' => theme('table', array('header' => $header, 'rows' => $flight_rows)),
|
||||
'#weight' =>2,
|
||||
);
|
||||
}
|
||||
|
||||
$rows[] = array(t('Payment Type Selected:'), t('!amount_paid', array('!amount_paid' => $payment_type)));
|
||||
|
Reference in New Issue
Block a user