403Webshell
Server IP : 94.136.191.34  /  Your IP : 216.73.216.25
Web Server : Apache
System : Linux hostpanel.netbiz.in 5.15.0-130-generic #140-Ubuntu SMP Wed Dec 18 17:59:53 UTC 2024 x86_64
User : omkar.com_6nnuz6y629h ( 10087)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system,proc_open,popen
MySQL : OFF |  cURL : ON |  WGET : OFF |  Perl : OFF |  Python : OFF |  Sudo : OFF |  Pkexec : OFF
Directory :  /var/www/vhosts/omkar.com/httpdocs/application/views/admin/footer_menu/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/omkar.com/httpdocs/application/views/admin/footer_menu/update.php
<div class="row">
	<!-- left column -->
	<div class="col-md-12">
	  <!-- general form elements -->
	  <div class="box box-primary">
		<div class="box-header with-border">
		  <h3 class="box-title"><?php echo $form_title;?></h3>
		</div>
		<!-- /.box-header -->
		<!-- form start -->
		<form class="form-horizontal" autocomplete="off" enctype="multipart/form-data" name="footer_menu" id="footer_menu"  action="<?php echo base_url(); ?>admin/home/save_footer_menu/<?php 
            if (!empty($footer_info)) {
                echo $footer_info['id'];
            }
            ?>" method="post">
			<div class="box-body">
			
				<div class="form-group">
					<label for="menu_name" class="col-sm-2 control-label">Menu Name</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" id="menu_name" name="menu_name" placeholder="Menu Name" value="<?php
                            if (!empty($footer_info)) {
                                echo $footer_info['name'];
                            }
                            ?>" >
                            <span id="name_error"></span>
					</div>
				</div>
				
				<div class="form-group">
					<label for="link" class="col-sm-2 control-label">Link</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" id="link" name="link" placeholder="Link" value="<?php
                            if (!empty($footer_info)) {
                                echo $footer_info['link'];
                            }
                            ?>" >
                            <span id="link_error"></span>
					</div>
				</div>
				
			</div>
			<!-- /.box-body -->
			<div class="box-footer">
				<button type="submit" class="btn btn-info pull-right">Update</button>
			</div>
			<!-- /.box-footer -->
		</form>
	  </div>
    </div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
  <div class="modal-dialog" role="document">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <h4 class="modal-title" id="myModalLabel">Delete</h4>
      </div>
       <div class="modal-body">
	        <p>You are about to delete.</p>
	        <p>Do you want to proceed?</p>
	    </div>
      <div class="modal-footer">
        <button type="button" id="delete" class="btn btn-primary">Yes</button>
        <button type="button" class="btn btn-default" data-dismiss="modal">No</button>
      </div>
    </div>
  </div>
</div>  
<script>
$(document).ready(function(){

	$(document).on('click', '.remove_levels', function (e) {
		var project_id = $(this).attr("project-id");
		var base_url = "<?php echo base_url();?>";
		$(document).on('click', '#delete', function (e) {			
			$(location).attr('href', base_url+'admin/home/delete_amenity/'+project_id)
		});
	});

	$(document).on("submit","#footer_menu",function(){
		  
		var name_error = false;
		var link_error = false;
		var name = $('#menu_name').val();
		var link = $('#link').val();
		  
		if (name == "") {
			$('#name_error').show().html('Please enter menu name');
			name_error = true;
		}else{
			$('#name_error').show().html('');
			name_error = false;
		}
		    
		if (link == "") {
			$('#link_error').show().html('Please enter menu link');
			link_error = true;
		}else{
			$('#link_error').show().html('');
			link_error = false;
		}

		if(!name_error  &&  !link_error ){
			return true;
		}else{
			return false;
		}

	});
});
</script>

Youez - 2016 - github.com/yon3zu
LinuXploit