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/cancellation.phtml
<?php
$arrMealType = Zend_Controller_Action_HelperBroker::getStaticHelper('Hotel')->getMealType();
$hotelDetails = $this->hotelDetails;
$MaxToDate = $this->MaxToDate;
$RateDeBySessionKey = $RDBS = $this->RateDeBySessionKey;
$cancelDe = $this->CancelDeByItemSysId;
$cancelSubDe = $this->CancelSubDeByItemSysId;
$new_array[$cancelDe[0]['ItemSysId']] = $cancelDe[0]['RoomType'];
//echo '<pre>';
foreach($cancelSubDe as $ckey => $cval) {
    $new_array[$cval['ItemSysId']]=$cval['RoomType'];
}
//print_r($new_array);die;
//print_r($new_array);
//die;

if (empty($MaxToDate)) {
    $MaxToDate = date('Y-m-d 00:00:00');
}

$MaxToDateNext = date("d/m/Y", strtotime("+1 day", strtotime($MaxToDate)));
$MaxToDateNext2 = date("d/m/Y", strtotime("+2 day", strtotime($MaxToDate)));

$RateType = !empty($RateDeBySessionKey[0]['RateType']) ? trim($RateDeBySessionKey[0]['RateType']) : '';
$rr_type = !empty($RateDeBySessionKey[0]['RackCommissionType']) ? ($RateDeBySessionKey[0]['RackCommissionType']) : '';
//echo $MaxToDate; die;
?>
<link rel="stylesheet" href="<?php echo $this->baseUrl('public/assets/css/plugins/summernote.css'); ?>">
<!--Page main section start-->
<style>
    p {
        margin: 5px 0 5px !important;
    }
    .create_table {
        overflow: hidden;
        width:100%;
    }
    .create_table table {
        border-top: solid 1px #CCC;
        border-left: solid 1px #CCC;
    }
    .create_table table td {
        padding:5px 8px;
        vertical-align: middle;
        border-bottom: solid 1px #CCC;
        border-right: solid 1px #CCC;
        font-size:12px;
    }
    .font10 {
        font-size:10px !important;
    }
    .input80 {
        width:60px !important;
        height: 24px !important;
        text-align: right;
    }
    .input50 {
        width:60px !important;
        text-align: right;
    }
    input:focus {
        border:solid 1px;
        border-color:#FF8A8A !important;
    }
</style>
<style>
    .panel-heading .accordion-toggle:after {
        /* symbol for "opening" panels */
        font-family: 'Glyphicons Halflings';  /* essential for enabling glyphicon */
        content: "\e114";    /* adjust as needed, taken from bootstrap.css */
        float: right;        /* adjust as needed */
        color: grey;         /* adjust as needed */
    }
    .panel-heading .accordion-toggle.collapsed:after {
        /* symbol for "collapsed" panels */
        content: "\e080";    /* adjust as needed, taken from bootstrap.css */
    }
