mcramer
2013-07-09 6e31e691450b201a3d19c029d1ca4d1fa8285a22
- Changed: made used quota and used files in website quota stats sortable

3 files modified
8 ■■■■ changed files
interface/web/sites/list/user_quota_stats.list.php 3 ●●●●● patch | view | raw | blame | history
interface/web/sites/templates/user_quota_stats_list.htm 4 ●●●● patch | view | raw | blame | history
interface/web/sites/user_quota_stats.php 1 ●●●● patch | view | raw | blame | history
interface/web/sites/list/user_quota_stats.list.php
@@ -42,6 +42,9 @@
// Enable auth
$liste["auth"]                = "yes";
// mark columns for php sorting (no real mySQL columns)
$liste["phpsort"] = array('used_sort', 'files');
/*****************************************************
* Suchfelder
interface/web/sites/templates/user_quota_stats_list.htm
@@ -9,10 +9,10 @@
                <tr class="caption">
                    <th class="tbl_col_domain" scope="col"><tmpl_var name="domain_txt"></th>
                    <th class="tbl_col_system_user" scope="col"><tmpl_var name="system_user_txt"></th>
                    <th class="tbl_col_used tbl_col_nosort" scope="col"><tmpl_var name="used_txt"></th>
                    <th class="tbl_col_used_sort" scope="col"><tmpl_var name="used_txt"></th>
                    <th class="tbl_col_soft tbl_col_nosort" scope="col"><tmpl_var name="soft_txt"></th>
                    <th class="tbl_col_hard tbl_col_nosort" scope="col"><tmpl_var name="hard_txt"></th>
                    <th class="tbl_col_files tbl_col_nosort" scope="col"><tmpl_var name="files_txt"></th>
                    <th class="tbl_col_files" scope="col"><tmpl_var name="files_txt"></th>
                    <th class="tbl_col_limit" scope="col">{tmpl_var name='search_limit'}</th>
                </tr>
                <tr class="filter">
interface/web/sites/user_quota_stats.php
@@ -42,6 +42,7 @@
        $username = $rec['system_user'];
        
        $rec['used'] = $monitor_data['user'][$username]['used'];
        $rec['used_sort'] = $rec['used'];
        $rec['soft'] = $monitor_data['user'][$username]['soft'];
        $rec['hard'] = $monitor_data['user'][$username]['hard'];
        $rec['files'] = $monitor_data['user'][$username]['files'];