403Webshell
Server IP : 103.234.187.230  /  Your IP : 216.73.216.216
Web Server : Apache
System : Linux lserver42043-ind.megavelocity.net 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
User : apache ( 48)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/html/b2bzend/application/views/emails/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/emails/viewSendSupplierEmail.phtml
<?php 
$ARR_SALUTION = unserialize(ARR_SALUTION);

$StartDateDDD = $this->StartDate->format('Y-m-d');
$startDate = date('D, d M, Y', strtotime($StartDateDDD));
$endDate = date('D, d M, Y', strtotime($StartDateDDD . ' + ' . ($this->totalDays - 1) . ' days'));
$EconomyMask = isset($this->gettplandataforcustomer['EconomyMask']) ? $this->gettplandataforcustomer['EconomyMask'] : 0;
$PackSpecType = isset($this->gettplandataforcustomer['PackSpecType']) ? $this->gettplandataforcustomer['PackSpecType'] : 0;
$RoomInfoJson = isset($this->gettplandataforcustomer['RoomInfoJson']) ? json_decode($this->gettplandataforcustomer['RoomInfoJson'],1) : 0;
$HideBookingDetails = 1;

?>
    <textarea name="SupplierBodyContentTextarea" class="form-control SupplierBodyContentTextarea" id="SupplierBodyContentTextarea">
        <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" style="font-size:14px; font-family: Roboto, sans-serif;">
            <tr>
                <td colspan="2" style="font-size:14px; color:#222; padding:0 0 10px 0;font-family:Arial, Helvetica, sans-serif;">
                    Please confirm the availability for below requirement regarding our Guest.
                </td>
            </tr>
            
            <tr>
                <td colspan="2">
                    <table class="SupplierBodyContentMail" width="100%" border="0" cellspacing="0" cellpadding="0" style="border:0px solid #CCC;">
                        
                        <tr>
                            <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #CCC;">
                                    <tbody>
                                        <tr>
                                            <td colspan="4"  style="border:1px solid #CCC;padding:10px; background-color:#666; font-size:16px; color:#fff; "><span style="color:#ffffff;">Booking Details</span></td>
                                        </tr>
                                         
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Reference No. :</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px;  border:1px solid #CCC;"><?php echo $this->PlanBookingId.'/'.$this->TPSysId;?></td>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><strong style="font-weight:bold;">Status :</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $this->RequestSupplier?></td>
                                            
                                        </tr>
                                        <?php if($HideBookingDetails == 0){ ?> 
                                         <tr>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Guest Name :</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><?php echo $this->CustomerName;?></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Contact No :</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><?php echo $this->CustomerContacts;?></td>
                                        </tr>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">No. of Nights :</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px;  border:1px solid #CCC;"><?php echo $this->NoofNights;?></td> 
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Total Guests :</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><?php echo $this->packageRoomInfoArr['totalPaxOnly'];?></td></td>
                                            
                                        </tr>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><strong style="font-weight:bold;">Start Date :</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $startDate;?></td>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><strong style="font-weight:bold;">End Date :</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $endDate;?></td>
                                        </tr>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><strong style="font-weight:bold;">Services :</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;">Package</td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Destination :</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><?php echo $this->DestinationCity;?></td>
                                            
                                            
                                        </tr>
                                        <?php } ?>
                                    </tbody>
                                </table> 
                            </td>
                        </tr>
                        <?php if(!empty($this->TrevllerDetails)){ ?>
                        <tr><td  colspan="2">&nbsp;</td></tr>
                        <tr>
                            <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #CCC;">
                                    <tbody>
                                        <tr>
                                            <td colspan="9" style="border:1px solid #CCC;padding:7px 10px; background:#666; font-size:16px; color:#FFF; "><span style="color:#ffffff;">Traveller Details</span></td>
                                        </tr>
                                        <tr>
                                            <!--<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Rooms</strong></td>-->
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Pax Type</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Salutation</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">First Name</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Last Name</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Nationality</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Passport No</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Passport Issuance</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Passport Expiry</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">DOB</strong></td> 
                                        </tr> 
                                        <?php foreach($this->TrevllerDetails as $paxKey => $paxValue){ 
                                            if(!empty($paxValue[0]['FirstName'])){ 
            //                                $PassportIssue = new DateTime($paxValue[0]['PassportIssue']['date']->format('Y-m-d'));
            //                                echo "<pre>";print_r($paxValue[0]['PassportIssue']->format('d M Y')); die;
                                            $PassportIssue = $PassportExpiry = $DOB = '--';
                                            if($paxValue[0]['PassportIssue'] != ''){
                                                $PassportIssue = ($paxValue[0]['PassportIssue']->format('Y') > 1900) ? $paxValue[0]['PassportIssue']->format('d M Y') : '--';
                                            }
                                            if($paxValue[0]['PassportExpiry'] != ''){
                                                $PassportExpiry = ($paxValue[0]['PassportExpiry']->format('Y') > 1900) ? $paxValue[0]['PassportExpiry']->format('d M Y') : '--';
                                            }
                                            if($paxValue[0]['DOB'] != ''){
                                                $DOB = ($paxValue[0]['DOB']->format('Y') > 1900) ? $paxValue[0]['DOB']->format('d M Y') : '--';
                                            }
                                            $paxType = 'Adult';
                                            if($paxValue[0]['paxType'] == 2 || $paxValue[0]['paxType'] == 4){
                                                $paxType = 'Child';
                                            }
                                            if($paxValue[0]['paxType'] == 3){
                                                $paxType = 'Infant';
                                            }
                                            ?>
                                            <tr>
                                                <!--<td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;">Room 1</td>-->
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $paxType;?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $ARR_SALUTION[$paxValue[0]['Title']];?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $paxValue[0]['FirstName'];?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $paxValue[0]['LastName'];?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo 'Indian';?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $paxValue[0]['PassportNo'];?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $PassportIssue;?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $PassportExpiry;?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $DOB;?></td>
                                            </tr>
                                        <?php } } ?>


                                    </tbody>
                                </table> 
                            </td>
                        </tr>
                        <?php }  ?>
                        <!--<tr><td  colspan="2">&nbsp;</td></tr>-->
