[Koha-patches] [PATCH] Bug 2889: Added highlighting to smart-rules.tmpl
Garry Collum
gcollum at gmail.com
Thu Jun 11 02:23:52 CEST 2009
Removed unused toggle variable form smart-rules.pl and added highlighting to smart-rules.tmpl through template __odd__.
---
admin/smart-rules.pl | 1 -
.../prog/en/modules/admin/smart-rules.tmpl | 12 ++++++++++++
2 files changed, 12 insertions(+), 1 deletions(-)
diff --git a/admin/smart-rules.pl b/admin/smart-rules.pl
index ce7dc9d..40e9084 100755
--- a/admin/smart-rules.pl
+++ b/admin/smart-rules.pl
@@ -349,7 +349,6 @@ $sth->finish;
$sth=$dbh->prepare("SELECT description,itemtype FROM itemtypes ORDER BY description");
$sth->execute;
# $i=0;
-my $toggle= 1;
my @row_loop;
my @itemtypes;
while (my $row=$sth->fetchrow_hashref){
diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tmpl b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tmpl
index 383e979..166746e 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tmpl
+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tmpl
@@ -71,7 +71,11 @@ $(document).ready(function() {
<th>Loan Period</th><th> </th>
</tr>
<!-- TMPL_LOOP NAME="rules" -->
+ <!-- TMPL_UNLESS NAME="__odd__" -->
+ <tr class="highlight">
+ <!-- TMPL_ELSE -->
<tr>
+ <!-- /TMPL_UNLESS -->
<td><!-- TMPL_IF NAME="default_humancategorycode" -->
<em>Default</em>
<!-- TMPL_ELSE -->
@@ -197,7 +201,11 @@ $(document).ready(function() {
<th> </th>
</tr>
<!-- TMPL_LOOP NAME="branch_cat_rule_loop" -->
+ <!-- TMPL_UNLESS NAME="__odd__" -->
+ <tr class="highlight">
+ <!-- TMPL_ELSE -->
<tr>
+ <!-- /TMPL_UNLESS -->
<td><!-- TMPL_IF NAME="default_humancategorycode" -->
<em>Default</em>
<!-- TMPL_ELSE -->
@@ -263,7 +271,11 @@ $(document).ready(function() {
<th> </th>
</tr>
<!-- TMPL_LOOP NAME="branch_item_rule_loop" -->
+ <!-- TMPL_UNLESS NAME="__odd__" -->
+ <tr class="highlight">
+ <!-- TMPL_ELSE -->
<tr>
+ <!-- /TMPL_UNLESS -->
<td><!-- TMPL_IF NAME="default_humanitemtype" -->
<em>Default</em>
<!-- TMPL_ELSE -->
--
1.5.6.5
More information about the Koha-patches
mailing list