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/scripts/customer/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/customer/activity-query-form.phtml
<?php
$objCountry = new Travel_Model_TblCountry();
$country = $objCountry->getCountryList();
$leadDetail = $this->leadDetail;
$roominfojson = json_decode($leadDetail['RoomInfoJson'],true);
//echo $roominfojson;
$TotalPax=0;
$adultPax =0;
$childPax =0;
$infantPax =0;
//echo "<pre>";print_r($roominfojson);echo "</pre>";die;
if(!empty($roominfojson)){
	foreach($roominfojson as $res){
		$TotalPax += @$res['TotalPax'];
		$adultPax += @$res['Adult'];
		$childPax += @$res['Child'];
		$infantPax += @$res['Infant'];
	}
}
$customerId = $this->customerId;
?>
<style>
    .redtxt {
        color:red;
    }
</style> 
<div style="padding-top:20px !important;" id="onWay-tab">
    <!--<form name="PackageSearchForm" id="PackageSearchForm" method="POST" action="/packagesearch/search-result">--> 
   <div class="col-md-12"> 
        <div class="alert alert-danger" style="display: none;">
            <span id="errorMessage">No package found, Try some other criteria or <a onclick="BulidPkg();" style="text-decoration: underline;">Click Here </a>  to Build Your Own Package </span>
            <span id="errorMessage2" style="display:none;">No package found, Try some other criteria or <a onclick="BulidPkg();" style="text-decoration: underline;cursor:pointer;">Click Here </a>  to Build Your Own Package </span>
        </div>
    </div>
    <form name="ActivityQueryForm" id="ActivityQueryForm" method="get"> 
    <input type="hidden" name="TPSysId" id="modify_TPSysId" value="<?php echo isset($leadDetail['TPSysId'])?$leadDetail['TPSysId']:''; ?>">
    <input type="hidden" name="modify_goingfrom" value="<?php echo @$leadDetail['DestinationPlaces']; ?>" id="modify_goingfrom"  />
    <input type="hidden" name="modify_specificdate" value="<?php echo (isset($leadDetail['StartDate']) && ($leadDetail['StartDate']->format('d/m/Y')!='01/01/1900'))?$leadDetail['StartDate']->format('d/m/Y'):''; ?>" id="modify_specificdate"  />
    <input type="hidden" name="modify_totaltravelers" value="<?php echo $TotalPax>0 ? $TotalPax : 2; ?>" id="modify_totaltravelers" />
        <div class="col-md-4">
            <div class="form-group">
                <label><strong>Destination</strong></label>
                <input name="activitysearch_going_f" id="activitysearch_going_f" class="form-control" type="text" placeholder="Destination" value="<?php echo (isset($leadDetail['DestinationPlaces']) && !empty($leadDetail['DestinationPlaces']))?trim($leadDetail['DestinationPlaces']):''; ?>" onkeyup="get_city_autosuggest_country('activitysearch_going_f','activitysearch_going_from','','ContSysId_act');" autocomplete="off" >
                <input type="hidden" id="activitysearch_going_from" name="activitysearch_going_from" value="<?php echo (isset($leadDetail['DestinationPlacesSysId']) && !empty($leadDetail['DestinationPlacesSysId']))?trim($leadDetail['DestinationPlacesSysId']).'__'.trim($leadDetail['DestinationPlaces']):''; ?>"/>      
                <input type="hidden" id="ContSysId_act" name="ContSysId" value=""/>      

            </div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label><strong>Tour Date</strong></label>
                 <span class="redtxt">*</span>
                <div class="input-group ls-group-input">
                    <input class="form-control" placeholder="dd/mm/yy" type="text" name="activitysearch_specific_date" value="<?php echo (isset($leadDetail['StartDate']) && ($leadDetail['StartDate']->format('d/m/Y')!='01/01/1900'))?$leadDetail['StartDate']->format('d/m/Y'):''; ?>" id="activitysearch_specific_date"/>
                    <span class="input-group-addon" onclick="runDatePicker('activitysearch_specific_date');"><i class="fa fa-calendar"></i></span>
                </div>
                <div class="clear"></div></div>
        </div>
        <div class="col-md-4">
            <div class="form-group">
                <label><strong>Nationality</strong></label>
                <span class="redtxt">*</span>
                    <select id="selectNationality" name="selectNationality" class="demo-default select-country" placeholder="Select Nationality">
                    <option value="">Select Nationality</option>
                     <?php  $selectedContId=trim($leadDetail['Countries'])?trim($leadDetail['Countries']):101;
					  foreach ($country as $val){ ?>
                        <option value="<?php echo trim($val['ContId']); ?>" <?php if($val['ContId']==$selectedContId) echo 'selected' ; ?>><?php echo $val['Title'];  ?></option>
                     <?php } ?>
                     </select> 
                <div class="clear"></div></div>
          </div>
        <div class="col-md-12">
        <div class="col-md-4">
            <div class="form-group">
                <label><strong>No. of Pax</strong></label>
                <span class="redtxt">*</span>
                    <select id="totaltravelers_activity" name="totaltravelers_activity" class="demo-default select-country" placeholder="Select">
                        <?php 
                            for($intI=1;$intI<=20;$intI++){ 
                                if($intI == 1  || $intI==$TotalPax){
                                    $selected = 'selected';
                                }else{
                                    $selected = '';
                                }
                        ?>
                        <option value="<?php echo $intI; ?>" <?php echo $selected; ?>><?php echo $intI; ?></option>
                        <?php } ?>
                    </select>
                <div class="clear"></div>
            </div>
        </div>
        
        
        <div class="col-md-2">
            <div class="form-group">
                <label><strong>Adults (18+)</strong></label>
                <span class="redtxt">*</span>
                    <select id="totadlt_activity" name="totadlt_activity" class="demo-default select-country" onchange="totalTravellerActivity();" placeholder="Select">
                        <?php 
                            for($intA=1;$intA<=10;$intA++){ 
                                if($intA == 1  || $intA==$adultPax){
                                    $selected = 'selected';
                                }else{
                                    $selected = '';
                                }
                        ?>
                            <option value="<?php echo $intA; ?>" <?php echo $selected; ?>><?php echo $intA; ?></option>
                        <?php } ?>
                    </select>
                <div class="clear"></div></div>
        </div>
        
        
        <div class="col-md-2">
            <div class="form-group">
                <label><strong>Children (0-12 )</strong></label>
                    <select id="totchld_activity" name="totchld_activity" class="demo-default select-country" onchange="totalTravellerActivity();" placeholder="Select" >
                        <?php 
                            for($intC=0;$intC<=10;$intC++){ 
                                if($intC == 0  || $intC==$childPax){
                                    $selected = 'selected';
                                }else{
                                    $selected = '';
                                }
                        ?>
                        <option value="<?php echo $intC; ?>" <?php echo $selected; ?>><?php echo $intC; ?></option>
                        <?php } ?>
                    </select>
                <div class="clear"></div></div>
        </div>
            
        </div>
        <?php if($leadDetail['RoomInfoJson']==''){
				 $roomArray=array (
									  0 => 
									  array (
										'totalRoom' => 1,
									  ),
									  1 => 
									  array (
										'totalTraveler' => 2,
									  ),
									  2 => 
									  array (
										'totaladult' => 1,
									  ),
									  3 => 
									  array (
										'totalchild' => 1,
									  ),
									  4 => 
									  array (
										'totalinfant' => 0,
									  ),
								); 
								$leadDetail['RoomInfoJson']=json_encode($roomArray);
				 //$[{"totalRoom" : 1},{"totalTraveler" : 2},{"totaladult" : 1},{"totalchild" : 1},{"totalinfant" : 0}] 
				}
			?>
        <div class="clear"></div>
        <div class="col-md-12 publicpagehide" align="right">
          <div class="form-group pull-right">
                <input type="hidden" name="roominfojsonactivity" id="roominfojsonactivity" value="<?php echo @$leadDetail['RoomInfoJson']; ?>" />
                <input type="hidden" name="CustomerSysId" id="CustomerSysId" value="<?php echo $this->customerId; ?>" />
                <input type="hidden" name="editLeadId" id="ActivityEditLeadId" value="<?php echo isset($leadDetail['TPSysId'])?base64_encode($leadDetail['TPSysId']):''; ?>" />
                <span class="alert-danger queryActivityCreated" style="display:none;">Query created</span>
               <?php $displaySaveButton=''; 
			 	$displayOtherButton='none';
			 if($this->IsFromModified==true){ 
			 	$displaySaveButton='none';
				$displayOtherButton='';
			 }
			 if($this->customerId==''){
				 $displaySaveButton='none';
				 $displayOtherButton='';
			 }if(@$leadDetail['TPSysId']!='') {
			 ?>
              <label><input type="checkbox" id="createNewQuery" <?php if(@$leadDetail['StatusType']> 1) { ?> readonly="true" onclick="return false;" <?php } ?> name="createNewQuery" value="<?php echo $leadDetail['TPSysId']; ?>" /><strong>Create a New Query : </strong>
                  
               <input type="hidden"  name="NewQueryLeadHiddenId"  id ="NewQueryLeadHiddenId" value="<?php echo $leadDetail['TPSysId']; ?>" />
               </label>
           <?php } ?>
                <button type="submit"  class="btn btn-warning btn-sm" id="saveActivityQueryButton" name="saveQuery" value="saveQuery"  style="display:<?php echo $displaySaveButton; ?>;">
                <span class="ladda-label">Save Query</span></button>
             	<a onclick="return operationalActivityForm();" class="btn btn btn-default btn-sm ladda-button createOperationActivityButton" style="display:<?php echo $displayOtherButton; ?>;">Request Proposal</a>
                <button type="submit"  class="btn btn-warning btn-sm searchActivityButton"  name="saveSearchQuery" value="saveSearchQuery" style="display:<?php echo $displayOtherButton; ?>;"><span class="ladda-label">Search & Send Activity Proposal</span></button>
             <div class="clear"></div>
            </div>
        </div>
        
        <div class="col-md-12" align="right">
            <div class="clear"></div>
         </div>
    </form>
        <div class="clear"></div>
        <div class="clear"></div>

