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
26787f2e
authored
May 12, 2020
by
tetiana yaremko
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
upload file on live server
parent
eefa4954
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
5 deletions
application/controllers/Cart.php
application/models/Admin_model.php
application/views/admin/product_inventory.php
application/views/templates/home_t.php
application/views/user_cart.php
application/controllers/Cart.php
View file @
26787f2e
...
...
@@ -81,7 +81,7 @@ class Cart extends CI_Controller
$no
++
;
$output
.=
'
<div class="single-item-in-cart" data-cartitemid="'
.
$items
[
'id'
]
.
'">
<a><img class="mini-image" src="'
.
base_url
(
'uploads/'
.
$items
[
'image'
])
.
'" style="height: 90px;"/></a>
<a><img class="mini-image" src="'
.
$items
[
'image'
]
.
'" style="height: 90px;"/></a>
</div>
<div style="" class="description">
...
...
application/models/Admin_model.php
View file @
26787f2e
...
...
@@ -129,7 +129,7 @@ class Admin_model extends CI_Model
}
$output
.=
'
<a href="'
.
base_url
(
'index.php/home/item/'
.
$row
[
'id'
])
.
'">
<img class="shop-item-image" src="'
.
base_url
(
'uploads/'
.
$row
[
'image'
])
.
'" alt=""/>
<img class="shop-item-image" src="'
.
$row
[
'image'
]
.
'" alt=""/>
</a>
'
;
...
...
application/views/admin/product_inventory.php
View file @
26787f2e
...
...
@@ -87,7 +87,7 @@
<td>
<?php
echo
$item
->
description
;
?>
</td>
<td>
<?php
echo
$item
->
price
;
?>
</td>
<td>
<?php
echo
$item
->
q_ty
;
?>
</td>
<td><img
src=
"
<?php
echo
base_url
(
"uploads/"
.
$item
->
image
)
?>
"
></td>
<td><img
src=
"
<?php
echo
$item
->
image
?>
"
></td>
<td>
<?php
echo
$item
->
status
;
?>
</td>
<td>
<?php
echo
$item
->
feature
;
?>
</td>
<td>
<?php
echo
anchor
(
'admin/update_item/'
.
$item
->
id
,
'Update'
,
array
(
'class'
=>
'btn btn-success'
));
?>
</td>
...
...
application/views/templates/home_t.php
View file @
26787f2e
...
...
@@ -96,7 +96,7 @@
<div
class=
"shop-item"
>
<div
class=
"image"
>
<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"
/>
<img
class=
"shop-item-image"
src=
"
<?php
echo
$item
->
image
?>
"
alt=
"Ariana Grande: thank u, next exclusive clear/pink lp"
/>
</a>
<?php
if
(
$item
->
status
==
'sold'
)
:
?>
<p
class=
"sold-btn"
>
Sold out
</p>
...
...
application/views/user_cart.php
View file @
26787f2e
...
...
@@ -59,7 +59,7 @@
<tr>
<td
class=
"user-cart-item-details "
width=
"10%"
>
<div
class=
"user-cart-imag"
><img
style=
"height: 80px;"
class=
""
src=
"
<?php
echo
base_url
(
"uploads/"
.
$item
->
image
)
?>
"
/></div>
<div
class=
"user-cart-imag"
><img
style=
"height: 80px;"
class=
""
src=
"
<?php
echo
$item
->
image
?>
"
/></div>
</td>
<td
valign=
"middle"
align=
"left"
width=
"70%"
>
<p
class=
"name"
>
<?php
echo
$item
->
name
;
?>
</p>
...
...
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