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/admin05apr2019/manage_testimonials/

Upload File :
current_dir [ Writeable] document_root [ Writeable]

 

Command :


[ Back ]     

Current File : /var/www/vhosts/omkar.com/httpdocs/application/views/admin05apr2019/manage_testimonials/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">Testimonial Add/Update</h3>
		<!-- /.box-header -->
		<!-- form start -->
		<form  method="post" class="form-horizontal" autocomplete="off" enctype="multipart/form-data" name="project_banners" id="project_banners"  action="<?php echo base_url(); ?>admin/home/save_testimonial/<?php 
            if (!empty($testimonial)) {
                echo '/'.$testimonial['id'];
            }
            ?>" method="post">
			<div class="box-body">
				<?php if($this->session->flashdata('project_success_msg')!=""){ ?>
				<div class="alert alert-success alert-dismissible">
	                <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
	                <?php echo $this->session->flashdata('project_success_msg');?>
                </div>
                <?php } ?>
                <div class="form-group">
			        <label class="col-sm-2 control-label">Page Name</label>
			        <div class="col-sm-10">
				        <select class="form-control select2" id="page_name" name="page_name">
				          <option value="">Select Page Name</option>
				          <option value="Careers" <?php
                            if (!empty($testimonial) && ($testimonial['page_name']=='Careers')) {
                                echo "selected=selected";
                            }
                            ?>>Careers</option>
				          <option value="Mbassy" <?php
                            if (!empty($testimonial) && ($testimonial['page_name']=='Mbassy')) {
                                echo "selected=selected";
                            }
                            ?>>Mbassy</option>
				        </select>
				        <span id="page_name_error" class="text-red"></span>
			        </div>
				</div>
				<div class="form-group">
			        <label class="col-sm-2 control-label">Category</label>
			        <div class="col-sm-10">
				        <select class="form-control select2" id="category" name="category">
				          <option value="">Select testimonial category</option>
				          <option value="Partner" <?php
                            if (!empty($testimonial) && ($testimonial['category']=='Partner')) {
                                echo "selected=selected";
                            }
                            ?>>Partner</option>
				          <option value="Individual" <?php
                            if (!empty($testimonial) && ($testimonial['category']=='Individual')) {
                                echo "selected=selected";
                            }
                            ?>>Individual</option>
				        </select>
				        <span id="category_error" class="text-red"></span>
			        </div>
				</div>
				<div class="form-group">
					<label for="Floor Plan Name" class="col-sm-2 control-label">Title/Name</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" id="title" name="title" placeholder="Title/Name" value="<?php
                            if (!empty($testimonial)) {
                                echo $testimonial['title'];
                            }
                            ?>" >
                            <span id="title_error" class="text-red"></span>
					</div>
				</div>
				<div class="form-group">
					<label for="Floor Plan Name" class="col-sm-2 control-label">Sub Title/Designation</label>
					<div class="col-sm-10">
						<input type="text" class="form-control" id="sub_title" name="sub_title" placeholder="Sub Title/Designation" value="<?php
                            if (!empty($testimonial)) {
                                echo $testimonial['sub_title'];
                            }
                            ?>" >
                            <span id="sub_title_error" class="text-red"></span>
					</div>
				</div>
				<div class="form-group">
					<label for="Floor Plan Name" class="col-sm-2 control-label">Description</label>
					<div class="col-sm-10">
						<textarea class="form-control" id="description" name="description" placeholder="Description"><?php if (!empty($testimonial)) { echo $testimonial['description']; } ?></textarea>
                            <span id="description_error" class="text-red"></span>
					</div>
				</div>
				<div class="form-group">
					<label for="Upload Images" class="col-sm-2 control-label">Upload Image</label>
					<div class="col-sm-10">
						<input type="file" name="image" id="thumb_img" accept="image/*">
						<p class="help-block">You can upload testimonial image</p>
						<span id="thumb_error" class="text-red"></span>
					</div>
                </div>
                <input type="hidden" id="edit_thumb_img" name="edit_thumb_img" value="<?php if (!empty($testimonial)) { echo $testimonial['image']; } ?>">
                <?php if(!empty($testimonial)){?>
				<div class="col-sm-10 col-sm-offset-2">
					<div class="panel panel-default">
						<div class="panel-body">
							<img src="<?php echo base_url(); ?>uploads/testimonials/<?php echo $testimonial['image']; ?>" width="100px">
						</div>
					</div>
				</div>
				<?php } ?>

			<!-- /.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("submit","#project_banners",function(){
		  
	    var page_name_error = false;
	    var category_error = false;
		var title_error = false;
		var sub_title_error = false;
		var description_error = false;
		var thumb_error = false;

		var page_name = $('#page_name').val();
	    var edit_thumb_img = $('#edit_thumb_img').val();
	    var category = $('#category').val();
	    var title = $('#title').val();
		var sub_title = $('#sub_title').val();
		var description = $('#description').val();
		var thumb_img = $('#thumb_img').val();	

	    if (page_name == "") {
	        $('#page_name_error').show().html('Please select page name');
	        page_name_error = true;
	    } else{
	        $('#page_name_error').hide().html('');
	        page_name_error = false;
	    }

	    if (category == "") {
	        $('#category_error').show().html('Please select testimonial category');
	        category_error = true;
	    } else{
	        $('#category_error').hide().html('');
	        category_error = false;
	    }

	    if (title == "") {
	        $('#title_error').show().html('Please enter title/name');
	        title_error = true;
	    }else{
	        $('#title_error').hide().html('');
	        title_error = false;
	    }

	    /*if (sub_title == "") {
	        $('#sub_title_error').show().html('Please enter Sub title/designation details');
	        sub_title_error = true;
	    }else{
	        $('#sub_title_error').hide().html('');
	        sub_title_error = false;
	    }*/

	    if (description == "") {
	        $('#description_error').show().html('Please enter description');
	        description_error = true;
	    }else{
	        $('#description_error').hide().html('');
	        description_error = false;
	    }

	    /*if(edit_thumb_img == '' && thumb_img == ''){
			$('#thumb_error').show().html('Please upload image');
			thumb_error = true;
		} else{
			$('#thumb_error').hide().html('');
			thumb_error = false;
		}*/

	    if(!page_name_error && !category_error && !title_error && !sub_title_error && !description_error && !thumb_error){
		  return true;
		}else{
		  return false;
		}

	});
});
</script>


Youez - 2016 - github.com/yon3zu
LinuXploit