ESH/form/view_work_area_sample.php
2024-10-23 18:28:06 +05:30

189 lines
3.6 KiB
PHP

<style>
#modal-add-hygiene{
overflow-y:scroll;
}
.modal-dialog {
padding: 15px;
width:50%;
}
</style>
<div class="modal fade" id="modal-add-work-area-sample_view" name="modal-add-work-area-sample_view" role="dialog" aria-hidden="true">
<form role="form" id="work-area-sample_form" name="work-area-sample_form" action="#" method="post">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="widget-header">
<h5 class="widget-title">Add Work Area Sample</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="row">
<div class="form-group col-sm-4">
<label for="sample">Sample</label>
<div id="sample1" name="sample1" />
</div>
</div>
<div class="form-group col-sm-4">
<label for="currentValue">Sample Date</label>
<div id="sampleDate1" name="sampleDate1" />
</div>
</div>
<div class="form-group col-sm-4">
<label for="hygieneParameter">Department</label>
<input type="hidden" class="form-control" name="sample_id"
id="sample_id" required/>
<div id="department1" name="department1"></div>
</div>
</div>
<div class="panel panel-default">
<div class="panel-heading" style="height:40px">
Hygiene Parameter Of Sample
<div class="btn-group" style="float: right" >
</div>
</div>
<input type="hidden" name="parameterRow1" id="parameterRow1" value="0">
<div class="panel-body" style="padding: 0px;">
<table class="table table-bordered table-hover" id="hygieneParameterTableview">
<tr class="active">
<th width="10%">Sr</th>
<th width="40%">Hygiene Parameter</th>
<th width="45%">Current Value</th>
</tr>
</table>
</div>
</div>
<div class="row">
<div class="form-group col-sm-8">
<label for="commentsAndRecommendations">Comments And Recommendations</label>
<div style=" height:60px" name="commentsAndRecommendations1"
id="commentsAndRecommendations1" placeholder="Comments And Recommendations" required></div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
<script>
jQuery(function($) {
if(!ace.vars['old_ie']) $('#sampleDate1').datetimepicker({
format: 'DD/MM/YYYY h:mm A',//use this option to display seconds
defaultDate: new Date(),
maxDate: new Date(),
//minDate: new Date()-10,
icons: {
time: 'fa fa-clock-o',
date: 'fa fa-calendar',
up: 'fa fa-chevron-up',
down: 'fa fa-chevron-down',
previous: 'fa fa-chevron-left',
next: 'fa fa-chevron-right',
today: 'fa fa-arrows ',
clear: 'fa fa-trash',
close: 'fa fa-times'
}
}).next().on(ace.click_event, function(){
$(this).prev().focus();
});
});
function myDateFormater(myDate){
var d=new Date(myDate);
var m=d.getMonth()+1;
var y=d.getFullYear();
var date=d.getDate();
var date=d.getDate();
// alert(date+"/"+m+"/"+y);
return date+"/"+m+"/"+y;
}
</script>