-
Notifications
You must be signed in to change notification settings - Fork 1
/
payment.php
986 lines (948 loc) · 31.3 KB
/
payment.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
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
<?php
include("header.php");
include("connection.php");
include("surveyheader.php");
$dt = date("Y-m-d h:i:s");
?>
<script>
function myFunction()
{
if(document.getElementById("insttype").value == "High school")
{
var rec26 = parseFloat(document.getElementById("rec26").value, 10);
var rec27 = parseFloat(document.getElementById("rec27").value, 10);
var rec28 = parseFloat(document.getElementById("rec28").value,10);
var sum = rec26 + rec27+rec28 ;
document.getElementById("rec29").value =sum;
}
else
{
var rec26 = parseFloat(document.getElementById("rec26").value, 10);
var rec27 = parseFloat(document.getElementById("rec27").value, 10);
var rec28 = parseFloat(document.getElementById("rec28").value,10);
var sum = rec26 + rec27+rec28 ;
document.getElementById("rec41").value =sum;
}
}
function myFunction1()
{
var rec30 = parseFloat(document.getElementById("rec30").value, 10);
var rec31 = parseFloat(document.getElementById("rec31").value, 10);
var rec32 = parseFloat(document.getElementById("rec32").value,10);
var sum = rec30 + rec31+rec32 ;
document.getElementById("rec33").value =sum;
}
function myFunction2()
{
var rec26 = parseFloat(document.getElementById("rec26").value, 10);
var rec27 = parseFloat(document.getElementById("rec27").value, 10);
var rec28 = parseFloat(document.getElementById("rec28").value,10);
var rec37 = parseFloat(document.getElementById("rec37").value,10);
var rec38 = parseFloat(document.getElementById("rec38").value,10);
var sum = rec26+rec27+rec28+rec37+rec38 ;
document.getElementById("rec41").value =sum;
}
function myFunction3()
{
var rec30 = parseFloat(document.getElementById("rec30").value, 10);
var rec31 = parseFloat(document.getElementById("rec31").value, 10);
var rec32 = parseFloat(document.getElementById("rec32").value,10);
var rec39 = parseFloat(document.getElementById("rec32").value,10);
var rec40 = parseFloat(document.getElementById("rec32").value,10);
var sum = rec30 + rec31+rec32 ;
document.getElementById("rec42").value =sum;
}
function DisBox()
{
var selected=document.form1.payscale0.value;
// valid selection
if(selected=="Own")
{
document.form1.rec1.disabled=false;
document.form1.rec2.disabled=false;
document.form1.rec3.disabled=false;
document.form1.rec4.disabled=false;
document.form1.rec5.disabled=false;
document.form1.rec6.disabled=false;
}
else
{
document.form1.rec1.disabled=true;
document.form1.rec2.disabled=true;
document.form1.rec3.disabled=true;
document.form1.rec4.disabled=true;
document.form1.rec5.disabled=true;
document.form1.rec6.disabled=true;
document.form1.rec1.value=0;
document.form1.rec2.value=0;
document.form1.rec3.value=0;
document.form1.rec4.value=0;
document.form1.rec5.value=0;
document.form1.rec6.value=0;
}
}
function DisBoxa()
{
var selected=document.form1.payscale7.value;
// valid selection
if(selected=="Own")
{
document.form1.rec8.disabled=false;
document.form1.rec9.disabled=false;
document.form1.rec10.disabled=false;
document.form1.rec11.disabled=false;
document.form1.rec12.disabled=false;
document.form1.rec13.disabled=false;
}
else
{
document.form1.rec8.disabled=true;
document.form1.rec9.disabled=true;
document.form1.rec10.disabled=true;
document.form1.rec11.disabled=true;
document.form1.rec12.disabled=true;
document.form1.rec13.disabled=true;
document.form1.rec8.value=0;
document.form1.rec9.value=0;
document.form1.rec10.value=0;
document.form1.rec11.value=0;
document.form1.rec12.value=0;
document.form1.rec13.value=0;
}
}
/*
function generate()
{
if(isNaN(document.form1.rec1.value))
{
alert("enter the proper number for teaching staff basic field");
return false;
}
if(parseFloat(document.form1.rec1.value) < 0 )
{
alert("numbers must be greater than 0 for teaching staff basic field");
return false;
}
if(isNaN(document.form1.rec2.value))
{
alert("enter the proper number for teaching staff DA field");
return false;
}
if(parseFloat(document.form1.rec2.value) < 0 )
{
alert("numbers must be greater than 0 for teaching staff DA field");
return false;
}
if(isNaN(document.form1.rec3.value))
{
alert("enter the proper number for teaching staff ESI field");
return false;
}
if(parseFloat(document.form1.rec3.value) < 0 )
{
alert("numbers must be greater than 0 for teaching staff ESI field");
return false;
}
if(isNaN(document.form1.rec4.value))
{
alert("enter the proper number for teaching staff PF field");
return false;
}
if(parseFloat(document.form1.rec5.value) < 0 )
{
alert("numbers must be greater than 0 for teaching staff PF field");
return false;
}
if(isNaN(document.form1.rec5.value))
{
alert("enter the proper number for teaching staff HRA field");
return false;
}
if(parseFloat(document.form1.rec5.value) < 0 )
{
alert("numbers must be greater than 0 for teaching staff HRA field");
return false;
}
if(isNaN(document.form1.rec6.value))
{
alert("enter the proper number for teaching staff CCA field");
return false;
}
if(parseFloat(document.form1.rec6.value) < 0 )
{
alert("numbers must be greater than 0 for teaching staff CCA field");
return false;
}
if(isNaN(document.form1.rec8.value))
{
alert("enter the proper number for nonteaching staff Basic field");
return false;
}
if(parseFloat(document.form1.rec8.value) < 0 )
{
alert("numbers must be greater than 0 for nonteaching staff basic field");
return false;
}
if(isNaN(document.form1.rec9.value))
{
alert("enter the proper number for nonteaching staff DA field");
return false;
}
if(parseFloat(document.form1.rec9.value) < 0 )
{
alert("numbers must be greater than 0 for nonteaching staff DA field");
return false;
}
if(isNaN(document.form1.rec10.value))
{
alert("enter the proper number for nonteaching staff ESI field");
return false;
}
if(parseFloat(document.form1.rec10.value) < 0 )
{
alert("numbers must be greater than 0 for nonteaching staff ESI field");
return false;
}
if(isNaN(document.form1.rec11.value))
{
alert("enter the proper number for nonteaching staff PF field");
return false;
}
if(parseFloat(document.form1.rec11.value) < 0 )
{
alert("numbers must be greater than 0 for nonteaching staff PF field");
return false;
}
if(isNaN(document.form1.rec12.value))
{
alert("enter the proper number for nonteaching staff HRA field");
return false;
}
if(parseFloat(document.form1.rec12.value) < 0 )
{
alert("numbers must be greater than 0 for nonteaching staff HRA field");
return false;
}
if(isNaN(document.form1.rec13.value))
{
alert("enter the proper number for nonteaching staff CCA field");
return false;
}
if(parseFloat(document.form1.rec13.value) < 0 )
{
alert("numbers must be greater than 0 for nonteaching staff CCA field");
return false;
}
if(isNaN(document.form1.rec14.value))
{
alert("enter the proper number for teaching staff Annual Increment benefit field");
return false;
}
if(parseFloat(document.form1.rec14.value) < 0 )
{
alert("numbers must be greater than 0 for teaching staff Annual Increment benefit field");
return false;
}
if(isNaN(document.form1.rec15.value))
{
alert("enter the proper number for teaching staff PF benefit field");
return false;
}
if(parseFloat(document.form1.rec15.value) < 0 )
{
alert("numbers must be greater than 0 for teaching staff PF benefit field");
return false;
}
if(isNaN(document.form1.rec16.value))
{
alert("enter the proper number for teaching staff Gratuity benefit field");
return false;
}
if(parseFloat(document.form1.rec16.value) < 0 )
{
alert("numbers must be greater than 0 for teaching staff Gratuity benefit field");
return false;
}
if(isNaN(document.form1.rec17.value))
{
alert("enter the proper number for teaching staff Other benefit field");
return false;
}
if(parseFloat(document.form1.rec17.value) < 0 )
{
alert("numbers must be greater than 0 for teaching staff Other benefit field");
return false;
}
if(isNaN(document.form1.rec18.value))
{
alert("enter the proper number for nonteaching staff Annual Increment benefit field");
return false;
}
if(parseFloat(document.form1.rec14.value) < 0 )
{
alert("numbers must be greater than 0 for nonteaching staff Annual Increment benefit field");
return false;
}
if(isNaN(document.form1.rec19.value))
{
alert("enter the proper number for nonteaching staff PF benefit field");
return false;
}
if(parseFloat(document.form1.rec19.value) < 0 )
{
alert("numbers must be greater than 0 for nonteaching staff PF benefit field");
return false;
}
if(isNaN(document.form1.rec20.value))
{
alert("enter the proper number for nonteaching staff Gratuity benefit field");
return false;
}
if(parseFloat(document.form1.rec20.value) < 0 )
{
alert("numbers must be greater than 0 for nonteaching staff Gratuity benefit field");
return false;
}
if(isNaN(document.form1.rec21.value))
{
alert("enter the proper number for nonteaching staff Other benefit field");
return false;
}
if(parseFloat(document.form1.rec21.value) < 0 )
{
alert("numbers must be greater than 0 for nonteaching staff Other benefit field");
return false;
}
if(isNaN(document.form1.rec22.value))
{
alert("enter the proper number for salary paid to Aided teaching staff field");
return false;
}
if(document.form1.rec22.value=="")
{
alert("enter the salary paid to Aided teaching staff");
return false;
}
if(parseFloat(document.form1.rec22.value) < 0 )
{
alert("numbers must be greater than 0 for salary paid to Aided teaching staff field");
return false;
}
if(isNaN(document.form1.rec23.value))
{
alert("enter the proper number for salary paid to Unaided teaching staff field");
return false;
}
if(document.form1.rec23.value=="")
{
alert("enter the salary paid to UnAided teaching staff");
return false;
}
if(parseFloat(document.form1.rec23.value) < 0 )
{
alert("numbers must be greater than 0 for salary paid to UnAided teaching staff field");
return false;
}
if(isNaN(document.form1.rec24.value))
{
alert("enter the proper number for salary paid to Aided nonteaching staff field");
return false;
}
if(parseFloat(document.form1.rec24.value) < 0 )
{
alert("numbers must be greater than 0 for salary paid to Aided nonteaching staff field");
return false;
}
if(document.form1.rec24.value=="")
{
alert("enter the salary paid to Aided nonteaching staff");
return false;
}
if(isNaN(document.form1.rec25.value))
{
alert("enter the proper number for salary paid to Unaided nonteaching staff field");
return false;
}
if(document.form1.rec25.value=="")
{
alert("enter the salary paid to UnAided nonteaching staff");
return false;
}
if(parseFloat(document.form1.rec25.value) < 0 )
{
alert("numbers must be greater than 0 for salary paid to UnAided nonteaching staff field");
return false;
}
if(isNaN(document.form1.rec26.value))
{
alert("enter the proper number for Aided tution field");
return false;
}
if(document.form1.rec26.value=="")
{
alert("enter the Aided tution field");
return false;
}
if(parseFloat(document.form1.rec26.value) < 0 )
{
alert("numbers must be greater than 0 for Aided tution field");
return false;
}
if(isNaN(document.form1.rec27.value))
{
alert("enter the proper number for Aided devt field");
return false;
}
if(document.form1.rec27.value=="")
{
alert("enter the Aided devt field");
return false;
}
if(parseFloat(document.form1.rec27.value) < 0 )
{
alert("numbers must be greater than 0 for Aided devt field");
return false;
}
if(isNaN(document.form1.rec28.value))
{
alert("enter the proper number for Aided Special field");
return false;
}
if(parseFloat(document.form1.rec28.value) < 0 )
{
alert("numbers must be greater than 0 for Aided Special field");
return false;
}
if((document.form1.rec28.value)="")
{
alert("enter Aided Special field");
}
if(isNaN(document.form1.rec30.value))
{
alert("enter the proper number for Unaided Tution fees field");
return false;
}
if(parseFloat(document.form1.rec30.value) < 0 )
{
alert("numbers must be greater than 0 for UnAided tution field");
return false;
}
if(document.form1.rec30.value=="")
{
alert("enter UnAided Special field");
return false;
}
if(isNaN(document.form1.rec31.value))
{
alert("enter the proper number for Unaided devt fees field");
return false;
}
if(parseFloat(document.form1.rec31.value) < 0 )
{
alert("numbers must be greater than 0 for UnAided devt field");
return false;
}
if(document.form1.rec31.value=="")
{
alert("enter Aided devt field");
return false;
}
if(isNaN(document.form1.rec32.value))
{
alert("enter the proper number for Unaided special fees field");
return false;
}
if(parseFloat(document.form1.rec32.value) < 0 )
{
alert("numbers must be greater than 0 for UnAided special field");
return false;
}
if(document.form1.rec32.value=="")
{
alert("enter UnAided Special field");
return false;
}
if(isNaN(document.form1.rec34.value))
{
alert("enter the proper number for total collection of fees field");
return false;
}
if(parseFloat(document.form1.rec34.value) < 0 )
{
alert("numbers must be greater than 0 for Total collection of fees field");
return false;
}
if(document.form1.rec34.value=="")
{
alert("enter Total Collection of fees field");
return false;
}
if(isNaN(document.form1.rec35.value))
{
alert("enter the proper number for salary paid to teaching staff field");
return false;
}
if(document.form1.rec35.value=="")
{
alert("enter the payscale given to teaching staff");
return false;
}
if(parseFloat(document.form1.rec35.value) < 0 )
{
alert("numbers must be greater than 0 for salary paid to teaching staff field");
return false;
}
if((document.form1.rec36.value)="")
{
alert("enter the payscale given to nonteaching staff");
return false;
}
if(isNaN(document.form1.rec36.value))
{
alert("enter the proper number for salary paid to nonteaching staff field");
return false;
}
if(parseFloat(document.form1.rec36.value) < 0 )
{
alert("numbers must be greater than 0 for salary paid to the nonteaching staff field");
return false;
}
if(isNaN(document.form1.rec37.value))
{
alert("enter the proper number for Aided building fees field");
return false;
}
if(parseFloat(document.form1.rec37.value) < 0 )
{
alert("numbers must be greater than 0 for Aided building fees field");
return false;
}
if(document.form1.rec36.value="")
{
alert("enter Aided building fees field");
return false;
}
if(isNaN(document.form1.rec38.value))
{
alert("enter the proper number for Aided Other fees field");
return false;
}
if(parseFloat(document.form1.rec38.value) < 0 )
{
alert("numbers must be greater than 0 for Aided Other field");
return false;
}
if(document.form1.rec38.value=="")
{
alert("enter Aided Other fees field");
return false;
}
if(isNaN(document.form1.rec39.value))
{
alert("enter the proper number for Unaided building fees field");
return false;
}
if(parseFloat(document.form1.rec39.value) < 0 )
{
alert("numbers must be greater than 0 for UnAided building field");
return false;
}
if(document.form1.rec39.value=="")
{
alert("enter UnAided building fees field");
return false;
}
if(isNaN(document.form1.rec40.value))
{
alert("enter the proper number for Unaided other fees field");
return false;
}
if(parseFloat(document.form1.rec40.value) < 0 )
{
alert("numbers must be greater than 0 for UnAided Other fees field");
return false;
}
if(document.form1.rec40.value=="")
{
alert("enter UnAided Other fees field");
return false;
}
}
*/
</script>
<?php
$dt = date("Y-m-d");
for($k=0; $k<45; $k++)
{
$paydt[$k] = 0;
}
if(isset($_POST["Update"]))
{
$serialized_data = serialize(array("$_POST[payscale0]","$_POST[rec1]","$_POST[rec2]",
"$_POST[rec3]","$_POST[rec4]","$_POST[rec5]","$_POST[rec6]","$_POST[payscale7]",
"$_POST[rec8]","$_POST[rec9]","$_POST[rec10]","$_POST[rec11]","$_POST[rec12]","$_POST[rec13]","$_POST[rec14]","$_POST[rec15]",
"$_POST[rec16]","$_POST[rec17]","$_POST[rec18]","$_POST[rec19]","$_POST[rec20]","$_POST[rec21]","$_POST[rec22]","$_POST[rec23]",
"$_POST[rec24]","$_POST[rec25]","$_POST[rec26]","$_POST[rec27]","$_POST[rec28]","$_POST[rec30]","$_POST[rec31]","$_POST[rec32]","$_POST[rec34]","$_POST[rec35]","$_POST[rec36]","$_POST[rec37]","$_POST[rec38]","$_POST[rec39]","$_POST[rec40]","$_POST[srce39]","$_POST[srce40]","$_POST[srce41]","$_POST[srce42]","$_POST[srce43]","$_POST[srce44]","$_POST[srce45]","$_POST[srce46]"));
$resschool3 = mysqli_query($con,"select * from payment where surveyno='$surveyno'");
$counts = mysqli_num_rows($resschool3);
if($counts == 1)
{
mysqli_query($con,"UPDATE payment SET surveyno='$surveyno',lastupdate='$dt',pay_details='$serialized_data'");
if(mysqli_affected_rows($con) == 1)
{
$recres = "payment Record updated successfully...";
}
}
else
{
$sql7="INSERT INTO payment(surveyno,lastupdate,pay_details) VALUES('$surveyno','$dt','$serialized_data')";
if (!mysqli_query($con,$sql7,$con))
{
die('Errors: ' . mysqli_error($con));
}
if(mysqli_affected_rows($con) == 1)
{
$recres = "payment record inserted successfully...";
}
}
}
$resschool4 = mysqli_query($con,"select * from payment where surveyno='$surveyno'");
$counts4 = mysqli_num_rows($resschool4);
while($row4 = mysqli_fetch_array($resschool4))
{
$surveynou = $row4[surveyno];
$paydt = unserialize($row4[pay_details]);
}
?>
<div id="main">
<div id="content" class="left">
<div class="highlight">
<h3> Payment</h3>
<form id="form1" name="form1" method="post" action="">
<p> <?php echo $recres; ?></p>
<table width="419" border="0">
<tr align="left">
<th width="401" ><div align="left">Payscale given to the teaching staff
<select name="payscale0" id="payscale0" onClick="DisBox()">
<option></option>
<option value="Own" <?php
if($paydt[0] == "Own")
{
echo " selected";
}?>>Own</option>
<option value="State" <?php
if($paydt[0] == "State")
{
echo " selected";
}?>>State</option>
<option value="CBE" <?php
if($paydt[0] == "CBE")
{
echo " selected";
}?>>CBE</option>
<option value="UGC" <?php
if($paydt[0] == "UGC")
{
echo " selected";
}?>>UGC</option>
</select>
<input name="rec35" type="text" id="rec35" value="<?php echo number_format($paydt[33], 2, '.', ''); ?>" size="15" />
</div></th>
</tr>
</table>
<label for="payscale0"></label>
<div align="center"></div>
<table width="419" border="0">
<tr align="left">
<th height="25" colspan="4" ><div align="left">If own scale, mention the scale of pay-starting scale<br />
</div>
<label for="textarea6"></label> </th>
</tr>
<tr>
<th width="120" scope="row" align="right">Basic</th>
<th width="141" align="left"><input name="rec1" type="text" id="rec1" value="<?php echo number_format($paydt[1], 2, '.', ''); ?>" size="15" /></th>
<td width="36"><strong>DA</strong></td>
<td width="104"><input name="rec2" type="text" id="rec2" value="<?php echo number_format($paydt[2], 2, '.', ''); ?>" size="15" /></td>
</tr>
<tr>
<th scope="row" align="right">ESI</th>
<th scope="row" align="left"><input name="rec3" type="text" id="rec3" value="<?php echo number_format($paydt[3], 2, '.', ''); ?>" size="15" /></th>
<td><strong>PF</strong></td>
<td><input name="rec4" type="text" id="rec4" value="<?php echo number_format($paydt[4], 2, '.', ''); ?>"" size="15" /></td>
</tr>
<tr>
<th scope="row" align="right">HRA </th>
<th scope="row" align="left"><input name="rec5" type="text" id="rec5" value="<?php echo number_format($paydt[5], 2, '.', ''); ?>" size="15" /></th>
<td><strong>CCA</strong></td>
<td><input name="rec6" type="text" id="rec6" value="<?php echo number_format($paydt[6], 2, '.', ''); ?>" size="15" /></td>
</tr>
</table>
<br />
<table width="465" border="0">
<tr align="left">
<th width="449" ><div align="left">Payscale given to the non teaching staff
<select name="payscale7" id="payscale7" onClick="DisBoxa()">
<option></option>
<option value="Own" <?php
if($paydt[7] == "Own")
{
echo " selected";
}?>>Own</option>
<option value="State" <?php
if($paydt[7] == "State")
{
echo " selected";
}?>>State</option>
<option value="CBE" <?php
if($paydt[7] == "CBE")
{
echo " selected";
}?>>CBE</option>
<option value="UGC" <?php
if($paydt[7] == "UGC")
{
echo " selected";
}?>>UGC</option>
</select>
<input name="rec36" type="text" id="rec36" value="<?php echo number_format($paydt[34], 2, '.', ''); ?>" size="15" />
</div></th>
</tr>
</table>
<br />
<table width="419" border="0">
<tr align="left">
<th height="25" colspan="4" ><div align="left">If own scale, mention the scale of pay-starting scale<br />
</div>
<label for="textarea7"></label></th>
</tr>
<tr>
<th width="120" scope="row" align="right">Basic</th>
<th width="141" align="left"><input name="rec8" type="text" id="rec8" value="<?php echo number_format($paydt[8], 2, '.', ''); ?>" size="15" /></th>
<td width="36" ><strong>DA</strong></td>
<td width="104"><input name="rec9" type="text" id="rec9" value="<?php echo number_format($paydt[9], 2, '.', ''); ?>" size="15" /></td>
</tr>
<tr>
<th scope="row" align="right">ESI</th>
<th scope="row" align="left"><input name="rec10" type="text" id="rec10" value="<?php echo number_format($paydt[10], 2, '.', ''); ?>" size="15" /></th>
<td><strong>PF</strong></td>
<td><input name="rec11" type="text" id="rec11" value="<?php echo number_format($paydt[11], 2, '.', ''); ?>" size="15" /></td>
</tr>
<tr>
<th scope="row" align="right">HRA </th>
<th scope="row" align="left"><input name="rec12" type="text" id="rec12" value="<?php echo number_format($paydt[12], 2, '.', ''); ?>" size="15" /></th>
<td><strong>CCA</strong></td>
<td><input name="rec13" type="text" id="rec13" value="<?php echo number_format($paydt[13], 2, '.', ''); ?>" size="15" /></td>
</tr>
</table>
<br />
<table width="474" border="0">
<tr align="left">
<th colspan="4" ><div align="left">Benifits given to the teaching staff</div></th>
</tr>
<tr>
<th width="126" scope="row" align="right">Annual Increment</th>
<th width="119" align="left"><input name="rec14" type="text" id="rec14" value="<?php echo number_format($paydt[14], 2, '.', ''); ?>" size="15" /></th>
<td width="99" ><strong>PF</strong></td>
<td width="112"><input name="rec15" type="text" id="rec15" value="<?php echo number_format($paydt[15], 2, '.', ''); ?>" size="15" /></td>
</tr>
<tr>
<th scope="row" align="right">Gratuity</th>
<th scope="row" align="left"><input name="rec16" type="text" id="rec16" value="<?php echo number_format($paydt[16], 2, '.', ''); ?>" size="15" /></th>
<td><strong>Any other</strong></td>
<td><input name="rec17" type="text" id="rec17" value="<?php echo number_format($paydt[17], 2, '.', ''); ?>" size="15" /></td>
</tr>
</table>
<br />
<table width="477" border="0">
<tr align="left">
<th colspan="4" ><div align="left">Benifits given to the non teaching staff</div></th>
</tr>
<tr>
<th width="127" scope="row" align="right">Annual Increment</th>
<th width="123" align="left"><input name="rec18" type="text" id="rec18" value="<?php echo number_format($paydt[18], 2, '.', ''); ?>"size="15" /></th>
<td width="97" ><strong>PF</strong></td>
<td width="112"><input name="rec19" type="text" id="rec19" value="<?php echo number_format($paydt[19], 2, '.', ''); ?>"size="15" /></td>
</tr>
<tr>
<th scope="row" align="right">Gratuity</th>
<th scope="row" align="left"><input name="rec20" type="text" id="rec20" value="<?php echo number_format($paydt[20], 2, '.', ''); ?>" size="15" /></th>
<td><strong>Any other</strong></td>
<td><input name="rec21" type="text" id="rec21" value="<?php echo number_format($paydt[21], 2, '.', ''); ?>" size="15" /></td>
</tr>
</table>
<p><br />
<label for="payscale1"></label><b>
<label for="rec1"></label>Total Amount of Salary paid to the teaching staff<br /></b>
<b> Aided</b>
<input name="rec22" type="text" id="rec22" value="<?php echo number_format($paydt[22], 2, '.', ''); ?>" size="15" />
<b> Unaided</b>
<input name="rec23" type="text" id="rec23" value="<?php echo number_format($paydt[23], 2, '.', ''); ?>" size="15" />
</p>
<p><b>Total Amount of Salary paid to the non teaching staff</b><br />
Aided
<input name="rec24" type="text" id="rec24" value="<?php echo number_format($paydt[24], 2, '.', ''); ?>" size="15" />
Unaided
<input name="rec25" type="text" id="rec25" value="<?php echo number_format($paydt[25], 2, '.', ''); ?>" size="15" />
</p>
<table width="609" border="0">
<tr align="left">
<th colspan="7" ><div align="left">Fee Structure (Aided/
Unaided seperately)</div></th>
</tr>
<tr>
<th width="120" scope="row" align="right"><div align="left"></div></th>
<th width="73" align="left">Tution</th>
<td width="73" ><strong>Devt</strong></td>
<td width="75"><strong>Special</strong></td>
<input name="insttype" id="insttype" type="hidden" value="<?php echo $insttype; ?>" />
<?php
if($insttype == "High school")
{
?>
<td width="75"><strong>Building</strong></td>
<td width="77"><strong>Other</strong></td>
<?php
}
?>
<td width="89"><strong>Total/year</strong></td>
</tr>
<tr>
<th height="38" align="right" scope="row"> Aided </th>
<th align="left" scope="row">
<input name="rec26" type="text" id="rec26" value="<?php echo number_format($paydt[26], 2, '.', ''); ?>" size="10" onchange="myFunction()"/>
</th>
<td>
<input name="rec27" type="text" id="rec27" value="<?php echo number_format($paydt[27], 2, '.', ''); ?>" size="10" onchange="myFunction()" />
</td>
<td><input name="rec28" type="text" id="rec28" value="<?php echo number_format($paydt[28], 2, '.', ''); ?>" size="10" onchange="myFunction()" />
</td>
<?php
if($insttype == "High school")
{
?>
<td><input name="rec37" type="text" id="rec37" value="<?php echo number_format($paydt[35], 2, '.', '');?>" size="10"/></td>
<td><input name="rec38" type="text" id="rec38" value="<?php echo number_format($paydt[36], 2, '.', '');?>" size="10"/></td>
<?php
}
if($insttype == "Primary school")
{
$total1=$paydt[26]+$paydt[27]+$paydt[28];
?>
<td><input name="rec29" type="text" id="rec29" value="<?php echo number_format($total1, 2, '.', ''); ?>" size="10" readonly /></td>
<?php
}
else
{
$total5=$paydt[26]+$paydt[27]+$paydt[28]+$paydt[35]+$paydt[36];
?>
<td><input name="rec41" type="text" id="rec41" value="<?php echo number_format($total5, 2, '.', ''); ?>" size="10" readonly /></td>
</tr>
<?php
}
$total2= $paydt[29]+$paydt[30]+$paydt[31];
$total6= $paydt[29]+$paydt[30]+$paydt[31]+$paydt[37]+$paydt[38];
?>
<tr>
<th scope="row" align="right">Unaided</th>
<th align="left" scope="row">
<input name="rec30" type="text" id="rec30" value="<?php echo number_format($paydt[29], 2, '.', ''); ?>" size="10" onchange="myFunction1()"/></th>
<td><input name="rec31" type="text" id="rec31" value="<?php echo number_format($paydt[30], 2, '.', ''); ?>" size="10" onchange="myFunction1()" /></td>
<td><input name="rec32" type="text" id="rec32" value="<?php echo number_format($paydt[31], 2, '.', ''); ?>" size="10" onchange="myFunction1()" /></td>
<?php
if($insttype == "High school")
{
?>
<td><input name="rec39" type="text" id="rec39" value="<?php echo number_format($paydt[37], 2, '.', ''); ?>" size="10"/></td>
<td><input name="rec40" type="text" id="rec40" value="<?php echo number_format($paydt[38], 2, '.', ''); ?>" size="10"/></td>
<?php
}
if($insttype == "Primary school")
{
?>
<td><input name="rec33" type="text" id="rec33" value="<?php echo number_format($total2, 2, '.', ''); ?>" size="10" readonly /></td>
<?php
}
else
{
?>
<td><input name="rec42" type="text" id="rec42" value="<?php echo number_format($total6, 2, '.', ''); ?>" size="10" readonly /></td>
<?php
}
?>
</tr>
</table>
<p><b>Total Collection of all fees including devt. fees/donations</b>
<input name="rec34" type="text" id="rec34" value="<?php echo number_format($paydt[32], 2, '.', ''); ?>" size="25" />
</p>
<?php
if($insttype == "PUC")
{
?>
<p><b>Other sources of income<br />
<table width="474" height="126" border="1">
<tr>
<th width="39" height="50" scope="row">SL No.</th>
<th width="231" scope="row"><strong>Source</strong></th>
<td width="182"><strong> Amount received</strong></td>
</tr>
<?php
$p=39;
for($q=0; $q<4; $q++)
{
?>
<tr>
<td > <?php echo $q+1; ?></td>
<td height="62" >
<input name="srce<?php echo $p; ?>" type="text" id="srce<?php echo $p; ?>" value="<?php echo $paydt[$p] ; ?>" size="50" /></td>
<?php
$p++;
?>
<td>
<input name="srce<?php echo $p; ?>" type="text" id="srce<?php echo $p; ?>" value="<?php echo number_format($paydt[$p], 2, '.', ''); ?>" /></td>
</tr>
<?php
$p++;
}
?>
<br />
<p>
</table>
<?php
}
?>
<?php
if($contsurvey == 1)
{
?>
<input type="submit" name="Update" id="Update" value="update" onclick="return generate()" />
<?php
}
else
{
echo "Survey is deactivated";
}
?>
</p>
</form>
</div>
<div class="projects">
<div class="item"></div>
<div class="item">
<div class="cl"> </div>
</div>
</div>
</div>
<div id="sidebar" class="right">
<?php
include("sidebar.php");
?>
</div>
<div class="cl"> </div>
</div>
<div class="shadow-l"></div>
<div class="shadow-r"></div>
<div class="shadow-b"></div>
</div>
<?php
include("footer.php");
?>