-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheindex3.php
186 lines (149 loc) · 7.84 KB
/
eindex3.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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
<?php
include "dbase.php";
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>PSC Project </title>
<!-- Bootstrap Lib's css -->
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<!-- Custom styles for this template -->
<link href="css/form-validation.css" rel="stylesheet">
</head>
<body class="bg-light">
<div class="container">
<main>
<div class="py-2 text-center">
<h2>Transfer Application (Southern Province) </h2>
<!-- <p class="lead">Some Description Here.</p> -->
</div>
<div class="col-12">
<p>From the date of joining the service, the period of previous service in each work station, department and ministry and the current places of service. </p><br>
<div class="row g-3">
<div class="col-sm-6">
<label for="" class="form-label">Date of commencement of duty : </label>
<input type="date" class="form-control" id="from" placeholder="">
<div class="invalid-feedback">
</div>
</div>
<div class="col-sm-6">
<label for="" class="form-label">Date of termination of duty : </label>
<input type="date" class="form-control" id="to" placeholder="">
<div class="invalid-feedback">
</div>
</div>
<div class="col-12">
<label for="inno" class="form-label">Total Time (Years/Months) :</label>
<div class="input-group has-validation">
<!--<span class="input-group-text">@</span>-->
<input type="text" class="form-control" id="fulltime"placeholder="xx years xx month " required>
<div class="invalid-feedback">
</div>
</div>
</div>
<div class="col-12">
<div class="row g-3">
<div class="col-sm-6">
<label for="mname" class="form-label">Workplace Department : </label>
<select name="type" id="department" class="form-control form-select" required>
<option value="" disabled hidden selected>----Select---- </option>
<option value="Department of Education">Department of Education</option>
<option value="The Road Development Authority">The Road Development Authority</option>
<option value="Department of Agriculture">Department of Agriculture</option>
<option value="Irrigation Department">Irrigation Department</option>
<option value="Department of Cooperative Development">Department of Cooperative Development </option>
<option value="Department of Animal Production and Health">Department of Animal Production and Health</option>
<option value="Department of Industrial Development">Department of Industrial Development</option>
<option value="Department of Social Welfare, Probation and Child Care Services">Department of Social Welfare, Probation and Child Care Services</option>
<option value="Department of Housing Commissioner">Department of Housing Commissioner</option>
</select>
<div class="invalid-feedback">
</div>
</div>
<div class="col-sm-6">
<label for="mname" class="form-label">Under which ministry : </label>
<select name="type" id="ministry" class="form-control form-select" required>
<option value="" disabled hidden selected>----Select---- </option>
<option value="Chief Ministry">Chief Ministry</option>
<option value="Ministry of Education">Ministry of Education</option>
<option value="Ministry of Agriculture">Ministry of Agriculture </option>
<option value="Ministry of Fisheries">Ministry of Fisheries</option>
<option value="Ministry of Sports">Ministry of Sports</option>
<option value="Governor's Secretariat">Governor's Secretariat</option>
<option value="Council Secretariat">Council Secretariat</option>
<option value="Provincial Public Service Commission">Provincial Public Service Commission</option>
</select>
<div class="invalid-feedback">
</div>
</div>
<br>
<button class=" btn btn-success btn-lg" onclick ="adddata()" >ADD</button>
<table class="table table-bordered table-striped">
<!-- Table Headings -->
<thead>
<!-- Table Heading 1st Row -->
<tr>
<!-- Table Heading Items -->
<th ><center>NO</center></th>
<th ><center>From</center></th>
<th ><center>To </center> </th>
<th ><center>whole time</center></th>
<th ><center>Workplace Department</center> </th>
<th ><center>Under which ministry</center> </th>
</tr>
</thead>
<!-- Table Body -->
<tbody id="ttbl">
<!-- Table Body 1st Row. You can use this 1st row for loop -->
<?php
$str1="SELECT * from workdetail";
$rs1=$bdd->query($str1) or die ("Error");
while ($row1=$rs1->fetch()){
$edit = "edit:$row1[0]";
$del = "del:$row1[0]";
?>
<tr>
<td><center><?php echo $row1[0] ?></center></td>
<td><center><?php echo $row1[1] ?></center></td>
<td><center><?php echo $row1[2] ?></center></td>
<td><center><?php echo $row1[3] ?></center></td>
<td><center><?php echo $row1[4] ?></center></td>
<td><center><?php echo $row1[5] ?></center></td>
</tr>
<?php } ?>
</tbody>
</table>
</div></div></div>
<br>
<p style="text-align: right;">~Page 04~</p>
<div id="saved"></div>
<hr class="my-4">
<a href="eindex2.php" class="btn btn-primary btn-lg">PREVIOUS </a>
<a href="eindex4.php" class="btn btn-primary btn-lg">NEXT </a>
</div>
</div>
</div>
</main>
</div>
<script src="js/form-validation.js"></script>
<script src="jquery/jquery.min.js"></script>
<script type="text/javascript" src="myfun.js"> </script>
</body>
<script type="text/javascript">
function adddata(){
var d1 =currval();
$.ajax({
url:'savedata2.php',
type:'POST',
data:{vals:d1},
success:function(json){
// console.log(json);
$("#saved").html(json);
window.location.reload()
}
})
}
</script>
</html>