81 lines
3.6 KiB
PHP
81 lines
3.6 KiB
PHP
<script>
|
|
function validate() {
|
|
// var client_name = $('#client_id').val();
|
|
// if (client_name == '') {
|
|
// BootstrapDialog.alert('Please Enter Client Name.!!!');
|
|
// return false;
|
|
// }
|
|
|
|
var client_location = $('#client_location').val();
|
|
if (client_location == '') {
|
|
BootstrapDialog.alert('Please Enter Client Location.!!!');
|
|
return false;
|
|
}
|
|
save_client();
|
|
}
|
|
</script>
|
|
<style>
|
|
#modal-add-patient {
|
|
overflow-y: scroll;
|
|
}
|
|
</style>
|
|
<div class="modal fade" id="modal-add-client" name="modal-add-client" role="dialog" aria-hidden="true">
|
|
<form role="form" id="client_form" name="client_form" action="#" method="post">
|
|
<div class="modal-dialog">
|
|
<div class="modal-content">
|
|
<div class="widget-header">
|
|
<h5 class="widget-title">Client Location Master Form</h5>
|
|
<div class="widget-toolbar">
|
|
<div class="widget-menu">
|
|
<a href="#" class="close" data-action="close" data-dismiss="modal">
|
|
<i class="ace-icon fa fa-times"></i>
|
|
</a>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
<!-- <div class="form-group">
|
|
<label for="role">Client Name</label>
|
|
<input type="hidden" class="form-control" name="id" id="id" value="" required />
|
|
<select name="client_id" id="client_id" class="form-control select2">
|
|
<option value="" disabled>select </option>
|
|
<?= generateOption('client_master', 'client_name', 'id', '', ''); ?>
|
|
</select>
|
|
|
|
</div> -->
|
|
|
|
<div class="form-group">
|
|
<label for="role">Enter Location</label>
|
|
<input type="hidden" class="form-control" name="id" id="id" value="" required />
|
|
<input type="text" class="form-control" name="client_location" id="client_location" maxlength="70" placeholder="Enter Location details" required />
|
|
</div>
|
|
|
|
|
|
<div class="form-group">
|
|
<label for="role">Contact</label>
|
|
|
|
<input type="text" class="form-control" name="contact" id="contact" maxlength="70" placeholder="Enter Contact details" required />
|
|
</div>
|
|
|
|
<div class="form-group">
|
|
<label for="role">Email</label>
|
|
|
|
<input type="text" class="form-control" name="email" id="email" maxlength="70" placeholder="Enter Email details" required />
|
|
</div>
|
|
<div class="form-group">
|
|
<label for="ailment">Remarks</label>
|
|
<input type="text" class="form-control" name="remark" id="remark" maxlength="70" placeholder="Enter Remarks" required />
|
|
</div>
|
|
|
|
</div>
|
|
<div class="widget-toolbox padding-8 clearfix">
|
|
<button type="button" class="btn btn-info btn-sm save_button" onclick="validate();"><i class="ace-icon fa fa-floppy-o bigger-110"></i>Save </button>
|
|
<button type="button" class="btn btn-danger btn-sm" data-dismiss="modal"><i class="ace-icon fa fa-times bigger-110"></i>Cancel</button>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
</div>
|