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

3
{include file="columnfullstart.tpl"}
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38

    <h2>{str tag="usersearch" section="admin"}</h2>
    <table id="initials"><tbody>
     <tr id="firstnamelist">
      <td>{str tag="firstname"}:</td>
      <td>
       <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">
      <td>{str tag="lastname"}:</td>
      <td>
       <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: 
                <input type="text" name="query" id="query">
            </label>
Richard Mansfield's avatar
Richard Mansfield committed
39
40
41
42
43
44
45
46
47
48
49
50
51
            {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>
52
53
54
55
56
57
        </div>
        <div id="results">
            {$results}
        </div>
    </form>

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