<!--                        <tr>
                            <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="0" style="border:1px solid #CCC;">
                                    <tbody>
                                        <tr>
                                            <td colspan="9" style="border:1px solid #CCC;padding:7px 10px; background:#666; font-size:16px; color:#FFF; ">Services Management</td>
                                        </tr> 
                                    </tbody>
                                </table> 
                            </td>
                        </tr>-->
                        <?php
                        $CustomerTravelPlanAccom = $this->CustomerTravelPlanAccom;
                        
                        if(!empty($CustomerTravelPlanAccom)){
                            $CustomerTravelPlanAccomFinal = $checkHotelDuplicate = array();
                            $cr = 1;
                            foreach ($CustomerTravelPlanAccom as $keyA => $valueIA) { 
                                $hotelDates = $valueIA['FromDate']->format('Y-m-d'); 
                                $CustomerTravelPlanAccomFinal[$hotelDates]['HotelData'] = $valueIA;
                                $RoomDetails = trim($valueIA['RoomName']).' ('.trim($valueIA['MealPlanTypeTitle']).')';
                                $RoomAdult = $valueIA['AdultPax'] + $valueIA['ExtraAdult'] + $valueIA['SingleOAdult'];
                                $RoomChild = $valueIA['ChildPax'] + $valueIA['ChildNoBed'];
                                $RoomExtraPax = $valueIA['ExtraAdult'] + $valueIA['ChildPax'];
                                if(!in_array($hotelDates,$checkHotelDuplicate)){
                                    $cr = 1;
                                }
                                
                                if($EconomyMask == 8){
                                    $RoomPax =  '&nbsp;&nbsp;&nbsp;Room '.$cr.': ';
                                    if($RoomAdult > 1){
                                        $RoomPax .= $RoomAdult.' Adults'; 
                                    }else{
                                        $RoomPax .= $RoomAdult.' Adult'; 
                                    }
                                    if($RoomChild > 0){
                                        $RoomPax .= ', ';
                                    }
                                    if($RoomChild > 1){ 
                                       $RoomPax .= $RoomChild.' Childs'; 
                                    }else if($RoomChild > 0){
                                        $RoomPax .= $RoomChild.' Child'; 
                                    }
                                    if($RoomExtraPax > 0){
                                        $RoomPax .= ' with '.$RoomExtraPax.' Extra Bed';
                                    }
                                    $RoomPax .= '';
                                    $CustomerTravelPlanAccomFinal[$hotelDates]['RoomDetails'][$valueIA['RoomType'].'-'.$valueIA['MealPlanType']]['Room'] = $RoomDetails;
                                    $CustomerTravelPlanAccomFinal[$hotelDates]['RoomDetails'][$valueIA['RoomType'].'-'.$valueIA['MealPlanType']]['Pax'][] = $RoomPax;
                                    
                                    
                                }else{
                                    
                                    $CustomerTravelPlanAccomFinal[$hotelDates]['RoomDetails'][$valueIA['RoomType'].'-'.$valueIA['MealPlanType']]['Room'] = $RoomDetails;
                                    foreach($RoomInfoJson as $rKey => $rValue){ 
                                        $RoomPax =  '&nbsp;&nbsp;&nbsp;Room '.$rKey.': ';
                                        if($rValue['Adult'] > 1){
                                            $RoomPax .= $rValue['Adult'].' Adults'; 
                                        }else{
                                            $RoomPax .= $rValue['Adult'].' Adult'; 
                                        }
                                        if($rValue['Child'] > 0){
                                            $RoomPax .= ', ';
                                        }
                                        if($rValue['Child'] > 1){ 
                                           $RoomPax .= $rValue['Child'].' Childs'; 
                                        }else if($rValue['Child'] > 0){
                                            $RoomPax .= $rValue['Child'].' Child'; 
                                        }
//                                        if($RoomExtraPax > 0){
//                                            $RoomPax .= ' with '.$RoomExtraPax.' Extra Bed';
//                                        }
                                        $RoomPax .= '';
                                        $CustomerTravelPlanAccomFinal[$hotelDates]['RoomDetails'][$valueIA['RoomType'].'-'.$valueIA['MealPlanType']]['Pax'][] = $RoomPax;
                                     
                                    }
                                }
                                
                                
                                $checkHotelDuplicate[] = $hotelDates;
                                $cr++;
                            }
                            
                        //echo "<pre>";print_r($CustomerTravelPlanAccomFinal);die; 
                        ?>
                        <tr><td  colspan="2">&nbsp;</td></tr>
                        <tr>
                            <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #CCC;">
                                    <tbody>
                                        <tr>
                                            <td colspan="9" style="border:1px solid #CCC;padding:7px 10px; background:#666; font-size:16px; color:#FFF; "><span style="color:#ffffff;">Hotels</span></td>
                                        </tr>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 27%;"><strong style="font-weight:bold;">Hotel</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 14%;"><strong style="font-weight:bold;">Dates</strong></td> 
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 10%;"><strong style="font-weight:bold;">Nights</strong></td> 
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 30%;"><strong style="font-weight:bold;">Room & Travellers Details </strong></td> 
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 17%;"><strong style="font-weight:bold;">Confirmation No.</strong></td> 
                                        </tr> 
                                        <?php 
                                        $m = 0;
                                        foreach ($CustomerTravelPlanAccomFinal as $b => $HotelsBySequence) {
                                            $hotelRoomType = '';
                                            $HotelData = $HotelsBySequence['HotelData'];
                                            $RoomDetails = $HotelsBySequence['RoomDetails'];
                                            $ir = 0;
                                            foreach($RoomDetails as $rKey => $rValue){
                                                if($ir > 0){
                                                    $hotelRoomType .= '<br>';
                                                } 
                                                $roomsno = count($rValue['Pax']);
                                                $roomsnoH = ($roomsno > 1) ? $roomsno.' Rooms' : $roomsno.' Room';
                                                $hotelRoomType .= '<b>'.$rValue['Room'].' - '. $roomsnoH .'</b><br> '. implode(' <br>',$rValue['Pax']) ;
                                                $ir++;
                                            }
                                            
                                            //$hotelRoomType = ($HotelsBySequence['RoomTypeStr'] !=  '') ? $HotelsBySequence['RoomTypeStr'] : $HotelsBySequence['RoomName'];
                                            //$RoomMealType = $HotelsBySequence['MealPlanTypeTitle'];
                                            $formDatediff = $HotelData['FromDate']->format('d-M-Y');
                                            $toDatediff = $HotelData['ToDate']->format('d-M-Y');
                                            $differenceIndays = Zend_Controller_Action_HelperBroker::getStaticHelper('DateFormat')->calculateNoOfDays($formDatediff, $toDatediff);
                                            ?>
                                                <tr>
                                                    <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo ucwords(strtolower(stripslashes($HotelData['Title'])));?></td>
                                                    <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $HotelData['FromDate']->format('d-M-Y'); ?> <br/><?php echo $HotelData['ToDate']->format('d-M-Y'); ?></td> 
                                                    <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo ($HotelData['TotalNights'] > 0)? $HotelData['TotalNights'] : $differenceIndays ; ?></td> 
                                                    <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;">
                                                        <!--<strong style="font-weight:bold;">Room 1 : </strong>-->
                                                        <?php 
                                                        echo $hotelRoomType;
                                                        //'3 Rooms – 1 Deluxe(EP) (2A+1C), 2 Standard (EP) (3A+1C , 3A)'
//                                                            echo isset($hotelRoomType) ? $hotelRoomType .(isset($RoomMealType) ?  ' ('.$RoomMealType.')'  : '') : ' '; 
//                                                            echo ', '.$this->packageRoomInfoArr['totalPaxOnly'];
                                                        ?>
                                                        <!--Deluxe Water Villa (CP Plan) 2 Adults, 1 Child(Child with Bed - 6Yr) 1 Infant<br/>-->
                                                        <!---------------------------------------------------------------------------------------->
                                                    </td>
                                                    <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;">_ _ _ _ _ _ _ _ _ _</td> 
                                                </tr>
                                    <?php }  ?> 
                                    </tbody>
                                </table> 
                            </td>
                        </tr>
                        <?php } ?>
                        <?php if(isset($this->getTransportDetail) && !empty($this->getTransportDetail)){ ?>
                        <tr><td  colspan="2">&nbsp;</td></tr>
                        <tr>
                            <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #CCC;">
                                    <tbody>
                                        <tr>
                                            <td colspan="9" style="border:1px solid #CCC;padding:7px 10px; background:#666; font-size:16px; color:#FFF; "><span style="color:#ffffff;">Transfers</span></td>
                                        </tr>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 17%;"><strong style="font-weight:bold;">Pick&nbsp;Up&nbsp;/&nbsp;Drop&nbsp;&nbsp;<br>Date & Time</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 20%;"><strong style="font-weight:bold;">Vehicle Name</strong></td> 
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 19%;"><strong style="font-weight:bold;">Pax/ Vehicle</strong></td> 
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 25%;"><strong style="font-weight:bold;">Pick up & Drop</strong></td>  
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 18%;"><strong style="font-weight:bold;">Confirmation No</strong></td> 
                                        </tr> 
                                        <?php foreach($this->getTransportDetail as $trKey => $trValue){ ?>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo ($trValue['FromDate']) ? $trValue['FromDate']->format('d-M-y') : ''?> to<br> <?php echo ($trValue['FromDate']) ? $trValue['FromDate']->format('d-M-y') : ''?></td> 
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $trValue['Type_Text'];?></td> 
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $this->packageRoomInfoArr['totalPaxOnly'];?> <br> Qty :<?php echo ((int)$trValue['VehicleQty'] > 0) ? $trValue['VehicleQty'] : 'NA';?></td>  
                                            
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo (!empty($trValue['FromPlace'])) ? $trValue['FromPlace'] : $trValue['FromCityTitle']?> to <?php echo (!empty($trValue['ToPlace'])) ? $trValue['ToPlace'] : $trValue['EnCityTitle']?></td> 
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;">_ _ _ _ _ _ _ _ </td> 
                                        </tr>
                                        <?php } ?> 
                                    </tbody>
                                </table> 
                            </td>
                        </tr>
                        <?php } ?>
                        <?php if(isset($this->CustomerTravelPlanSightseeing) && !empty($this->CustomerTravelPlanSightseeing)){ ?>
                        <tr><td  colspan="2">&nbsp;</td></tr>
                        <tr>
                            <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #CCC;">
                                    <tbody>
                                        <tr>
                                            <td colspan="9" style="border:1px solid #CCC;padding:7px 10px; background:#666; font-size:16px; color:#FFF; "><span style="color:#ffffff;">Sightseeing</span></td>
                                        </tr>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width:13%;"><strong style="font-weight:bold;">Date & Time</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width:15%;"><strong style="font-weight:bold;">Destination</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width:20%;"><strong style="font-weight:bold;">Sightseeing/Tour Name </strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width:15%;"><strong style="font-weight:bold;">Pax/ Type</strong></td>  
                                             
                                            <!--<td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">No of pax</strong></td>--> 
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width:20%;"><strong style="font-weight:bold;">Pick up/ Drop location</strong></td> 
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width:17%;"><strong style="font-weight:bold;">Confirmation No</strong></td> 
                                        </tr> 
                                        <?php foreach($this->CustomerTravelPlanSightseeing as $ssKey => $ssValue){
                                            $AdultPax = $ssValue['AdultPax'];
                                            $ChildPax = $ssValue['ChildPax'];
                                            $InfantPax = $ssValue['InfantPax'];
                                            $PaxStr = '';
                                            if($AdultPax > 0){
                                                $PaxStr .= $AdultPax;
                                                if($AdultPax == 1){
                                                    $PaxStr .= ' Adult';
                                                }else{
                                                    $PaxStr .= ' Adults';
                                                }
                                            }
                                            if($ChildPax > 0){
                                                $PaxStr .= ', '.$ChildPax;
                                                if($ChildPax == 1){
                                                    $PaxStr .= ' Kid';
                                                }else{
                                                    $PaxStr .= ' Kids';
                                                }
                                            }
                                            if($InfantPax > 0){
                                                $PaxStr .= ', '.$InfantPax;
                                                if($InfantPax == 1){
                                                    $PaxStr .= ' Infant';
                                                }else{
                                                    $PaxStr .= ' Infants';
                                                }
                                            }
                                            $PriceType = '';
                                            if($ssValue['PriceType'] == 1){
                                                $PriceType =  "(SIC)";
                                            }else if($ssValue['PriceType'] == 2){
                                                $PriceType =  "(PVT)";
                                            }else if($ssValue['PriceType'] == 3){
                                                $PriceType =  "(Entry Only)";
                                            }
                                            $SightseeingDate = date('d/m/Y', strtotime($StartDateDDD . ' + ' . ($ssValue['SeqId'] - 1) . ' days'));
                                            ?>
                                            <tr>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $SightseeingDate?></td> 
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo trim($ssValue['CityTitle']);?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo trim($ssValue['Title']);?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php 
                                                    echo $PaxStr;
                                                    echo $PriceType != '' ? '<br>'.$PriceType : '';
                                                ?></td>
                                                
                                                <!--<td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php // echo $this->packageRoomInfoArr['totalPaxOnly'];?></td>--> 
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $ssValue['PickupLocation'].($ssValue['DropLocation'] != '' ? '<br>-'.$ssValue['DropLocation'] : '');?></td>  
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;">_ _ _ _ _ _ _ _ </td> 
                                            </tr>
                                        <?php } ?> 

                                    </tbody>
                                </table> 
                            </td>
                        </tr> 
                        <?php } ?>
                        <?php if(isset($this->CustomerTravelPlanVisa) && !empty($this->CustomerTravelPlanVisa) && isset($this->TrevllerDetails[0])){ ?>
                            <tr><td  colspan="2">&nbsp;</td></tr>
                            <tr>
                                <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #CCC;">
                                        <tbody>
                                            <tr>
                                                <td colspan="9" style="border:1px solid #CCC;padding:7px 10px; background:#666; font-size:16px; color:#FFF; "><span style="color:#ffffff;">Visa</span></td>
                                            </tr>
                                            <tr>
                                                <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">First Name</strong></td>
                                                <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Last Name</strong></td>
                                                <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Date of Birth</strong></td>  
                                                <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Passport No</strong></td> 
                                                <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Expiry Date</strong></td>  
                                            </tr> 
                                             
                                            <tr>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo isset($this->TrevllerDetails[0][0]['FirstName']) ? $this->TrevllerDetails[0][0]['FirstName'] : ''; ?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo isset($this->TrevllerDetails[0][0]['LastName']) ? $this->TrevllerDetails[0][0]['LastName'] : ''; ?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo isset($this->TrevllerDetails[0][0]['DOB']) ? $this->TrevllerDetails[0][0]['DOB']->format('d-m-Y') : ''; ?></td>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo isset($this->TrevllerDetails[0][0]['PassportNo']) ? $this->TrevllerDetails[0][0]['PassportNo'] : ''; ?></td> 
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo isset($this->TrevllerDetails[0][0]['PassportExpiry']) ? $this->TrevllerDetails[0][0]['PassportExpiry']->format('d-m-Y') : ''; ?></td> 
                                                   
                                            </tr> 
                                        </tbody>
                                    </table> 
                                </td>
                            </tr>
                        <?php } ?>
                        <?php if(isset($this->GetPackageFLightData) && !empty($this->GetPackageFLightData)){ ?>
                        <tr><td  colspan="2">&nbsp;</td></tr>
                        <tr>
                            <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #CCC;">
                                    <tbody>
                                        <tr>
                                            <td colspan="9" style="border:1px solid #CCC;padding:7px 10px; background:#666; font-size:16px; color:#FFF; "><span style="color:#ffffff;">Flight</span></td>
                                        </tr>
                                        <?php if($this->GetPackageFLightData[0]['AirlineSysId'] > 0){ ?>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Departure Airport</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Arrival Airport</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Departure Date</strong></td> 
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Arrival Date</strong></td>  
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Airline Name/ <br/>Number</strong></td>  

                                             
                                        </tr> 
                                        <?php foreach($this->GetPackageFLightData as $flightKey => $flightVal){ 
                                            $flightjsonInfo = json_decode($flightVal['encodedata'], 1);
                                            $depaartureDate = (trim($flightjsonInfo['depaartureDate']) != '') ? DateTime::createFromFormat('d/m/Y', $flightjsonInfo['depaartureDate']) : '';
                                            $depaartureDate = ($depaartureDate != '') ? $depaartureDate->format('d-M-y') : '';
                                            $arrivalDate = (trim($flightjsonInfo['arrivalDate']) != '') ? DateTime::createFromFormat('d/m/Y', $flightjsonInfo['arrivalDate']) : '';
                                            $arrivalDate = ($arrivalDate != '') ? $arrivalDate->format('d-M-y') : '';
                                            if ($flightjsonInfo['stops'] == 0) {
                                                $stp = "Non Stop";
                                            } elseif ($flightjsonInfo['stops'] == 1) {
                                                $stp = "1 Stop";
                                            } elseif ($flightjsonInfo['stops'] == 2) {
                                                $stp = "2 Stop";
                                            } else {
                                                $stp = "3 & More";
                                            }
                                            ?>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $flightjsonInfo['departureCity']; ?></td>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $flightjsonInfo['arrivalCity']; ?></td>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $depaartureDate . "<br>" . $flightjsonInfo['depaartureTime']; ?></td> 
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $arrivalDate . "<br>" . $flightjsonInfo['arrivalTime']; ?></td> 
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $flightjsonInfo['AirlineName'] . '<br>' . $flightjsonInfo['FlightNo']; ?></td>
                                             
                                        </tr> 
                                        <?php } }else{  ?>
                                            <tr>
                                                <td colspan="6" style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $flightjsonInfo['flighttext']; ?></td>
                                            </tr> 

                                        <?php } ?>
                                    </tbody>
                                </table> 
                            </td>
                        </tr>
                        <?php } ?>
                        <?php if(isset($this->CustomerTravelPlanOS) && !empty($this->CustomerTravelPlanOS)){ ?>
                        <tr><td  colspan="2">&nbsp;</td></tr>
                        <tr style="display:none;">
                            <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #CCC;">
                                    <tbody>
                                        <tr>
                                            <td colspan="9" style="border:1px solid #CCC;padding:7px 10px; background:#666; font-size:16px; color:#FFF; "><span style="color:#ffffff;">Others</span></td>
                                        </tr>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Item Name</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;"><strong style="font-weight:bold;">Type</strong></td>
                                        </tr> 
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;">Travel Insurance</td>  
                                            <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;">Insurance</td>  
                                        </tr> 
                                    </tbody>
                                </table> 
                            </td>
                        </tr>
                        <?php } ?>
                        <?php if(isset($this->CustomerTravelPlanMeal) && !empty($this->CustomerTravelPlanMeal)){ ?>
                        <tr><td  colspan="2">&nbsp;</td></tr>
                        <tr style="display:none;">
                            <td colspan="2"><table width="100%" border="0" cellspacing="0" cellpadding="3" style="border:1px solid #CCC;">
                                    <tbody>
                                        <tr>
                                            <td colspan="9" style="border:1px solid #CCC;padding:7px 10px; background:#666; font-size:16px; color:#FFF; "><span style="color:#ffffff;">Meals</span></td>
                                        </tr>
                                        <tr>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 20%;"><strong style="font-weight:bold;">Date</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 20%;"><strong style="font-weight:bold;">Type</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 40%;"><strong style="font-weight:bold;">Detail</strong></td>
                                            <td style="font-size:13px; color:#222; padding:5px; border:1px solid #CCC;width: 17%; "><strong style="font-weight:bold;">Confirmation No</strong></td>
                                        </tr> 
                                        <?php foreach($this->CustomerTravelPlanMeal as $key => $value){ 
                                            $MealDate = date('d/m/Y', strtotime($StartDateDDD . ' + ' . ($value['Sequence'] - 1) . ' days'));
                                            ?>
                                            <tr>
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $MealDate;?></td>  
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $value['ServiceTitle'];?></td>  
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;"><?php echo $value['Comment'];?></td>  
                                                <td style="font-size:13px; color:#222; padding:5px;border:1px solid #CCC;">_ _ _ _ _ _ _ _</td>  
                                            </tr>
                                        <?php } ?>
                                         
                                    </tbody>
                                </table> 
                            </td>
                        </tr>
                        <?php } ?>
                        <tr><td  colspan="2">&nbsp;</td></tr>
                        
                        <tr>
                            <td colspan="2" style="font-size:13px; color:#222; padding:5px;">Regards, <br> </td> 
                        </tr>
                        <?php if ($this->SignatureType == 0 && !empty(trim($this->agFirstName))) { ?> 
                            <tr>
                                <td colspan="2" style="font-size:13px; color:#222; padding:5px;">
                                <?php echo trim($this->agFirstName).' '.trim($this->agLastName);    ?>
                                </td>
                            </tr>
                            <tr>
                                <td colspan="2" style="font-size:13px; color:#222; padding:5px;">
                                <?php echo trim($this->agContactNo1);    ?>
                                </td>
                            </tr>
                            <?php if (!empty(trim($this->Signature))) { ?> 
                                <tr>
                                    <td colspan="2" style="font-size:13px; color:#222; padding:5px;">
                                    <?php echo trim($this->Signature);    ?>
                                    </td>
                                </tr>
                            <?php } ?>   
                        <?php }else { ?>    
                            <tr>
                                <td colspan="2" style="font-size:13px; color:#222; padding:5px;">
                                <?php echo trim($this->Signature);    ?>
                                </td>
                            </tr>
                        <?php }?>      
                            </td> 
                        </tr>
                    </table>
                </td> 
            </tr>
        </table>
    </textarea>


Youez - 2016 - github.com/yon3zu
LinuXploit