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/index.phtml
<!--Page main section start-->
<section id="min-wrapper" class="active">
<div id="main-content">
<div class="container-fluid">
<div class="row">
    <div class="col-md-12">
        <!--Top header start-->
        <h3 class="ls-top-header">Hotel Per Night Deals</h3>
        <!--Top header end -->

        <!--Top breadcrumb start -->
        <ol class="breadcrumb">
            <li><a href="#"><i class="fa fa-home"></i></a></li>
            <li class="active">My Inventory</li><li class="active">Hotel Per Night Deals</li>
        </ol>
        <!--Top breadcrumb start -->
    </div>
    
    <!--for display message div-->
    <?php if (count($this->messages)) { ?>
    <div class="col-md-12" id="message_hotel_div"> 
        <div class="alert alert-success">
            <button aria-hidden="true" id="hideHotelMessage" class="close" type="button">×</button>
            <?php foreach ($this->messages as $message) {  ?>
                <span id="success-message-box"><?php echo $this->escape($message); ?></span>
            <?php } ?>    
        </div>   
   </div> 
    <?php } ?>
    
</div>
    
<script type="text/javascript">
$("#hideHotelMessage").click( function(){ 
   $("#message_hotel_div").hide(); 
});
</script>    
    
<!-- Main Content Element  Start-->
<div class="row">


<div class="col-md-12">
    
    <?php //echo "<pre>"; print_r($this->searchArr); ?>
    
                            <div class="panel panel-default"> 
                            <div class="panel-heading">
                                    <h3 class="panel-title" onclick="$('.minus').trigger('click')">Search Inventory </h3>
                                    <ul class="panel-control">
                                        <li><a class="minus active" href="javascript:void(0)"><i class="fa fa-angle-down large"></i></a></li>
                                    </ul>
                                </div>                               
                                <div class="panel-body" style="display:none;">
                                    <form name="search" id="search" class="ls_form" role="form" method="post" action="<?php echo $this->baseUrl('hotel'); ?>">
                                        <div class="col-md-4">
                                        <div class="form-group">
                                        <label>Destination</label>
                                        <select id="DestinationId" name="DestinationId" class="demo-default select-country" placeholder="Select Destination" onchange="getSearchInventoryHotel(this.value);">
                                                <option value="0">Select Destination </option>
                                                <?php foreach($this->cityList as $city) { ?>
                                                    <option value="<?php echo $city['CityId'];?>" <?php if(isset($this->searchArr['DestinationId']) && ($city['CityId']==$this->searchArr['DestinationId'])) { echo "Selected"; } ?>><?php echo $city['Title'];?></option>
                                                <?php } ?> 
                                            </select> 
                                        </div>
                                        </div>
                                        
                                        <div class="col-md-4">
                                        <div class="form-group">
                                        <label>Hotel Name</label> <br/>
                                        <div id="select_hotel">
                                        <select id="hotelId" name="hotelId" class="demo-default select-country" placeholder="Select Hotel">
                                            <option value="0">Select Hotel </option>
                                            <?php  foreach($this->inventoryHotelList as $inventory_hotel) { ?>
                                                <option value="<?php echo $inventory_hotel['hotelId'];?>" <?php if(isset($this->searchArr['hotelId']) && ($inventory_hotel['hotelId']==$this->searchArr['hotelId'])) { echo "Selected"; } ?>><?php echo $inventory_hotel['Title'];?></option>
                                            <?php } ?> 
                                        </select> 
                                        </div>    
                                        </div>
                                        </div>
                                        
                                        <div class="col-md-4">
                                        <div class="form-group">
                                        <label>Supplier</label>
                                        <div id="select_supplier1">
                                            <select id="supplierId" name="supplierId" class="demo-default select-country" placeholder="Select Supplier" style="width:320px; height: 35px;">
                                                <option value="0">Select Supplier </option>
                                                <?php foreach($this->supplierList as $supplier) { ?>    
                                                    <option value="<?php echo $supplier['SupplierSysId'];?>" <?php if(isset($this->searchArr['supplierId']) && ($supplier['SupplierSysId']==$this->searchArr['supplierId'])) { echo "Selected"; } ?>><?php echo $supplier['SupplierName'];?></option>
                                                <?php } ?>    
                                            </select>
                                        </div>
                                        </div>
                                        </div>
                                        
                                        <?php
                                        $arrStarRatings = Zend_Controller_Action_HelperBroker::getStaticHelper('Hotel')->getStarRatings();
                                        
                                        ?>
                                        <div class="col-md-2">
                                        <div class="form-group">
                                        <label>Star Rating</label>
                                        <select id="rating" name="rating" class="demo-default select-country" placeholder="Select">
