-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMemberPage.php
More file actions
163 lines (122 loc) · 4.96 KB
/
Copy pathMemberPage.php
File metadata and controls
163 lines (122 loc) · 4.96 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
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
<html>
<body>
<div class="row">
<div class="large-3 columns">
<h1><img src="http://placehold.it/400x100&text=DATABLAZERGAMES"/></h1>
</div>
<div class="large-9 columns">
<ul class="right button-group">
<li><a href="#" class="button">Link 1</a></li>
<li><a href="#" class="button">Link 2</a></li>
<li><a href="#" class="button">Link 3</a></li>
<li><a href="#" class="button">Link 4</a></li>
</ul>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<div id="slider">
<img src="http://placehold.it/1000x400&text=[ img 1 ]"/>
</div>
<hr/>
</div>
</div>
<div class="row">
<div class="large-4 columns">
<img src="http://placehold.it/400x300&text=[img]"/>
<h4>Your Points!</h4>
<?php
$db_conn = oci_connect("ora_r3v8", "a21491139", "ug");
//!!! NEED TO TAKE MEMBER ID FROM LOGIN
$Memberid = 90876543;
$Memberpoints = oci_parse($db_conn, "SELECT POINTS FROM MEMBER MEMBER WHERE CID=:Memberid");
oci_bind_by_name($Memberpoints, ":Memberid", $Memberid);
$Memberpointsexecute = oci_execute($Memberpoints);
echo "<p> MemberID: " . $Memberid . "</p>";
if($Memberpointsexecute){
while($row = oci_fetch_assoc($Memberpoints)){
print "<p> You have " . $row['POINTS'] . " points. </p>";
}
}
//while ($row = oci_fetch_array($Memberpointsexecute, OCI_BOTH)) {
// echo "<p> you have " . $row['POINTS'] . " points </p>";
//}
//echo "you can afford the following items!";
?>
</div>
<div class="large-4 columns">
<img src="http://placehold.it/400x300&text=[img]"/>
<h4>Your history</h4>
<p>Bacon ipsum dolor sit amet nulla ham qui sint exercitation eiusmod commodo, chuck duis velit. Aute in reprehenderit, dolore aliqua non est magna in labore pig pork biltong. Eiusmod swine spare ribs reprehenderit culpa. Boudin aliqua adipisicing rump corned beef.</p>
</div>
<div class="large-4 columns">
<img src="http://placehold.it/400x300&text=[img]"/>
<h4>This is a content section.</h4>
<p>Bacon ipsum dolor sit amet nulla ham qui sint exercitation eiusmod commodo, chuck duis velit. Aute in reprehenderit, dolore aliqua non est magna in labore pig pork biltong. Eiusmod swine spare ribs reprehenderit culpa. Boudin aliqua adipisicing rump corned beef.</p>
</div>
</div>
<div class= "row">
<!--- Add ---->
<!--- search bar -->
<!--refresh page when submit-->
<p> Search an item: <input type="text" name="searchitem" size="6">
<?php
$branchcity = oci_parse($db_conn, "SELECT distinct CITY FROM BRANCH");
$branchaddress = oci_parse($db_conn, "SELECT distinct ADDRESS FROM BRANCH");
$resultcity = oci_execute($branchcity);
$resultaddress = oci_execute($branchaddress);
echo '<p> Branch city </p>';
echo "<select name = 'branchcity'>";
echo "<option value = 'empty'> ---- </option>";
while ($row = oci_fetch_assoc($branchcity)) {
echo "<option value='" . $row['CITY'] . "'>" . $row['CITY'] . "</option>";
}
echo "</select>";
echo '<p> Branch address </p>';
echo "<select name = 'branchaddress'>";
echo "<option value = 'empty'> ---- </option>";
while ($row = oci_fetch_array($branchaddress)) {
echo "<option value='" . $row['ADDRESS'] . "'>" . $row['ADDRESS'] . "</option>";
}
echo "</select>";
?>
<input type="submit" value="search" name="searchitembutton">
</p>
<!-- at branch -->
<!--- list ALL items -->
</div>
<div class="row">
<div class="large-12 columns">
<div class="panel">
<h4>Get in touch!</h4>
<div class="row">
<div class="large-9 columns">
<p>We'd love to hear from you, you attractive person you.</p>
</div>
<div class="large-3 columns">
<a href="#" class="radius button right">Contact Us</a>
</div>
</div>
</div>
</div>
</div>
<footer class="row">
<div class="large-12 columns">
<hr/>
<div class="row">
<div class="large-6 columns">
<p>© Copyright no one at all. Go to town.</p>
</div>
<div class="large-6 columns">
<ul class="inline-list right">
<li><a href="#">Link 1</a></li>
<li><a href="#">Link 2</a></li>
<li><a href="#">Link 3</a></li>
<li><a href="#">Link 4</a></li>
</ul>
</div>
</div>
</div>
</footer>
</body>
</html>