</style>
<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="active"><?= !empty($this->hotel_id) ? 'Update Cancellation Policy' : 'Add' ?> </li>
                        <li class="active">Hotel </li><li class="active"><strong><?= !empty($this->hotel_id) ? $hotelDetails['Title'] . '' : 'Add' ?></strong> </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">
                    <div class="leadeBorder2">
                        <div class="panel-body ">
                            <div class="form-group form-group1 text-right query_listing_bg_margin_bottom_15">
                          <!--<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-danger btn-sm"><i class="fa fa-fw fa-arrows"></i> My Hotel</a>
                                <a href="<?php echo $this->baseUrl('accommodation/add-hotels'); ?>" class="btn btn-danger btn-sm"><i class="fa fa-fw fa-arrows"></i> Add Hotel</a>
                                <a href="<?php echo $this->baseUrl('accommodation/inventory'); ?>" class="btn btn-danger 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-danger btn-sm"><i class="fa fa-fw fa-arrows"></i> Add Hotel Rates</a>
                            </div>

                            <div class="panel with-nav-tabs panel-default itenary_top" >

                                <div class="col-md-12">
                                    <div class="mobile_scrolling"> 
                                        <?php if (isset($this->hotel_id) && !empty($this->hotel_id)) { ?> 



                                            <a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!/" pages="addhotel" class="btn btn-danger btn-sm btnpadding">Add Hotel</a> 
                                            <a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!hotelcontact" pages="hotelcontact" class="btn btn-danger btn-sm btnpadding">Hotel Contact</a> 
                                            <a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!hotelfacility" pages="hotelfacility" class="btn btn-danger btn-sm btnpadding">Hotel Facility</a>
                                            <a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!aroundproperty" pages="aroundproperty" class="btn btn-danger btn-sm btnpadding">Around Property</a>
                                            <a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!roomdetails" pages="roomdetails" page="roomdetails" class="btn btn-danger btn-sm btnpadding">Room Details</a>
                                            <a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!tnc" pages="tnc" page="tnc" class="btn btn-danger btn-sm btnpadding">Booking T&C</a> 

                                            <a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!mealplanrates" pages="mealplanrates" page="mealplanrates" class="btn btn-danger btn-sm btnpadding">Meal Plan Rates</a> 
                                            <a data-toggle="tab" href="<?php echo $this->baseUrl('accommodation/rate-card/id'); ?>/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>" arpId="" roomId="" data="<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>" class="btn btn-danger btn-sm btnpadding">Rate Card </a> 
                                            <a href="/accommodation/add-hotels/id/<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>#!promotion" pages="promotion" page="promotion" class="btn btn-danger btn-sm btnpadding">Promotion</a> 
                                            <a href="<?php echo $this->baseUrl('/accommodation/transport-rate-card/id/'.$this->hotel_id); ?>" pages="promotion" page="promotion" class="btn btn-danger btn-sm btnpadding">Transfer & Taxes</a>
                                            <a href="javascript://" class="btn btn-warning btn-sm btnpadding" arpId="" roomId="" data="<?= !empty($this->hotel_id) ? $this->hotel_id : '' ?>" pages="hotelcontact">Cancellation Policy</a> 

                                        <?php } else { ?> 
                                            <div class="">
                                                <h3 class="panel-title">Add Hotel</h3>
                                            </div> 
                                        <?php } ?>
                                    </div> 
                                </div> 
                                <div class="clear"></div>

                                <div class="" id="preview_pre" style="min-height:300px; ">
                                    <div class="tab-content" id="preview" >
                                        <form name="" id="cancellation" action="<?php echo $this->baseUrl('accommodation/addcalcellation'); ?>" method="post" enctype="multipart/form-data"> 
                                            <?php if (!empty($this->hotel_id)) { ?>
                                                <input type="hidden" name="update_hotel_id" id="update_hotel_id" value="<?= $this->hotel_id ?>"> 
                                            <?php } ?>
                                            <?php if(isset($cancelDe) && !empty($cancelDe)){ foreach($cancelDe as $cdkey => $cdvalue){  ?>
                                                <input type="hidden" name="RoomCancelSysId[<?php echo $cdvalue['ItemSysId'];?>][]" value="<?= (isset($cdvalue['RoomCancelSysId']) && !empty($cdvalue['RoomCancelSysId']) ? $cdvalue['RoomCancelSysId'] : '') ?>" >
                                            <?php } } ?>
                                            <?php if(isset($cancelSubDe) && !empty($cancelSubDe)){ foreach($cancelSubDe as $cdkey => $cdvalue){  ?>
                                                <input type="hidden" name="RoomCancelSysId[<?php echo $cdvalue['ItemSysId'];?>][]" value="<?= (isset($cdvalue['RoomCancelSysId']) && !empty($cdvalue['RoomCancelSysId']) ? $cdvalue['RoomCancelSysId'] : '') ?>" >
                                            <?php } } ?>
                                            
                                            <div class="tab-pane fade active in" id="tab1default">
                                                <div class="ls-editable-table table-responsive ls-table">

                                                    <table class="table table-bordered">
                                                        <tr>
                                                            <td colspan="6">
                                                                <div class="create_table" id="create_table">
                                                                    <table width="100%" border="0" id="RowsGroupFacility">

                                                                        <tr>
                                                                            <td width="17%">Room Type</td>
                                                                            <td width="11%">
                                                                                <?php $roomNameArray = array();
                                                                                if (!empty($cancelDe)) { ?>
                                                                                    <div style="display:none;">
                                                                                        <select id="room_type" name="room_type[]" class="select-country" multiple="" >
                                                                                            <?php foreach($new_array as $nk => $nv){ $roomNameArray[] = $nv; ?> 
                                                                                                <option value="<?php echo $nk; ?>" selected ><?= (isset($nv) && !empty($nv) ? $nv : '') ?></option>
                                                                                            <?php }?>  

                                                                                        </select>
                                                                                    </div>
                                                                                <?php echo implode(', ',$roomNameArray);?>
                                                                                <?php } else { ?>
                                                                                    <select id="room_type" name="room_type[]" class="select-country" multiple="" style="display:none1;">
                                                                                        <option value="">Select Room(s)</option>
                                                                                        <?php if (!empty($this->roomDetailsList)) {
                                                                                            foreach ($this->roomDetailsList as $key => $rooms) {
                                                                                                ?>
                                                                                                <option value="<?php echo $rooms['room']['ItemSysId']; ?>" <?php if (isset($cancelDe[0]['ItemSysId']) && trim($cancelDe[0]['ItemSysId']) == $rooms['room']['ItemSysId']) {
                                                                                        echo "selected";
                                                                                    } ?>><?php echo $rooms['room']['RoomType']; ?></option>
                                                                                                <?php
                                                                                            }
                                                                                        }
                                                                                        ?>   
                                                                                    </select> 
<?php } ?>
                                                                            </td>
                                                                            <td width="12%">&nbsp;</td>
                                                                            <td width="52%">&nbsp;</td>
                                                                            <td>&nbsp;</td>
                                                                        </tr>

                                                                        <tr>
                                                                            <td>Cancellation Before Check in:</td>
                                                                            <td><input type="text" name="before_days[]" id="" placeholder="Enter Days" value="<?= (isset($cancelDe[0]['ChBeforeDays']) && !empty($cancelDe[0]['ChBeforeDays']) ? $cancelDe[0]['ChBeforeDays'] : '') ?>" class="" > </td>
                                                                            <td>100% Refund <input type="hidden" name="value_type[]" id="per_value0" value="1" class="" ></td>
                                                                            <td><input type="hidden" name="per_value[]" id="per_value0" placeholder="Enter value" value="0" class="" ></td>
                                                                            <td>&nbsp;</td>
                                                                        </tr>

                                                                        <tr>
                                                                            <td>Cancellation Before Check in:</td>
                                                                            <td><input type="text" name="before_days[]" id="" placeholder="Enter Days" value="<?= (isset($cancelDe[1]['ChBeforeDays']) && !empty($cancelDe[1]['ChBeforeDays']) ? $cancelDe[1]['ChBeforeDays'] : '') ?>" class="" > </td>
                                                                            <td>No Refund <input type="hidden" name="value_type[]" id="per_value1" value="1" class="" ></td>
                                                                            <td><input type="hidden" name="per_value[]" id="per_value1" placeholder="Enter value" value="100" class="" ></td>
                                                                            <td>&nbsp;</td>
                                                                        </tr>

                                                                        <tr id="Row">
                                                                            <td>Cancellation Before Check in:</td>
                                                                            <td><input type="text" name="before_days[]" id="before_days2" placeholder="Enter Days" value="<?= (isset($cancelDe[2]['ChBeforeDays']) && !empty($cancelDe[2]['ChBeforeDays']) ? $cancelDe[2]['ChBeforeDays'] : '') ?>" class="" ></td>
                                                                            <td><select name="value_type[]" style="height: 23px;" id="value_type2" >
                                                                                    <option value="1">In Percentage %</option>
                                                                                </select>
                                                                            </td>
                                                                            <td> <input type="text" name="per_value[]" id="per_value2" placeholder="Enter value" value="<?= (isset($cancelDe[2]['Charge']) && !empty($cancelDe[2]['Charge']) ? $cancelDe[2]['Charge'] + '0' : '') ?>" class="" ></td>
                                                                            <td align="center">&nbsp; </td>
                                                                        </tr>
