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/SendProposalToB2BCustomer.phtml
<?php
$getcustomerDetails = $this->getcustomerDetail;
$addMarkup = (int) $this->addMarkup;
$flexiPackageList = $this->flexiPackageList;
$AgencyDetails = $this->getAgencyDetail;
$GetCustomerDetail = $this->getcustomerDetail;
$getAgentDetail = $this->getAgentDetail;
$hotelDetails = $this->hotelarr;
//echo '<pre>';print_r($GetCustomerDetail);echo '</pre>';die;
$packageRoomInfoArr = Zend_Controller_Action_HelperBroker::getStaticHelper('Package')->getPackageRoomInfo(@$this->flexiPackageList['RoomInfoJson'], @$this->flexiPackageList['PKqueryType']);
//echo $packageRoomInfoArr['totalPaxOnly'];
$alldetails = strip_tags($packageRoomInfoArr['totalPaxOnly']);
//echo '<pre>';print_r($packageRoomInfoArr);die;
$totalDaysNightsArr = Zend_Controller_Action_HelperBroker::getStaticHelper('Package')->getPackageTotalNoOfDays($this->flexiPackageItenList, $this->flexiPackageList['NoofNight']);
$totalDays = $totalDaysNightsArr['totaldays'];
$totalNight = $totalDaysNightsArr['totalnights'];
if (!empty($this->flexiPackageList)) {
    $citySequenceArr = array();
    for ($h = 0; $h < count($this->flexiPackageItenList); $h++) {
        $flexiPackageCityListArr[$this->flexiPackageItenList[$h]['Cities']][] = $this->flexiPackageItenList[$h]['Sequence'];
        $citySequenceArr[$this->flexiPackageItenList[$h]['Sequence']][] = $this->flexiPackageItenList[$h]['Cities'];
        $cityarr[] = $this->flexiPackageItenList[$h]['Cities'];
    }
}
require_once APPLICATION_PATH . '/../library/Helper/Mobile_Detect.php';
$isMobile = new Mobile_Detect;
$citynamedisplay = Zend_Controller_Action_HelperBroker::getStaticHelper('Package')->getAllDestinationCoveredInPackage($cityarr);
if ($isMobile->isMobile()) {
    $citynamedisplay = wordwrap($citynamedisplay, 50, "<br>\n");
}
$flexiPackageCityListArr = array();
$seqcityarr = array();
$seqcityarrAll = array();
$hotelDetailArrayDayWise = array();
$flexiPackageItenList = $this->flexiPackageItenList;
$objPackage = new Travel_Model_TblPackage();
$objCity = new Travel_Model_TblCity();
for ($h = 0; $h < count($flexiPackageItenList); $h++) {
    $flexiPackageCityListArr[$flexiPackageItenList[$h]['PlaceSysId']][] = @$flexiPackageItenList[$h]['Sequence'];
    $seqcityarr[@$flexiPackageItenList[$h]['Sequence']] = $flexiPackageItenList[$h]['PlaceSysId'];
    $seqcityarrAll[$flexiPackageItenList[$h]['PlaceSysId']] = $flexiPackageItenList[$h]['Cities'];
    $flexipackitendaywisearr[@$flexiPackageItenList[$h]['Sequence']][] = $flexiPackageItenList[$h];
    $itenarywithsequence[@$flexiPackageItenList[$h]['TPIntSysId']]['Sequence'] = @$flexiPackageItenList[$h]['Sequence'];
    $hotelDetailArrayDayWise[$flexiPackageItenList[$h]['TPIntSysId']]['Sequence'] = @$flexiPackageItenList[$h]['Sequence'];
    $hotelDetailArrayDayWise[$flexiPackageItenList[$h]['TPIntSysId']]['AccoSysId'] = 0;
    $hotelDetailArrayDayWise[$flexiPackageItenList[$h]['TPIntSysId']]['XRefCityId'] = $flexiPackageItenList[$h]['PlaceSysId'];
    $hotelDetailArrayDayWise[$flexiPackageItenList[$h]['TPIntSysId']]['Cities'] = $flexiPackageItenList[$h]['Cities'];
}

