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

Richard Mansfield's avatar
Richard Mansfield committed
3
    <p>{str tag="usersearchinstructions" section="admin"}</p>
4
    <div id="initials">
5
    <div id="firstnamelist">
6
      <label>{str tag="firstname"}:</label>
7
       <span class="first-initial{if !$search->f} selected{/if} all">
8
        <a href="{$WWWROOT}admin/users/search.php?query={$search->query}{if $search->l}&amp;l={$search->l}{/if}{if $search->sortby}&amp;sortby={$search->sortby}{/if}{if $search->sortdir}&amp;sortdir={$search->sortdir}{/if}{if $limit}&amp;limit={$limit}{/if}">{str tag="All"}</a>
9
10
       </span>
       {foreach from=$alphabet item=a}
11
       <span class="first-initial{if $a == $search->f} selected{/if}">
12
        <a href="{$WWWROOT}admin/users/search.php?query={$search->query}&amp;f={$a}{if $search->l}&amp;l={$search->l}{/if}{if $search->sortby}&amp;sortby={$search->sortby}{/if}{if $search->sortdir}&amp;sortdir={$search->sortdir}{/if}{if $limit}&amp;limit={$limit}{/if}">{$a}</a>
13
14
       </span>
       {/foreach}
15
16
    </div>
    <div id="lastnamelist">
17
      <label>{str tag="lastname"}:</label>
18
       <span class="last-initial{if !$search->l} selected{/if} all">
19
        <a href="{$WWWROOT}admin/users/search.php?query={$search->query}{if $search->f}&amp;f={$search->f}{/if}{if $search->sortby}&amp;sortby={$search->sortby}{/if}{if $search->sortdir}&amp;sortdir={$search->sortdir}{/if}{if $limit}&amp;limit={$limit}{/if}">{str tag="All"}</a>
20
21
       </span>
       {foreach from=$alphabet item=a}
22
       <span class="last-initial{if $a == $search->l} selected{/if}">
23
        <a href="{$WWWROOT}admin/users/search.php?query={$search->query}&amp;l={$a}{if $search->f}&amp;f={$search->f}{/if}{if $search->sortby}&amp;sortby={$search->sortby}{/if}{if $search->sortdir}&amp;sortdir={$search->sortdir}{/if}{if $limit}&amp;limit={$limit}{/if}">{$a}</a>
24
25
       </span>
       {/foreach}
26
    </div>
27
    </div>
28
    {if $USER->get('admin') || $USER->is_institutional_admin() || get_config('staffreports')}
Evonne Cheung's avatar
Evonne Cheung committed
29
    <div class="withselectedusers">
30
    <strong>{str tag=withselectedusers section=admin}:</strong>&nbsp;
31
    {if $USER->get('admin') || $USER->is_institutional_admin()}
32
33
    <form class="nojs-hidden-inline" id="bulkactions" action="{$WWWROOT}admin/users/bulk.php" method="post">
      <input type="button" class="button" name="edit" value="{str tag=edit}">
34
    </form>
35
    {/if}
36
37
38
39
40
41
    <form class="nojs-hidden-inline" id="report" action="{$WWWROOT}admin/users/report.php" method="post">
      <input type="button" class="button" name="reports" value="{str tag=getreports section=admin}">
    </form>
    <div id="nousersselected" class="hidden error">{str tag=nousersselected section=admin}</div>
    </div>
    {/if}
Richard Mansfield's avatar
Richard Mansfield committed
42
    <form action="{$WWWROOT}admin/users/search.php" method="post">
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
        {if $search->f}
        <input type="hidden" name="f" id="f" value="{$search->f}">
        {/if}
        {if $search->l}
        <input type="hidden" name="l" id="l" value="{$search->l}">
        {/if}
        {if $search->sortby}
        <input type="hidden" name="sortby" id="sortby" value="{$search->sortby}">
        {/if}
        {if $search->sortdir}
        <input type="hidden" name="sortdir" id="sortdir" value="{$search->sortdir}">
        {/if}
        {if $limit}
        <input type="hidden" name="limit" id="limit" value="{$limit}">
        {/if}
58
59
60
61
62
63
64
65
66
67
68
        <div class="loggedin-filter">
            <label for="loggedin">{str tag="loggedinfilter" section="admin"}</label>
            <select name="loggedin" id="loggedin">
                {foreach from=$loggedintypes item=t}
                    <option value="{$t['name']}"{if $search->loggedin === $t['name']} selected="selected"{/if}>{$t['string']}</option>
                {/foreach}
            </select>
            <span id="loggedindate_container"{if !($search->loggedin == 'since' || $search->loggedin == 'notsince')} class="js-hidden"{/if}>
                {$loggedindate|safe}
            </span>
        </div>
69
70
71
72
        <div class="duplicateemail-filter">
            <label for="duplicateemail">{str tag="duplicateemailfilter" section="admin"}</label>
            <input type="checkbox" name="duplicateemail" id="duplicateemail" value="1"{if $search->duplicateemail} checked{/if}>
        </div>
73
        <div class="searchform-gap nojs-hidden-block"></div>
74
        <div class="searchform">
75
            <label>{str tag='Search' section='admin'}:</label>
76
                <input type="text" name="query" id="query"{if $search->query} value="{$search->query}"{/if}>
77
            
78
            {if count($institutions) > 1}
Richard Mansfield's avatar
Richard Mansfield committed
79
            <span class="institutions">
80
                <label>{str tag='Institution' section='admin'}:</label>
81
                    <select name="institution" id="institution">
82
                        <option value="all"{if !$.request.institution} selected="selected"{/if}>{str tag=All}</option>
Richard Mansfield's avatar
Richard Mansfield committed
83
                        {foreach from=$institutions item=i}
84
                        <option value="{$i->name}"{if $i->name == $.request.institution}" selected="selected"{/if}>{$i->displayname}</option>
Richard Mansfield's avatar
Richard Mansfield committed
85
86
87
88
                        {/foreach}
                    </select>
            </span>
            {/if}
Evonne Cheung's avatar
Evonne Cheung committed
89
            <button id="query-button" class="btn-search" type="submit">{str tag="go"}</button>
90
        </div>
Richard Mansfield's avatar
Richard Mansfield committed
91
        <div id="results" class="section">
92
            {$results|safe}
93
94
95
        </div>
    </form>

96
{include file="footer.tpl"}