forked from codeb1ooded/RTI_Automation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodify_rti_details.php
More file actions
150 lines (129 loc) · 6.66 KB
/
modify_rti_details.php
File metadata and controls
150 lines (129 loc) · 6.66 KB
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
<html>
<head>
<title>RTI Application Form</title>
<link rel="stylesheet" href="css/background.css">
<link rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
<meta charset="utf-8">
</head>
<body>
<?php
echo "<br><div class='container'>";
if(isset($_GET['id'])) {
$Id = $_GET['id'];
echo "<h4>Modify Details of RTI with Id: ".$Id."</h4>";
}
include 'config_database.php';
if(isset($_GET['id'])) {
$Id = $_GET['id'];
$data = "SELECT * FROM add_rti WHERE id=".$Id.";";
$query = mysqli_query($con, $data);
$data2 = mysqli_fetch_array($query);
?>
<h4><strong>Personal Details of RTI Applicant:</strong></h4>
<form action='modify_queries.php' method='post' name="prev_rti">
<input type="hidden" name="ID" value="<?php echo $Id ?>">
<table class="table table-bordered table-condensed">
<tbody>
<tr>
<th>Name of Applicant*</th>
<th><input type="text" name="name" id="name" maxlength="50" value="<?php echo $data2['name']?>" class="name" placeholder="" required>
</th>
</tr>
<tr>
<th>Gender*</th>
<td>
<input type="radio" name="gender" id="gender" value="Male"<?php if(strcmp($data2['gender'], "Male") == 0){ echo "checked=\"checked\""; }?> required> Male   
<input type="radio" name="gender" id="gender" value="Female" <?php if(strcmp($data2['gender'], "Female") == 0){ echo "checked=\"checked\""; }?> required> Female   
<input type="radio" name="gender" id="gender" value="Third Gender" <?php if(strcmp($data2['gender'], "Third Gender") == 0){ echo "checked=\"checked\""; }?> required> Third Gender   
</td>
</tr>
<tr>
<th>Address*</th>
<th><input type="text" name="address" id="address1" class="address" maxlength="100" value="<?php echo $data2['address']?>" required></th>
</tr>
<tr>
<th>Pin code*</th>
<th><input type="text" name="pin_code" minlength="6" maxlength="6" onkeydown="return isNumeric(event.keyCode);" value="<?php echo $data2['pin_code']?>" required></th>
</tr>
<script src="date_validation_prev_rti.js"></script>
<tr>
<th>Country*</th>
<th>
<input type="radio" name="country" id="chkstate" <?php if(strcmp($data2['country'], "India") == 0){ echo "checked=\"checked\""; }?> value="India" onclick="test();" required> India   
<input type="radio" name="country" id="chkcountry" <?php if(strcmp($data2['country'], "other") == 0){ echo "checked=\"checked\""; }?> value="Other" onclick="test1();" required> Other
</th>
</tr>
<tr>
<th>State*</th>
<th><input type="text" name="state" id="cngStateName" maxlength="18" value="<?php echo $data2['state']?>" required></th>
</tr>
<tr>
<th>Phone Number*</th>
<th><input type="text" name="phone_no" id="phone" maxlength="18" onkeydown="return isNumeric(event.keyCode);" class="numeric" value="<?php echo $data2['phone_no']?>" required><cite> Provide STD code with zero eg.01123456789</cite></th>
</tr>
<tr>
<th>Mobile Number<cite>(For receiving SMS alerts)*</cite></th>
<th><input type="text" name="mobile" id="cell" maxlength="15" class="numeric" onkeydown="return isNumeric(event.keyCode);" value="<?php echo $data2['mobile']?>" required><cite> Provide Country code eg. +910123456789</cite></th>
</tr>
<tr>
<th>Email-ID*</th>
<th><input type="text" name="email" maxlength="70" value="<?php echo $data2['email']?>" id="Email" required></th>
</tr>
<tr>
<th>Citizenship <cite>(Only Indian citizens can file RTI Request application)*</cite></th>
<th>
<select name="citizenship" id="Citizenship" class="btn" style="background:white; color:black" onchange="chkCitizenship(this);">
<option value="Indian" <?php if(strcmp($data2['citizenship'], "Indian") == 0){ echo "selected"; }?>>Indian</option>
<option value="Other" <?php if(strcmp($data2['citizenship'], "Other") == 0){ echo "selected"; }?>>Other</option>
</select>
</th>
</tr>
</tbody>
</table>
<h4><strong>Receipt of RTI Application (Section 7):</strong></h4>
<table class="table table-bordered table-condensed">
<tbody>
<tr>
<th>Date of receipt of RTI application by R & I section of public authority* </th>
<th><input type="text" name="date_of_receipt" id="date_of_receipt" placeholder="DD-MM-YYYY" maxlength="50" value="<?php echo $data2['date_of_receipt']?>" class="name" placeholder="YYYY-MM-DD" required></th>
</tr>
<tr>
<th>Date of its receipt by CPIO* </th>
<th><input type="text" placeholder="DD-MM-YYYY" name="date_of_receipt_cio" id="date_of_receipt_cpio" maxlength="50" value="<?php echo $data2['date_of_receipt_cio']?>" class="name" placeholder="YYYY-MM-DD" required></th>
</tr>
<tr>
<th>Time between (1) & (2) in days</th>
<th><input type="text" name="time" id="time" maxlength="50" value="<?php echo $data2['timespan']?>" class="name" placeholder=""></th>
</tr>
</tbody>
</table>
<h4><strong>Fee Payment Details (Rule-3 of RTI regulation of fee and cost rules):</strong></h4>
<table class="table table-bordered table-condensed">
<tbody>
<tr>
<th>Whether fee is enclosed with RTI application*</th>
<td>
<input type="radio" value="yes" name="fee_enclosed" id="fee_enclosed" <?php if(strcmp($data2['fee_enclosed'], "yes") == 0){ echo "checked=\"checked\""; }?> required> Yes   
<input type="radio" value="no" name="fee_enclosed" id="fee_enclosed" <?php if(strcmp($data2['fee_enclosed'], "No") == 0 or strcmp($data2['fee_enclosed'], "no") == 0){ echo "checked=\"checked\""; }?> required> No
</td>
</tr>
<tr>
<th>Date of depositing fee* </th>
<th><input type="text" id="fee_deposit_date" name="fee_deposit_date" maxlength="50" placeholder="DD-MM-YYYY" value="<?php echo $data2['fee_deposit_date']?>" required></th>
</tr>
<tr>
<th>Mode of payment(cheque/DD,cash,IPO)* </th>
<th><input type="text" id="pay_mode" name="pay_mode" maxlength="50" value="<?php echo $data2['pay_mode']?>" required></th>
</tr>
</tbody>
</table>
<input type="submit" name="edit" value="Edit Queries" class="btn" onclick="return validateDate()">
<input type="submit" name="submit" value="Save and Exit" class="btn" onclick="return validateDate()">
<?php
}
echo "<a class='btn' href='ongoing_rti_option.php?id=".$Id."''>Back</a>" ;
?>
</form>
</div>
</body>
</html>