OverLord Shell
<section id="content">
<div class="container-fluid">
<div class="row">
<div class="col-md-12 well man">
<form role="form" id="addform1" method="POST">
<div class="row" style="padding:5%;">
<input type="hidden" class="form-control" name="my_company_id" id="my_company_id" value="<?php echo base64_decode($_GET['id'])?>" >
<!--<input type="text" class="form-control" name="product_id" id="product_id" value="<?php echo base64_decode($_GET['pid'])?>" >
--><input type="hidden" class="form-control" name="company_id" id="company_id" value="<?php echo base64_decode($_GET['cid'])?>" >
<!--<input type="text" class="form-control" name="product_name" id="product_name" value="<?php echo base64_decode($_GET['pname'])?>" >
--><input type="hidden" class="form-control" name="company_name" id="company_name" value="<?php echo base64_decode($_GET['cname'])?>" >
<input type="hidden" class="form-control" name="company_email" id="company_email" value="<?php echo base64_decode($_GET['cmail'])?>" >
<div class="col-sm-6">
<div class="col-sm-12">
<div class="form-group">
<label>Name<span class="require">*</span></label>
<input type="text" class="form-control" name="name" id="name" maxlength="100" data-validation="required" data-validation-error-msg="Invalid Name">
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label> Email <span class="require">*</span></label>
<div class="input-icon"><i class="fa fa-map-envelope"></i>
<input type="text" class="form-control" name="email" id="email" maxlength="50" data-validation="email" data-validation-error-msg="Invalid Email" >
</div>
</div>
</div>
<div class="col-sm-12">
<div class="form-group">
<label> Mobile <span class="require">*</span></label>
<input type="nember" class="form-control" name="mobile" id="mobile" maxlength="15" data-validation="required number" data-validation-error-msg="Invalid Mobile number">
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label>review<span class="require">*</span></label>
<textarea class="form-control" name="review" id="review" maxlength="500" style="height: 182px;" data-validation-error-msg="Invalid review">
</textarea>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-12">
<div class="form-group">
<div class="note note-danger displaynone"></div>
<div style="float:right;">
<button type="submit" class="btn btn-primary" data-loading-text="Submitting..." >Save</button>
</div>
</div>
</div>
</div>
</div>
</form>
<div class="alert alert-success displaynone">Review Sent Successfully!!!</div>
</div>
</div>
<script>
$.validate({
modules: 'file,security',
form: '#addform1',
scrollToTopOnError: false,
onSuccess: function() {
$('#addform1 button[type=submit]').button('loading');
$('#addform1 button[type=reset]').attr('disabled', 'disabled');
$('.note-danger').html('').hide();
$.ajax({
type: 'POST',
url: 'company-reviewsadd_save.php',
data: new FormData($('#addform1')[0]),
contentType: false,
processData: false,
success: function(data) {
alert(data);
if (data.trim() == 'success') {
$('#addform1').remove();
$('.alert-success').show();
setTimeout(function() {
location = 'company-reviews.php?id=<?php echo $_GET['id'];?>&msg=add_success';
}, 2000);
} else if (data.substr(data.length - 4) == '.php') location = data;
else {
$('.note-danger').html(data).show();
$('#addform1 button[type=submit]').button('reset');
$('#addform1 button[type=reset]').removeAttr('disabled');
}
}
});
return false;
}
});
var width=$(window).width();
if(width>400)$('.container-fluid').css('width',(width*.7));
function ref_and_close()
{
opener.location.reload();
self.close();
}
</script>
xRyukZ - Copyright 2k19