-
Notifications
You must be signed in to change notification settings - Fork 0
/
payment.php
77 lines (61 loc) · 2.28 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
<?php
session_start();
include_once('connect_db.php');
if(isset($_POST['submit'])){
$invoice_no=$_POST['invoiceno'];
$amount=$_POST['amount'];
$id=$_POST['id'];
$sql=mysqli_query($con,"INSERT INTO payment(invoice_no,amount,id)
VALUES('$invoice_no','$amount','$id')");
if($sql>0) {header("location:http://".$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/payment.php");
}else{
$message1="<font color=red> Failed, Try again</font>";
}}
?>
<html>
<head>
<title><?php echo $user;?> - Pharmacy Sys</title>
<link rel="stylesheet" type="text/css" href="style/2.css">
<link rel="stylesheet" href="style/.css"1 type="text/css" media="screen" />
<link rel="stylesheet" href="style/3.css" type="text/css" media="screen" />
<script src="js/function.js" type="text/javascript"></script>
<script type="text/javascript" SRC="js/jquery-1.4.2.min.js"></script>
<style>
</style>
</head>
<body style="background-image:url(images/m.jpg);" >
<div id="content" style="background-image:url(images/c.jpg);">
<div id="header" >
<h1>Pharmacy System</h1></div>
<div id="left_column" >
<div id="button" >
<ul>
<li><a href="cashier.php">Dashboard</a></li>
<li><a href="payment.php"target="_top">Process payment</a></li>
<li><a href="logout.php">Logout</a></li>
</ul>
</div>
</div>
<div id="main" style="background-image:url(images/c.jpg);">
<div id="tabbed_box" class="tabbed_box">
<h4> Manage Payments</h4>
<div class="tabbed_area">
<ul class="tabs">
</ul>
<div id="content_1" class="content">
<div id="viewer1"><span id="viewer2"></span></div>
<form method="post" >
<table width="220" height="106" border="0" >
<tr><td ><input name="invoiceno" type="text" style="width:170px" placeholder="Invoice No" /></td></tr>
<tr><td ><input name="amount" type="text" style="width:170px" placeholder="Amount" required="required" /></td></tr>
<tr><td ><input name="id" type="text" style="width:170px" placeholder="Id" /></td></tr>
<tr><td><input name="submit" type="submit" value="Submit" /></td></tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>