<?php if ($cancelDe) {
    for ($i = 3; $i < count($cancelDe); $i++) { ?>
                                                                                <tr id="Row<?= $i ?>">
                                                                                    <td>Cancellation Before Check in: <input type="hidden" id="RoomCancelSysId<?= $i ?>" name="RoomCancelSysId[<?php echo $cancelDe[$i]['ItemSysId'];?>][]" value="<?= (isset($cancelDe[$i]['RoomCancelSysId']) && !empty($cancelDe[$i]['RoomCancelSysId']) ? $cancelDe[$i]['RoomCancelSysId'] : '') ?>" ></td>
                                                                                    <td><input type="text" name="before_days[]" id="before_days2" placeholder="Enter Days" value="<?= (isset($cancelDe[$i]['ChBeforeDays']) && !empty($cancelDe[$i]['ChBeforeDays']) ? $cancelDe[$i]['ChBeforeDays'] : '') ?>" class="" ></td>
                                                                                    <td><select name="value_type[]" style="height: 23px;" id="value_type2" >
                                                                                            <option value="1">In Percentage %</option>
                                                                                        </select>
                                                                                    </td>
                                                                                    <td> <input type="text" name="per_value[]" id="per_value2" placeholder="Enter value" value="<?= (isset($cancelDe[$i]['Charge']) && !empty($cancelDe[$i]['Charge']) ? $cancelDe[$i]['Charge'] + '0' : '') ?>" class="" ></td>
                                                                                    <td><span index="<?= $i ?>" arpId="<?= $cancelDe[$i]['RoomCancelSysId'] ?>" hotel="<?= $cancelDe[$i]['Accosysid'] ?>" room="<?= $cancelDe[$i]['ItemSysId'] ?>" class="deletecancellation btn btn-xs btn-danger">Remove</span></td>
                                                                                </tr>
    <?php }
} ?>
                                                                    </table>
                                                                    <table width="100%" border="0" class="table">
                                                                        <tr>
                                                                            <td align="right"><span class="add btn btn-xs btn-success" id="addButtonFacility">Add More</span></td>
                                                                        </tr>
                                                                    </table>
                                                                </div>
                                                            </td>
                                                        </tr>
                            <!--                            <tr>
                                                            <td colspan="6">&nbsp;</td>
                                                        </tr>-->
                                                         
                                                        <tr>
                                                            <td colspan="6">Remarks</td>
                                                        </tr>

                                                        <tr>
                                                            <td colspan="6"><textarea class="input-block-level" id="remarks" class="summernote" name="remarks"><?= (isset($cancelDe[0]['Remarks']) && !empty($cancelDe[0]['Remarks']) ? $cancelDe[0]['Remarks'] : '') ?></textarea></td>
                                                        </tr>

                                                    </table>
                                                </div>
                                            </div>

                                            <div class=" ">
                                                <div class="panel-footer text-right">
                                                    <div id="message__yes"></div>
                                                    <a href="<?php echo $this->baseUrl('accommodation/manage'); ?>" class="btn btn-primarygray btn-sm">Cancel</a>
                                                    <button type="submit" class="btn btn-primary saveaction" >Save</button>

                                                </div>
                                            </div>
                                        </form>
                                    </div>

                                </div>


                            </div>

                            <div class="col-md-12 not-padding-mobile no-padding">
                                <div class="ls-editable-table table-responsive ls-table"><!--id="ls-editable-table"-->
                                    <table class="table tablestyle table-bottomless" >
                                        <thead>
                                            <tr  class="alert alert-graylight">
                                                <th><strong>Room</strong></th>
                                                <th width="48"><strong>Action</strong></th>
                                            </tr>
                                        </thead>