$wordDocumentDetailsArray = array();
$wordDocumentDetailsArray['PACKAGETITLE'] = stripslashes(str_replace("Package", "", $flexiPackageList['Title']));
$wordDocumentDetailsArray['NIGHTS'] = $totalNight;
$wordDocumentDetailsArray['DAYS'] = $totalDays;
$wordDocumentDetailsArray['INCLUSIONDETAILS'] = $flexiPackageList['inclusionDetails'];
$wordDocumentDetailsArray['AGENCYDETAILS'] = $flexiPackageList['agencyDetails'];
$wordDocumentDetailsArray['TPSYSID'] = $flexiPackageList['TPSysId'];
$wordDocumentDetailsArray['MASTERTPSYSID'] = $flexiPackageList['MasterTPSysId'];
$wordDocumentDetailsArray['PLANBOOKINGID'] = $flexiPackageList['PlanBookingId'];
$wordDocumentDetailsArray['VERSIONID'] = $flexiPackageList['VersionId'];
$wordDocumentDetailsArray['ROOMINFOJSON'] = $flexiPackageList['RoomInfoJson'];
$wordDocumentDetailsArray['CUSTOMERDETAILS']['FIRSTNAME'] = isset($getcustomerDetails[0]['FirstName']) ? stripslashes(trim($getcustomerDetails[0]['FirstName'])) : '';

$bookingTerms = preg_replace('/\s+/', '', @$flexiPackageList['tncDetails'][0]['BookingTerms']);
$WhyUseUs = preg_replace('/\s+/', '', @$flexiPackageList['tncDetails'][0]['WhyUseUs']);
$TravelBasics = preg_replace('/\s+/', '', @$flexiPackageList['tncDetails'][0]['TravelBasics']);
$TermsAndConditions = preg_replace('/\s+/', '', @$flexiPackageList['tncDetails'][0]['TermsAndConditions']);
$CancellationPolicy = preg_replace('/\s+/', '', @$flexiPackageList['tncDetails'][0]['CancellationPolicy']);
//echo $flexiPackageList['PackSpecType'];
//echo "<pre>";print_r($flexiPackageList);
if ($flexiPackageList['PackSpecType'] == 12) {
    $getPlacesoption = $objPackage->GetPlacesOptionInB2B($flexiPackageList['TPSysId']);
    $selectionHotelByOption = array();
    $selectionHotelDestion = array();
    $i = 0;
    $TSys = array();
    foreach ($hotelDetails as $key => $val) {

        $selectionHotelDestion[$val['SeqId']][$val['FromDate']->format("Y-m-d")]['Title'] = $val['cityName'];
        $selectionHotelDestion[$val['SeqId']][$val['FromDate']->format("Y-m-d")]['Hotel'] = $val['HotelName'];
        $selectionHotelDestion[$val['SeqId']][$val['FromDate']->format("Y-m-d")]['TotalCost'] = $val['TotalCost'];
        $selectionHotelDestion[$val['SeqId']][$val['FromDate']->format("Y-m-d")]['XRefCityId'] = $val['XRefCityId'];
        $selectionHotelDestion[$val['SeqId']][$val['FromDate']->format("Y-m-d")]['AccoSysId'] = $val['AccoSysId'];
        $selectionHotelDestion[$val['SeqId']][$val['FromDate']->format("Y-m-d")][$val['XRefCityId']]['Hotel'][$val['AccoSysId']]['mealType'][] = $val['MealPlanType'];
        $selectionHotelDestion[$val['SeqId']][$val['FromDate']->format("Y-m-d")][$val['XRefCityId']]['Hotel'][$val['AccoSysId']]['RoomType'][] = $val['RoomType'];

        $i++;
    }
    $selectionHotelByOption1 = array_values($selectionHotelDestion)[0];
}
$roominfojson = json_decode($flexiPackageList['RoomInfoJson'], 1);
for ($i = 1; $i <= count($roominfojson); $i++) {
    $departuredate = isset($roominfojson[$i]['departuredate']) ? $roominfojson[$i]['departuredate'] : '';
    $returndate = isset($roominfojson[$i]['returndate']) ? $roominfojson[$i]['returndate'] : '';
}
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Package Proposal</title>
        <style type="text/css">

            body {
                margin-left: 0px;
                margin-top: 0px;
                margin-right: 0px;
                margin-bottom: 0px;
            }

        </style></head>

    <body>
        <table width="800" border="0" align="center" cellpadding="0" cellspacing="1">
            <tr style="font-family:Arial, Helvetica, sans-serif;">
                <td valign="top" bgcolor="#FFFFFF" style="border-top:4px solid #666;">
                    <table width="100%" border="0" cellspacing="0" cellpadding="0">

                        <tr>
                            <td height="25" align="left" valign="middle" bgcolor="#f5f5f5" style="border-left:8px solid #666; padding: 5px;">&nbsp;&nbsp;<strong style="font-size:13px; color:#222222;">PACKAGE NAME : <?php echo $this->flexiPackageList['Title']; ?></strong></td>
                        </tr>
                        <tr>
                            <td style="padding:5px 5px;">&nbsp;</td>
                        </tr>

                        <tr>
                            <td><strong style="font-size:25px; color:#222222;">Dear Customer</strong></td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td style="font-size:13px; color:#222222;">My name is <?php echo ($GetCustomerDetail[0]['FirstName']) ? ucfirst($GetCustomerDetail[0]['FirstName']) . ' ' . ucfirst($GetCustomerDetail[0]['LastName']) : ''; ?> 
                                and I will be working with you to plan your trip to <?php echo trim($this->flexiPackageList['DestinationPlaces']); ?>. Please find below details for your trip to <?php echo trim($this->flexiPackageList['DestinationPlaces']); ?>. Please feel free to call me at <?php echo $GetCustomerDetail[0]['Contacts']; ?> .
                            </td>

                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                        </tr>
