|
@@ -28,9 +28,15 @@ if ($user->isAdmin()) {
|
28
|
28
|
<link rel="shortcut icon" href="<?php echo $conf->urlGelato;?>/images/favicon.ico" />
|
29
|
29
|
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/jquery.js"></script>
|
30
|
30
|
<script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/tools.js"></script>
|
31
|
|
- <script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/sortable.js"></script>
|
|
31
|
+ <script language="javascript" type="text/javascript" src="<?php echo $conf->urlGelato;?>/admin/scripts/jquery.tablesorter.min.js"></script>
|
32
|
32
|
<script type="text/javascript">
|
33
|
33
|
$(document).ready(function(){
|
|
34
|
+ $("#admin-table").tablesorter({
|
|
35
|
+ headers: {
|
|
36
|
+ 2: {sorter: false},
|
|
37
|
+ 3: {sorter: false}
|
|
38
|
+ }
|
|
39
|
+ });
|
34
|
40
|
$("#divMessages").fadeOut(5000,function(){
|
35
|
41
|
$("#divMessages").css({display:"none"});
|
36
|
42
|
});
|
|
@@ -90,12 +96,13 @@ if ($user->isAdmin()) {
|
90
|
96
|
}
|
91
|
97
|
?>
|
92
|
98
|
<div class="tabla">
|
93
|
|
- <table class="sortable" id="admin-table">
|
|
99
|
+ <table border="0" cellpadding="0" cellspacing="0" id="admin-table">
|
94
|
100
|
<thead>
|
95
|
101
|
<tr>
|
96
|
102
|
<th scope="col"><?php echo __("Login")?></th>
|
97
|
103
|
<th scope="col"><?php echo __("Name")?></th>
|
98
|
|
- <th colspan="2" scope="col" class="unsortable"><?php echo __("Actions")?></th>
|
|
104
|
+ <th scope="col"><?php echo __("Actions")?></th>
|
|
105
|
+ <th scope="col"></th>
|
99
|
106
|
</tr>
|
100
|
107
|
</thead>
|
101
|
108
|
<tbody>
|
|
@@ -106,20 +113,11 @@ if ($user->isAdmin()) {
|
106
|
113
|
while($register = mysql_fetch_array($rs)) {
|
107
|
114
|
?>
|
108
|
115
|
<tr <?php if ($odd) { echo 'class="odd"'; } $odd=!$odd; ?>>
|
109
|
|
- <td>
|
110
|
|
- <?php echo $register["login"]."\n"; ?>
|
111
|
|
- </td>
|
112
|
|
- <td>
|
113
|
|
- <?php echo $register["name"]."\n"; ?>
|
114
|
|
- </td>
|
115
|
|
- <td>
|
116
|
|
- <a href="user.php?edit=<?php echo $register["id_user"]; ?>"><?php echo __("Edit")?></a>
|
117
|
|
- </td>
|
118
|
|
- <?php if ($_SESSION["user_id"] != $register["id_user"]) { ?>
|
119
|
|
- <td>
|
120
|
|
- <a href="user.php?delete=<?php echo $register["id_user"]; ?>"><?php echo __("Delete")?></a>
|
121
|
|
- </td>
|
122
|
|
- <?php } ?>
|
|
116
|
+ <td><?php echo $register["login"]."\n"; ?></td>
|
|
117
|
+ <td><?php echo $register["name"]."\n"; ?></td>
|
|
118
|
+ <td><a href="user.php?edit=<?php echo $register["id_user"]; ?>"><?php echo __("Edit")?></a></td>
|
|
119
|
+ <td><?php if ($_SESSION["user_id"] != $register["id_user"]) { ?><a href="user.php?delete=<?php echo $register["id_user"]; ?>"><?php echo __("Delete")?></a><?php } ?> </td>
|
|
120
|
+
|
123
|
121
|
</tr>
|
124
|
122
|
<?php
|
125
|
123
|
}
|