<?php
if ($this->cancellationList) {
    $ItemSysId = [];
    foreach ($this->cancellationList as $values) {
        $ItemSysId[] = $values['ItemSysId'];
        ?>
                                                <tr>
                                                    <td><?php echo implode(', ',$values['RoomType']); ?></td>
                                                    <td>
                                                        <a class="view_text1 tooltipLink" href="<?php echo $this->baseUrl('accommodation/cancellation/id/' . $this->hotel_id . '/Item/' . $values['ItemSysId'] . ''); ?>" title="update"><i class="fa fa-pencil-square-o"></i></a>

                                                    </td>
                                                </tr>
        <?php
    }
}
//echo json_encode(array('roomId'=>$ItemSysId));
?>
                                        </tbody>
                                    </table>
                                    <input type="hidden" id="RoomsId" name="" value='<?= (isset($ItemSysId) && !empty($ItemSysId) ? json_encode($ItemSysId) : json_encode(['0'])) ?>' >
                                </div>


                            </div>
                            <div class="clear"></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'; ?>
<link href="<?php echo $this->baseUrl('public/notify/dist/styles/metro/notify-metro.css'); ?>" rel="stylesheet" />
<script type="text/javascript" src="<?php echo $this->baseUrl('public/assets/js/jquery.validate.min.js'); ?>"></script>

<script src="<?php echo $this->baseUrl('public/assets/js/summernote.min.js'); ?>"></script>
<script src="<?php echo $this->baseUrl('public/assets/js/pages/editor.js'); ?>"></script>

<script src="<?php echo $this->baseUrl('public/notify/dist/notify.js'); ?>"></script>
<script src="<?php echo $this->baseUrl('public/notify/dist/styles/metro/notify-metro.js'); ?>"></script>
<script src="<?php echo $this->baseUrl('public/js/hotel/accommodation.js'); ?>"></script>
<?php //echo $MaxToDateNext;die; ?>
<script type="text/javascript">
                $(document).ready(function () {
                    $('#remarks, #booking_tc').summernote({
                        height: "100px"
                    });


                    var counter = 0;
                    $("#addButtonFacility").click(function () {
                        var newTextBoxTr = $(document.createElement('tr')).attr("id", 'Row' + counter);
                        newTextBoxTr.after().html('<td>Cancellation Before Check in:</td>' +
                                '<td><input type="text" name="before_days[]" id=before_days"' + counter + '" placeholder="Enter Days" value="" class="" ></td>' +
                                '<td><select name="value_type[]" style="height: 23px;" id="value_type' + counter + '" >' +
                                ' <option value="1">In Percentage %</option>' +
                                ' </select></td>' +
                                '<td> <input type="text" name="per_value[]" id="per_value' + counter + '" placeholder="Enter value" value="" class="" ></td><td><span class="removeButtontwo btn btn-xs btn-danger">Remove</span></td>');
                        newTextBoxTr.appendTo("#RowsGroupFacility");
                        counter++;
                    });
                    $("#RowsGroupFacility").on('click', '.removeButtontwo', function () {
                        $(this).parent().parent().remove();
                    });

                });






</script>    

Youez - 2016 - github.com/yon3zu
LinuXploit