<!--                        <tr>
                            <td style="font-size:13px; color:#222222;">ffd</td>
                        </tr>-->


                        <tr>
                            <td><table width="100%" border="0" cellspacing="0" cellpadding="5">
                                    <tr>
                                        <td align="left" valign="middle" bgcolor="#ff0000" style="padding:5px;"><span style="font-style: italic"><strong style="font-size:18px; color:#ffffff;">Query Details</strong></span></td>
                                    </tr>
                                    <tr>
                                        <td valign="top" style="font-size:13px; color:#222222;"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                <tr>
                                                    <td width="20%" height="25" align="left" valign="middle" style="padding:5px 0;">#Code</td>
                                                    <td width="30%" height="25" align="left" valign="middle" style="padding:5px 0;"><strong>: <?php echo $this->flexiPackageList['TPSysId']; ?></strong></td>
                                                    <td width="20%" height="25" align="left" valign="middle" style="padding:5px 0;">Total Pax</td>
                                                    <td width="30%" height="25" align="left" valign="middle" style="padding:5px 0;"><strong>: <?php echo $alldetails; ?></strong></td>
                                                </tr>
                                                <tr>
                                                    <td height="25" align="left" valign="middle" style="padding:5px 0;">No. of Nights</td>
                                                    <td height="25" align="left" valign="middle" style="padding:5px 0;"><strong>: <?php echo @$totalNight ?> Nights <?php echo @$totalDays ?> Days</strong></td>
                                                    <td height="25" align="left" valign="middle" style="padding:5px 0;">Destination covered</td>
                                                    <td height="25" align="left" valign="middle" style="padding:5px 0;"><strong>: <?php echo count($cityarr) > 0 ? $citynamedisplay : 'NA'; ?></strong></td>
                                                </tr>
                                                <tr>
                                                    <td height="25" align="left" valign="middle" style="padding:5px 0;">Start Date</td>
                                                    <td height="25" align="left" valign="middle" style="padding:5px 0;"><strong>: <?php echo $departuredate; ?></strong></td>
                                                    <td height="25" align="left" valign="middle" style="padding:5px 0;">End Date</td> 
                                                    <td height="25" align="left" valign="middle" style="padding:5px 0;"><strong>: <?php echo $returndate; ?> </strong></td>
                                                </tr>


                                            </table></td>
                                    </tr>