<!--                                                <option value="0">Select Star </option>-->
                                                <?php  
                                                if(!empty($arrStarRatings) ) {
                                                    while ( list($key, $value) = each($arrStarRatings) ) { ?>
                                                        <option value="<?php echo $key; ?>" <?php if((isset($this->searchArr['rating']) && ($key==$this->searchArr['rating']))) { echo "Selected"; } ?>><?php echo $value; ?></option>
                                                    <?php
                                                    }
                                                }
                                                ?>
                                            </select>                     
                                        </div>
                                        </div>
                                        
                                        
                                        
                                        <div class="col-md-4">
                                        <div class="form-group form-group1 flexipadding">
                                            <button type="submit" class="btn btn-info"><i class="fa fa-search"></i> Filter</button>
                                            <button type="button" class="btn btn-info" onclick="window.location.href='<?php echo $this->baseUrl('hotel'); ?>'">Cancel</button>
                                        </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                        
                        
                        
	<div class="col-md-12">    
    
    	<div class="alert alert-info no-padding">            
            <div class="col-md-in-3"><div class="btn ls-light-green-btn fl btn-lg">Total<br />Rooms</div>
            	<div class="status-box-content">
                        <h5 id="income-show"><?php if($this->total_inventory_rooms['total_inventory']>0) { echo $this->total_inventory_rooms['total_inventory']; } else { echo "0"; } ?>  </h5>
                        <div class="margin-tb-line"></div>
                        <p class="lightGreen">
<!--                            <span class="fa fa-inr"></span> -->
                            <?php if(!empty($this->agencyDetails)) { echo $this->agencyDetails['Symbol']; } ?>
                            <?php if($this->total_inventory_cost>0) { echo number_format($this->total_inventory_cost); } else { echo "0"; } ?></p>
                </div>
            </div>
            <div class="col-md-in-3"><div class="btn ls-light-blue-btn fl btn-lg">Total<br />Sold</div>
            	<div class="status-box-content">
                        <h5 id="income-show"><?php if($this->total_inventory_rooms['total_sold_inventory']>0) { echo $this->total_inventory_rooms['total_sold_inventory']; } else { echo "0"; } ?> </h5>
                        <div class="margin-tb-line"></div>
                        <p class="lightGreen">
<!--                            <span class="fa fa-inr"></span> -->
                            <?php if(!empty($this->agencyDetails)) { echo $this->agencyDetails['Symbol']; } ?>
                            <?php if($this->total_inventory_sold_cost>0) { echo number_format($this->total_inventory_sold_cost); } else { echo "0"; } ?></p>
                </div>
            </div>
            <div class="col-md-in-3"><div class="btn btn-success fl btn-lg">Total<br />Unsold</div>
            	<div class="status-box-content">
                	<h5 id="income-show"><?php if($this->total_unsold_inventory_rooms>0) { echo $this->total_unsold_inventory_rooms; } else { echo "0"; } ?> </h5>
                        <div class="margin-tb-line"></div>
                        <p class="lightGreen">
<!--                            <span class="fa fa-inr"></span> -->
                            <?php if(!empty($this->agencyDetails)) { echo $this->agencyDetails['Symbol']; } ?>
                            <?php if($this->total_unsold_inventory_cost>0) { echo number_format($this->total_unsold_inventory_cost); } else { echo "0"; } ?></p>
                </div>
            </div>
            
            <div class="col-md-in-3">Base Currency: <?php if(!empty($this->agencyDetails)) { echo $this->agencyDetails['Symbol']; } ?> </div>
            
<!--            <div class="col-md-in-3"><div class="btn btn-info fl btn-lg">Blocked<br />(Internal)</div>
            	<div class="status-box-content">
                	<h5 id="income-show">9999/  </h5><p class="lightGreen"><span class="fa fa-inr"></span> 2500000</p>
                </div>
            </div>
            <div class="col-md-in-3"><div class="btn ls-red-btn fl btn-lg">Blocked<br />(External)</div>
            	<div class="status-box-content">
                	<h5 id="income-show">9999/  </h5><p class="lightGreen"><span class="fa fa-inr"></span> 2500000</p>
                </div>
            </div>-->
            
        <div class="clear"></div></div>
    </div>
    
    
    
    <div class="col-md-12">
    	<div class="leadeBorder">
        
        	<div class="panel-body">
              <div class="form-group form-group1 text-right">
                 <a href="<?php echo $this->baseUrl('hotel/manage-hotel'); ?>" class="btn btn-default btn-sm"><i class="fa fa-fw fa-arrows"></i> My Hotels</a>
                  <a href="<?php echo $this->baseUrl('hotel/add-hotel-inventory/key/add'); ?>" class="btn btn-default btn-sm"><i class="fa fa-fw fa-arrows"></i> Add Hotel</a>
