row; $customer = $this->customer; VikBooking::getVboApplication()->loadSignaturePad(); $currencysymb = VikBooking::getCurrencySymb(); $nowdf = VikBooking::getDateFormat(true); if ($nowdf == "%d/%m/%Y") { $df = 'd/m/Y'; } elseif ($nowdf == "%m/%d/%Y") { $df = 'm/d/Y'; } else { $df = 'Y/m/d'; } $datesep = VikBooking::getDateSeparator(true); $tmpl = VikRequest::getVar('tmpl'); $prefreshing = VikRequest::getInt('refreshing', '', 'request'); if (count($customer) && !empty($customer['signature'])) { //the signature exists, stop any kind of refresh $prefreshing = 0; } $now_info = getdate(); $today_midnight = mktime(0, 0, 0, $now_info['mon'], $now_info['mday'], $now_info['year']); $colortags = VikBooking::loadBookingsColorTags(); $otachannel = ''; $otachannel_name = ''; $otachannel_bid = ''; $otacurrency = ''; if (!empty($order['channel'])) { $channelparts = explode('_', $order['channel']); $otachannel = array_key_exists(1, $channelparts) && strlen($channelparts[1]) > 0 ? $channelparts[1] : ucwords($channelparts[0]); $otachannel_name = $otachannel; $otachannel_bid = $order['idorderota']; if (strstr($otachannel, '.') !== false) { $otaccparts = explode('.', $otachannel); $otachannel = $otaccparts[0]; } $otacurrency = strlen($order['chcurrency']) > 0 ? $order['chcurrency'] : ''; } ?>