<!--                                    <tr>
                                        <td height="30" align="center" valign="middle" bgcolor="#f5f5f5" style="font-size:13px; color:#222222;"><strong>CP</strong>-Breakfast Included <strong>MAP</strong>-Breakfast, Lunch/Dinner <strong>AP</strong>-Breakfast, Lunch, Dinner <strong>EP</strong>- Rooms Only.</td>
                                    </tr>-->
                                </table></td>
                        </tr>
                        <tr>
                            <td>&nbsp;</td>
                        </tr>
                        <tr>
                            <td><table width="100%" border="0" cellpadding="7" cellspacing="1" style="padding:5px; border:1px solid #ccc;">
                                    <tr>
                                        <td bgcolor="#ff0000" style="padding:5px;" align="center"><strong style="font-size:14px; color:#ffffff;">Program Details</strong></td>
                                    </tr>

                                    <?php
                                    $ACTmixSS = array();
                                    $newCondArray = array();
                                    for ($z = 1; $z <= $totalDays; $z++) {
                                        $wordDocumentDetailsArray['PROGRAMDETAILS']['DAYS'][$z]['DAY'] = $z;
                                        $daysCityname = '';
                                        if (!empty($citySequenceArr)) {
                                            $daysCityname = implode(' / ', $citySequenceArr[$z]);
                                        }
                                        $wordDocumentDetailsArray['PROGRAMDETAILS']['DAYS'][$z]['DAYCITYNAME'] = $daysCityname;
                                        ?>

                                        <tr>
                                            <td align="left" valign="top" bgcolor="#FFFFFF" style="font-size:13px; color:#222222;"><table width="100%" border="0" cellpadding="5" cellspacing="1">
                                                    <tr>
                                                        <td align="center" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc;"><strong>Day <?php
                                                                if (strlen($z) > 1) {
                                                                    echo $z;
                                                                } else {
                                                                    echo "0" . $z;
                                                                }
                                                                ?> <strong class="orange" style="font-size:16px;color: #FF6600;"><?php
                                                                if (!empty($citySequenceArr)) {
                                                                    echo implode(' / ', $citySequenceArr[$z]);
                                                                }
                                                                ?></strong></strong></td>     
                                                    </tr>
                                                    <?php
                                                    for ($v = 0; $v < count(@$flexipackitendaywisearr[$z]); $v++) {
                                                        if ((@$flexipackitendaywisearr[$z][$v]['Sequence'] >= 2 && @$flexipackitendaywisearr[$z][$v + 1]['Sequence'] == @$flexipackitendaywisearr[$z][$v]['Sequence'])) {
                                                            
                                                        } else {
                                                            //echo '<Pre>'; print_r($flexipackitendaywisearr[$z][$v]['Title']);echo $flexipackitendaywisearr[$z][$v]['Details'].'</Pre>';
                                                            if ((!empty(trim($flexipackitendaywisearr[$z][$v]['Title'])) && strip_tags(trim($flexipackitendaywisearr[$z][$v]['Details'])) != '0') || !empty(trim($flexipackitendaywisearr[$z][$v]['Title'])) || !empty(trim($flexipackitendaywisearr[$z][$v]['Details']))) {

                                                                $wordDocumentDetailsArray['PROGRAMDETAILS']['DAYS'][$z]['ITENARYNAME'] = (!empty(trim($flexipackitendaywisearr[$z][$v]['Title']))) ? @$flexipackitendaywisearr[$z][$v]['Title'] : '';
                                                                $wordDocumentDetailsArray['PROGRAMDETAILS']['DAYS'][$z]['ITENARYDETAILS'] = (!empty(trim($flexipackitendaywisearr[$z][$v]['Details']))) ? @$flexipackitendaywisearr[$z][$v]['Details'] : '';
                                                            }
                                                            ?>
                                                            <tr>
                                                                <td align="left" valign="top" bgcolor="#FFFFFF" style="padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc;">
                                                                    <strong class="orange" style="font-size:16px; color: #FF6600;"><?php echo (!empty(trim($flexipackitendaywisearr[$z][$v]['Title']))) ? @$flexipackitendaywisearr[$z][$v]['Title'] : ''; ?></strong></br>
                                                                    <?php echo (!empty(trim($flexipackitendaywisearr[$z][$v]['Details'])) && trim($flexipackitendaywisearr[$z][$v]['Details']) != '0') ? @$flexipackitendaywisearr[$z][$v]['Details'] : ''; ?> 
                                                                </td>
                                                            </tr>
                                                            <?php
                                                        }
                                                    }
                                                    ?>
                                                </table></td>
                                        </tr>
                                    <?php } ?>
                                    <tr>
                                        <td bgcolor="#ff0000" align="center" style="padding:5px;"><strong style="font-size:14px; color:#ffffff;"><strong>&mdash; Overall Inclusions &mdash;</strong></strong></td>
                                    </tr>


                                    <tr>
                                        <td>
                                            <table width="100%" border="0" cellpadding="0" cellspacing="1" style="padding:5px; border:1px solid #ccc;">

                                                <tr>
                                                    <td bgcolor="#ff0000" style="padding:5px;"><strong style="font-size:14px; color:#ffffff;">Package Option(s)</strong></td>
                                                </tr>
                                                <tr>
                                                    <td bgcolor="#ccc" style="padding:5px;"><table width="100%" border="0" cellspacing="0" style="padding:5px;" cellpadding="0" class="table no-margin">
                                                            <thead>

                                                                <tr>
                                                                    <td class="no-padding removetable " width="25%" align="left" valign="top" bgcolor="#ebecec" style="border-left:1px solid #dddddd; border-right:1px solid #dddddd; color:#000000; font-size:20px;">
                                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table no-margin" style="background:none; padding:5px;">
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td style="color:#000000; font-size:14px; font-weight: bold; text-align: center;" class="no-border">Hotel Cities </td>
                                                                                </tr>
                                                                            </tbody>
                                                                        </table>
                                                                    </td>
                                                                    <?php for ($k = 1; $k <= count($selectionHotelDestion); $k++) { ?>
                                                                        <td class="no-padding removetable " width="25%" align="left" valign="top" bgcolor="#ebecec" style="border-left:1px solid #dddddd; border-right:1px solid #dddddd; color:#000000; font-size:20px;">
                                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table no-margin" style="background:none; padding:5px;">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td style="color:#000000; font-size:14px;  font-weight: bold; text-align:  center;" class="no-border">Option <?php echo $k; ?></td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    <?php } ?>


                                                                </tr>
                                                            </thead>
                                                            <tbody>
                                                                <?php
                                                                $gettransportoption = $objPackage->GetTransPortOptionInB2B($flexiPackageList['TPSysId']);
                                                                $transportCost = 0;
                                                                foreach ($gettransportoption as $transPortValM) {
                                                                    $transportCost = $transportCost + (float) $transPortValM['TotalPrice'];
                                                                }
                                                                foreach ($selectionHotelByOption1 as $dastinationKey => $DestinationValue) {
//                                   echo "<pre>";print_r($DestinationValue);die;
                                                                    ?>

                                                                    <tr>
                                                                        <td class="no-padding removetable " width="25%" align="left" valign="top" bgcolor="#f9f9f9" style="border-left:1px solid #dddddd; border-right:1px solid #dddddd; color:#000000; font-size:20px;">
                                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table no-margin" style="background:none;">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td style="color:#000000; font-size:14px; text-align: center;" class="no-border"><?php echo $DestinationValue['Title']; ?>

                                                                                        </td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>

                                                                        <?php
                                                                        $priceArray = array();
                                                                        $i = 0;
                                                                        foreach ($selectionHotelDestion as $HotelTitle) {
                                                                            ?>
                                                                            <td class="no-padding removetable " width="25%" align="left" valign="top" bgcolor="#f9f9f9" style="border-left:1px solid #dddddd; border-right:1px solid #dddddd; color:#000000; font-size:20px;">
                                                                                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table no-margin" style="background:none;">
                                                                                    <tbody>
                                                                                        <tr>
                                                                                            <?php
                                                                                            //$j = 0; $i=0; foreach ($hotelVal1['Hotel'] as $hotelKey => $HotelTitle) { if($j == 0){
                                                                                            $priceArray[$i] = $HotelTitle[$dastinationKey]['TotalCost'];
                                                                                            ?>
                                                                                            <td style="color:#000000; font-size:14px; text-align: center;" class="no-border"><?php echo $HotelTitle[$dastinationKey]['Hotel']; ?>
                                                                                                <span style="font-size:10px;">
                                                                                                    <?php
                                                                                                    foreach ($DestinationValue[$DestinationValue['XRefCityId']]['Hotel'][$DestinationValue['AccoSysId']]['mealType'] as $mealKey => $mealValue) {
                                                                                                        $RoomValue = $DestinationValue[$DestinationValue['XRefCityId']]['Hotel'][$DestinationValue['AccoSysId']]['RoomType'][$mealKey];
                                                                                                        echo "<br>Room " . ($mealKey + 1) . ' : ';
                                                                                                        $arrayRoomType = unserialize(ROOM_TYPE_DATA);
                                                                                                        foreach ($arrayRoomType as $rKey => $rValue) {
                                                                                                            if ($rKey == $RoomValue) {
                                                                                                                echo $rValue;
                                                                                                            }
                                                                                                        }
                                                                                                        echo " - ";
                                                                                                        $arrayMealType = unserialize(MEAL_TYPE);
                                                                                                        foreach ($arrayMealType as $mKey => $mValue) {
                                                                                                            if ($mKey == $mealValue) {
                                                                                                                echo $mValue;
                                                                                                            }
                                                                                                        }
                                                                                                    }
                                                                                                    ?> 
                                                                                                </span>
                                                                                            </td>

                                                                                        </tr>
                                                                                    </tbody>
                                                                                </table>
                                                                            </td>
                                                                            <?php
                                                                            $i++;
                                                                        }
                                                                        ?>

                                                                    </tr>

                                                                <?php } ?>










                                                                <tr>

                                                                    <td class="no-padding removetable " width="25%" align="left" valign="top" bgcolor="#f9f9f9" style="border-left:1px solid #dddddd; border-right:1px solid #dddddd; color:#000000; font-size:20px;">
                                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table no-margin" style="background:none; padding:5px;">
                                                                            <tbody>
                                                                                <tr>
                                                                                    <td style="color:#000000; font-size:14px;  font-weight: bold; text-align: center;" class="no-border">Total Package Cost(<span style="font-size:12px;">Total Pax : <?php echo $flexiPackageList['MinPax']; ?></span>)</td>
                                                                                </tr>
                                                                            </tbody>
                                                                        </table>
                                                                    </td>

                                                                    <?php for ($k = 1; $k <= count($selectionHotelDestion); $k++) { ?>
                                                                        <td class="no-padding removetable " width="25%" align="left" valign="top" bgcolor="#f9f9f9" style="border-left:1px solid #dddddd; border-right:1px solid #dddddd; color:#000000; font-size:20px;">
                                                                            <table width="100%" border="0" cellspacing="0" cellpadding="0" class="table no-margin" style="background:none; padding:5px;">
                                                                                <tbody>
                                                                                    <tr>
                                                                                        <td style="color:#000000; font-size:14px;  font-weight: bold; text-align: center;" class="no-border">INR <?php
                                                                                            $totalPkgCost = ((float) $priceArray[$k - 1] + (float) $transportCost);
                                                                                            echo (($totalPkgCost + $totalPkgCost * .05) + (int) $addMarkup);
                                                                                            ?> (<span style="font-size:12px;">GST Excluded</span>)</td>
                                                                                    </tr>
                                                                                </tbody>
                                                                            </table>
                                                                        </td>
                                                                    <?php } ?>


                                                                </tr>



                                                                <tr>
                                                                    <td height="15" colspan="2"></td>
                                                                </tr>
                                                            </tbody></table></td>
                                                </tr>
                                                <?php
                                                if (!empty($gettransportoption)) {
                                                    ?>
                                                    <tr>
                                                        <td bgcolor="#ff0000" style="padding:5px;"><strong style="font-size:14px; color:#ffffff;">Available Transport  : -</strong></td>
                                                    </tr>
                                                    <tr>
                                                        <td bgcolor="#fff">
                                                            <table width="100%" border="0" style="padding:5px 8px; font-size:12px; border: solid 1px #ccc; padding: 0px;" cellpadding="0" cellspacing="0">

                                                                <tr>
                                                                    <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">Transport Type</td>
                                                                    <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">From Date</td>
                                                                    <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">From City</td>
                                                                    <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">To Date</td>
                                                                    <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">To City</td>
                                                                    <!--<td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">Price</td>-->
                                                                    <td valign="middle" style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; font-weight: 600;">Action</td>
                                                                </tr>
                                                                <?php foreach ($gettransportoption as $transPortVal) { ?>        
                                                                    <tr>
                                                                        <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; "><?php echo $transPortVal['TransType'] . ' (' . $transPortVal['TransTypeCat'] . ')'; ?></td>
                                                                        <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; "><?php echo $transPortVal['FromDate']->format("d/m/Y"); ?></td>
                                                                        <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; "><?php echo $transPortVal['FromPlace'] ?></td>
                                                                        <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; "><?php echo $transPortVal['ToDate']->format("d/m/Y"); ?></td>
                                                                        <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; "><?php echo $transPortVal['ToPlace'] ?></td>
                                                                        <!--<td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; "><?php echo $transPortVal['TotalPrice'] ?></td>-->

                                                                        <td style="padding:5px 8px; font-size:12px; border-right: solid 1px #ccc; border-bottom: solid 1px #ccc; "><?php echo $transPortVal['Type'] ?></td>
                                                                    </tr>
                                                                <?php } ?>
                                                            </table>

                                                        </td>
                                                    </tr>
                                                <?php } ?>
                                                <tr>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr>  
                                                    <td bgcolor="#FFFFFF" style="padding:5px 0;">
                                                        <table width="100%" border="0" cellpadding="5" cellspacing="4" bordercolor="#CCCCCC" bgcolor="#FFFFFF" style="padding:5px 0;">
                                                            <tr>
                                                                <td align="left" valign="top" bgcolor="#ff0000" style="font-size:12px; color:#ffffff; padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc;border-left:1px solid #ccc;" ><strong>Inclusions</strong></td>
                                                                <td align="left" valign="top" bgcolor="#ff0000" style="font-size:12px; color:#ffffff; padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc;border-left:1px solid #ccc;">Exclusions </td>

                                                            </tr>

                                                            <tr>
                                                                <td align="left" valign="top" style="font-size:12px; color:#565656; padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; border-left:1px solid #ccc;" >
                                                                    <?php
                                                                    $Inclusions = preg_replace('/\s+/', '', @$flexiPackageList['tncDetails'][0]['Inclusions']);
                                                                    $Inclusions = html_entity_decode($Inclusions);
                                                                    if (!empty($Inclusions) && $Inclusions != 'Inclusions') {
                                                                        echo html_entity_decode($flexiPackageList['tncDetails'][0]['Inclusions']);
                                                                        $wordDocumentDetailsArray['INCLUSION'] = stripslashes($flexiPackageList['tncDetails'][0]['Inclusions']);
                                                                    }
                                                                    ?>
                                                                </td>
                                                                <td align="left" valign="top" style="font-size:12px; color:#565656; padding:5px; border-bottom:1px solid #ccc; border-right:1px solid #ccc; border-left:1px solid #ccc;">
                                                                    <?php
                                                                    $Exclusions = preg_replace('/\s+/', '', @$flexiPackageList['tncDetails'][0]['Exclusions']);
                                                                    $Exclusions = html_entity_decode($Exclusions);
                                                                    if (!empty($Exclusions) && $Exclusions != 'Exclusions') {
                                                                        echo html_entity_decode($flexiPackageList['tncDetails'][0]['Exclusions']);
                                                                        $wordDocumentDetailsArray['EXCLUSION'] = stripslashes($flexiPackageList['tncDetails'][0]['Exclusions']);
                                                                    }
                                                                    ?>
                                                                </td>

                                                            </tr>
                                                        </table>
                                                    </td>
                                                </tr>
                                            </table></td>
                                    </tr>

                                    <tr>
                                        <td><table width="100%" border="0" cellpadding="0" cellspacing="1">
                                                <tr>
                                                    <td>&nbsp;</td>
                                                </tr>

                                                <tr>
                                                    <td>&nbsp;</td>
                                                </tr>


                                                <tr>
                                                    <td>&nbsp;</td>
                                                </tr>



                                                <tr>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td><table width="100%" border="0" cellspacing="0" cellpadding="10">
                                                            <tr>
                                                                <td align="left" valign="middle" bgcolor="#f7f7f7" style="border-left:6px solid #666; padding: 5px 0;">&nbsp;&nbsp;<strong style="font-size:13px; color:#444;">BOOKING TERMS</strong></td>
                                                            </tr>
                                                            <tr>
                                                                <td style="font-size:13px; color:#222222; padding: 5px 0;">
                                                                    <?php
                                                                    if (!empty($bookingTerms) && $bookingTerms != 'BookingTerms') {
                                                                        echo html_entity_decode($flexiPackageList['tncDetails'][0]['BookingTerms']);
                                                                        $wordDocumentDetailsArray['BOOKINGTERMS'] = stripslashes($flexiPackageList['tncDetails'][0]['BookingTerms']);
                                                                    }
                                                                    ?>
                                                                </td>
                                                            </tr>
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td><table width="100%" border="0" cellspacing="0" cellpadding="10">
                                                    <!--<tr>
                                                    <td align="left" valign="middle" bgcolor="#f7f7f7" style="border-left:6px solid #666; padding: 5px 0;">&nbsp;&nbsp;<strong style="font-size:13px; color:#444;">WHY USE &mdash; <?php echo isset($flexiPackageList['agencyDetails']['Title']) ? $flexiPackageList['agencyDetails']['Title'] : '' ?>? &mdash;</strong> </td>
                                                    </tr>-->
                                                    <!--<tr>
                                                    <td style="font-size:13px; color:#222222; padding: 5px 0;">
                                                            <?php
//if (!empty($WhyUseUs) && $WhyUseUs != 'WhyUseUs') { 
//    echo html_entity_decode($flexiPackageList['tncDetails'][0]['WhyUseUs']); 
//    $wordDocumentDetailsArray['WHYUSEUS']=stripslashes($flexiPackageList['tncDetails'][0]['WhyUseUs']);
//}
                                                            ?>
                                                    </td>
                                                    </tr>-->
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td>&nbsp;</td>
                                                </tr>

                                                <tr>
                                                    <td><table width="100%" border="0" cellspacing="0" cellpadding="10">
                                                            <tr>
                                                                <td align="left" valign="middle" bgcolor="#f7f7f7" style="border-left:6px solid #666; padding: 5px 0;">&nbsp;&nbsp;<strong style="font-size:13px; color:#444;">TRAVEL BASICS?</strong></td>
                                                            </tr>
                                                            <tr>
                                                                <td style="font-size:13px; color:#222222; padding: 5px 0;">
                                                                    <?php
                                                                    if (!empty($TravelBasics) && $TravelBasics != 'TravelBasics') {
                                                                        echo html_entity_decode($flexiPackageList['tncDetails'][0]['TravelBasics']);
                                                                        $wordDocumentDetailsArray['TRAVELBASICS'] = stripslashes($flexiPackageList['tncDetails'][0]['TravelBasics']);
                                                                    }
                                                                    ?> 
                                                                </td>
                                                            </tr>
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td>&nbsp;</td>
                                                </tr>
                                                <tr>
                                                    <td><table width="100%" border="0" cellspacing="0" cellpadding="10">
                                                            <tr>
                                                                <td align="left" valign="middle" bgcolor="#f7f7f7" style="border-left:6px solid #666; padding: 5px 0;">&nbsp;&nbsp;<strong style="font-size:13px; color:#444;">CANCELLATION POLICY</strong></td>
                                                            </tr>
                                                            <tr>
                                                                <td style="font-size:13px; color:#222222; padding: 5px 0;">
                                                                    <?php
                                                                    if (!empty($CancellationPolicy) && $CancellationPolicy != 'CancellationPolicy') {
                                                                        echo html_entity_decode($flexiPackageList['tncDetails'][0]['CancellationPolicy']);
                                                                        $wordDocumentDetailsArray['CANCELLATIONPOLICY'] = stripslashes($flexiPackageList['tncDetails'][0]['CancellationPolicy']);
                                                                    }
                                                                    ?>
                                                                </td>
                                                            </tr>
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td>&nbsp;</td>
                                                </tr>

                                                <tr>
                                                    <td><table width="100%" border="0" cellspacing="0" cellpadding="10">
                                                            <tr>
                                                                <td align="left" valign="middle" bgcolor="#f7f7f7" style="border-left:6px solid #666; padding: 5px 0;">&nbsp;&nbsp;<strong style="font-size:13px; color:#444;">TERMS AND CONDITIONS</strong></td>
                                                            </tr>
                                                            <tr>
                                                                <td style="font-size:13px; color:#222222; padding: 5px 0;">
                                                                    <?php
                                                                    if (!empty($TermsAndConditions) && $TermsAndConditions != 'TermsAndConditions') {
                                                                        echo html_entity_decode($flexiPackageList['tncDetails'][0]['TermsAndConditions']);
                                                                        $wordDocumentDetailsArray['TERMANDCONDITIONS'] = stripslashes($flexiPackageList['tncDetails'][0]['TermsAndConditions']);
                                                                    }
                                                                    ?>
                                                                </td>
                                                            </tr>
                                                        </table></td>
                                                </tr>
                                                <tr>
                                                    <td>&nbsp;</td>
                                                </tr>



                                                <tr style="font-family:Arial, Helvetica, sans-serif;">
                                                    <td  style="background: #fff;padding:10px 15px ; font-size:12px; line-height:30px; border:1px solid #e6e6e6;">
                                                        <div style="background: #fff;padding:5px 0 ; color:#444; font-size:14px; line-height:20px; ">
                                                            <strong>Feel free reach out to us in case you want any further iterations. </strong>
                                                        </div>
                                                        <div style="padding-bottom:15px; width:100%; clear:both;"></div>

                                                        Your personal trip manager,<br />
                                                        <?php echo ($GetCustomerDetail[0]['FirstName']) ? $GetCustomerDetail[0]['FirstName'] . ' ' . $GetCustomerDetail[0]['LastName'] : 'Agent'; ?><br />
                                                        <?php echo $GetCustomerDetail[0]['Contacts']; ?><br />
                                                        <?php echo html_entity_decode($GetCustomerDetail[0]['Signature']); ?>

                                                    </td>
                                                </tr>

                                                <tr style="font-family:Arial, Helvetica, sans-serif;">
                                                    <td valign="top" bgcolor="#FFFFFF" style="border-top:4px solid #666; background:#f9f9f9;">
                                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                                            <tr>
                                                                <td colspan="2" align="center">
                                                                </td>
                                                            </tr>
                                                            <tr>
                                                                <td style="font-size:11px; "><?= date('Y') ?>  &copy; <?php echo $GetCustomerDetail[0]['AgencyName']; ?> </td>
                                                              <!--    <td style="font-size:11px; " align="right">Technology By: <a href="http://www.hellogtx.com/" target="_blank" style="color:#3b75c9; text-decoration:none">hello<span style="color:#f9655c;">GTX</span></a></td>-->
                                                            </tr>
                                                        </table>




                                                    </td>
                                                </tr>
                                                </tr>
                                        </td>
                                </table>
                            </td>
                        </tr>

                    </table>
                    </body>
                    </html>



Youez - 2016 - github.com/yon3zu
LinuXploit