ID | Title | Campaign | Image | URL | Start-end date |
---|---|---|---|---|---|
69 | gia hoi sinh vien | SINHVIEN_MAIN_BANNER | ![]() |
https://sinhvien.vientdonga.vn/ | 13/10/2016 - 19/10/2016 |
32 | gia hoi sinh vien | SINHVIEN_MAIN_BANNER | ![]() |
https://sinhvien.vientdonga.vn/ | 13/10/2016 - 19/10/2016 |
<table id="datatable1" class="ui celled table small" cellspacing="0" width="100%">
<thead>
<tr>
<th>ID</th>
<th>Title</th>
<th>Campaign</th>
<th>Image</th>
<th>URL</th>
<th>Start-end date</th>
</tr>
</thead>
<tbody>
<tr>
<td>69</td>
<td>gia hoi sinh vien</td>
<td>SINHVIEN_MAIN_BANNER</td>
<td><img class="ui mini image centered" src="http://semantic-ui.com/images/wireframe/image.png"></td>
<td>https://sinhvien.vientdonga.vn/</td>
<td>13/10/2016 - 19/10/2016</td>
</tr>
<tr>
<td>32</td>
<td>gia hoi sinh vien</td>
<td>SINHVIEN_MAIN_BANNER</td>
<td><img class="ui mini image centered" src="http://semantic-ui.com/images/wireframe/image.png"></td>
<td>https://sinhvien.vientdonga.vn/</td>
<td>13/10/2016 - 19/10/2016</td>
</tr>
</tbody>
</table>
var datatable1 = $("#datatable1");
datatable1.DataTable({
"bStateSave": true,
"lengthMenu": [
[10, 20, 30, 40, -1],
[10, 20, 30, 40, "All"]
],
"pageLength": 30,
"order": [
[1, "asc"]
]
}
);
|
ID | Title | Campaign | Image | URL | Start-end date |
---|---|---|---|---|---|---|
|
69 | gia hoi sinh vien | SINHVIEN_MAIN_BANNER | ![]() |
https://sinhvien.vientdonga.vn/ | 13/10/2016 - 19/10/2016 |
|
69 | gia hoi sinh vien | SINHVIEN_MAIN_BANNER | ![]() |
https://sinhvien.vientdonga.vn/ | 13/10/2016 - 19/10/2016 |
<table id="datatable2" class="ui celled table small" cellspacing="0" width="100%">
<thead>
<tr>
<th>
<div class="ui fitted checkbox">
<input type="checkbox" class="group-checkable" data-set="#datatable2 .checkboxes" > <label></label>
</div>
</th>
<th class="">ID</th>
<th class="">Title</th>
<th class="">Campaign</th>
<th class="">Image</th>
<th class="">URL</th>
<th class="">Start-end date</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="ui fitted checkbox">
<input type="checkbox" class="checkboxes"> <label></label>
</div>
</td>
<td>69</td>
<td>gia hoi sinh vien</td>
<td>SINHVIEN_MAIN_BANNER</td>
<td><img class="ui mini image centered" src="http://semantic-ui.com/images/wireframe/image.png"></td>
<td>https://sinhvien.vientdonga.vn/</td>
<td>13/10/2016 - 19/10/2016</td>
</tr>
<tr>
<td>
<div class="ui fitted checkbox">
<input type="checkbox" class="checkboxes"> <label></label>
</div>
</td>
<td>69</td>
<td>gia hoi sinh vien</td>
<td>SINHVIEN_MAIN_BANNER</td>
<td><img class="ui mini image centered" src="http://semantic-ui.com/images/wireframe/image.png"></td>
<td>https://sinhvien.vientdonga.vn/</td>
<td>13/10/2016 - 19/10/2016</td>
</tr>
</tbody>
</table>
var datatable2 = $("#datatable2");
datatable2.DataTable({
"bStateSave": true, // save datatable state(pagination, sort, etc) in cookie.
"lengthMenu": [
[10, 20, 30, 40, -1],
[10, 20, 30, 40, "All"] // change per page values here
],
"pageLength": 30,
"order": [
[1, "asc"]
], // set first column as a default sort by asc
"columnDefs": [{
"targets": 0,
"orderable": false,
"searchable": false
}],
"dom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12 text-right'B f >r><'table-scrollable't><'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12 text-right'p>>",
buttons: [
{extend: 'print', className: 'teal tiny ui button'},
{extend: 'copy', className: ' blue tiny ui button'},
{extend: 'pdf', className: ' violet tiny ui button'},
{extend: 'excel', className: 'purple tiny ui button'},
]
}
);
datatable2.find('.group-checkable').change(function () {
var set = jQuery(this).attr("data-set");
var checked = jQuery(this).is(":checked");
jQuery(set).each(function () {
if (checked) {
$(this).prop("checked", true);
$(this).parents('tr').addClass("warning");
} else {
$(this).prop("checked", false);
$(this).parents('tr').removeClass("warning");
}
});
});
datatable2.on('change', 'tbody tr .checkboxes', function () {
$(this).parents('tr').toggleClass("warning");
});
ID | Title | Campaign | Image | URL | Start-end date | Vị trí | Mô tả | Trạng thái | |
---|---|---|---|---|---|---|---|---|---|
69 | gia hoi sinh vien | SINHVIEN_MAIN_BANNER | ![]() |
https://sinhvien.vientdonga.vn/ | 13/10/2016 - 19/10/2016 | Trên cùng | Roger | hoàn tất | |
69 | gia hoi sinh vien | SINHVIEN_MAIN_BANNER | ![]() |
https://sinhvien.vientdonga.vn/ | 13/10/2016 - 19/10/2016 | Trên cùng | Roger | hoàn tất |
<table id="datatable3" class="ui celled table small" cellspacing="0" width="100%">
<thead>
<tr>
<th class="control all">
</th>
<th class="all">ID</th> <!--Set all để hiện ra-->
<th class="all">Title</th>
<th class="all">Campaign</th>
<th class="all">Image</th>
<th class="all">URL</th>
<th class="all">Start-end date</th>
<th class="none">Vị trí</th> <!--Set none để cột ẩn đi-->
<th class="none">Mô tả</th>
<th class="none">Trạng thái</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="table-responsive-button">
<i class="minus large circle icon"></i>
<i class="plus large circle icon"></i>
</div>
</td>
<td>69</td>
<td>gia hoi sinh vien</td>
<td>SINHVIEN_MAIN_BANNER</td>
<td><img class="ui mini image centered" src="http://semantic-ui.com/images/wireframe/image.png"></td>
<td>https://sinhvien.vientdonga.vn/</td>
<td>13/10/2016 - 19/10/2016</td>
<td>Trên cùng</td>
<td>Roger</td>
<td>hoàn tất</td>
</tr>
<tr>
<td>
<div class="table-responsive-button">
<i class="minus large circle icon"></i>
<i class="plus large circle icon"></i>
</div>
</td>
<td>69</td>
<td>gia hoi sinh vien</td>
<td>SINHVIEN_MAIN_BANNER</td>
<td><img class="ui mini image centered" src="http://semantic-ui.com/images/wireframe/image.png"></td>
<td>https://sinhvien.vientdonga.vn/</td>
<td>13/10/2016 - 19/10/2016</td>
<td>Trên cùng</td>
<td>Roger</td>
<td>hoàn tất</td>
</tr>
</tbody>
</table>
var datatable3 = $("#datatable3");
datatable3.DataTable({
"bStateSave": true, // save datatable state(pagination, sort, etc) in cookie.
"lengthMenu": [
[10, 20, 30, 40, -1],
[10, 20, 30, 40, "All"] // change per page values here
],
responsive: {
details: {}
},
"pageLength": 30,
"order": [
[1, "asc"]
], // set first column as a default sort by asc
"columnDefs": [{
"targets": 0,
"orderable": false,
"searchable": false
}],
"dom": "<'row'<'col-md-6 col-sm-12'l><'col-md-6 col-sm-12 text-right'B f >r><'table-scrollable't><'row'<'col-md-5 col-sm-12'i><'col-md-7 col-sm-12 text-right'p>>",
buttons: [
{extend: 'print', className: 'teal tiny ui button'},
{extend: 'copy', className: ' blue tiny ui button'},
{extend: 'pdf', className: ' violet tiny ui button'},
{extend: 'excel', className: 'purple tiny ui button'},
]
}
);