<p>
<table border="0">
- [% SET row_is_odd = '1' %][% USE users_it = Iterator(USERS) %][% FOREACH user = users_it %]
+ [% FOREACH user = USERS %]
[% IF user.repeat_headings %]
<tr>
</tr>
[% END %]
- <tr class="listrow[% IF row_is_odd %]1[% SET row_is_odd = '0' %][% ELSE %]0[% SET row_is_odd = '1' %][% END %]">
+ <tr class="listrow[% loop.count % 2 %]">
<td valign="center">[% HTML.escape(user.login) %]</td>
<td valign="center">[% HTML.escape(user.name) %]</td>
[% FOREACH group = user.GROUPS %]
<p>
<table border="0">
- [% SET row_is_odd = '1' %][% USE users_it = Iterator(USERS) %][% FOREACH user = users_it %]
+ [% FOREACH user = USERS %]
[% IF user.repeat_headings %]
<tr>
</tr>
[% END %]
- <tr class="listrow[% IF row_is_odd %]1[% SET row_is_odd = '0' %][% ELSE %]0[% SET row_is_odd = '1' %][% END %]">
+ <tr class="listrow[% loop.count % 2 %]">
<td valign="center">[% HTML.escape(user.login) %]</td>
<td valign="center">[% HTML.escape(user.name) %]</td>
[% FOREACH group = user.GROUPS %]
</tr>
<tr>
- <td colspan="2">[% USE GROUPS_it = Iterator(GROUPS) %][% FOREACH row = GROUPS_it %]<a href="admin.pl?action=edit_group&group_id=[% HTML.url(row.id) %]">[% HTML.escape(row.name) %]</a>
- [% UNLESS GROUPS_it.last %] | [% END %][% END %]</td>
+ <td colspan="2">[% FOREACH row = GROUPS %]<a href="admin.pl?action=edit_group&group_id=[% HTML.url(row.id) %]">[% HTML.escape(row.name) %]</a>
+ [% UNLESS loop.last %] | [% END %][% END %]</td>
</tr>
[% END %]
</tr>
<tr>
- <td colspan="2">[% USE GROUPS_it = Iterator(GROUPS) %][% FOREACH row = GROUPS_it %]<a href="admin.pl?action=edit_group&group_id=[% HTML.url(row.id) %]">[% HTML.escape(row.name) %]</a>
- [% UNLESS GROUPS_it.last %] | [% END %][% END %]</td>
+ <td colspan="2">[% FOREACH row = GROUPS %]<a href="admin.pl?action=edit_group&group_id=[% HTML.url(row.id) %]">[% HTML.escape(row.name) %]</a>
+ [% UNLESS loop.last %] | [% END %][% END %]</td>
</tr>
[% END %]
<th class="listtop">Vorlagen</th>
</tr>
- [% SET row_odd = '1' %]
[% FOREACH row = MEMBERS %]
- <tr class="listrow[% IF row_odd %]1[% SET row_odd = '0' %][% ELSE %]0[% SET row_odd = '1' %][% END %]">
+ <tr class="listrow[% loop.count % 2 %]">
<td><a href="admin.pl?action=edit&login=[% HTML.url(row.login) %]">[% HTML.escape(row.login) %]</a></td>
<td>[% HTML.escape(row.name) %]</td>
<td>[% HTML.escape(row.company) %]</td>
<th class="listtop"><translate>Templates</translate></th>
</tr>
- [% SET row_odd = '1' %]
[% FOREACH row = MEMBERS %]
- <tr class="listrow[% IF row_odd %]1[% SET row_odd = '0' %][% ELSE %]0[% SET row_odd = '1' %][% END %]">
+ <tr class="listrow[% loop.count % 2 %]">
<td><a href="admin.pl?action=edit&login=[% HTML.url(row.login) %]">[% HTML.escape(row.login) %]</a></td>
<td>[% HTML.escape(row.name) %]</td>
<td>[% HTML.escape(row.company) %]</td>
<th class="listtop">Benutzer</th>
</tr>
- [% SET odd = '1' %][% USE NEED_UPDATES_it = Iterator(NEED_UPDATES) %][% FOREACH row = NEED_UPDATES_it %]
- <tr class="listrow[% IF odd %]1[% SET odd='0' %][% ELSE %]0[% SET odd = '1' %][% END %]">
- <td><input type="checkbox" name="update_[% NEED_UPDATES_it.count %]" id="update_[% NEED_UPDATES_it.count %]" value="1" checked></td>
+ [% FOREACH row = NEED_UPDATES %]
+ <tr class="listrow[% loop.count % 2 %]">
+ <td><input type="checkbox" name="update_[% loop.count %]" id="update_[% loop.count %]" value="1" checked></td>
<td>
- <input type="hidden" name="dbname_[% NEED_UPDATES_it.count %]" value="[% HTML.escape(row.dbname) %]">
- <label for="update_[% NEED_UPDATES_it.count %]">[% HTML.escape(row.dbname) %]</label>
+ <input type="hidden" name="dbname_[% loop.count %]" value="[% HTML.escape(row.dbname) %]">
+ <label for="update_[% loop.count %]">[% HTML.escape(row.dbname) %]</label>
</td>
- <td><input type="hidden" name="dbdriver_[% NEED_UPDATES_it.count %]" value="Pg">PostgreSQL</td>
- <td><input type="hidden" name="dbhost_[% NEED_UPDATES_it.count %]" value="[% HTML.escape(row.dbhost) %]">[% HTML.escape(row.dbhost) %]</td>
- <td><input type="hidden" name="dbport_[% NEED_UPDATES_it.count %]" value="[% HTML.escape(row.dbport) %]">[% HTML.escape(row.dbport) %]</td>
- <td><input type="hidden" name="dbuser_[% NEED_UPDATES_it.count %]" value="[% HTML.escape(row.dbuser) %]">[% HTML.escape(row.dbuser) %]</td>
+ <td><input type="hidden" name="dbdriver_[% loop.count %]" value="Pg">PostgreSQL</td>
+ <td><input type="hidden" name="dbhost_[% loop.count %]" value="[% HTML.escape(row.dbhost) %]">[% HTML.escape(row.dbhost) %]</td>
+ <td><input type="hidden" name="dbport_[% loop.count %]" value="[% HTML.escape(row.dbport) %]">[% HTML.escape(row.dbport) %]</td>
+ <td><input type="hidden" name="dbuser_[% loop.count %]" value="[% HTML.escape(row.dbuser) %]">[% HTML.escape(row.dbuser) %]</td>
</tr>
- [% IF NEED_UPDATES_it.last %]
- <input type="hidden" name="rowcount" value="[% NEED_UPDATES_it.size %]">
- [% END %]
[% END %]
</table>
+ <input type="hidden" name="rowcount" value="[% NEED_UPDATES.size %]">
+
<input name="callback" type="hidden" value="admin.pl?action=list_users">
<input type="hidden" name="nextsub" value="dbupdate">
<th class="listtop"><translate>User</translate></th>
</tr>
- [% SET odd = '1' %][% USE NEED_UPDATES_it = Iterator(NEED_UPDATES) %][% FOREACH row = NEED_UPDATES_it %]
- <tr class="listrow[% IF odd %]1[% SET odd='0' %][% ELSE %]0[% SET odd = '1' %][% END %]">
- <td><input type="checkbox" name="update_[% NEED_UPDATES_it.count %]" id="update_[% NEED_UPDATES_it.count %]" value="1" checked></td>
+ [% FOREACH row = NEED_UPDATES %]
+ <tr class="listrow[% loop.count % 2 %]">
+ <td><input type="checkbox" name="update_[% loop.count %]" id="update_[% loop.count %]" value="1" checked></td>
<td>
- <input type="hidden" name="dbname_[% NEED_UPDATES_it.count %]" value="[% HTML.escape(row.dbname) %]">
- <label for="update_[% NEED_UPDATES_it.count %]">[% HTML.escape(row.dbname) %]</label>
+ <input type="hidden" name="dbname_[% loop.count %]" value="[% HTML.escape(row.dbname) %]">
+ <label for="update_[% loop.count %]">[% HTML.escape(row.dbname) %]</label>
</td>
- <td><input type="hidden" name="dbdriver_[% NEED_UPDATES_it.count %]" value="Pg">PostgreSQL</td>
- <td><input type="hidden" name="dbhost_[% NEED_UPDATES_it.count %]" value="[% HTML.escape(row.dbhost) %]">[% HTML.escape(row.dbhost) %]</td>
- <td><input type="hidden" name="dbport_[% NEED_UPDATES_it.count %]" value="[% HTML.escape(row.dbport) %]">[% HTML.escape(row.dbport) %]</td>
- <td><input type="hidden" name="dbuser_[% NEED_UPDATES_it.count %]" value="[% HTML.escape(row.dbuser) %]">[% HTML.escape(row.dbuser) %]</td>
+ <td><input type="hidden" name="dbdriver_[% loop.count %]" value="Pg">PostgreSQL</td>
+ <td><input type="hidden" name="dbhost_[% loop.count %]" value="[% HTML.escape(row.dbhost) %]">[% HTML.escape(row.dbhost) %]</td>
+ <td><input type="hidden" name="dbport_[% loop.count %]" value="[% HTML.escape(row.dbport) %]">[% HTML.escape(row.dbport) %]</td>
+ <td><input type="hidden" name="dbuser_[% loop.count %]" value="[% HTML.escape(row.dbuser) %]">[% HTML.escape(row.dbuser) %]</td>
</tr>
- [% IF NEED_UPDATES_it.last %]
- <input type="hidden" name="rowcount" value="[% NEED_UPDATES_it.size %]">
- [% END %]
[% END %]
</table>
+ <input type="hidden" name="rowcount" value="[% NEED_UPDATES.size %]">
+
<input name="callback" type="hidden" value="admin.pl?action=list_users">
<input type="hidden" name="nextsub" value="dbupdate">
<p>Die folgenden Benutzer wurden in die Authentifizierungsdatenbank migriert:</p>
- <p>[% FOREACH row = MEMBERS %][% row.login %] [% END %]</p>
+ <p>[% FOREACH row = MEMBERS %][% HTML.escape(row.login) %] [% END %]</p>
<input type="hidden" name="nextsub" value="create_standard_group_ask">
<p><translate>The following users have been migrated into the
authentication database:</translate></p>
- <p>[% FOREACH row = MEMBERS %][% row.login %] [% END %]</p>
+ <p>[% FOREACH row = MEMBERS %][% HTML.escape(row.login) %] [% END %]</p>
<input type="hidden" name="nextsub" value="create_standard_group_ask">