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
37a01966
Commit
37a01966
authored
Mar 09, 2020
by
Phạm Văn Đoan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update list bảng xếp hạng
parent
58d59362
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
28 additions
and
38 deletions
+28
-38
CmsTrack.php
application/controllers/backend/CmsTrack.php
+4
-16
list_by_daily_view.php
...ion/views/backend/ajax/cms_ranking/list_by_daily_view.php
+1
-7
list_by_monthly_view.php
...n/views/backend/ajax/cms_ranking/list_by_monthly_view.php
+1
-7
list_by_weekly_view.php
...on/views/backend/ajax/cms_ranking/list_by_weekly_view.php
+1
-7
edit_track_view.php
application/views/backend/cms_track/edit_track_view.php
+21
-1
No files found.
application/controllers/backend/CmsTrack.php
View file @
37a01966
...
...
@@ -46,7 +46,7 @@ class CmsTrack extends CI_Controller
$this
->
load
->
view
(
'backend/ajax/cms_track/list_track_view'
,
$data
);
}
public
function
edit
Contest
(
$contest_id
)
public
function
edit
Track
(
$contest_id
)
{
$this
->
_data
[
'contest'
]
=
$contest
=
$this
->
track_model
->
getById
(
$contest_id
);
// Kiểm tra trùng giá trị nếu thay đổi ở form
...
...
@@ -77,9 +77,9 @@ class CmsTrack extends CI_Controller
$this
->
_data
[
'date_limit'
]
=
$this
->
input
->
post
(
'name'
);
$this
->
_data
[
'date_from'
]
=
$this
->
input
->
post
(
'description'
);
//
$this
->
_data
[
'functionName'
]
=
'
QL Cuộc đua
'
;
$this
->
_data
[
'action'
]
=
'edit
Contest
'
;
$this
->
_data
[
'titlePage'
]
=
'
QL Cuộc đua
'
;
$this
->
_data
[
'functionName'
]
=
'
Cập nhật thông tin
'
;
$this
->
_data
[
'action'
]
=
'edit
Track
'
;
$this
->
_data
[
'titlePage'
]
=
'
Cập nhật thông tin
'
;
$this
->
_data
[
'loadPage'
]
=
'backend/cms_track/edit_track_view'
;
$this
->
load
->
view
(
'backend/admin_template_view'
,
$this
->
_data
);
}
else
{
...
...
@@ -110,15 +110,4 @@ class CmsTrack extends CI_Controller
}
}
public
function
showUser
(
$user_id
)
{
$this
->
_data
[
'user'
]
=
$this
->
muser
->
getById
(
$user_id
);
//
$this
->
_data
[
'functionName'
]
=
'Thông tin Người chơi'
;
$this
->
_data
[
'action'
]
=
'showUser'
;
$this
->
_data
[
'titlePage'
]
=
'Thông tin Người chơi'
;
$this
->
_data
[
'loadPage'
]
=
'backend/cms_user/show_user_view'
;
$this
->
load
->
view
(
'backend/admin_template_view'
,
$this
->
_data
);
}
}
\ No newline at end of file
application/views/backend/ajax/cms_ranking/list_by_daily_view.php
View file @
37a01966
...
...
@@ -8,7 +8,6 @@
<th
style=
"text-align: center"
>
Tên bài hát
</th>
<th
style=
"text-align: center"
>
Ca sĩ
</th>
<th
style=
"text-align: center"
>
Nhạc sĩ
</th>
<th
style=
"text-align: center"
>
Xử lý
</th>
</tr>
</thead>
<tbody>
...
...
@@ -19,12 +18,7 @@
<td
style=
"text-align: center"
><img
src=
"
<?php
echo
base_url
(
$data
[
'art'
]);
?>
"
></td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'name_song'
];
?>
</td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'all_name'
];
?>
</td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'total_point'
];
?>
</td>
<td
style=
"text-align: center"
>
<a
href=
"
<?php
echo
base_url
()
.
'backend/cmsTrack/editTrack/'
.
$data
[
'id'
];
?>
"
title=
"Xem chi tiết"
>
<i
class=
"ace-icon fa fa-pencil bigger-130"
></i>
</a>
</td>
<td
style=
"text-align: right"
>
<?php
echo
number_format
(
$data
[
'total_point'
],
0
,
','
,
'.'
);
?>
</td>
</tr>
<?php
endforeach
;
?>
<?php
else
:
?>
...
...
application/views/backend/ajax/cms_ranking/list_by_monthly_view.php
View file @
37a01966
...
...
@@ -8,7 +8,6 @@
<th
style=
"text-align: center"
>
Tên bài hát
</th>
<th
style=
"text-align: center"
>
Ca sĩ
</th>
<th
style=
"text-align: center"
>
Tổng điểm
</th>
<th
style=
"text-align: center"
>
Xử lý
</th>
</tr>
</thead>
<tbody>
...
...
@@ -19,12 +18,7 @@
<td
style=
"text-align: center"
><img
src=
"
<?php
echo
base_url
(
$data
[
'art'
]);
?>
"
></td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'name_song'
];
?>
</td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'all_name'
];
?>
</td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'total_point'
];
?>
</td>
<td
style=
"text-align: center"
>
<a
href=
"
<?php
echo
base_url
()
.
'backend/cmsTrack/editTrack/'
.
$data
[
'id'
];
?>
"
title=
"Xem chi tiết"
>
<i
class=
"ace-icon fa fa-pencil bigger-130"
></i>
</a>
</td>
<td
style=
"text-align: right"
>
<?php
echo
number_format
(
$data
[
'total_point'
],
0
,
','
,
'.'
);
?>
</td>
</tr>
<?php
endforeach
;
?>
<?php
else
:
?>
...
...
application/views/backend/ajax/cms_ranking/list_by_weekly_view.php
View file @
37a01966
...
...
@@ -8,7 +8,6 @@
<th
style=
"text-align: center"
>
Tên bài hát
</th>
<th
style=
"text-align: center"
>
Ca sĩ
</th>
<th
style=
"text-align: center"
>
Tổng điểm
</th>
<th
style=
"text-align: center"
>
Xử lý
</th>
</tr>
</thead>
<tbody>
...
...
@@ -19,12 +18,7 @@
<td
style=
"text-align: center"
><img
src=
"
<?php
echo
base_url
(
$data
[
'art'
]);
?>
"
></td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'name_song'
];
?>
</td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'all_name'
];
?>
</td>
<td
style=
"text-align: left"
>
<?php
echo
$data
[
'total_point'
];
?>
</td>
<td
style=
"text-align: center"
>
<a
href=
"
<?php
echo
base_url
()
.
'backend/cmsTrack/editTrack/'
.
$data
[
'id'
];
?>
"
title=
"Xem chi tiết"
>
<i
class=
"ace-icon fa fa-pencil bigger-130"
></i>
</a>
</td>
<td
style=
"text-align: right"
>
<?php
echo
number_format
(
$data
[
'total_point'
],
0
,
','
,
'.'
);
?>
</td>
</tr>
<?php
endforeach
;
?>
<?php
else
:
?>
...
...
application/views/backend/cms_track/edit_track_view.php
View file @
37a01966
<?php
$input_title
=
array
(
'name'
=>
'title'
,
'type'
=>
'text'
,
'value'
=>
(
$title
)
?
$title
:
$contest
[
0
][
'title'
],
'placeholder'
=>
''
,
'class'
=>
''
,
'style'
=>
'width: 100%'
,
'min'
=>
1
,
'max'
=>
50
);
$input_date_limit
=
array
(
'name'
=>
'date_limit'
,
'type'
=>
'number'
,
...
...
@@ -41,7 +51,17 @@ $input_date_from = array(
if
(
validation_errors
()){
echo
form_error
(
'id'
,
'<div class="error">'
,
'</div>'
);}
?>
</div>
</div><div
class=
"form-group"
>
</div>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Tên bài hát (*)
</label>
<div
class=
"col-lg-3"
>
<?php
echo
form_input
(
$input_title
);
if
(
validation_errors
()){
echo
form_error
(
'title'
,
'<div class="error">'
,
'</div>'
);}
?>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-lg-3"
>
Số ngày triển khai (>= 7) (*)
</label>
<div
class=
"col-lg-3"
>
<?php
...
...
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