OverLord Shell
<?php
include("db/conn.php");
include_once("header.inc.php");
$webpagetitle="Review";
?>
<!--BEGIN CONTENT-->
<section>
<div class="second-page-container" style="padding-top:30px;">
<div class="container">
<div class="row" >
<div class="col-md-8">
<div class=" well col-lg-12 col-sm-12" style="margin-left:106px;width: 121%; padding-top:3%;background-color:white;">
<h2 class="wow fadeInRight animated" data-wow-duration="1s" padding-top:2%;"><?php echo"$webpagetitle"; ?></h2><br>
<form role="form" id="addform">
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label>Name <span class="require">*</span></label>
<div class="input-icon"><i class="fa fa-map-marker"></i>
<input type="text" class="form-control" name="name" id="name" maxlength="100" data-validation="required" data-validation-error-msg="Invalid Name">
</div>
</div>
</div>
<div class="col-sm-6">
<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>
<div class="row">
<div class="col-sm-6">
<div class="form-group">
<label> Mobile <span class="require">*</span></label>
<input type="text" class="form-control" name="phone_no" id="phone_no" maxlength="100" data-validation="required" data-validation-error-msg="Invalid Mobile number">
</div>
</div>
<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="100" 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>
</form>
</div>
</div>
</div>
</div>
</div>
<!--END CONTENT-->
<script>
function valAdd() {
$.validate({
modules: 'file,security',
form: '#addform',
scrollToTopOnError: false,
onSuccess: function() {
$('#addform button[type=submit]').button('loading');
$('#addform button[type=reset]').attr('disabled', 'disabled');
$('.note-danger').html('').hide();
//alert(111111111111);
$.ajax({
type: 'POST',
url: 'company-reviewsadd_save.php',
data: new FormData($('#addform')[0]),
contentType: false,
processData: false,
success: function(data) {
if (data == 'success') {
location = 'company-reviews.php?msg=add_success';
} else if (data.substr(data.length - 4) == '.php') location = data;
else {
$('.note-danger').html(data).show();
$('#addform button[type=submit]').button('reset');
$('#addform button[type=reset]').removeAttr('disabled');
}
}
});
return false;
}
});
}
valAdd();
</script>
<?php include_once("footer.inc.php");connClose();?>
xRyukZ - Copyright 2k19