<!-- TMPL_INCLUDE NAME="doc-head-open.inc" -->
-<title>Koha › Administration › Patron Categories › <!-- TMPL_IF NAME="add_form" --><!-- TMPL_IF NAME="categorycode" -->Modify category '<!-- TMPL_VAR NAME="categorycode" -->'<!-- TMPL_ELSE -->Add category<!-- /TMPL_IF --><!-- /TMPL_IF -->
+<title>Koha › Administration › Patron Categories › <!-- TMPL_IF NAME="add_form" --><!-- TMPL_IF NAME="categorycode" -->Modify category '<!-- TMPL_VAR NAME="categorycode" escape="html" -->'<!-- TMPL_ELSE -->New category<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="add_validate" -->Data recorded<!-- /TMPL_IF -->
-<!-- TMPL_IF NAME="delete_confirm" --><!-- TMPL_IF NAME="totalgtzero" -->Cannot Delete: Category <!-- TMPL_VAR NAME="categorycode" --> in Use<!-- TMPL_ELSE -->Confirm Deletion of Category '<!-- TMPL_VAR NAME="categorycode" -->'<!-- /TMPL_IF --><!-- /TMPL_IF -->
+<!-- TMPL_IF NAME="delete_confirm" --><!-- TMPL_IF NAME="totalgtzero" -->Cannot Delete: Category <!-- TMPL_VAR NAME="categorycode" escape="html" --> in Use<!-- TMPL_ELSE -->Confirm Deletion of Category '<!-- TMPL_VAR NAME="categorycode" escape="html" -->'<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" -->Category Deleted<!-- /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" src="<!-- TMPL_VAR name="themelang" -->/lib/jquery/plugins/jquery.tablesorter.pager.js"></script>
+<script type="text/javascript" id="js">$(document).ready(function() {
+ $("#table_categorie").tablesorter({
+ sortList: [[0,0]],
+ headers: { 10: { sorter: false}}
+ }).tablesorterPager({container: $("#pagertable_categorie"),positionFixed: false,size: 20});
+}); </script>
+<!-- TMPL_INCLUDE NAME="calendar.inc" -->
<script type="text/javascript">
//<![CDATA[
//
// to check if the data are correctly entered.
function Check(ff) {
var ok=0;
- var _alertString="Form not submitted because of the following problem(s)\n";
- _alertString +="-------------------------------------------------------------------\n\n";
+ var _alertString=_("Form not submitted because of the following problem(s)");
+ _alertString +="\n-------------------------------------------------------------------\n\n";
if (ff.categorycode.value.length==0) {
ok=1;
- _alertString += "- categorycode missing\n";
+ _alertString += _("- categorycode missing") + "\n";
}
if (!(ff.category_type.value)){
ok=1;
- _alertString += "- category type missing\n";
+ _alertString += _("- category type missing") + "\n";
}
if (!(isNotNull(ff.description,1))) {
ok=1;
- _alertString += "- description missing\n";
+ _alertString += _("- description missing") + "\n";
}
- if (!isNum(ff.upperagelimit,0)) {
+ if (!isNum(ff.upperagelimit,0) && ff.category_type.value=='C') {
ok=1;
- _alertString += "- upperagelimit is not a number\n";
+ _alertString += _("- upperagelimit is not a number") + "\n";
+
+ }
+ if(!(ff.enrolmentperioddate.value || ff.enrolmentperiod.value)) {
+ ok=1;
+ _alertString += _("- either Enrollment period or Until date must be provided") + "\n";
+ }
+ if(ff.enrolmentperioddate.value && ff.enrolmentperiod.value){
+ document.getElementById('enrolmentmessage').className = "error";
+ return false;
}
if (ok) { // if there is a problem
- alert(_alertString);
- return;
- }
- // if all is good
+ alert(_alertString);
+ return false;
+ }
+ // if all is good
ff.submit();
}
//]]>
<!-- TMPL_INCLUDE NAME="header.inc" -->
<!-- TMPL_INCLUDE NAME="patrons-admin-search.inc" -->
-<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <!-- TMPL_IF NAME="add_form" --> <a href="/cgi-bin/koha/admin/categorie.pl">Patron Categories</a> › <!-- TMPL_IF NAME="categorycode" -->Modify category '<!-- TMPL_VAR NAME="categorycode" -->'<!-- TMPL_ELSE -->Add category<!-- /TMPL_IF --><!-- /TMPL_IF -->
+<div id="breadcrumbs"><a href="/cgi-bin/koha/mainpage.pl">Home</a> › <a href="/cgi-bin/koha/admin/admin-home.pl">Administration</a> › <!-- TMPL_IF NAME="add_form" --> <a href="/cgi-bin/koha/admin/categorie.pl">Patron Categories</a> › <!-- TMPL_IF NAME="categorycode" -->Modify category '<!-- TMPL_VAR NAME="categorycode" escape="html" -->'<!-- TMPL_ELSE -->New category<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="add_validate" --> <a href="/cgi-bin/koha/admin/categorie.pl">Patron Categories</a> › Data recorded<!-- /TMPL_IF -->
-<!-- TMPL_IF NAME="delete_confirm" --> <a href="/cgi-bin/koha/admin/categorie.pl">Patron Categories</a> › <!-- TMPL_IF NAME="totalgtzero" -->Cannot Delete: Category <!-- TMPL_VAR NAME="categorycode" --> in Use<!-- TMPL_ELSE -->Confirm Deletion of Category '<!-- TMPL_VAR NAME="categorycode" -->'<!-- /TMPL_IF --><!-- /TMPL_IF -->
+<!-- TMPL_IF NAME="delete_confirm" --> <a href="/cgi-bin/koha/admin/categorie.pl">Patron Categories</a> › <!-- TMPL_IF NAME="totalgtzero" -->Cannot Delete: Category <!-- TMPL_VAR NAME="categorycode" escape="html" --> in Use<!-- TMPL_ELSE -->Confirm Deletion of Category '<!-- TMPL_VAR NAME="categorycode" escape="html" -->'<!-- /TMPL_IF --><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" --> <a href="/cgi-bin/koha/admin/categorie.pl">Patron Categories</a> › Category Deleted<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="else" -->Patron Categories<!-- /TMPL_IF --></div>
<input type="hidden" name="op" value="add_validate" />
<input type="hidden" name="checked" value="0" />
<!-- TMPL_IF NAME="categorycode" -->
- <h1>Modify category <!-- TMPL_VAR NAME="categorycode" --></h1>
+ <h1>Modify category <!-- TMPL_VAR NAME="categorycode" escape="html" --></h1>
<!-- TMPL_ELSE -->
- <h1>Add category</h1>
+ <h1>New category</h1>
<!-- /TMPL_IF -->
<fieldset class="rows">
<ol><!-- TMPL_IF NAME="categorycode" -->
- <li><span class="label">Category code</span><!-- TMPL_VAR NAME="categorycode" -->
- <input type="hidden" name="categorycode" value="<!-- TMPL_VAR NAME="categorycode" -->" /><input type="hidden" name="is_a_modif" value="1" /></li>
+ <li><span class="label">Category code</span><!-- TMPL_VAR NAME="categorycode" escape="html" -->
+ <input type="hidden" name="categorycode" value="<!-- TMPL_VAR NAME="categorycode" escape="html" -->" /><input type="hidden" name="is_a_modif" value="1" /></li>
<!-- TMPL_ELSE -->
- <li><label for="categorycode">Category code</label><input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" onblur="toUC(this)" /></li>
+ <li><label for="categorycode">Category code: </label> <input type="text" name="categorycode" id="categorycode" size="10" maxlength="10" onblur="toUC(this)" /></li>
<!-- /TMPL_IF -->
- <li><label for="description">Description</label> <input type="text" name="description" id="description" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="description" -->" /></li>
- <li><label for="enrolmentperiod">Enrollment period</label> <input type="text" name="enrolmentperiod" id="enrolmentperiod" size="2" maxlength="2" value="<!-- TMPL_VAR NAME="enrolmentperiod" -->" /> months</li>
- <li><label for="dateofbirthrequired">Age required</label> <input type="text" name="dateofbirthrequired" id="dateofbirthrequired" value="<!-- TMPL_VAR NAME="dateofbirthrequired" -->" size="3" maxlength="3" /> years</li>
- <li><label for="upperagelimit">Upperage limit</label> <input type="text" name="upperagelimit" id="upperagelimit" size="3" maxlength="3" value="<!-- TMPL_VAR NAME="upperagelimit" -->" /> years</li>
- <li><label for="enrolmentfee">Enrollment fee</label>$ <input type="text" name="enrolmentfee" id="enrolmentfee" size="6" value="<!-- TMPL_VAR NAME="enrolmentfee" -->" /></li>
- <li><label for="overduenoticerequired">Overdue notice required</label> <select name="overduenoticerequired" id="overduenoticerequired">
+ <li><label for="description">Description: </label> <input type="text" name="description" id="description" size="40" maxlength="80" value="<!-- TMPL_VAR NAME="description" escape="html" -->" /></li>
+ <li><label for="enrolmentperiod">Enrollment period: </label>
+ <input type="text" name="enrolmentperiod" id="enrolmentperiod" size="3" maxlength="3" value="<!-- TMPL_IF NAME="enrolmentperiod" --><!-- TMPL_VAR NAME="enrolmentperiod" --><!-- /TMPL_IF -->" /> months <br />
+ <label for="enrolmentperioddate">Until date: </label>
+ <input type="text" name="enrolmentperioddate" id="enrolmentperioddate" value="<!-- TMPL_VAR NAME="enrolmentperioddate" -->" /> <img src="<!-- TMPL_VAR Name="themelang" -->/lib/calendar/cal.gif" id="enrolmentperioddate_button" alt="Show Calendar" />
+ <script type="text/javascript">
+ //<![CDATA[
+ Calendar.setup({
+ inputField : "enrolmentperioddate",
+ ifFormat : "<!-- TMPL_VAR NAME="DHTMLcalendar_dateformat" -->",
+ button : "enrolmentperioddate_button"
+ });
+ //]]>
+ </script>
+ <div id="enrolmentmessage" class="hint">Cannot have "months" and "until date" at the same time</div>
+ </li>
+ <li><label for="dateofbirthrequired">Age required: </label> <input type="text" name="dateofbirthrequired" id="dateofbirthrequired" value="<!-- TMPL_VAR NAME="dateofbirthrequired" -->" size="3" maxlength="3" /> years</li>
+ <li><label for="upperagelimit">Upperage limit: </label> <input type="text" name="upperagelimit" id="upperagelimit" size="3" maxlength="3" value="<!-- TMPL_VAR NAME="upperagelimit" -->" /> years</li>
+ <li><label for="enrolmentfee">Enrollment fee: </label><input type="text" name="enrolmentfee" id="enrolmentfee" size="6" value="<!-- TMPL_VAR NAME="enrolmentfee" -->" /></li>
+ <li><label for="overduenoticerequired">Overdue notice required: </label> <select name="overduenoticerequired" id="overduenoticerequired">
<!-- TMPL_IF NAME="overduenoticerequired" -->
<option value="0">No</option>
<option value="1" selected="selected">Yes</option>
<option value="1">Yes</option>
<!-- /TMPL_IF -->
</select></li>
- <li><label for="reservefee">Reserve fee</label>$ <input type="text" name="reservefee" id="reservefee" size="6" value="<!-- TMPL_VAR NAME="reservefee" -->" /></li>
- <li><label for="category_type">Category type</label><select name="category_type" id="category_type">
+ <li><label for="reservefee">Hold fee: </label><input type="text" name="reservefee" id="reservefee" size="6" value="<!-- TMPL_VAR NAME="reservefee" -->" /></li>
+ <li><label for="category_type">Category type: </label> <select name="category_type" id="category_type">
<!-- TMPL_IF NAME="type_n" --><option value="" selected="selected">Select a Category type</option><!-- TMPL_ELSE --><option value="">Select a Category type</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="type_A" --><option value="A" selected="selected">Adult</option><!-- TMPL_ELSE --><option value="A">Adult</option><!-- /TMPL_IF -->
- <!-- TMPL_IF NAME="type_C" --><option value="C" selected="selected">Children</option><!-- TMPL_ELSE --><option value="C">Children</option><!-- /TMPL_IF -->
- <!-- TMPL_IF NAME="type_I" --><option value="I" selected="selected">Organisation</option><!-- TMPL_ELSE --><option value="I">Organisation</option><!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="type_C" --><option value="C" selected="selected">Child</option><!-- TMPL_ELSE --><option value="C">Child</option><!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="type_S" --><option value="S" selected="selected">Staff</option><!-- TMPL_ELSE --><option value="S">Staff</option><!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="type_I" --><option value="I" selected="selected">Organization</option><!-- TMPL_ELSE --><option value="I">Organization</option><!-- /TMPL_IF -->
<!-- TMPL_IF NAME="type_P" --><option value="P" selected="selected">Professional</option><!-- TMPL_ELSE --><option value="P">Professional</option><!-- /TMPL_IF -->
+ <!-- TMPL_IF NXME="type_X" --><option value="X" selected="selected">Statistical</option><!-- TMPL_ELSE --><option value="X">Statistical</option><!-- /TMPL_IF -->
</select>
</li></ol>
</fieldset>
- <p> <input type="submit" value="<!-- TMPL_IF NAME="categorycode" -->Update Category<!-- TMPL_ELSE -->Add Category<!-- /TMPL_IF -->" onclick="Check(this.form);" /> </p>
+ <!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
+ <fieldset class="rows">
+ <h4>Default messaging preferences for this patron category</h4>
+ <!-- TMPL_INCLUDE NAME="messaging-preference-form.inc" -->
+ </fieldset>
+ <!-- /TMPL_IF -->
+ <fieldset class="action"><input type="button" value="Save" onclick="Check(this.form);" /> </fieldset>
</form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirm" -->
-
- <!-- TMPL_IF NAME="totalgtzero" --><h3>Cagegory <!-- TMPL_VAR NAME="categorycode" --> is in use. Deletion not possible!</h3><!-- TMPL_ELSE --><h2>Confirm Deletion of Category <!-- TMPL_VAR NAME="categorycode" --></h2><!-- /TMPL_IF -->
-<!-- TMPL_IF NAME="totalgtzero" --><div class="error">This category is used <!-- TMPL_VAR NAME="total" --> times. Deletion not possible<!-- /TMPL_IF -->
- <ul>
- <li><strong>Category code: </strong><!-- TMPL_VAR NAME="categorycode" --></li>
- <li><strong>Description: </strong><!-- TMPL_VAR NAME="description" --></li>
- <li><strong>Enrolment period: </strong><!-- TMPL_VAR NAME="enrolmentperiod" --> months</li>
- <li><strong>Age Required: </strong><!-- TMPL_VAR NAME="dateofbirthrequired" --> years</li>
- <li><strong>Upperage limit: </strong><!-- TMPL_VAR NAME="upperagelimit" --> years</li>
- <li><strong>Enrolment fee: </strong>$<!-- TMPL_VAR NAME="enrolmentfee" --></li>
- <li><strong>Overdue notice required: </strong><!-- TMPL_IF NAME="overduenoticerequired" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></li>
- <li><strong>Reserve fee: </strong>$<!-- TMPL_VAR NAME="reservefee" --></li>
-</ul>
- <!-- TMPL_IF NAME="totalgtzero" -->
-<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="OK" /></form>
+ <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
+ <fieldset><legend>
+ <!-- TMPL_IF NAME="totalgtzero" -->
+ Category <!-- TMPL_VAR NAME="categorycode" escape="html" --> is in use. Deletion not possible!<!-- TMPL_ELSE -->
+Confirm Deletion of Category <!-- TMPL_VAR NAME="categorycode" escape="html" --><!-- /TMPL_IF --></legend>
+
+<!-- TMPL_IF NAME="totalgtzero" --><div class="dialog alert"><strong>This category is used <!-- TMPL_VAR NAME="total" --> times</strong>. Deletion not possible</div><!-- /TMPL_IF -->
+ <table>
+ <tr><th scope="row">Category code: </th><td><!-- TMPL_VAR NAME="categorycode" escape="html" --></td></tr>
+ <tr><th scope="row">Description: </th><td><!-- TMPL_VAR NAME="description" escape="html" --></td></tr>
+ <tr><th scope="row">Enrollment period: </th>
+ <td>
+ <!-- TMPL_IF NAME="enrolmentperiod" -->
+ <!-- TMPL_VAR NAME="enrolmentperiod" --> months
+ <!-- TMPL_ELSE -->
+ until <!-- TMPL_VAR NAME="enrolmentperioddate" -->
+ <!-- /TMPL_IF -->
+ </td>
+ </tr>
+ <tr><th scope="row">Age required: </th><td><!-- TMPL_VAR NAME="dateofbirthrequired" --> years</td></tr>
+ <tr><th scope="row">Upperage limit: </th><td><!-- TMPL_VAR NAME="upperagelimit" --> years</td></tr>
+ <tr><th scope="row">Enrollment fee: </th><td><!-- TMPL_VAR NAME="enrolmentfee" --></td></tr>
+ <tr><th scope="row">Receives overdue notices: </th><td><!-- TMPL_IF NAME="overduenoticerequired" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td></tr>
+ <tr><th scope="row">Hold fee: </th><td><!-- TMPL_VAR NAME="reservefee" --></td></tr>
+</table>
+ <fieldset class="action"><!-- TMPL_IF NAME="totalgtzero" -->
+<input type="submit" value="OK" /></form>
<!-- TMPL_ELSE -->
-<form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
<input type="hidden" name="op" value="delete_confirmed" />
- <input type="hidden" name="categorycode" value="<!-- TMPL_VAR NAME="categorycode" -->" /> <input type="submit" value="Delete this Category" /></form> <form action="<!-- TMPL_VAR NAME="script_name" -->" method="post"><input type="submit" value="Do Not Delete" /></form>
- <!-- /TMPL_IF --></div>
+ <input type="hidden" name="categorycode" value="<!-- TMPL_VAR NAME="categorycode" escape="html" -->" /> <input type="submit" value="Delete this Category" /> <a class="cancel" href="/cgi-bin/koha/admin/categorie.pl">Cancel</a>
+ <!-- /TMPL_IF --></fieldset></fieldset></form>
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="delete_confirmed" -->
<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="else" -->
+
+<div id="toolbar">
+ <script type="text/javascript">
+ //<![CDATA[
+
+ // prepare DOM for YUI Toolbar
+
+ $(document).ready(function() {
+ yuiToolbar();
+ });
+
+ // YUI Toolbar Functions
+
+ function yuiToolbar() {
+ new YAHOO.widget.Button("newcategory");
+ }
+
+ //]]>
+ </script>
+ <ul class="toolbar">
+ <li><a id="newcategory" href="/cgi-bin/koha/admin/categorie.pl?op=add_form">New Category</a></li>
+</ul></div>
+
<h2>Patron Category Administration</h2>
<!-- TMPL_IF NAME="searchfield" -->
You Searched for <!-- TMPL_VAR NAME="searchfield" --></span>
<!-- /TMPL_IF -->
-
- <table>
- <tr>
+<span id="pagertable_categorie" class="pager">
+ <form class="formpager"> <strong>page(s)</strong> :
+ <img src="<!-- TMPL_VAR name="interface" -->/prog/img/first.png" class="first"/>
+ <img src="<!-- TMPL_VAR name="interface" -->/prog/img/prev.png" class="prev"/>
+ <input type="text" size="5" class="pagedisplay"/>
+ <img src="<!-- TMPL_VAR name="interface" -->/prog/img/next.png" class="next"/>
+ <img src="<!-- TMPL_VAR name="interface" -->/prog/img/last.png" class="last"/>
+ , entries/page :
+ <select class="pagesize">
+ <option value="10">10</option>
+ <option selected="selected" value="20">20</option>
+ <option value="30">30</option>
+ <option value="40">40</option>
+ <option value="50">50</option>
+ <option value="100">100</option>
+ </select>
+ </form>
+</span>
+ <table id="table_categorie">
+ <thead>
<th scope="col">Code</th>
- <th scope="col">Category Name</th>
+ <th scope="col">Category name</th>
<th scope="col">Type</th>
- <th scope="col">Enrollment Period</th>
- <th scope="col">Age Required</th>
- <th scope="col">Upper Age Limit</th>
- <th scope="col">Enrollment Fee</th>
+ <th scope="col">Enrollment period</th>
+ <th scope="col">Age required</th>
+ <th scope="col">Upper age limit</th>
+ <th scope="col">Enrollment fee</th>
<th scope="col">Overdue</th>
- <th scope="col">Reservation Fee</th>
+ <th scope="col">Hold fee</th>
+ <!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
+ <th scope="col">Messaging</th>
+ <!-- /TMPL_IF -->
<th scope="col" colspan="2"> </th>
- </tr>
+ </thead>
<!-- TMPL_LOOP NAME="loop" -->
- <!-- TMPL_IF NAME="toggle" --><tr class="highlight"><!-- TMPL_ELSE --><tr><!-- /TMPL_IF -->
- <td><!-- TMPL_VAR NAME="categorycode" --></td>
+ <!-- TMPL_UNLESS NAME="__odd__" -->
+ <tr class="highlight">
+ <!-- TMPL_ELSE -->
+ <tr>
+ <!-- /TMPL_UNLESS -->
+ <td><!-- TMPL_VAR NAME="categorycode" escape="html" --></td>
<td>
- <a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&categorycode=<!-- TMPL_VAR NAME="categorycode" -->"><!-- TMPL_VAR NAME="description" --></a>
+ <a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&categorycode=<!-- TMPL_VAR NAME="categorycode" escape="url" -->"><!-- TMPL_VAR NAME="description" escape="html" --></a>
</td>
<td>
<!-- TMPL_IF NAME="type_A" -->Adult<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="type_C" -->Child<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="type_P" -->Prof.<!-- /TMPL_IF -->
<!-- TMPL_IF NAME="type_I" -->Org.<!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="type_S" -->Staff<!-- /TMPL_IF -->
+ <!-- TMPL_IF NAME="type_X" -->Statistical<!-- /TMPL_IF -->
+ </td>
+ <td>
+ <!-- TMPL_IF NAME="enrolmentperiod" -->
+ <!-- TMPL_VAR NAME="enrolmentperiod" --> months
+ <!-- TMPL_ELSE -->
+ until <!-- TMPL_VAR NAME="enrolmentperioddate" -->
+ <!-- /TMPL_IF -->
+
</td>
- <td><!-- TMPL_VAR NAME="enrolmentperiod" --> months</td>
<td><!-- TMPL_VAR NAME="dateofbirthrequired" --> years</td>
<td><!-- TMPL_VAR NAME="upperagelimit" --> years</td>
<td><!-- TMPL_VAR NAME="enrolmentfee" --></td>
<td><!-- TMPL_IF NAME="overduenoticerequired" -->Yes<!-- TMPL_ELSE -->No<!-- /TMPL_IF --></td>
<td><!-- TMPL_VAR NAME="reservefee" --></td>
- <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&categorycode=<!-- TMPL_VAR NAME="categorycode" -->">Edit</a></td>
- <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&categorycode=<!-- TMPL_VAR NAME="categorycode" -->">Delete</a></td>
+ <!-- TMPL_IF NAME="EnhancedMessagingPreferences" -->
+ <td>
+ <!-- TMPL_IF NAME="messaging_prefs" -->
+ <!-- TMPL_LOOP NAME="messaging_prefs" -->
+ <!-- TMPL_VAR NAME="message_name" --> :
+ <!-- TMPL_LOOP NAME="transports" -->
+ <!-- TMPL_VAR NAME="transport" -->
+ <!-- /TMPL_LOOP -->
+ <!-- /TMPL_LOOP -->
+ <br />
+ <!-- TMPL_ELSE -->
+ none
+ <!-- /TMPL_IF -->
+ </td>
+ <!-- /TMPL_IF -->
+ <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=add_form&categorycode=<!-- TMPL_VAR NAME="categorycode" escape="url" -->">Edit</a></td>
+ <td><a href="<!-- TMPL_VAR NAME="script_name" -->?op=delete_confirm&categorycode=<!-- TMPL_VAR NAME="categorycode" escape="url" -->">Delete</a></td>
</tr>
<!-- /TMPL_LOOP -->
- </table><form action="<!-- TMPL_VAR NAME="script_name" -->" method="post">
- <input type="hidden" name="op" value="add_form" />
- <input type="submit" value="Add Category" />
- </form>
+ </table>
<!-- /TMPL_IF -->
</div>