search.tpl 2.73 KB
Newer Older
1
2
{include file="header.tpl"}

3
{include file="columnfullstart.tpl"}
Richard Mansfield's avatar
Richard Mansfield committed
4
    <p>{str tag="usersearchinstructions" section="admin"}</p>
5
6
    <table id="initials"><tbody>
     <tr id="firstnamelist">
7
      <td class="initial-label">{str tag="firstname"}:</td>
8
      <td class="initial-letters">
9
       <span class="first-initial{if empty($search->f)} selected{/if} all">
10
        <a href="{$WWWROOT}admin/users/search.php{if $search->l}?l={$search->l|escape}{/if}">{str tag="All"}</a>
11
12
13
       </span>
       {foreach from=$alphabet item=a}
       <span class="first-initial{if $a == $search->f} selected{/if}">
14
        <a href="{$WWWROOT}admin/users/search.php?f={$a}{if $search->l}&amp;l={$search->l|escape}{/if}">{$a}</a>
15
16
17
18
19
       </span>
       {/foreach}
      </td>
     </tr>
     <tr id="lastnamelist">
20
      <td class="initial-label">{str tag="lastname"}:</td>
21
      <td class="initial-letters">
22
       <span class="last-initial{if empty($search->l)} selected{/if} all">
23
        <a href="{$WWWROOT}admin/users/search.php{if $search->f}?f={$search->f|escape}{/if}">{str tag="All"}</a>
24
25
26
       </span>
       {foreach from=$alphabet item=a}
       <span class="last-initial{if $a == $search->l} selected{/if}">
27
        <a href="{$WWWROOT}admin/users/search.php?l={$a}{if $search->f}&amp;f={$search->f|escape}{/if}">{$a}</a>
28
29
30
31
32
       </span>
       {/foreach}
      </td>
     </tr>
    </tbody></table>
Richard Mansfield's avatar
Richard Mansfield committed
33
    <form action="{$WWWROOT}admin/users/search.php" method="post">
34
        <div class="searchform">
35
36
            <label>{str tag='Query' section='admin'}:
                <input type="text" name="query" id="query"{if !empty($search->query)} value="{$search->query|escape}"{/if}>
37
            </label>
38
            {if count($institutions) > 1}
Richard Mansfield's avatar
Richard Mansfield committed
39
            <span class="institutions">
40
                <label>{str tag='Institution' section='admin'}:
41
                    {if $USER->get('admin')}
42
                    <select name="institution" id="institution">
43
                    {else}
44
                    <select name="institution_requested" id="institution_requested">
45
                    {/if}
46
                        <option value="all"{if !$smarty.request.institution} selected="selected"{/if}>{str tag=All}</option>
Richard Mansfield's avatar
Richard Mansfield committed
47
                        {foreach from=$institutions item=i}
48
                        <option value="{$i->name|escape}"{if $i->name == $smarty.request.institution}" selected="selected"{/if}>{$i->displayname|escape}</option>
Richard Mansfield's avatar
Richard Mansfield committed
49
50
51
52
53
54
                        {/foreach}
                    </select>
                </label>
            </span>
            {/if}
            <button id="query-button" type="submit">{str tag="go"}</button>
55
56
57
58
59
60
        </div>
        <div id="results">
            {$results}
        </div>
    </form>

61
{include file="columnfullend.tpl"}
62
63
{include file="footer.tpl"}