diff --git a/booking.regn_node.inc b/booking.regn_node.inc index 93e6df1..d0f0e3c 100644 --- a/booking.regn_node.inc +++ b/booking.regn_node.inc @@ -649,44 +649,44 @@ function booking_view($node, $view_mode) { if (variable_get('booking_enable_passport', 1) == 1) { - $rows[] = array(t('Passport Number:'), $node->booking_passport_num); - $rows[] = array(t('Passport Expiry:'), t('!timestamp', array('!timestamp' => _booking_convert_ts($node->booking_passport_expiry_date)->format('d/m/Y')))); - $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('Passport Number:'), $node->booking_passport_num); + $rows[] = array(t('Passport Expiry:'), t('!timestamp', array('!timestamp' => _booking_convert_ts($node->booking_passport_expiry_date)->format('d/m/Y')))); + $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); - //outbound flight - $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:'), - $node->booking_outflight_origin_ts == 0 ? '' : 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:'), - $node->booking_outflight_destination_ts == 0 ? '' : format_date($node->booking_outflight_destination_ts, 'custom', 'd/m/Y H:i') ); - //return flight - $flight_rows[] = array(t('Return Internal Flight Booking Reference:'), $node->booking_rtrnflight_bookingnum); - $flight_rows[] = array(t('Return Internal Flight Number:'), $node->booking_rtrnflight_flightnum); - $flight_rows[] = array(t('Return Internal Flight Origin to Destination:'), $node->booking_rtrnflight_origin); - $flight_rows[] = array(t('Return Internal Flight Departure Time:'), - $node->booking_rtrnflight_origin_ts == 0 ? '' : format_date($node->booking_rtrnflight_origin_ts, 'custom', 'd/m/Y H:i') ); - $flight_rows[] = array(t('Connecting Flight Number:'), $node->booking_rtrnflight_connecting_flightnum); - $flight_rows[] = array(t('Connecting Flight Origin to Destination:'), $node->booking_rtrnflight_destination); - $flight_rows[] = array(t('Return Internal Flight Arrival Time:'), - $node->booking_rtrnflight_destination_ts == 0 ? '' : format_date($node->booking_rtrnflight_destination_ts, 'custom', 'd/m/Y H:i') ); - - //add the flight info to a new section - $flight_heading = t("