-
Notifications
You must be signed in to change notification settings - Fork 0
/
buy.php
191 lines (164 loc) · 5.86 KB
/
buy.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
185
186
187
188
189
190
191
<?php
session_start();
if(isset($_SESSION["username"])){
$username = $_SESSION["username"];
}
$name = $_GET['name'];
$price = $_GET['price'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="">
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
<title>Transact</title>
<link href="vendor/bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="assets/css/fontawesome.css">
<link rel="stylesheet" href="assets/css/templatemo-574-mexant.css">
<link rel="stylesheet" href="assets/css/owl.css">
<link rel="stylesheet" href="assets/css/animate.css">
<link rel="stylesheet" href="https://unpkg.com/swiper@7/swiper-bundle.min.css">
<style>
#logo-image{
max-width:578px;
max-height:431px;
width:115px;
height:75px;
}
.heading{
padding-top:50px;
text-align: center;
}
.topcorner{
position:fixed;
top:0;
right:0;
width:8%;
height:8%;
}
div.topcorner{
display:none;
padding-top:10px;
padding-left:10px;
}
.image:hover + .hide{
display: block;
color: black;
background-color: white;
height:50%;
width:20%;
}
</style>
</head>
<body>
<header class="header-area header-sticky">
<!--<img src="logo.png" class="topcorner image">
<div class="topcorner hide">username : <?php echo $username?><br> </div>-->
<div class="container">
<div class="row">
<div class="col-12">
<nav class="main-nav">
<a href="index.html" class="logo">
<img src="Screenshot_2022-03-04_at_2.42.56_PM-removebg-preview-modified.png" id="logo-image" alt="">
</a>
<ul class="nav">
<li ><a href="home.php">Home</a></li>
<li ><a href="stock.php">Stocks</a></li>
<li ><a href="our-services.html">Learning</a></li>
<li ><a href="portfolio.php">Portfolio</a></li>
<li ><a href="about-us.html">About Us</a></li>
<li ><a href="logout.php">Logout</a></li>
<li><a href="contact-us.php">Contact Support</a></li>
</ul>
<a class='menu-trigger'>
<span>Menu</span>
</a>
</nav>
</div>
</div>
</div>
</header>
<div class="page-heading">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="header-text">
<h2>Buy</h2>
<div class="div-dec"></div>
</div>
</div>
</div>
</div>
</div>
<section class="calculator">
<div class="container">
<div class="row">
<div class="section-heading">
<h4>Get Your <?php echo $name?> Stock!!!</h4>
</div>
<form id="calculate" action="buyaction.php" method="post">
<input type='hidden' name="name" value='<?php echo "$name";?>'/>
<div class="row">
<div class="col-lg-6">
<fieldset>
<label for="number">Quantity</label>
<input type="number" name="quantity" id="quantity" placeholder="" autocomplete="on" min="1" required>
</fieldset>
</div>
<div class="col-lg-6">
<fieldset>
<label for="price">Market Price</label>
<input type="text" name="price" id="market_price" step="0.01" placeholder="" required="" min="1" value=<?php echo $price?>>
</fieldset>
</div>
<div class="col-lg-6">
<fieldset>
<label for="stoploss">Stoploss</label>
<input type="number" name="stoploss" id="stoploss" min="1" autocomplete="on" >
</fieldset>
</div>
<div class="col-lg-6">
<fieldset>
<label for="limprice">Limit Price</label>
<input type="number" name="limprice" id="limit_price" placeholder="" min="1">
</fieldset>
</div>
<div class="col-lg-6">
<fieldset>
<label for="target">Target</label>
<input type="number" name="target" id="target" placeholder="" min="1" autocomplete="on" >
</fieldset>
</div>
<div class="col-lg-6">
<fieldset>
<label for="trailing">Trailing Stoploss %</label>
<input type="number" name="traling" id="trailing_stoploss" placeholder="" min="1" autocomplete="on" >
</fieldset>
</div>
<div class="col-lg-12">
<fieldset>
<button type="submit" id="form-submit" class="orange-button">Execute</button>
</fieldset>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<br><br><br>
<footer>
<div class="container">
<div class="row">
<div class="col-lg-12">
<p>Copyright © 2022 Stockify, Ltd. All Rights Reserved.
<br>Designed by Team 8</p>
</div>
</div>
</div>
</footer>
</body>
</html>