/
parameter_unit.php
executable file
·106 lines (103 loc) · 4.52 KB
/
parameter_unit.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
<?php require_once "session.php";
require_once 'header.php';
require_once 'functions/parameter_unitfunction.php';
$parameterunitFunction = new parameterunitFunction();
?>
<div class="container">
<div class="container align_center align_height">
<span class="sports">PARAMETER UNIT</span>
</div><!--end container-->
<div class="container">
<div class="col-xs-12 col-md-11">
<div class="col-md-4 hidden-xs"></div>
<div class="col-xs-12 col-md-7 align_margin">
<form id="parameter_unit" name="parameter_unit_add">
<div class="form-group">
<label for="sel1">Select Parameter Type</label>
<select class="form-control adjust_width classic" id="sel1" name="parametertype" data-validation-error-msg="Please Select the Type of the Parameter" data-validation="required">
<option value="">Select Parameter Type</option>
<?php
$data = $parameterunitFunction->parametertypeSelect();
foreach( $data as $eachrecord ) {
?>
<option value="<?php echo $eachrecord ['parametertype_id']; ?>"><?php echo $eachrecord ['parametertype_name']; ?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label>Enter Parameter Unit</label><br>
<input type="text" class="adjust_width" name="parameterunit" data-validation-error-msg="Please Enter the Unit of the Parameter" data-validation="required">
</div>
<div class="col-md-9 schedule_btn">
<input type="submit" class="btn btn-primary align_right clear parameter-submit" value="Submit">
</div>
</form>
</div>
<div class="container table-position">
<table class="table state_table">
<thead>
<tr class="row_color">
<th class="align_center">SLNO</th>
<th class="align_center">Parameter Type</th>
<th class="align_center">Parameter Unit</th>
<th class="align_center">Action</th>
</tr>
</thead>
<tbody>
<?php
$data = $parameterunitFunction->parameterunitSelect();
$i=1;
foreach( $data as $eachrecord ) {
?>
<tr class="align_center delete_color">
<td><?php echo $i;?></td>
<input value="<?php echo $eachrecord ['parameterunit_id']; ?>" type="hidden">
<td><?php echo $eachrecord ['parametertype_name'];?></td>
<td><?php echo $eachrecord ['parameterunit'];?></td>
<td>
<span class="edit_state edit_parameter_unit" data-value="<?php echo $eachrecord ['parameterunit_id'];?>">Edit</span>
<span class="delete_state" data-value="<?php echo $eachrecord ['parameterunit_id'];?>">Delete</span>
</td>
</tr>
<?php $i++; } ?>
</tbody>
</table>
</div>
</div>
</div><!-- end container-->
</div><!-- end container-->
<div class="popup_fade cancel_btn"></div><!--popup_fade-->
<div class="container">
<div class="paramter_div">
<code class="close_btn cancel_btn"> </code>
<div class="edit_title">
<span class="del_txt">EDIT</span>
</div><!--edit_title-->
<div class="container state-content col-md-12">
<div class="col-xs-12 col-md-12 align_margin">
<form id="edit_parameter_unit" name="edit_parameter_unit_form">
<div class="form-group">
<label for="sel1">Select Parameter Type</label>
<input type="hidden" class="edit_param_unit_id" name="edit_param_unit_id" value=""/>
<select class="form-control adjust_width classic edit_param_type" id="sel1" name="parameter_type" data-validation-error-msg="Please Select the Type of the Parameter" data-validation="required">
<option value="">Select Parameter Type</option> <?php
$data = $parameterunitFunction->parametertypeSelect();
foreach( $data as $eachrecord ) {
?>
<option value="<?php echo $eachrecord ['parametertype_id']; ?>"><?php echo $eachrecord ['parametertype_name']; ?></option>
<?php } ?>
</select>
</div>
<div class="form-group">
<label>Enter Parameter Unit</label><br>
<input type="text" class="adjust_width edit_param_unit" name="parameter_unit" data-validation-error-msg="Please Enter the Unit of the Parameter" data-validation="required">
</div>
<div class="col-md-12 schedule_btn">
<input type="submit" class="btn btn-primary align_right clear" value="Submit">
</div>
</form>
</div>
</div><!--paramter_div-->
</div><!--range_div-->
</div><!--container-->
<?php require_once "footer.php" ?>