-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex-1.php
184 lines (175 loc) · 9.9 KB
/
index-1.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
<?php
session_start();
include 'dbms_server_conn.php';
$m_no=$_SESSION['user'];
$sql=" SELECT * FROM hashcash.user where mobilenumber='$m_no'";
$result = mysqli_query($con,$sql);
if(!$result)
{
}
else
{
$row=mysqli_fetch_array($result, MYSQLI_ASSOC);
$name=$row['name'];
$bal=$row['balance'];
#echo $row['mobilenumber'];
}
$querry= "SELECT currentbalance FROM hashcash.trdetails ";
$result1 = mysqli_query($con,$querry);
$results = mysqli_fetch_array($result1);
$dataPoints = array(
array("x"=> 0, "y"=> $results[0]),
);
$cnt=0;
while($cnt<10)
{ $cnt=$cnt+1;
$results = mysqli_fetch_array($result1) ;
array_push($dataPoints,array("x"=> $cnt, "y"=> $results[0]));
}
?>
<!DOCTYPE html>
<html>
<head>
<script>
window.onload = function () {
var chart = new CanvasJS.Chart("chartContainer", {
title: {
text: "Monthly Balance"
},
axisY: {
title: "Balance"
},
data: [{
type: "line",
dataPoints: <?php echo json_encode($dataPoints, JSON_NUMERIC_CHECK); ?>
}]
});
chart.render();
}
</script>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<title>HashCash</title>
<link rel="stylesheet" href="assets/bootstrap/css/bootstrap.min.css">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Catamaran:100,200,300,400,500,600,700,800,900">
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Muli">
<link rel="stylesheet" href="assets/fonts/font-awesome.min.css">
<link rel="stylesheet" href="assets/css/Bootstrap-Payment-Form.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/3.5.2/animate.min.css">
<link rel="stylesheet" href="assets/css/Login-Form-Dark.css">
<link rel="stylesheet" href="assets/css/Table-With-Search-1.css">
<link rel="stylesheet" href="assets/css/Table-With-Search.css">
</head>
<body id="page-top">
<nav class="navbar navbar-light navbar-expand-lg fixed-top" id="mainNav">
<div class="container"><a class="navbar-brand js-scroll-trigger" href="#page-top" data-bs-hover-animate="shake">HashCash</a><button class="navbar-toggler float-right" data-toggle="collapse" data-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false"
aria-label="Toggle navigation"><i class="fa fa-bars"></i></button>
<div class="collapse navbar-collapse" id="navbarResponsive">
<ul class="nav navbar-nav ml-auto">
<li class="nav-item" role="presentation"><a class="nav-link js-scroll-trigger" href="#download">PAY</a></li>
<li class="nav-item" role="presentation"><a class="nav-link js-scroll-trigger" href="#features">RECHARGE</a></li>
<li class="nav-item" role="presentation"><a class="nav-link js-scroll-trigger" href="index-2.php">PROFILE</a></li>
<li class="nav-item" role="presentation"><a class="nav-link js-scroll-trigger" href="index-1.php">STATISTICS</a></li>
<li class="nav-item" role="presentation"><a class="nav-link js-scroll-trigger" href="logout.php">LOGOUT</a></li>
</ul>
</div>
</div>
</nav>
<header class="masthead" style="background:url('assets/img/bg-pattern.png'), linear-gradient(to left, #7b4397, #dc2430);height:100%;">
<div class="container h-100" style="width: 1136px;">
<div class="row h-100" style="width: 600px;">
<div class="col-lg-7 my-auto">
<div class="mx-auto header-content">
<h1 class="mb-5">Hi <?php echo $name?></h1>
<h1 class="mb-5">Balance : <?php echo $bal?></h1><a class="btn btn-outline-warning btn-xl js-scroll-trigger" role="button" href="#download">Start Now for Free!</a></div>
</div>
</div>
<section></section>
</div>
</header>
<div id="chartContainer" style="height: 370px; width: 100%;"></div>
<script src="https://canvasjs.com/assets/script/canvasjs.min.js"></script>
<section id="download" class="download text-center bg-primary">
<div class="container">
<div class="row">
<div class="col-md-8 mx-auto">
<h2 class="section-heading">Pay </h2>
<form class="bootstrap-form-with-validation" action = transaction.php>
<div class="form-group"><label for="text-input">Mobile Number</label><input class="form-control" type="text" name="tomobile" placeholder="Enter receiver's mobile number" id="tomobile" style="opacity: 0.4;"></div>
<div class="form-group"><label for="text-input">Transfer Amount</label><input class="form-control" type="text" name="amount" placeholder="Enter transfer amount" id="amount" style="opacity: 0.4;"></div>
<div class="form-group"><label for="password-input">Password</label><input class="form-control" type="password" name="password" placeholder="Enter your account password" id="password" style="opacity: 0.4;"></div>
<div class="form-group">
</div>
<div class="form-group"><button class="btn btn-primary" type="submit">PROCESS PAYMENT</button></div>
</form>
<div class="badges"></div>
</div>
</div>
</div>
</section>
<section id="features" class="features" style="margin: 5px;">
<div class="container" style="height: 622px;padding: -34px;margin: -4px;">
<div class="section-heading text-center" style="width: 1013px;height: 420px;padding: -81px;margin: -89px;">
<div class="col-12 col-md-4 offset-md-4">
<div class="card credit-card-box" style="width: 385px;margin: 34px;">
<div class="card-header">
<h3><span class="panel-title-text">Recharge your wallet </span><img class="img-fluid panel-title-image" src="assets/img/accepted_cards.png"></h3>
</div>
<div class="card-body">
<form id="payment-form" action = "recharge.php">
<div class="form-row">
<div class="col-12">
<div class="form-group"><label for="cardNumber">Card number </label>
<div class="input-group"><input class="form-control" type="tel" name="card" required="" placeholder="Valid Card Number" id="cardNumber">
<div class="input-group-append"><span class="input-group-text"><i class="fa fa-credit-card"></i></span></div>
</div>
</div>
</div>
</div>
<div class="form-row">
<div class="col-7">
<div class="form-group"><label for="cardExpiry"><span>expiration </span><span>EXP </span> date</label><input class="form-control" type="tel" name="date" required="" placeholder="MM / YY" id="cardExpiry"></div>
</div>
<div class="col-5 pull-right">
<div class="form-group"><label for="cardCVC">cv code</label><input class="form-control" type="tel" name="cvv" required="" placeholder="CVV" id="cardCVC"></div>
</div>
</div>
<div class="form-row">
<div class="col-12">
<div class="form-group"><label for="Amount">Amount</label><input class="form-control" type="text" name="amount" placeholder="Enter Amount" id="couponCode"></div>
</div>
<div class="col-12">
<div class="form-group"><label for="password">Password</label><input class="form-control" type="password" name="password" placeholder="Enter Password" id="password"></div>
</div>
</div>
<div class="form-row">
<div class="col-12"><button class="btn btn-success btn-block btn-lg" type="submit">ADD MONEY</button></div>
</div>
</form>
</div>
</div>
</div>
<p class="text-muted"></p>
<hr>
</div>
</div>
</section>
<footer>
<div class="container">
<p>© HashCash 2019. All Rights Reserved.</p>
<ul class="list-inline">
<li class="list-inline-item"><a href="#">Privacy</a></li>
<li class="list-inline-item"><a href="#">Terms</a></li>
<li class="list-inline-item"><a href="#">FAQ</a></li>
</ul>
</div>
</footer>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/bootstrap/js/bootstrap.min.js"></script>
<script src="assets/js/bs-animation.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
<script src="assets/js/new-age.js"></script>
<script src="assets/js/Table-With-Search.js"></script>
</body>
</html>