Revision: 2519
https://sourceforge.net/p/mrbs/code/2519/
Author: cimorrison
Date: 2012-10-22 16:53:57 +0000 (Mon, 22 Oct 2012)
Log Message:
-----------
Restructured code so that the search, users and pending tables are more
resilient to changes in column order
Modified Paths:
--------------
mrbs/trunk/web/edit_users.php
mrbs/trunk/web/js/edit_users.js.php
mrbs/trunk/web/js/pending.js.php
mrbs/trunk/web/js/search.js.php
mrbs/trunk/web/pending.php
mrbs/trunk/web/search.php
Modified: mrbs/trunk/web/edit_users.php
===================================================================
--- mrbs/trunk/web/edit_users.php 2012-10-22 16:06:34 UTC (rev 2518)
+++ mrbs/trunk/web/edit_users.php 2012-10-22 16:53:57 UTC (rev 2519)
@@ -872,7 +872,17 @@
if (!in_array($fieldname, $ignore_columns))
{
- echo "<th>" . get_loc_field_name($tbl_users, $fieldname) . "</th>";
+ $heading = get_loc_field_name($tbl_users, $fieldname);
+ // We give some columns an stype data value so that the JavaScript
knows how to sort them
+ switch ($fieldname)
+ {
+ case 'level':
+ $heading = '<span class="normal" data-stype="title-numeric">' .
$heading . '</span>';
+ break;
+ default:
+ break;
+ }
+ echo "<th>$heading</th>";
}
}
Modified: mrbs/trunk/web/js/edit_users.js.php
===================================================================
--- mrbs/trunk/web/js/edit_users.js.php 2012-1 ==================== ic">' .
$heading . '</span>'; mn
order r�@�* ��&�� �&�� uj@�* ��A�* �a�* �x]�* �&�� ���* ��&�� ��&�� k�@�* 6
� �! �! ��&�� �&�� x4]�* ��&�� �b@�* ��@�* ��&�� `b@�* Ϸ&�� �/��* uj@�*
��* �$��* �)��* ��A�* x4]�* ��&�� ��&�� k�@�* �! �! ��&�� �&�� H�<�* Ю&�� �b@�* ��@�* ��&�� `b@�* Ϸ&�� ��&�� ��&�� 8�a�* �p� �&�� uj@�* ��A�* Ю&�� ��&�� k�@�* G H I J K M N O P ��&�� �&�� H��* p�&�� �b@�* ��@�* ��&�� 0/��* uj@�* @]�* ����*
��* �$��* �)��* ��A�* H��* p�&�� ��&�� k�@�* 8��* p�&�� ��&�� k�@�* (��* p�&�� �&�� k�@�* ��* p�&�� @�&�� k�@�*
�.��* uj@�* �)��* ��&�� �8��* ei@�* �$��* ��&�� y8��* ei@�*
��* �&�� Z8��* ei@�* ����* @]�* ����*
��* �D]�* �$��* �)��* ��A�* 8�a�* ���* �&�� p{��* ��&�� ��&�� k�@�* 5 6 7 8 : <