Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vmusicchart-cms
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Phạm Văn Đoan
vmusicchart-cms
Commits
892abd2a
Commit
892abd2a
authored
Mar 11, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cập nhật upload
parent
e4afa009
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
CmsTrack.php
application/controllers/backend/CmsTrack.php
+6
-5
No files found.
application/controllers/backend/CmsTrack.php
View file @
892abd2a
...
...
@@ -46,9 +46,9 @@ class CmsTrack extends CI_Controller
$this
->
load
->
view
(
'backend/ajax/cms_track/list_track_view'
,
$data
);
}
public
function
editTrack
(
$
contest
_id
,
$id_user
=
''
,
$id_artist
=
''
)
public
function
editTrack
(
$
track
_id
,
$id_user
=
''
,
$id_artist
=
''
)
{
$this
->
_data
[
'contest'
]
=
$contest
=
$this
->
track_model
->
getById
(
$
contest
_id
,
$id_user
,
$id_artist
);
$this
->
_data
[
'contest'
]
=
$contest
=
$this
->
track_model
->
getById
(
$
track
_id
,
$id_user
,
$id_artist
);
$track_user
=
''
;
$this
->
_data
[
'track_artists'
]
=
$track_artists
=
''
;
if
(
$id_user
!=
0
)
{
...
...
@@ -112,6 +112,7 @@ class CmsTrack extends CI_Controller
$upload_path
=
'uploads/tracks/arts'
;
$upload_full_path
=
'/home/aseanvn/public_html/vmusicchart.dcv.vn/'
.
$upload_path
;
$config
[
'upload_path'
]
=
$upload_full_path
;
$config
[
'file_name'
]
=
md5
(
$track_id
.
time
());
$config
[
'allowed_types'
]
=
'gif|jpg|png'
;
$config
[
'max_size'
]
=
20480
;
$config
[
'max_width'
]
=
1024
;
...
...
@@ -124,9 +125,9 @@ class CmsTrack extends CI_Controller
$db_art_path
=
$upload_path
.
'/'
.
$upload_data
[
'file_name'
];
}
$this
->
track_model
->
update_track_artists
(
$
contest
_id
,
$id_artists
,
$id_artist
,
$active_artist
);
$this
->
track_model
->
update_track_user
(
$
contest
_id
,
$id_singer
,
$id_user
,
$active_singer
);
$this
->
track_model
->
update
(
$
contest
_id
,
$title
,
$db_art_path
);
$this
->
track_model
->
update_track_artists
(
$
track
_id
,
$id_artists
,
$id_artist
,
$active_artist
);
$this
->
track_model
->
update_track_user
(
$
track
_id
,
$id_singer
,
$id_user
,
$active_singer
);
$this
->
track_model
->
update
(
$
track
_id
,
$title
,
$db_art_path
);
$this
->
session
->
set_flashdata
(
'success'
,
'Cập nhật bài hát thành công'
);
redirect
(
base_url
()
.
'backend/cmsTrack/listTrack'
);
...
...
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