<!--                  <a href="<?php/// echo $this->baseUrl('hotel'); ?>" class="btn btn-default btn-sm"><i class="fa fa-fw fa-arrows"></i> My Hotel Rates</a>-->
                  <a href="<?php echo $this->baseUrl('hotel/add-hotel-inventory/key/inventory'); ?>" class="btn btn-warning btn-sm"><i class="fa fa-fw fa-arrows"></i> Add Hotel Rates</a>
              </div>                      
                                    
                                <div class="panel-body table-responsive no-padding">
                                  <table class="table table-bordered">
                                      <tr class="alert alert-success">
                                       
                                          <th><strong>Hotel Name</strong></th>
                                          <th><strong>Hotel Source</strong></th>
                                          <th><strong>City</strong></th>
                                          <th><strong>Room Type</strong></th>
                                          <th><strong>From Date</strong></th>
                                          <th><strong>To Date</strong></th>
                                          <th><strong>Supplier</strong></th>
                                          <th colspan="4" class="text-center"><strong>Inventory</strong></th>
                                          <th style="width:130px;"><strong>Action</strong></th>
                                      </tr>
                                      <tr class="alert alert-info">
                                        <td colspan="7">&nbsp;</td>
                                        <td><strong>Total</strong></td>
                                        <td class="text-center"><strong>Sold</strong></td>
                                        <td class="text-center"><strong>Blocked</strong></td>
                                        <td class="text-center"><strong>Available</strong></td>
                                        <td class="text-center">&nbsp;</td>
                                      </tr>
                                      
                                        <?php
                                        
//                                        echo "<pre>";
//                                        print_r($this->paginator);
//                                        exit;
                                        
                                        if( !empty($this->paginator) ) {
                                            foreach($this->paginator as $hotel) 
                                                { //print_r($hotel);
                                                  $objHotel = new Travel_Model_TblHotel();
                                                  $total_inventory = $objHotel->getTotalInventoryByHotelId($hotel['AccomSysId'], $hotel['EconomyType']); 
                                                  $available_inventory = $total_inventory['total_inventory'] - $total_inventory['sold_inventory'];
                                                  
                                                  if($hotel['IsAgentSpec']=='1' && $hotel['IsLocked']=='1')
                                                  {
                                                    $hotel_type = "Manual";
                                                  } else {
                                                    $hotel_type = "Api";  
                                                  }
                                                  //print_r($hotel);
                                        ?>
                                                <tr>
                                                     <td><?php echo $hotel['HotelName']; ?></td>
                                                     <td><?php echo $hotel_type; ?></td>
                                                     <td><?php echo $hotel['CityName']; ?></td>
                                                     <td><?php echo $hotel['RoomType']; echo (!empty($hotel['MealPlanName'])) ? '('.$hotel['MealPlanName'].')' : '' ?></td>
                                                     <td><?php echo $hotel['FromDate']; ?></td>
                                                     <td><?php echo $hotel['ToDate']; ?></td>
                                                     <td><a href="javascript:void(0);" data-toggle="modal" data-target="#myModactpopup" title="View Supplier Details" onclick="GetSupplierInfo('<?php echo $hotel['SupplierSysId']; ?>');"><?php echo $hotel['SupplierName']; ?></a></td>
                                                     <td class="text-center"><?php if($hotel['DailyRoomLimit']>0) { echo $hotel['DailyRoomLimit']; } else { echo "0"; } ?></td>
                                                     <td class="text-center"><?php if($hotel['SoldQty']>0) { echo $hotel['SoldQty']; } else { echo "0"; } ?></td>
                                                     <td class="text-center"><?php echo $hotel['BlockQty']; ?></td>
                                                     <td class="text-center"><?php echo $hotel['DailyRoomLimit'] - $hotel['SoldQty'] ; ?></td>
                                                     <td>
                                                     <?php if($hotel['IsAgentSpec']=='1' && $hotel['IsLocked']=='1') { ?>    
                                                     <a href="<?php echo $this->baseUrl('hotel/view-hotel-inventory/AccomSysId/' . base64_encode($hotel['AccomSysId']) ); ?>" class="btn btn-xs btn-success tooltipLink" title="View"><i class="fa fa-eye"></i></a>
                                                     <?php } ?>
                                                     <a href="<?php echo $this->baseUrl('hotel/add-hotel-inventory/key/edit/id/' . base64_encode($hotel['InvnItemSysId']) ); ?>" class="btn btn-xs btn-warning tooltipLink" title="Edit"><i class="fa fa-pencil-square-o"></i></a>
                                                     <!-- <button class="btn btn-xs btn-danger tooltipLink" data-toggle="tooltip" data-placement="top" title="Copy"><i class="fa fa-copy"></i></button>-->
                                                     <!--  <button class="btn btn-xs btn-danger tooltipLink" data-toggle="tooltip" data-placement="top" title="Stop Sale"><i class="fa fa-stop"></i></button> -->

                                                     <?php if($hotel['IsSaleStart'] == '1') { ?>
                                                         <a href="<?php echo $this->baseUrl("/hotel/stop-sale/id/".base64_encode($hotel['InvnItemSysId'])); ?>" class="btn btn-xs btn-danger tooltipLink" title="Stop Sale"><i class="fa fa-stop"></i></a>
                                                     <?php } else { ?>
                                                         <a href="<?php echo $this->baseUrl("/hotel/start-sale/id/".base64_encode($hotel['InvnItemSysId'])); ?>" class="btn btn-xs ls-green-btn tooltipLink" title="Start Sale"><i class="fa fa-play"></i></a>
                                                     <?php  } ?> 
                                                         
                                                     <?php if($hotel['IsActive'] == '1') { ?>
                                                         <!--<a href="javascript:void(0)" onclick="changeStatus('<?php echo $hotel['AccomSysId']; ?>','0')" class="btn btn-xs ls-green-btn tooltipLink" title="Stop Sale"><i class="fa fa-play"></i></a>-->
                                                     <?php } else { ?>
                                                         <!--<a href="javascript:void(0)" onclick="changeStatus('<?php echo $hotel['AccomSysId']; ?>','1')" class="btn btn-xs btn-danger tooltipLink" title="Activate Sale"><i class="fa fa-stop"></i></a>-->
                                                     <?php  } ?>        
                                                     </td>
                                                 </tr>
                                             <?php               
                                            }
                                        } else { ?>
                                                <tr><td colspan="12">No record found.</td></tr>
                                        <?php }   
                                        ?>
                                     
                                  </table>
                </div>
                                    <!--Table Wrapper Finish-->
                                    
                                    
                                 <div class="panel-box clearfix">
                                    <?php  if( !empty($this->paginator) ) { ?>
                                     <?php echo $this->paginationControl($this->paginator, 'Sliding', 'hotel_inventory_pagination.phtml', array(
        'DestinationId' => @$this->searchArr['DestinationId'],
        'hotelId' => @$this->searchArr['hotelId'],
        'supplierId' => @$this->searchArr['supplierId'],
        'rating' => @$this->searchArr['rating']          
     )); ?>
                                    <?php } ?> 
                                </div>   
                                    
                                    
                                
                            
                            
                            
            </div>
        </div>
    </div>
    