</div>

<script type="text/javascript">
function operationalActivityForm(){
	var TPSysId = $("#ActivityEditLeadId").val();
	 $.ajax({
        url: '/operation/update-travelplan-for-operational',
       // data: {search_going_to:search_going_to,search_price_range:search_price_range,search_inclusions:search_inclusions,search_theme:search_theme,number_of_traveler:number_of_traveler,customerID:customerID,search_specific_date:search_specific_date,TPSysId:TPSysId,itenaryID:itenaryID,roominfojson:roominfojson},
        data: {'TPSysId':TPSysId},
        method: 'POST',
        dataType: 'json',
        error: function (err) {
            //  alert(err);
        },
        beforeSend: function () {
			$(".createOperationActivityButton").attr('disabled',true);
        },
        success: function (response) {
			if(response.status=='success'){
				$(".createOperationActivityButton").removeAttr('disabled');
			 	window.location = '/operation/package-required/';  
			}
		}
	 });
}

    $(document).ready(function() {
        $("#activitysearch_specific_date").datetimepicker({
            format:'d/m/Y',
            timepicker: false,
            minDate: 0
        });
    });        
    
  
   function totalTravellerActivity() {
        var totaladult = $("#totadlt_activity").val();
        var totalchild = $("#totchld_activity").val();
        var totalinfant = '0';
        var roomlp = 1;
        totaltraveller = parseInt(totaladult) + parseInt(totalchild) + parseInt(totalinfant);
        
        $("#totadlt_activity").val(totaladult);
        $("#totchld_activity").val(totalchild);
        $("#totinfnt_activity").val(totalchild);
       // alert(totaltraveller);
        var roominfojson = '[{"totalRoom" : '+roomlp+'},{"totalTraveler" : '+totaltraveller+'},{"totaladult" : '+totaladult+'},{"totalchild" : '+totalchild+'},{"totalinfant" : '+totalinfant+'}]'
        $("#roominfojsonactivity").val(roominfojson);
        $("#totaltravelers_activity").val(totaltraveller);
        var $select = $("#totaltravelers_activity").selectize();
        var selectize = $select[0].selectize;
        selectize.setValue(totaltraveller);
        
    }
    
    //totalTravellerActivity();
    
 // start : Code is added by Er Amit kumar Dubey on 10 April 2017 at 4:25 PM copied from ranvir singh's code for city
