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/hotel/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/hotel/individual-hotel-amenities.phtml
<?php if(empty($this->intAccomSysId)) { ?>

    <div class="alert alert-danger" style="margin-top: 30px; margin-bottom: 30px">
            <span id="error-message-box">Please select the Hotel by clicking "Hotel Overview" tab.</span>
        </div>
    </div>


<?php    
}
else { ?>
    
<div class="tab-content tab-border">
        <div class="tab-pane fade in active">  
                                        
                                        <div class="col-md-12 alert alert-info">
                                        	<strong>Hotel Name :</strong> <?php echo $this->strHotelInfo; ?>
                                        </div>
                                            
                                            <?php
                                            if(!empty($this->arrMasterAccomAminities)) {
                                                $intCounter = 0;
                                                //echo "<pre>";  print_r($this->arrSelectedAmenities);
                                                foreach($this->arrMasterAccomAminities as $amenities) { 
                                                    ?>
                                                   <div class="col-md-4">
                                                        <label class="checkbox">
                                                            <input class="icheck-green" type="checkbox" name="amenitiesCheckboxes" value="<?php echo $amenities['AminityId']; ?>"
                                                                   <?php if(in_array($amenities['AminityId'], $this->arrSelectedAmenities)) echo "checked"; ?> >
                                                            <?php echo ucwords($amenities['Title']); ?>
                                                        </label>
                                                    </div>
                                                <?php
                                                $intCounter++;
                                                }
                                            }
                                            ?>
                                         
                                            </div>
    
 
                                            
    <div class="clear"></div>
                                            
        
    
    
</div>
 <div class="col-md-12 no-padding no-margin">
                                            <div class="panel-footer text-right">
                                                <button type="button" class="btn btn-success" onclick="saveAmenities('<?php echo $this->intAccomSysId; ?>')">Save</button>
                                        </div>
                                  		</div>

<?php } ?>
    
    
<script type="text/javascript">
    
    function saveAmenities(AccomSysId) {
        var selectedAmenities = '';
        $('input[name="amenitiesCheckboxes"]:checked').each( function() {
            selectedAmenities += this.value + ',';
        });
        
        selectedAmenities = trimComma(selectedAmenities);
        
        //alert(selectedAmenities);
        
        $.ajax({
            url  : '/hotel/add-hotel-room-amenities',
            data : { AccomSysId: AccomSysId, Amenities : selectedAmenities },
            dataType : 'json',
            type : 'POST',
            error : function() {

            },
            beforeSend : function() {

            },
            success : function(response) {
               showHotelAmenitiesTab();
            }
        });
        
    }
    
</script>    

<?php echo $this->render('commonjs.phtml'); ?>

Youez - 2016 - github.com/yon3zu
LinuXploit