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

3
{include file="columnfullstart.tpl"}
4
5

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

59
{include file="columnfullend.tpl"}
60
61
{include file="footer.tpl"}