</div>
 <div class="modal fade" id="myModactpopup" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    </div>
<!-- Main Content Element  End-->
</div>
</div>

<?php echo $this->render('copyrightfooter.phtml'); ?>
</section>
<!--Page main section end -->
<?php include_once 'application/views/scripts/newfooter.phtml';?>
<script type="text/javascript" src="<?php echo $this->baseUrl('public/assets/js/jquery.validate.min.js'); ?>"></script>

<script type="text/javascript">
function getSearchInventoryHotel(cityId)
{
    if(cityId!=='0')
    {
        $.ajax({
            url  : '<?php echo $this->baseUrl('/hotel/get-search-inventory-hotel') ?>',
            data : { cityId : cityId},
            type : 'POST',
            dataType : 'html',
            beforeSend : function() {
               //$("#select_hotel").empty();
            },
            success : function(response) {
               $("#select_hotel").html(response);
            }
        });
    } 
} 

function getSupplierHotel(cityId)
{
    if(cityId!=='0')
    {
        $.ajax({
            url  : '<?php echo $this->baseUrl('/hotel/get-search-supplier-hotel') ?>',
            data : { cityId : cityId},
            type : 'POST',
            dataType : 'html',
            beforeSend : function() {
               //$("#select_hotel").empty();
            },
            success : function(response) {
               $("#select_supplier").html(response);
            }
        });
    } 
}

function GetSupplierInfo(suppliersysID) {
    $.ajax({
        url: '/package/supplierinfo/',
        data: {suppliersysID: suppliersysID},
        type: 'POST',
        dataType: 'html',
        error: function () {
        },
        beforeSend: function () {
            var image = "<div class= 'col-md-12' style='text-align: center; top: 150px;'><img id='imgId' src='<?php echo $this->baseUrl('public/images/load3.gif'); ?>'></div>";
            $("#myModactpopup").html(image);
        },
        success: function (response) {
            $("#myModactpopup").show();
            $("#myModactpopup").html(response);

            //alert(response);
        }
    });
}
function closepopup() {
    $("#myModactpopup").hide();
}
</script>    

Youez - 2016 - github.com/yon3zu
LinuXploit