Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
IF3110-2018-K03-Petjah
TugasBesar1_2018
Commits
c8dc6237
Commit
c8dc6237
authored
Oct 26, 2018
by
Erma Safira Nurmasyita
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.informatika.org/IF3110-2018-K03-Petjah/tugasbesar1_2018
parents
081a31ca
5ecbf0b9
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
26 additions
and
6 deletions
+26
-6
web/css/basic.css
web/css/basic.css
+5
-0
web/history/controller.php
web/history/controller.php
+16
-1
web/history/view.php
web/history/view.php
+4
-4
web/profile/view.php
web/profile/view.php
+1
-1
web/uploads/21.jpg
web/uploads/21.jpg
+0
-0
No files found.
web/css/basic.css
View file @
c8dc6237
...
...
@@ -153,6 +153,11 @@ a {
}
.c-border
{
border
:
2px
solid
black
!important
;
}
.alert-box
:before
,
.alert-box
:after
{
content
:
""
;
...
...
web/history/controller.php
View file @
c8dc6237
...
...
@@ -20,7 +20,22 @@ class historyController {
$conn
=
connect_to_mysql
();
$arrResult
=
array
();
if
(
$conn
!=
null
)
{
$sql_query
=
"SELECT * FROM book_order JOIN books ON book_id=books.ID where user_Id=
$userId
ORDER BY tanggal DESC"
;
// $sql_query = "SELECT * FROM book_order JOIN books ON book_id=books.ID where user_Id=$userId ORDER BY tanggal DESC";
$sql_query
=
"
SELECT
*,
(CASE
WHEN EXISTS (SELECT * FROM review where Nomor_Order=order_id) THEN TRUE
ELSE FALSE
END) as reviewed
FROM
book_order
JOIN
books
ON
book_id=books.ID
where user_Id=
$userId
ORDER BY tanggal DESC, Nomor_Order DESC
"
;
$result
=
$conn
->
query
(
$sql_query
);
if
(
$result
!=
NULL
){
while
(
$row
=
$result
->
fetch_assoc
())
{
...
...
web/history/view.php
View file @
c8dc6237
...
...
@@ -40,7 +40,7 @@ class historyView {
$resultHTML
=
'
<div class="flex-history-item align-items-flex-start">
<div class="flex-1">
<img class="history-image-item" src="'
.
$data
[
'imgSource'
]
.
'">
<img class="
c-border
history-image-item" src="'
.
$data
[
'imgSource'
]
.
'">
</div>
<div class="flex-2" >
<div class="orange-text text-size-40 title-item-history" >'
.
$data
[
'itemName'
]
.
'</div>
...
...
@@ -67,7 +67,7 @@ class historyView {
$resultHTML
=
'
<div class="flex-history-item align-items-flex-start">
<div class="flex-1">
<img class="history-image-item" src="'
.
$data
[
'imgSource'
]
.
'">
<img class="
c-border
history-image-item" src="'
.
$data
[
'imgSource'
]
.
'">
</div>
<div class="flex-2" >
<div class="orange-text text-size-40 title-item-history" >'
.
$data
[
'itemName'
]
.
'</div>
...
...
@@ -76,8 +76,8 @@ class historyView {
</div>
<div id="right-most-column-history-item">
<div class="flex-container align-items-flex-end add-flex-direction-column ">
<div class="font-weight-bold gray-text">'
.
$data
[
'date'
]
.
'</div>
<div class="font-weight-bold gray-text">Nomor Order #'
.
$data
[
'orderNumber'
]
.
'</div>
<div class="font-weight-bold
text-size-20
gray-text">'
.
$data
[
'date'
]
.
'</div>
<div class="font-weight-bold
text-size-20
gray-text">Nomor Order #'
.
$data
[
'orderNumber'
]
.
'</div>
</div>
</div>
</div>
...
...
web/profile/view.php
View file @
c8dc6237
...
...
@@ -20,7 +20,7 @@ function viewProfile (array $params) {
<label id="label-text-my-profile" >My Profile</label>
</div>
<div class="text-size-
4
0" id="profile-data-table">
<div class="text-size-
3
0" id="profile-data-table">
<div class="flex-container align-items-flex-center">
<object class="icon-profile" type="image/svg+xml" data="../svgIcon/user.svg">
Your browser does not support SVG
...
...
web/uploads/21.jpg
0 → 100644
View file @
c8dc6237
138 KB
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment