Commit e0a07db2 by Phạm Văn Đoan

tối ưu đường dẫn

parent 2142cf56
......@@ -8,5 +8,5 @@
</div>
</div>
<div class="row" style="text-align: center">
<img src="<?php echo base_url().'images/access-denied-2.png' ?>">
<img src="<?php echo base_url('images/access-denied-2.png') ?>">
</div>
\ No newline at end of file
......@@ -20,30 +20,30 @@ $action = $CI->router->fetch_method();
<link rel="stylesheet" href="<?php echo base_url('public/assets/css/bootstrap.min.css') ?>"/>
<link rel="stylesheet" href="<?php echo base_url('public/assets/font-awesome/4.2.0/css/font-awesome.min.css') ?>"/>
<link rel="stylesheet" href="<?php echo base_url('public/assets/css/datepicker.min.css') ?>" />
<link rel="stylesheet" href="<?php echo base_url().'public/assets/css/daterangepicker.min.css' ?>" />
<link rel="stylesheet" href="<?php echo base_url().'public/assets/css/chosen.min.css' ?>"/>
<link rel="stylesheet" href="<?php echo base_url().'public/assets/css/jquery-ui.min.css' ?>"/>
<link rel="stylesheet" href="<?php echo base_url('public/assets/css/daterangepicker.min.css') ?>" />
<link rel="stylesheet" href="<?php echo base_url('public/assets/css/chosen.min.css') ?>"/>
<link rel="stylesheet" href="<?php echo base_url('public/assets/css/jquery-ui.min.css') ?>"/>
<!-- <link rel="stylesheet" href="assets/css/jquery-ui.min.css" /> -->
<!-- text fonts -->
<link rel="stylesheet" href="<?php echo base_url().'public/assets/fonts/fonts.googleapis.com.css' ?>"/>
<link rel="stylesheet" href="<?php echo base_url('public/assets/fonts/fonts.googleapis.com.css') ?>"/>
<!-- ace styles -->
<link rel="stylesheet" href="<?php echo base_url().'public/assets/css/ace.min.css' ?>" class="ace-main-stylesheet" id="main-ace-style"/>
<link rel="stylesheet" href="<?php echo base_url('public/assets/css/ace.min.css') ?>" class="ace-main-stylesheet" id="main-ace-style"/>
<!-- DCV Style -->
<link rel="stylesheet" href="<?php echo base_url().'public/assets/css/dcv-css.css' ?>"/>
<link rel="stylesheet" href="<?php echo base_url().'public/assets/css/pagination.css' ?>"/>
<link rel="stylesheet" href="<?php echo base_url('public/assets/css/dcv-css.css') ?>"/>
<link rel="stylesheet" href="<?php echo base_url('public/assets/css/pagination.css') ?>"/>
<!-- inline styles related to this page -->
<style> body { font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif; } </style>
<!-- ace settings handler -->
<script src="<?php echo base_url().'public/assets/js/ace-extra.min.js' ?>"></script>
<!-- <script src="<?php echo base_url().'public/assets/js/jquery.1.11.1.min.js' ?>"></script> -->
<script src="<?php echo base_url().'public/assets/js/jquery.2.1.1.min.js' ?>"></script>
<script src="<?php echo base_url().'public/assets/js/bootstrap.min.js' ?>"></script>
<script src="<?php echo base_url().'public/assets/js/jquery-ui.min.js' ?>"></script>
<script src="<?php echo base_url().'public/assets/js/jquery.ui.touch-punch.min.js' ?>"></script>
<script src="<?php echo base_url().'public/assets/js/chosen.jquery.min.js' ?>"></script>
<script src="<?php echo base_url().'public/fckeditor/ckfinder/ckfinder.js' ?>"></script>
<script src="<?php echo base_url('public/assets/js/ace-extra.min.js') ?>"></script>
<!-- <script src="<?php //echo base_url('public/assets/js/jquery.1.11.1.min.js') ?>"></script> -->
<script src="<?php echo base_url('public/assets/js/jquery.2.1.1.min.js') ?>"></script>
<script src="<?php echo base_url('public/assets/js/bootstrap.min.js') ?>"></script>
<script src="<?php echo base_url('public/assets/js/jquery-ui.min.js') ?>"></script>
<script src="<?php echo base_url('public/assets/js/jquery.ui.touch-punch.min.js') ?>"></script>
<script src="<?php echo base_url('public/assets/js/chosen.jquery.min.js') ?>"></script>
<script src="<?php echo base_url('public/fckeditor/ckfinder/ckfinder.js') ?>"></script>
<?php if ($controller == 'cmsRanking' && $action == 'listByDaily'): ?>
<!-- Styles -->
......
......@@ -15,7 +15,7 @@
<td style="text-align: center">#<?php echo $data['id']; ?></td>
<td style="text-align: left"><?php echo $data['full_name']; ?></td>
<td style="text-align: center">
<a href="<?php echo base_url().'backend/cmsArtist/editArtist/'.$data['id']; ?>" title="Sửa thông tin">
<a href="<?php echo base_url('backend/cmsArtist/editArtist/'.$data['id']); ?>" title="Sửa thông tin">
<i class="ace-icon fa fa-pencil bigger-130"></i>
</a>
</td>
......
......@@ -19,7 +19,7 @@
<td style="text-align: center"><?php echo ($key+1+$offset); ?></td>
<td style="text-align: center">#<?php echo $data['id']; ?></td>
<td>
<a href="<?php echo base_url().'backend/cmsSetting/editAccessAction/'.$data['id']; ?>" title="Chi tiết">
<a href="<?php echo base_url('backend/cmsSetting/editAccessAction/'.$data['id']); ?>" title="Chi tiết">
<?php echo $data['name']; ?>
</a>
</td>
......@@ -35,10 +35,10 @@
<td style="text-align: center"><?php echo MyHelper::reFormatDate($data['created_at']); ?></td>
<td style="text-align: center"><?php echo MyHelper::reFormatDate($data['updated_at']); ?></td>
<td style="text-align: center">
<a href="<?php echo base_url().'backend/cmsSetting/editAccessAction/'.$data['id']; ?>" title="Chi tiết">
<a href="<?php echo base_url('backend/cmsSetting/editAccessAction/'.$data['id']); ?>" title="Chi tiết">
<i class="ace-icon fa fa-pencil bigger-130"></i>
</a>
<a href="<?php echo base_url().'backend/cmsSetting/deleteAccessAction/'.$data['id']; ?>"
<a href="<?php echo base_url('backend/cmsSetting/deleteAccessAction/'.$data['id']); ?>"
onclick="return confirm('Bạn có chắc chắn muốn xóa không?')" title="Xóa">
<i class="ace-icon red fa fa-trash-o bigger-130"></i>
</a>
......
......@@ -18,7 +18,7 @@
<td style="text-align: center"><?php echo ($key+1+$offset); ?></td>
<td style="text-align: center">#<?php echo $data['id']; ?></td>
<td>
<a href="<?php echo base_url().'backend/cmsSetting/editAccessController/'.$data['id']; ?>">
<a href="<?php echo base_url('backend/cmsSetting/editAccessController/'.$data['id']); ?>">
<?php echo $data['name']; ?></td>
</a>
<td><?php echo $data['description']; ?></td>
......@@ -32,10 +32,10 @@
<td style="text-align: center"><?php echo MyHelper::reFormatDate($data['created_at']); ?></td>
<td style="text-align: center"><?php echo MyHelper::reFormatDate($data['updated_at']); ?></td>
<td style="text-align: center">
<a href="<?php echo base_url().'backend/cmsSetting/editAccessController/'.$data['id']; ?>" title="Chi tiết">
<a href="<?php echo base_url('backend/cmsSetting/editAccessController/'.$data['id']); ?>" title="Chi tiết">
<i class="ace-icon fa fa-pencil bigger-130"></i>
</a>
<a href="<?php echo base_url().'backend/cmsSetting/deleteAccessController/'.$data['id']; ?>"
<a href="<?php echo base_url('backend/cmsSetting/deleteAccessController/'.$data['id']); ?>"
onclick="return confirm('Bạn có chắc chắn muốn xóa không?')" title="Xóa">
<i class="ace-icon red fa fa-trash-o bigger-130"></i>
</a>
......
......@@ -21,14 +21,14 @@
<?php
if($data['groupName'] == 'dcv_super_admin'):
if($data['id'] == $this->session->userdata('id')): ?>
<a href="<?php echo base_url().'backend/cmsSetting/editUserAdmin/'.$data['id']; ?>" title="Cập nhật User">
<a href="<?php echo base_url('backend/cmsSetting/editUserAdmin/'.$data['id']); ?>" title="Cập nhật User">
<?php echo $data['fullname']; ?>
</a>
<?php
else: echo $data['fullname'];
endif;
else: ?>
<a href="<?php echo base_url().'backend/cmsSetting/editUserAdmin/'.$data['id']; ?>" title="Cập nhật User">
<a href="<?php echo base_url('backend/cmsSetting/editUserAdmin/'.$data['id']); ?>" title="Cập nhật User">
<?php echo $data['fullname']; ?>
</a>
<?php endif; ?>
......@@ -47,7 +47,7 @@
}?>
<?php if($this->session->userdata('is_super') == 1): ?>
<a href="<?php echo base_url().'backend/cmsSetting/changeStatus/'.$data['id'].'/'.$data['is_active'] ?>" onclick="return confirm('Bạn có chắc chắn thay đổi trạng thái không?')">
<a href="<?php echo base_url('backend/cmsSetting/changeStatus/'.$data['id'].'/'.$data['is_active']) ?>" onclick="return confirm('Bạn có chắc chắn thay đổi trạng thái không?')">
Thay đổi
</a>
<?php endif; ?>
......
......@@ -18,7 +18,7 @@
<td style="text-align: center"><?php echo ($key+1+$offset); ?></td>
<td style="text-align: center">#<?php echo $data['id']; ?></td>
<td>
<a href="<?php echo base_url().'backend/cmsSetting/editGroup/'.$data['id']; ?>">
<a href="<?php echo base_url('backend/cmsSetting/editGroup/'.$data['id']); ?>">
<?php echo $data['name']; ?>
</a>
</td>
......@@ -33,7 +33,7 @@
<td style="text-align: center"><?php echo MyHelper::reFormatDate($data['created_at']); ?></td>
<td style="text-align: center"><?php echo MyHelper::reFormatDate($data['updated_at']); ?></td>
<td style="text-align: center">
<a href="<?php echo base_url().'backend/cmsSetting/editGroup/'.$data['id']; ?>">
<a href="<?php echo base_url('backend/cmsSetting/editGroup/'.$data['id']); ?>">
<i class="ace-icon fa fa-pencil bigger-130"></i>
</a>
</td>
......
......@@ -57,7 +57,7 @@
</td>
<td style="text-align: center">
<?php if((time() - strtotime($data['time_login'])) > 15*24*3600): ?>
<a href="<?php echo base_url().'backend/cmsSetting/deleteLogUser/'.$data['id']; ?>"
<a href="<?php echo base_url('backend/cmsSetting/deleteLogUser/'.$data['id']); ?>"
onclick="return confirm('Bạn có chắc chắn muốn xóa không?')" title="Xóa">
<i class="ace-icon red fa fa-trash-o bigger-130"></i>
</a>
......
......@@ -31,7 +31,7 @@
</td>
<td style="text-align: left"><?php echo strtoupper($data['blacklist_listen']); ?></td>
<td style="text-align: center">
<a href="<?php echo base_url().'backend/cmsTrack/showTrack/'.$data['id']; ?>" title="Xem chi tiết">
<a href="<?php echo base_url('backend/cmsTrack/showTrack/'.$data['id']); ?>" title="Xem chi tiết">
<i class="ace-icon fa fa-eye bigger-130"></i>
</a>
</td>
......
......@@ -27,7 +27,7 @@
$data['id_artist'] = 0;
}
?>
<a href="<?php echo base_url().'backend/cmsTrack/editTrack/'.$data['id'].'/'.$data['id_user'].'/'.$data['id_artist']; ?>" title="Xem chi tiết">
<a href="<?php echo base_url('backend/cmsTrack/editTrack/'.$data['id'].'/'.$data['id_user'].'/'.$data['id_artist']); ?>" title="Xem chi tiết">
<i class="ace-icon fa fa-pencil bigger-130"></i>
</a>
</td>
......
......@@ -26,7 +26,7 @@
<td><?php echo $data['mobile']; ?></td>
<td style="text-align: center"><?php echo MyHelper::reFormatDate($data['created_at']); ?></td>
<td style="text-align: center">
<a href="<?php echo base_url().'backend/cmsUser/showUser/'.$data['id']; ?>" title="Xem chi tiết">
<a href="<?php echo base_url('backend/cmsUser/showUser/'.$data['id']); ?>" title="Xem chi tiết">
<i class="ace-icon fa fa-search bigger-130"></i>
</a>
</td>
......
......@@ -80,7 +80,7 @@ $input_link_keeng = array(
<div class="widget-main">
<?php
$attributes = array('class' => 'form-horizontal', 'id' => 'myform');
echo form_open(base_url().'backend/cmsArtist/addArtist/', $attributes);
echo form_open(base_url('backend/cmsArtist/addArtist/'), $attributes);
?>
<div class="form-group">
<label class="col-lg-3"></label>
......@@ -135,7 +135,7 @@ $input_link_keeng = array(
</div>
<div class="form-group">
<div class="col-lg-3">
<a href="<?php echo base_url().'backend/cmsArtist/listArtist'?>"
<a href="<?php echo base_url('backend/cmsArtist/listArtist')?>"
onclick="return confirm('Bạn có chắc chắn muốn quay lại Danh sách không?')">
<button type="button" class="btn btn-sm btn-default">
<i class="ace-icon fa fa-arrow-left"></i>Quay lại
......
......@@ -88,7 +88,7 @@ $input_link_keeng = array(
<div class="widget-main">
<?php
$attributes = array('class' => 'form-horizontal', 'id' => 'myform');
echo form_open(base_url().'backend/cmsArtist/editArtist/'.$contest[0]['id'], $attributes);
echo form_open(base_url('backend/cmsArtist/editArtist/'.$contest[0]['id']), $attributes);
?>
<div class="form-group">
<label class="col-lg-3"></label>
......@@ -143,7 +143,7 @@ $input_link_keeng = array(
</div>
<div class="form-group">
<div class="col-lg-3">
<a href="<?php echo base_url().'backend/cmsArtist/listArtist'?>"
<a href="<?php echo base_url('backend/cmsArtist/listArtist') ?>"
onclick="return confirm('Bạn có chắc chắn muốn quay lại Danh sách không?')">
<button type="button" class="btn btn-sm btn-default">
<i class="ace-icon fa fa-arrow-left"></i>Quay lại
......
<!-- Thông báo lỗi -->
<?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<div class="row">
<?php echo form_open(base_url().'backend/cmsArtist/listArtistAjax'); ?>
<?php echo form_open(base_url('backend/cmsArtist/listArtistAjax')); ?>
<div class="col-lg-3">
<input class="form-control" type="text" name="input-name" id="input-name"
placeholder="Nhập id, tên nghệ sĩ, email..." />
......@@ -119,7 +119,7 @@ function loadDataByAjaxDateRange(dtFrom, dtTo, url) {
function changePagination(pageId) {
$('#data-loading').show();
var csrf_value = '<?php echo $this->security->get_csrf_hash(); ?>';
var url = '<?php echo base_url()."backend/cmsArtist/listArtistAjax"; ?>';
var url = '<?php echo base_url("backend/cmsArtist/listArtistAjax"); ?>';
var fByName = $("#input-name").val();
//Ajax ve bieu do\
$.ajax({
......
......@@ -82,7 +82,7 @@
function changePagination(pageId) {
$('#data-loading').show();
var url = '<?php echo base_url()."backend/cmsRanking/listByDailyAjax"; ?>';
var url = '<?php echo base_url("backend/cmsRanking/listByDailyAjax"); ?>';
callAjax(pageId, url);
}
......
......@@ -74,7 +74,7 @@
function changePagination(pageId) {
$('#data-loading').show();
var csrf_value = '<?php echo $this->security->get_csrf_hash(); ?>';
var url = '<?php echo base_url()."backend/cmsRanking/listByMonthlyAjax"; ?>';
var url = '<?php echo base_url("backend/cmsRanking/listByMonthlyAjax"); ?>';
var fByName = $("#input-date-picker").val();
//Ajax
$.ajax({
......
......@@ -117,7 +117,7 @@
function changePagination(pageId) {
$('#data-loading').show();
var csrf_value = '<?php echo $this->security->get_csrf_hash(); ?>';
var url = '<?php echo base_url()."backend/cmsRanking/listByWeeklyAjax"; ?>';
var url = '<?php echo base_url("backend/cmsRanking/listByWeeklyAjax"); ?>';
var fByName = $("#input-date-picker").val();
//Ajax ve bieu do\
$.ajax({
......
<!-- Thông báo lỗi -->
<?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<div class="row">
<?php echo form_open(base_url().'backend/cmsSetting/listGroup'); ?>
<?php echo form_open(base_url('backend/cmsSetting/listGroup')); ?>
<div class="col-lg-2">
<input
class="form-control" type="text"
......@@ -31,7 +31,7 @@
</div>
<div class="row">
<div class="col-lg-12">
<a href="<?php echo base_url().'backend/cmsSetting/addGroup'?>">
<a href="<?php echo base_url('backend/cmsSetting/addGroup')?>">
<button class="btn btn-sm btn-primary">+ Thêm mới</button>
</a>
</div>
......@@ -41,7 +41,7 @@
//Thuc hien viec ve bieu do
$(document).ready(function() {
var url = '<?php echo base_url()."backend/cmsSetting/listGroupAjax"; ?>';
var url = '<?php echo base_url("backend/cmsSetting/listGroupAjax"); ?>';
// Tìm kiếm theo cú pháp
var oldTimeout2 = '';
......@@ -128,7 +128,7 @@
function changePagination(pageId) {
var csrf_value = '<?php echo $this->security->get_csrf_hash(); ?>';
var url = '<?php echo base_url()."backend/cmsSetting/listGroupAjax"; ?>';
var url = '<?php echo base_url("backend/cmsSetting/listGroupAjax"); ?>';
var filterByName = $("#input-name").val();
//Ajax ve bieu do
$.ajax({
......
......@@ -309,7 +309,7 @@ $check = "checked => 1";
</div>
<div class="form-group">
<div class="col-lg-3">
<a href="<?php echo base_url().'backend/cmsArtist/listArtist'?>"
<a href="<?php echo base_url('backend/cmsArtist/listArtist') ?>"
onclick="return confirm('Bạn có chắc chắn muốn quay lại Danh sách không?')">
<button type="button" class="btn btn-sm btn-default">
<i class="ace-icon fa fa-arrow-left"></i>Quay lại
......@@ -399,7 +399,7 @@ $(document).ready(function() {
});
});
});
var url = '<?php echo base_url().'backend/cmsArtist/addArtistAjax'; ?>';
var url = '<?php echo base_url('backend/cmsArtist/addArtistAjax'); ?>';
//Thêm mới nghệ sĩ
$('#add_artists').click(function(e) {
......
......@@ -256,7 +256,7 @@ $input_link_keeng = array(
</div>
<div class="form-group">
<div class="col-lg-3">
<a href="<?php echo base_url().'backend/cmsArtist/listArtist'?>"
<a href="<?php echo base_url('backend/cmsArtist/listArtist') ?>"
onclick="return confirm('Bạn có chắc chắn muốn quay lại Danh sách không?')">
<button type="button" class="btn btn-sm btn-default">
<i class="ace-icon fa fa-arrow-left"></i>Quay lại
......@@ -337,7 +337,7 @@ $(document).ready(function() {
});
});
var url = '<?php echo base_url().'backend/cmsArtist/addArtistAjax'; ?>';
var url = '<?php echo base_url('backend/cmsArtist/addArtistAjax'); ?>';
//Thêm mới nghệ sĩ
$('#add_artists').click(function(e) {
......
<!-- Thông báo lỗi -->
<?php MyHelper::loadView('backend/cms_partials/error_message_view') ?>
<div class="row">
<?php echo form_open(base_url().'backend/cmsUser/listUserAjax'); ?>
<?php echo form_open(base_url('backend/cmsUser/listUserAjax')); ?>
<div class="col-lg-3">
<input
class="form-control" type="text"
......@@ -115,7 +115,7 @@
function changePagination(pageId) {
$('#data-loading').show();
var csrf_value = '<?php echo $this->security->get_csrf_hash(); ?>';
var url = '<?php echo base_url()."backend/cmsUser/listUserAjax"; ?>';
var url = '<?php echo base_url("backend/cmsUser/listUserAjax"); ?>';
var fByName = $("#input-name").val();
//Ajax ve bieu do\
$.ajax({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment