-
Notifications
You must be signed in to change notification settings - Fork 10
/
raisefunds.php
130 lines (122 loc) · 4.38 KB
/
raisefunds.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
<?php
include("sqlcon.php");
if(isset($_POST[paynow]))
{
$date = date("d/m/y");
$qry = "insert into tblfund(amount,paiddate,remarks,userid,paytype,bankname, cardno,cvv,exp_month,exp_year) values (".$_POST[amount].",".$date.",".$_POST[remarks].",".$_SESSION['uid'].",".$_POST[paytype].",".$_POST[bankname].",".$_POST[cardno].",".$_POST[cvv].",".$_POST[cardexpmonth].",".$_POST[year].")";
if(mysqli_query($con, $qry))
{
echo "<script>alert(success!!!);</script>";
}
}
/* ### */ ?>
<?php
include("header.php")
/* ### */ ?>
<div class="container">
<div class="page">
<h3>Raise Funds</h3>
<div style="text-align:right; padding-right:20px;">
<a href="viewfund.php">
<button class="btn btn-primary"><i class="fa fa-plus"></i> View Fund Payment</button></a>
<p> </p>
<div class="btn-group">
</div>
</div>
<div class="bs-example" data-example-id="simple-horizontal-form">
<form class="form-horizontal" action="" method="post">
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Amount</label>
<div class="col-sm-6">
<input type="text" class="form-control" id="amount" name="amount" placeholder="Amount" required>
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Remarks</label>
<div class="col-sm-6">
<textarea class="form-control" id="remarks" name="remarks" placeholder="Remarks" required></textarea>
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Pay Type</label>
<div class="col-sm-6">
<input type="Radio" name="paytype" value="Debitcard" /> Debit Card
<input type="Radio" name="paytype" value="Creditcard" /> Credit Card<br/>
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Bank Name</label>
<div class="col-sm-6">
<input type="text" class="form-control" id="bankname" name="bankname" placeholder="Bank Name" required>
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Card No</label>
<div class="col-sm-6">
<input type="text " class="form-control" id="cardno" name="cardno" placeholder="Card No" required onchange="checkcardno(this.value)">
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">CVV</label>
<div class="col-sm-6">
<input type="text " class="form-control" id="cvv" name="cvv" placeholder="CVV" required>
</div>
</div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Card Expire Month</label>
<div class="col-sm-6">
<select name="cardexpmonth" id="cardexpmonth" class="form-control">
<option value=0>--Select -- </option>
<option value=1>1</option>
<option value=2>2</option>
<option value=3>3</option>
<option value=4>4</option>
<option value=5>5</option>
<option value=6>6</option>
<option value=7>7</option>
<option value=8>8</option>
<option value=9>9</option>
<option value=10>10</option>
<option value=11>11</option>
<option value=12>12</option>
</select>
</div></div>
<div class="form-group">
<label for="inputEmail3" class="col-sm-2 control-label">Year</label>
<div class="col-sm-6">
<select name="year" id="year" class="form-control">
<option value=0>--Select -- </option>
<?php
$arr = array("2020","2021","2022","2023","2024","2025","2026","2027","2028","2029","2030");
foreach($arr as $val)
{
echo "<option value=$val>$val</option>";
}
?>
</select>
</div>
</div>
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
<input type="submit" class="btn btn-default" name="paynow" value="PAY NOW">
<input type="reset" class="btn btn-default" name="cancel" value="CANCEL">
</div>
</div>
</form>
</div>
</div>
</div>
<?php
include("footer.php");
/* ### */ ?>
<script type="text/javascript">
function checkcardno(cardno)
{
if(cardno.length != 16)
{
alert("Invalid Card Number");
document.getElementById("cardno").value="";
document.getElementById("cardno").focus();
}
}
</script>