-
Notifications
You must be signed in to change notification settings - Fork 0
/
firstrun.php
277 lines (269 loc) · 15.6 KB
/
firstrun.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
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>First Run - Tick Accounting Suite</title>
<link rel="icon" href="images/logo.png" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"></script>
<style>
html, body {
height: 100%;
background-color: #007AFF;
}
.back-img{
background-image: url("images/splash.png");
background-size: cover;
background-position: center;
background-repeat: no-repeat;
opacity: 0.3;
/* background-size: 90% 20%; */
background-color: #0062CC;
filter: blur(5px);
-webkit-filter: blur(5px);
/* background-color: #0062CC; */
}
.bor-twen{
border-radius: 20px 20px 20px 20px;
}
.bor-ten{
border-radius: 10px 10px 10px 10px;
}
</style>
</head>
<body class="">
<div class="container-fluid">
<div class="row">
<div class="col-lg-3 back-img d-none d-lg-block" style="">
<!-- <img src="images/backemp.png" class="d-none d-xl-block" style="width: 90%; height: 20%; filter: blur(0px); -webkit-filter: blur(0px); margin-top: 70%;" alt=""> -->
</div>
<div class="col-lg-9 bg-white" style="height: 100vh; overflow: auto;">
<img src="images/logo.svg" class="mx-auto d-block" style="width: 68px; height: 68px; margin-left: 5%; margin-top: 2%;">
<!-- <h3 style="margin: 0% 5% 0% 5%; ">Welcome to</h3>
<p style="margin-left: 5%;">Tick - Easy Accounting</p> -->
<!-- <hr style="width: 100%;"> -->
<form action="handle.php" method="post" class="was-validated" enctype="multipart/form-data">
<div class="bg-light bor-ten border" style="padding: 2% 2% 2% 2%; width: 100%; margin-top: 1%;">
<label for="dtandtm" class="float-right" style="padding-bottom: 20px;" id="dt" name="dt">Time : 00:00:00</label>
<p>
<h3>Basic info</h3>
<?php
include 'classes/khatral.php';
$res = khatral::khquery('SELECT * FROM inst WHERE instnm=:nm', array(
':nm'=>$_SESSION['instnm']
));
$refid = 0;
foreach($res as $p){
$refid = $p['instid'];
}
?>
<input type="text" name="refid" id="refid" style="display: none;" value="<?php echo $refid; ?>">
<input type="text" name="refnm" id="refnm" style="display: none;" value="<?php echo $_SESSION['instnm']; ?>">
Mailing name
<input type="text" name="nm" id="nm" class="form-control bor-ten" required="" value="<?php echo $_SESSION['instnm']; ?>">
</p>
<div class="form-group">
Financial year starts from
<input type="date" name="dt" id="dt" class="form-control bor-ten" required="">
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<div class="form-group">
Financial year ends at
<input type="date" name="dtend" id="dtend" class="form-control bor-ten" required="">
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<div class="form-group">
GST number
<input type="text" name="gst" id="gst" class="form-control bor-ten">
</div>
<div class="form-group">
Mailing address
<textarea name="addr" id="addr" cols="10" rows="10" style="height: 200px;" class="form-control bor-ten" required=""></textarea>
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<div class="form-group">
Country
<select name="count" id="count" class="custom-select bor-ten" required="">
<option>India</option>
</select>
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<div class="form-group">
State
<select name="stat" id="stat" class="custom-select bor-ten">
<option>Andaman and Nicobar Islands</option>
<option>Andra Pradesh</option>
<option>Arunachal Pradesh</option>
<option>Assam</option>
<option>Bihar</option>
<option>Chandigarh</option>
<option>Chhattisgarh</option>
<option>Dadra and Nagar Haveli</option>
<option>Daman and Diu</option>
<option>Delhi</option>
<option>Goa</option>
<option>Gujarat</option>
<option>Haryana</option>
<option>Himachal Pradesh</option>
<option>Jammu and Kashmir</option>
<option>Jharkhand</option>
<option>Karnataka</option>
<option>Kerala</option>
<option>Ladakh</option>
<option>Lakshadweep</option>
<option>Madhya Pradesh</option>
<option>Maharashtra</option>
<option>Manipur</option>
<option>Meghalaya</option>
<option>Mizoram</option>
<option>Nagaland</option>
<option>Odisha</option>
<option>Puducherry</option>
<option>Punjab</option>
<option>Rajasthan</option>
<option>Sikkim</option>
<option>Tamil Nadu</option>
<option>Telangana</option>
<option>Tripura</option>
<option>Uttar Pradesh</option>
<option>Uttarakhand</option>
<option>West Bengal</option>
</select>
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<div class="form-group">
City
<input type="text" name="city" id="city" class="form-control bor-ten" required="">
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<div class="form-group">
Pincode
<input type="text" name="pin" id="pin" class="form-control bor-ten" required="">
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<div class="form-group">
Currency
<select name="curr" id="curr" class="custom-select bor-ten">
<option value="inr">₹ Rupee</option>
<option value="doll">$ Dollar</option>
</select>
</div>
<div class="form-group">
Logo (File : *****.png, Size : 512px x 512px Max)
<div class="custom-file">
<input type="file" class="custom-file-input" name="fileToUpload1" id="fileToUpload1">
<label class="custom-file-label" for="fileToUpload1" required="">Choose file</label>
</div>
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
<script>
// Add the following code if you want the name of the file appear on select
$(".custom-file-input").on("change", function() {
var fileName = $(this).val().split("\\").pop();
$(this).siblings(".custom-file-label").addClass("selected").html(fileName);
});
</script>
</div>
</div>
<div class="bg-light bor-ten border" style="padding: 2% 2% 2% 2%; width: 100%; margin-top: 2%; margin-bottom: 5%;">
<!-- <hr style="width: 100%;"> -->
<h3>Contact info</h3>
<div class="form-group">
Email
<input type="email" name="email" id="email" class="form-control bor-ten">
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<div class="form-group">
Phone number
<input type="text" name="phno" id="phno" class="form-control bor-ten">
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<div class="from-group">
Website
<input type="text" name="web" id="web" class="form-control bor-ten">
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<div class="form-group">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="agree" name="example1" required="">
<label class="custom-control-label" for="agree">I accept the terms and conditions and privacy policy of Arvin Soft</label>
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please accept the terms and conditions</div>
</div>
</div>
<div class="form-group">
Type of business
<select name="typofb" id="typofb" class="custom-select bor-ten">
<option selected>Sole trader</option>
<option>Partnership</option>
<option>Company</option>
</select>
<div class="valid-feedback">Valid.</div>
<div class="invalid-feedback">Please fill out this field.</div>
</div>
<input type="submit" value="Save" id="submit" name="submit" class="btn btn-primary bor-ten">
<a href="loginhandle/logout" class="btn btn-danger bor-ten">Logout</a>
</div>
</form>
<div class="text-center">© 2020 Tick accounting suite.</div>
</div>
</div>
</div>
<script>
// // Disable form submissions if there are invalid fields
// (function() {
// 'use strict';
// window.addEventListener('load', function() {
// // Get the forms we want to add validation styles to
// var forms = document.getElementsByClassName('needs-validation');
// // Loop over them and prevent submission
// var validation = Array.prototype.filter.call(forms, function(form) {
// form.addEventListener('submit', function(event) {
// if (form.checkValidity() === false) {
// event.preventDefault();
// event.stopPropagation();
// }
// form.classList.add('was-validated');
// }, false);
// });
// }, false);
// })();
</script>
<script>
function startTime() {
var today = new Date();
var h = today.getHours();
var m = today.getMinutes();
// var s = today.getSeconds();
h = checkTime(h);
m = checkTime(m);
// s = checkTime(s);
$('#dt').html("Time : " + h + ":" + m);
var t = setTimeout(startTime, 500);
}
function checkTime(i) {
if (i < 10) {i = "0" + i}; // add zero in front of numbers < 10
return i;
}
$(document).ready(function(){
startTime();
});
</script>
</body>