Dodan id narocila v admin tabelo narocil

This commit is contained in:
pero1203 2021-04-12 12:18:29 +02:00
parent 41e0905854
commit 029758631b
4 changed files with 10 additions and 6 deletions

View File

@ -54,7 +54,7 @@ function popupUserAccess_close() {
function prepareNarocilaTableAdmin(){
$("#user_narocila").DataTable({
order: [[ 4, "desc" ]],
order: [[ 5, "desc" ]],
lengthMenu: [[50, 500, 1000], [50, 500, 1000]],
select: false,
lengthChange: true,
@ -63,8 +63,9 @@ function prepareNarocilaTableAdmin(){
responsive: true,
columnDefs: [
{responsivePriority: 1, targets: 0},
{responsivePriority: 2, targets: 7},
{responsivePriority: 3, targets: 4}
{responsivePriority: 2, targets: 1},
{responsivePriority: 3, targets: 8},
{responsivePriority: 4, targets: 5}
],
language: {
"url": siteUrl+"admin/survey/script/datatables/Slovenian.json"

View File

@ -375,7 +375,7 @@ class UserNarocila{
// Glava tabele
echo ' <thead>';
echo ' <tr>';
echo ' <th>ID</th>';
echo ' <th>'.$lang['srv_narocilo_ime'].'</th>';
echo ' <th>'.$lang['email'].'</th>';
echo ' <th>'.$lang['srv_narocilo_paket'].'</th>';
@ -406,6 +406,7 @@ class UserNarocila{
echo '<tr class="'.$status_color.'_bg">';
echo '<td>'.$data_row['id'].'</td>';
echo '<td>'.$data_row['ime'].' '.($data_row['podjetje_ime'] != '' ? '('.$data_row['podjetje_ime'].')' : '').'</td>';
echo '<td><span class="as_link" onClick="edit_user(\''.$data_row['usr_id'].'\'); return false;">'.$data_row['email'].'</span></td>';
echo '<td>'.$data_row['package_name'].'</td>';

View File

@ -27083,7 +27083,8 @@ label.user_access_locked:hover,
background-color: #eeeeee;
}
}
#narocila table.dataTable.user_narocila_admin td:nth-child(n+3) {
#narocila table.dataTable.user_narocila_admin td:nth-child(1),
#narocila table.dataTable.user_narocila_admin td:nth-child(n+4) {
text-align: center;
}
#narocila table.user_narocila {

View File

@ -228,7 +228,8 @@ label.user_access_locked,
}
}
td:nth-child(n+3){
td:nth-child(1),
td:nth-child(n+4){
text-align: center;
}
}