Commit aaaf9cb0 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Fix admin user search template for auto_escape


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 4f00758d
{auto_escape off}
{include file="header.tpl"}
<p>{str tag="usersearchinstructions" section="admin"}</p>
<div id="initials">
<label>{str tag="firstname"}:</label>
<span class="{if !$search->f} selected{/if} all">
<a href="{$WWWROOT}admin/users/search.php{if $search->l}?l={$search->l|escape}{/if}">{str tag="All"}</a>
<a href="{$WWWROOT}admin/users/search.php{if $search->l}?l={$search->l}{/if}">{str tag="All"}</a>
</span>
{foreach from=$alphabet item=a}
<span class="{if $a == $search->f} selected{/if}">
<a href="{$WWWROOT}admin/users/search.php?f={$a}{if $search->l}&amp;l={$search->l|escape}{/if}">{$a}</a>
<a href="{$WWWROOT}admin/users/search.php?f={$a}{if $search->l}&amp;l={$search->l}{/if}">{$a}</a>
</span>
{/foreach}
<br />
<label>{str tag="lastname"}:</label>
<span class="{if !$search->l} selected{/if} all">
<a href="{$WWWROOT}admin/users/search.php{if $search->f}?f={$search->f|escape}{/if}">{str tag="All"}</a>
<a href="{$WWWROOT}admin/users/search.php{if $search->f}?f={$search->f}{/if}">{str tag="All"}</a>
</span>
{foreach from=$alphabet item=a}
<span class="{if $a == $search->l} selected{/if}">
<a href="{$WWWROOT}admin/users/search.php?l={$a}{if $search->f}&amp;f={$search->f|escape}{/if}">{$a}</a>
<a href="{$WWWROOT}admin/users/search.php?l={$a}{if $search->f}&amp;f={$search->f}{/if}">{$a}</a>
</span>
{/foreach}
</div>
<form action="{$WWWROOT}admin/users/search.php" method="post">
<div class="searchform">
<label>{str tag='Query' section='admin'}:</label>
<input type="text" name="query" id="query"{if $search->query} value="{$search->query|escape}"{/if}>
<input type="text" name="query" id="query"{if $search->query} value="{$search->query}"{/if}>
{if count($institutions) > 1}
<span class="institutions">
......@@ -38,7 +37,7 @@
{/if}
<option value="all"{if !$.request.institution} selected="selected"{/if}>{str tag=All}</option>
{foreach from=$institutions item=i}
<option value="{$i->name|escape}"{if $i->name == $.request.institution}" selected="selected"{/if}>{$i->displayname|escape}</option>
<option value="{$i->name}"{if $i->name == $.request.institution}" selected="selected"{/if}>{$i->displayname}</option>
{/foreach}
</select>
</span>
......@@ -46,10 +45,8 @@
<button id="query-button" type="submit">{str tag="go"}</button>
</div>
<div id="results" class="section">
{$results}
{$results|safe}
</div>
</form>
{include file="footer.tpl"}
{/auto_escape}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment