-
Notifications
You must be signed in to change notification settings - Fork 0
/
bridge_details.php
118 lines (103 loc) · 4.21 KB
/
bridge_details.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
107
108
109
110
111
112
113
114
115
116
117
118
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Type </label>
<div class="col-sm-9">
<input class="form-control" type="text" name="type" value="<?php echo $row['type']; ?>" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Length </label>
<div class="col-sm-9">
<input class="form-control" type="text" name="length" value="<?php echo $row['length']; ?>" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Width </label>
<div class="col-sm-9">
<input class="form-control" type="text" name="width" value="<?php echo $row['width']; ?>" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Model </label>
<div class="col-sm-9">
<input class="form-control" type="text" name="model" value="<?php echo $row['model']; ?>" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">finish </label>
<div class="col-sm-9">
<input class="form-control" type="text" name="finish" value="<?php echo $row['finish']; ?>" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label">Cost / Meter </label>
<div class="col-sm-9">
<input class="form-control" type="text" name="cost_per_meter" value="<?php echo $row['cost_per_meter']; ?>" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label"> Status </label>
<div class="col-sm-9">
<input class="form-control" type="text" name="status" value="<?php echo $row['status']; ?>" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label ">Target Due Date</label>
<div class="col-sm-9">
<input class="form-control date_picker" name="target_due_date" value="<?php echo $row['target_due_date']; ?>" type="text" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label ">Extension Date </label>
<div class="col-sm-9">
<input class="form-control date_picker" name="extension_date" value="<?php echo $row['extension_date']; ?>" type="text" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label ">Actual Due Date</label>
<div class="col-sm-9">
<input class="form-control date_picker" name="actual_due_date" value="<?php echo $row['actual_due_date']; ?>" type="text" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label ">Slippage</label>
<div class="col-sm-9">
<input class="form-control" type="text" name="slippage" value="<?php echo $row['slippage']; ?>" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label ">Performance Rating</label>
<div class="col-sm-9">
<input class="form-control" type="text" name="performance_rating" value="<?php echo $row['performance_rating']; ?>" required>
<input name="action" value="bridge" type="hidden" required>
</div>
</div>
<div class="form-group">
<label for="inputPassword3" class="col-sm-3 control-label "></label>
<div class="col-sm-9">
<button type="submit" class="btn btn-primary btn-block"><i class="fa fa-save"></i> Save</button>
</div>
</div>
<?php
$message = 'Data Successfully Save';
include('message_modal.php');
?>
<script>
jQuery(document).ready(function(){
jQuery("#form").submit(function(e){
e.preventDefault();
var formData = jQuery("#form").serialize();
$.ajax({
type: "POST",
url: "update_data.php",
data: formData,
success: function(html){
$("#message").modal("show");
/* $('.main_con').html(html); */
var delay = 2000;
setTimeout(function(){ $('#message').modal("hide"); }, delay);
}
});
return false;
});
});
</script>