Commit 1e6af4e8 by Phạm Văn Đoan

cập nhật màu, bỏ scroll

parent fc23c458
<div style="max-height: 465px; overflow: scroll"> <div>
<table class="table table-striped table-bordered table-hover"> <table class="table table-striped table-bordered table-hover">
<thead> <thead>
<tr> <tr>
...@@ -23,8 +23,9 @@ ...@@ -23,8 +23,9 @@
<td style="text-align: center"><img src="<?php echo MyHelper::getArtByTrack($data['art']); ?>" style="max-width: 50px; max-height: 50px"></td> <td style="text-align: center"><img src="<?php echo MyHelper::getArtByTrack($data['art']); ?>" style="max-width: 50px; max-height: 50px"></td>
<td style="text-align: left"><?php echo $data['name_song'] . ' (#' . $data['track_id'] . ')'; ?></td> <td style="text-align: left"><?php echo $data['name_song'] . ' (#' . $data['track_id'] . ')'; ?></td>
<td style="text-align: center"> <td style="text-align: center">
<a href="javascript:void(0)" onclick="showHistory(<?php echo $data['track_id']?>, '<?php echo $data['name_song'] ?>')"> <a href="javascript:void(0)" title="Click để xem lịch sử lượt nghe"
<i class="fa fa-line-chart color-red"></i> onclick="showHistory(<?php echo $data['track_id']?>, '<?php echo $data['name_song'] ?>')">
<i class="fa fa-line-chart tab-color-blue"></i>
</a> </a>
</td> </td>
<td style="text-align: left"><?php echo $data['all_name']; ?></td> <td style="text-align: left"><?php echo $data['all_name']; ?></td>
......
<div style="max-height: 465px; overflow: scroll"> <div>
<table class="table table-striped table-bordered table-hover"> <table class="table table-striped table-bordered table-hover">
<thead> <thead>
<tr> <tr>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<?php if(count($listData) > 0): foreach($listData as $key => $data): ?> <?php if(count($listData) > 0): foreach($listData as $key => $data): ?>
<tr> <tr>
<td style="text-align: center"><?php echo ($key+1+$offset); ?></td> <td style="text-align: center"><?php echo ($key+1+$offset); ?></td>
<td style="text-align: center">#<?php echo $data['id']; ?></td> <td style="text-align: center">#<?php echo $data['track_id']; ?></td>
<td style="text-align: center"><img style="max-width: 50px" src="<?php echo MyHelper::getArtByTrack($data['art']); ?>"></td> <td style="text-align: center"><img style="max-width: 50px" src="<?php echo MyHelper::getArtByTrack($data['art']); ?>"></td>
<td style="text-align: left"><?php echo $data['name_song']; ?></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['all_name']; ?></td>
......
<div style="max-height: 465px; overflow: scroll"> <div>
<table class="table table-striped table-bordered table-hover"> <table class="table table-striped table-bordered table-hover">
<thead> <thead>
<tr> <tr>
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<?php if(count($listData) > 0): foreach($listData as $key => $data): ?> <?php if(count($listData) > 0): foreach($listData as $key => $data): ?>
<tr> <tr>
<td style="text-align: center"><?php echo ($key+1+$offset); ?></td> <td style="text-align: center"><?php echo ($key+1+$offset); ?></td>
<td style="text-align: center">#<?php echo $data['id']; ?></td> <td style="text-align: center">#<?php echo $data['track_id']; ?></td>
<td style="text-align: center"><img style="max-width: 50px" src="<?php echo MyHelper::getArtByTrack($data['art']); ?>"></td> <td style="text-align: center"><img style="max-width: 50px" src="<?php echo MyHelper::getArtByTrack($data['art']); ?>"></td>
<td style="text-align: left"><?php echo $data['name_song']; ?></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['all_name']; ?></td>
......
...@@ -58,9 +58,7 @@ ...@@ -58,9 +58,7 @@
<div class="modal-content"> <div class="modal-content">
<div class="modal-header" style="padding: 10px !important;"> <div class="modal-header" style="padding: 10px !important;">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button> <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
<h4 class="modal-title">Lịch sử lượt nghe bài: <span id="track_title" style="color: red;"></span> <h4 class="modal-title">Lịch sử lượt nghe bài: <span id="track_title" style="color: red;"></span></h4>
<img src="">
</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<div class="row"> <div class="row">
...@@ -163,12 +161,14 @@ ...@@ -163,12 +161,14 @@
dataType: "HTML", dataType: "HTML",
cache: false, cache: false,
success: function(data) { success: function(data) {
$('#data-loading').hide();
$('#track_title').html(track_title); $('#track_title').html(track_title);
$('#div-history-chart').html(data); $('#div-history-chart').html(data);
$('#modal-track-chart').modal('show'); $('#modal-track-chart').modal('show');
},
error: function () {
$('#data-loading').hide();
} }
}).done(function () {
$('#data-loading').hide();
}); });
} }
</script> </script>
\ No newline at end of file
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