<label for="branchselect">Select a library :</label>
<select name="branchcode" id="branchselect">
[% FOREACH branch_loo IN branch_loop %]
+ [% IF ( branch_loo.selected ) %]
+ <option value="[% branch_loo.value %]" selected="selected">[% branch_loo.branchname %]</option>
+ [% ELSE %]
<option value="[% branch_loo.value %]">[% branch_loo.branchname %]</option>
+ [% END %]
[% END %]
</select>
<input type="submit" value="Choose" />
}).tablesorterPager({container: $("#pager[% codes_loo.code %]table"),positionFixed: false,size: 10});
}); </script>
- <span id="pager[% codes_loo.code %]table" class="pager">
- <form class="formpager"> <strong>page(s)</strong> :
+ <div id="pager[% codes_loo.code %]table" class="pager">
+ <p class="formpager"> <strong>page(s)</strong> :
<img src="[% interface %]/[% theme %]/img/first.png" class="first"/>
<img src="[% interface %]/[% theme %]/img/prev.png" class="prev"/>
<input type="text" size="5" class="pagedisplay"/>
<option value="50">50</option>
<option value="100">100</option>
</select>
- </form>
-</span>
+ </p>
+</div>
<table id="[% codes_loo.code %]table">
<thead>
<tr>
[% FOREACH to_branch_loo IN codes_loo.to_branch_loop %]
[% UNLESS ( loop.odd ) %]<tr class="highlight">[% ELSE %]<tr>[% END %]
<td><label style="min-width:400px;" for="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row">[% to_branch_loo.toBranch %] - [% to_branch_loo.toBranchname %]</label></td>
- <td><input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" [% IF ( to_branch_loo.isChecked ) %]checked="checked" [% END %] /></td>
+ <td>
+ [% IF ( to_branch_loo.isChecked ) %]
+ <input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" checked="checked" />
+ [% ELSE %]
+ <input type="checkbox" id="[% to_branch_loo.code %][% to_branch_loo.toBranch %]row" name="[% to_branch_loo.code %]_[% to_branch_loo.toBranch %]" />
+ [% END %]
+ </td>
</tr>
[% END %]
</tbody>