-
Notifications
You must be signed in to change notification settings - Fork 0
/
reverify_own.php
123 lines (108 loc) · 3.45 KB
/
reverify_own.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
<?php
session_start();
$name=$_SESSION['name'];
$user=implode($name);
$_SESSION['reason']=$_POST['reason'];
$valid_reason=$_POST['reason'];
$number = $_SESSION['boxamount'];
$no = round($number);
$point = round($number - $no, 2) * 100;
$hundred = null;
$digits_1 = strlen($no);
$i = 0;
$str = array();
$words = array('0' => '', '1' => 'One', '2' => 'Two',
'3' => 'Three', '4' => 'Four', '5' => 'Five', '6' => 'Six',
'7' => 'Seven', '8' => 'Eight', '9' => 'Nine',
'10' => 'Ten', '11' => 'Eleven', '12' => 'Twelve',
'13' => 'Thirteen', '14' => 'Fourteen',
'15' => 'Fifteen', '16' => 'Sixteen', '17' => 'Seventeen',
'18' => 'Eighteen', '19' =>'Nineteen', '20' => 'Twenty',
'30' => 'Thirty', '40' => 'Forty', '50' => 'Fifty',
'60' => 'Sixty', '70' => 'Seventy',
'80' => 'Eighty', '90' => 'Ninety');
$digits = array('', 'Hundred', 'Thousand', 'Lakh', 'Crore');
while ($i < $digits_1) {
$divider = ($i == 2) ? 10 : 100;
$number = floor($no % $divider);
$no = floor($no / $divider);
$i += ($divider == 10) ? 1 : 2;
if ($number) {
$plural = (($counter = count($str)) && $number > 9) ? 's' : null;
$hundred = ($counter == 1 && $str[0]) ? ' and ' : null;
$str [] = ($number < 21) ? $words[$number] .
" " . $digits[$counter] . $plural . " " . $hundred
:
$words[floor($number / 10) * 10]
. " " . $words[$number % 10] . " "
. $digits[$counter] . $plural . " " . $hundred;
} else $str[] = null;
}
$str = array_reverse($str);
$result = implode('', $str);
$points = ($point) ?
"." . $words[$point / 10] . " " .
$words[$point = $point % 10] : '';
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/font-awesome.min.css">
<title>Verify Added Amount</title>
<style type="text/css">
@font-face{
font-family: 'Varela Round', sans-serif;
src: url(VarelaRound-Regular.ttf);
}
body {
background: #7d1a9b;
}
.panel
{
margin-top: 140px;
}
.text-center
{
margin-top: 30px;
margin-bottom: 20px;
}
.mod
{
margin-top: 20px;
}
.verify
{
text-align: center;
font-weight: bold;
}
</style>
</head>
<body>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<a class="navbar-brand" style="text-align: right;"><font color="#134756"><b>Kitchen Diary</b></font></a>
<ul class="nav navbar-nav">
<li class=""><a href="home.php" style="text-align: right;" class="navibar">Home</a></li>
</ul>
</div>
</div>
</nav>
<div class="container">
<div class="panel panel-primary">
<div class="panel-heading">
<p class="verify">Verify</p></div>
<div class="panel-body">
<div class="text-center">
<form method="post" action="contribution_check.php">
<p>Hi <?php echo "$user"; ?></p>
<p>You are adding <h3><b>Rs.<?php echo $result ?></b></h3> from your own money.</p><p><u>Reason: </u><p ><b><?php echo "$valid_reason"; ?></b></p></p><hr>
<button class="btn btn-success" name="submit">That's Correct</button>
</form>
<div class="mod">
<button class="btn btn-default" onclick="location.href='whoseamount.php'">Modify</button>
</div></div></div></div></div>
</body>
</html>