Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tetiana yaremko
/
web-app-group2
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f42c3613
authored
May 10, 2020
by
tetiana yaremko
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
single product page implemented
parent
5d7e33ed
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
24 additions
and
19 deletions
application/hooks/acl.php
application/models/Admin_model.php
application/views/templates/footer.php
application/views/templates/header.php
application/views/templates/home_t.php
asset/css/home.css
application/hooks/acl.php
View file @
f42c3613
...
...
@@ -17,6 +17,7 @@
$allowAll
[
'home'
][
'products'
]
=
true
;
$allowAll
[
'home'
][
'all_products'
]
=
true
;
$allowAll
[
'home'
][
'filter_products'
]
=
true
;
$allowAll
[
'home'
][
'item'
]
=
true
;
$allowAll
[
'cart'
][
'add_to_cart'
]
=
true
;
$allowAll
[
'cart'
][
'show_cart'
]
=
true
;
$allowAll
[
'cart'
][
'load_cart'
]
=
true
;
...
...
application/models/Admin_model.php
View file @
f42c3613
...
...
@@ -52,7 +52,7 @@ class Admin_model extends CI_Model
//get product item data in order to update
public
function
get_product
(
$item_id
)
{
$this
->
db
->
select
(
'product.id, product.artist, product.title, product.genre, product.description, product.price, product.q_ty, product.image, status.status,
feature
.feature'
);
$this
->
db
->
select
(
'product.id, product.artist, product.title, product.genre, product.description, product.price, product.q_ty, product.image, status.status,
product
.feature'
);
$this
->
db
->
from
(
'product'
);
$this
->
db
->
join
(
'status'
,
'product.status_id = status.id_status'
);
$this
->
db
->
where
(
'id'
,
$item_id
);
...
...
@@ -127,7 +127,7 @@ class Admin_model extends CI_Model
<span class="badge rounded-0">Exclusive</span>'
;
}
$output
.=
'
<a href="
<?php echo base_url(); ?>index.php/items/item1
">
<a href="
'
.
base_url
(
'index.php/home/item/'
.
$row
[
'id'
])
.
'
">
<img class="shop-item-image" src="'
.
base_url
(
'uploads/'
.
$row
[
'image'
])
.
'" alt=""/>
</a>
...
...
application/views/templates/footer.php
View file @
f42c3613
...
...
@@ -11,36 +11,36 @@
</head>
<style>
.
container-fluid
{
.
footer
{
background-color
:
#101010
;
color
:
whitesmoke
;
}
.
container-fluid
>
.row
:first-of-type
{
.
footer
>
.row
:first-of-type
{
background-color
:
black
;
}
.
container-fluid
a
,
.
container-fluid
p
{
.
footer
a
,
.
footer
p
{
color
:
whitesmoke
;
font-size
:
1.1rem
;
}
.
container-fluid
ul
{
.
footer
ul
{
list-style-type
:
none
;
}
.
container-fluid
ul
>
li
:first-of-type
,
.container-fluid
p
:first-of-type
{
.
footer
ul
>
li
:first-of-type
,
.footer
p
:first-of-type
{
text-transform
:
uppercase
;
font-weight
:
bold
;
font-size
:
1.3rem
;
}
.
container-fluid
li
{
.
footer
li
{
margin
:
5px
0
;
}
.
container-fluid
.container
ul
li
i
{
.
footer
.container
ul
li
i
{
font-size
:
1.4rem
;
}
</style>
<body>
<div
class=
"container-fluid"
>
<div
class=
"container-fluid
footer
"
>
<div
class=
"row py-4 justify-content-center"
>
<a
class=
"mr-3"
href=
"https://www.facebook.com/tania.yaremko"
target=
"_blank"
><i
class=
"fa fa-facebook-square fa-2x"
></i></a>
...
...
application/views/templates/header.php
View file @
f42c3613
...
...
@@ -3,6 +3,7 @@
<title>
retro record
</title>
<link
rel=
"stylesheet"
href=
"
<?php
echo
base_url
();
?>
asset/css/home.css"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"
<?php
echo
base_url
();
?>
asset/css/bootstrap.min.css"
type=
"text/css"
>
<link
href=
"https://fonts.googleapis.com/css?family=Lato:400,700&display=swap"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
>
<link
rel=
"stylesheet"
href=
"https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity=
"sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh"
crossorigin=
"anonymous"
>
</head>
...
...
application/views/templates/home_t.php
View file @
f42c3613
...
...
@@ -8,7 +8,7 @@
<link
href=
"https://fonts.googleapis.com/css?family=Lato:400,700&display=swap"
rel=
"stylesheet"
>
<link
rel=
"stylesheet"
href=
"
<?php
echo
base_url
();
?>
asset/css/home.css"
type=
"text/css"
>
<link
rel=
"stylesheet"
href=
"
<?php
echo
base_url
();
?>
asset/css/bootstrap.min.css"
type=
"text/css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
>
...
...
@@ -94,7 +94,7 @@
<?php
if
(
$item
->
feature
==
'recommended'
)
{
?>
<div
class=
"shop-item"
>
<div
class=
"image"
>
<a
href=
"
<?php
echo
base_url
();
?>
index.php/
items/item1
"
>
<a
href=
"
<?php
echo
base_url
();
?>
index.php/
home/item/
<?php
echo
$item
->
id
;
?>
"
>
<img
class=
"shop-item-image"
src=
"
<?php
echo
base_url
(
"uploads/"
.
$item
->
image
)
?>
"
alt=
"Ariana Grande: thank u, next exclusive clear/pink lp"
/>
</a>
<?php
if
(
$item
->
status
==
'sold'
)
:
?>
...
...
asset/css/home.css
View file @
f42c3613
...
...
@@ -3,7 +3,7 @@ body {
overflow-y
:
scroll
;
position
:
relative
;
background
:
#fff
;
font-
style
:
Helvetica
;
font-
family
:
'Lato'
,
sans-serif
;
font-family
:
Arial
,
Helvetica
,
sans-serif
;
letter-spacing
:
-1px
;
...
...
@@ -27,6 +27,9 @@ body {
}
.bolder
{
font-weight
:
bold
;
}
div
{
display
:
block
;
}
...
...
@@ -37,7 +40,7 @@ div {
}
.shipping-offer
{
background-color
:
#203229
;
background-color
:
#3a3a3a
;
color
:
whitesmoke
;
display
:
flex
;
justify-content
:
center
;
...
...
@@ -152,7 +155,7 @@ div {
.head-offer
{
margin-top
:
132px
;
background-color
:
#
2D473A
;
background-color
:
#
3a3a3a
;
box-shadow
:
5px
10px
8px
#4c7762
;
}
.offer-list
{
...
...
@@ -161,12 +164,12 @@ div {
}
.offer
{
justify-content
:
space-around
;
background-color
:
#2D473A
;
background-color
:
#3a3a3a
;
}
.row
.see-all-btn
{
font-size
:
1.3rem
;
font-weight
:
bold
;
background-color
:
#2D473A
;
background-color
:
#3a3a3a
;
color
:
#AE860D
;
}
@media
(
max-width
:
950px
)
{
...
...
@@ -316,7 +319,7 @@ div {
position
:
absolute
;
top
:
80%
;
right
:
0
;
background-color
:
#
2D473A
;
background-color
:
#
3a3a3a
;
text-transform
:
uppercase
;
padding
:
0.1rem
0.5rem
;
transition
:
all
0.3s
linear
;
...
...
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