-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmancheque.php
More file actions
136 lines (129 loc) · 4.23 KB
/
mancheque.php
File metadata and controls
136 lines (129 loc) · 4.23 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>GSIX BANK</title>
<meta charset="utf-8">
<meta name = "format-detection" content = "telephone=no" />
<link rel="icon" href="images/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="css/grid.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/touchTouch.css">
<script src="js/jquery.js"></script>
<script src="js/jquery-migrate-1.2.1.js"></script>
<script src="js/touchTouch.jquery.js"></script>
<script src="js/script.js"></script>
<!--[if (gt IE 9)|!(IE)]><!-->
<script src="js/wow.js"></script>
<script>
$(document).ready(function () {
if ($('html').hasClass('desktop')) {
new WOW().init();
}
});
</script>
<!--<![endif]-->
<!--[if lt IE 8]>
<div style=' clear: both; text-align:center; position: relative;'>
<a href="http://windows.microsoft.com/en-US/internet-explorer/products/ie/home?ocid=ie6_countdown_bannercode">
<img src="images/ie8-panel/warning_bar_0000_us.jpg" border="0" height="42" width="820" alt="You are using an outdated browser. For a faster, safer browsing experience, upgrade for free today." />
</a>
</div>
<![endif]-->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<link rel="stylesheet" type="text/css" media="screen" href="css/ie.css">
<![endif]-->
</head>
<body class="index-2">
<!--==============================header=================================-->
<header id="header">
<div id="stuck_container">
<div class="container">
<div class="row">
<div class="grid_12">
<h1><a href="index.html">GSIX BANK</a><span>Your New Banking Partner</span></h1>
<nav>
<ul class="sf-menu">
<li><a href="userhome.php">Home</a></li>
<li><a href="index-1.html">Services</a></li>
<li><a href="index-2.html">Branches</a></li>
<li><a href="index-3.html">About Us</a></li>
<li class="current"><a href="logout.php">Logout</a></li>
</ul>
</nav>
</div>
</div>
</div>
</div>
</header>
<!--=======content================================-->
<section id="content">
<div class="full-width-container block-1">
<form id="signup" name="form1" method="post" action="mancheque.php" >
<table width="80%" height="200" border="0" align="center">
<td>
Recipient:</td><td><input type="text" name="recipient" id="textfield" required/></td>
</tr><tr> <td>
Amount $</td><td><input type="text" name="amount" id="textfield" required/></td>
</tr>
<tr><td>
Date:</td><td><input type="date" name="date" id="textfield" required/></td>
</tr>
<tr> <td colspan="2" align="center"><input type="submit" name="transfer" id="submit" value="Submit" /></td>
</tr>
</table>
</form>
</div>
</section>
<!--=======footer=================================-->
<footer id="footer">
<div class="container">
<div class="row">
<div class="grid_12 copyright">
<h2><span>Follow Us</span></h2>
<a href="#" class="btn bd-ra"><span class="fa fa-facebook"></span></a>
<a href="#" class="btn bd-ra"><span class="fa fa-tumblr"></span></a>
<a href="#" class="btn bd-ra"><span class="fa fa-google-plus"></span></a>
<pre>© <span id="copyright-year"></span> | Privacy Policy</pre>
</div>
</div>
</div>
<div class="footer_bottom"><a href="#" rel="nofollow"><img src="images/footer-logo.png" alt="logo"></a></div>
</footer>
<script>
$(function(){
$('#touch_gallery a').touchTouch();
});
</script>
</body>
</html>
<?php
if(isset($_POST['transfer']))
{
error_reporting(0);
include('db.php');
extract($_POST);
session_start();
$sender=$_SESSION['username'];
$sql="insert into cheque(sender,recipient,date,amount) values('$sender','$recipient','$date','$amount')";
$res=mysql_query($sql,$con);
if($res) {
?>
<script language="javascript">
alert("Sucessfully submitted...");
window.location="userhome.php";
</script>
<?php
}
else
{
?>
<script language="javascript">
alert(" Failed to manipulate cheque.... Try Again...");
window.location="mancheque.php";
</script>
<?php
}
mysql_close($con);
}
?>