function get_city_autosuggest(inputId , hiddenInputId, countryInputId) {

    $('#'+inputId).typeahead({
        items: 'all',
        source: function(query, process) {
            $('#'+hiddenInputId).val('');
            var countryId   = (countryInputId) ? $("#"+countryInputId).val() : '';
            return $.ajax({
                url: '/buyhotel/autosuggest',
                type: 'post',
                async: true,
                data: {query: query, countryId : countryId},
                dataType: 'json',
                success: function (result) {
                    var resultList = result.map(function (item) {
                        var aItem = {  CityId: item.CityId, label: item.label, CityName: item.CityName};
                        return JSON.stringify(aItem);
                    });
                    return process(resultList);
                }
            });
        },
        sorter: function (items) {          
           var beginswith = [], caseSensitive = [], caseInsensitive = [], item;
            while (aItem = items.shift()) {
                var item = JSON.parse(aItem);
                if (!item.label.toLowerCase().indexOf(this.query.toLowerCase())) beginswith.push(JSON.stringify(item));
                else if (~item.label.indexOf(this.query)) caseSensitive.push(JSON.stringify(item));
                else caseInsensitive.push(JSON.stringify(item));
            }
            return beginswith.concat(caseSensitive, caseInsensitive)
        },
        highlighter: function (obj) {
            var item = JSON.parse(obj);
            var query = this.query.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, '\\$&');
            return item.label.replace(new RegExp('(' + query + ')', 'ig'), function ($1, match) {
                return '<strong>' + match + '</strong>'
            })
        },
        updater: function(item) {
            var item = JSON.parse(item);
            $('#'+hiddenInputId).val(item.CityId + '__' + item.CityName);
            return item.label;
        },
        minLength:2,
//        displayField: 'Title',
    });
}
  
   
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit