[Koha-patches] [PATCH] BUG6063 Add tablesorter on memeber messaging table
Fridolyn SOMERS
fridolyn.somers at progilone.fr
Tue Apr 5 14:41:43 CEST 2011
---
.../prog/en/modules/members/messaging.tmpl | 18 ++++++++++++++++--
1 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/members/messaging.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/members/messaging.tmpl
index 75bec95..c90df8e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/members/messaging.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/members/messaging.tmpl
@@ -1,6 +1,16 @@
<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
<title>Koha › Patrons › <!-- TMPL_IF NAME="unknowuser" -->Patron does not exist<!-- TMPL_ELSE -->Patron Details for <!-- TMPL_VAR NAME="firstname" --> <!-- TMPL_VAR NAME="surname" --> (<!-- TMPL_VAR NAME="cardnumber" -->)<!-- /TMPL_IF --></title>
<!-- TMPL_INCLUDE NAME="doc-head-close.inc" -->
+<script type="text/javascript" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.min.js"></script>
+<script type="text/javascript">//<![CDATA[
+$(document).ready(function() {
+ <!-- TMPL_IF NAME="message_queue" -->
+ $("#mqt").tablesorter();
+ <!-- /TMPL_IF -->
+});
+//]]>
+</script>
+
</head>
<body>
<!-- TMPL_INCLUDE NAME="header.inc" -->
@@ -42,9 +52,12 @@
</div>
<!-- TMPL_ELSE -->
-<table>
+<table id="mqt" class="tablesorter">
<caption>Message Queue</caption>
- <tr><th>Type</th><th>Subject</th><th>Status</th><th>Time Prepared</th></tr>
+ <thead>
+ <tr><th>Type</th><th>Subject</th><th>Status</th><th>Time Prepared</th></tr>
+ </thead>
+ <tbody>
<!-- TMPL_IF NAME="message_queue" -->
<!-- TMPL_LOOP name="message_queue" -->
<tr><td><!-- TMPL_VAR NAME="message_transport_type" --></td><td><!-- TMPL_VAR NAME="subject" --></td><td><!-- TMPL_VAR NAME="status" --></td><td><!-- TMPL_VAR NAME="time_queued" --></td></tr>
@@ -52,6 +65,7 @@
<!-- TMPL_ELSE -->
<tr><td colspan="4">There is no record of any messages that have been sent to this patron.</td></tr>
<!-- /TMPL_IF -->
+ </tbody>
</table>
</div>
--
1.7.1
More information about the Koha-patches
mailing list