From 7d52e00a51450bc4a080d4e21b7dda02c0a65191 Mon Sep 17 00:00:00 2001
From: Marius Cramer <m.cramer@pixcept.de>
Date: Thu, 14 Nov 2013 05:42:06 -0500
Subject: [PATCH] Fixed list sorting
---
interface/web/help/templates/help_faq_sections_list.htm | 28 ++++++++++++++++++++--------
1 files changed, 20 insertions(+), 8 deletions(-)
diff --git a/interface/web/help/templates/help_faq_sections_list.htm b/interface/web/help/templates/help_faq_sections_list.htm
index 8f1db6e..298b907 100644
--- a/interface/web/help/templates/help_faq_sections_list.htm
+++ b/interface/web/help/templates/help_faq_sections_list.htm
@@ -18,22 +18,34 @@
<table class="list">
<thead>
<tr class="caption">
- <th class="tbl_col_active" scope="col">{tmpl_var name="faq_section_name_txt"}</th>
- <th class="tbl_col_server_id" scope="col">{tmpl_var name="faq_delete_txt"}</th>
- <th class="tbl_col_domain" scope="col">{tmpl_var name="faq_edit_txt"}</th>
+ <th class="tbl_col_section_name" scope="col">{tmpl_var name="faq_section_name_txt"}</th>
+ <th class="tbl_col_buttons" scope="col">{tmpl_var name="faq_delete_txt"}</th>
+ <th class="tbl_col_buttons" scope="col">{tmpl_var name="faq_edit_txt"}</th>
</tr>
</thead>
+ <tbody>
<tmpl_loop name="records">
- <tr>
- <td><b>{tmpl_var name='hfs_name'}</b></td>
- <td>
+ <tr class="tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
+ <td class="tbl_col_section_name"><b>{tmpl_var name='hfs_name'}</b></td>
+ <td class="tbl_col_buttons">
<a class="button icons16 icoDelete" href="javascript: del_record('help/faq_sections_delete.php?id={tmpl_var name='id'}&phpsessid={tmpl_var name='phpsessid'}','{tmpl_var name='delete_confirmation'}');"><span>{tmpl_var name="faq_delete_txt"}</span></a>
</td>
- <td>
- <a href="#" onClick="loadContent('help/faq_sections_edit.php?id={tmpl_var name='id'}');">{tmpl_var name="faq_edit_txt"}</a>
+ <td class="tbl_col_buttons">
+ <a class="button icons16 icoEdit" href="javascript: loadContent('help/faq_sections_edit.php?id={tmpl_var name='id'}');"><span>{tmpl_var name="faq_edit_txt"}</span></a>
</td>
</tr>
</tmpl_loop>
+ <tmpl_unless name="records">
+ <tr class="tbl_row_noresults tbl_row_<tmpl_if name='__EVEN__'}even<tmpl_else>uneven</tmpl_if>">
+ <td colspan="3">{tmpl_var name='globalsearch_noresults_text_txt'}</td>
+ </tr>
+ </tmpl_unless>
+ </tbody>
+ <tfoot>
+ <tr>
+ <td class="tbl_footer tbl_paging" colspan="3"><tmpl_var name="paging"></td>
+ </tr>
+ </tfoot>
</table>
</fieldset>
</div>
--
Gitblit v1.9.1