View | Details | Raw Unified | Return to bug 10153
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/patron-search.inc (-37 / +37 lines)
Lines 5-51 Link Here
5
	<p class="tip">Enter patron card number or partial name:</p>
5
	<p class="tip">Enter patron card number or partial name:</p>
6
	<form action="/cgi-bin/koha/members/member.pl" method="post">
6
	<form action="/cgi-bin/koha/members/member.pl" method="post">
7
    <input id="searchmember" size="25" class="focus" name="member" type="text" value="[% member %]"/>
7
    <input id="searchmember" size="25" class="focus" name="member" type="text" value="[% member %]"/>
8
	[% IF ( branchloop ) %]
9
	<span class="filteraction" id="filteraction_off"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[-]</a></span>
8
	<span class="filteraction" id="filteraction_off"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[-]</a></span>
10
	<span class="filteraction" id="filteraction_on"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[+]</a></span>
9
	<span class="filteraction" id="filteraction_on"> <a href="#" onclick="$('#filters').toggle();$('.filteraction').toggle();">[+]</a></span>
11
	[% END %]
12
10
13
      <label for="searchfields">Search fields:</label>
14
      <select name="searchfields" id="searchfields">
15
          <option selected="selected" value=''>Standard</option>
16
          <option value='email,emailpro,B_email,'>Email</option>
17
          <option value='borrowernumber'>Borrower number</option>
18
          <option value='phone,phonepro,B_phone,altcontactphone,mobile'>Phone number</option>
19
          <option value='streettype,address,address2,city,state,zipcode,country'>Street Address</option>
20
      </select>
21
11
22
      <label for="searchtype">Search type:</label>
23
      <select name="searchtype" id="searchtype">
24
          <option selected="selected" value=''>Starts with</option>
25
          <option value='contain'>Contains</option>
26
      </select>
27
28
    <label for="orderby">Order by:</label>
29
    <select name="orderby" id="searchorderby">
30
    <option value="">Surname, Firstname</option>
31
    <option value="cardnumber,0">Cardnumber</option>
32
    </select>
33
    <input value="Search" class="submit" type="submit" />
12
    <input value="Search" class="submit" type="submit" />
34
	[% IF ( branchloop ) %]
13
35
	<p id="filters"> <label for="branchcode">Library: </label><select name="branchcode" id="branchcode">
14
  <div id="filters">
36
        <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
15
      <p><label for="searchfields">Search fields:</label>
37
        [% IF ( branchloo.selected ) %]
16
            <select name="searchfields" id="searchfields">
38
        <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]
17
                <option selected="selected" value=''>Standard</option>
39
        <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
18
                <option value='email,emailpro,B_email,'>Email</option>
40
      [% END %]</select>
19
                <option value='borrowernumber'>Borrower number</option>
41
                 <label for="categorycode">Category: </label><select name="categorycode" id="categorycode">
20
                <option value='phone,phonepro,B_phone,altcontactphone,mobile'>Phone number</option>
42
        <option value="">Any</option>[% FOREACH categorie IN categories %]
21
                <option value='streettype,address,address2,city,state,zipcode,country'>Street Address</option>
43
        [% IF ( categorie.selected ) %]
22
            </select></p>
44
        <option value="[% categorie.categorycode %]" selected="selected">[% categorie.description %]</option>[% ELSE %]
23
        <p><label for="searchtype">Search type:</label>
45
        <option value="[% categorie.categorycode %]">[% categorie.description %]</option>[% END %]
24
                <select name="searchtype" id="searchtype">
46
      [% END %]</select>
25
                    <option selected="selected" value=''>Starts with</option>
47
	</p>
26
                    <option value='contain'>Contains</option>
48
	[% END %]
27
                </select></p>
28
29
      <p><label for="searchorderby">Order by:</label>
30
            <select name="orderby" id="searchorderby">
31
            <option value="">Surname, Firstname</option>
32
            <option value="cardnumber,0">Cardnumber</option>
33
            </select></p>
34
        [% IF ( branchloop ) %] <p><label for="branchcode">Library: </label><select name="branchcode" id="branchcode">
35
                <option value="">Any</option>[% FOREACH branchloo IN branchloop %]
36
                [% IF ( branchloo.selected ) %]
37
                <option value="[% branchloo.value %]" selected="selected">[% branchloo.branchname %]</option>[% ELSE %]
38
                <option value="[% branchloo.value %]">[% branchloo.branchname %]</option>[% END %]
39
              [% END %]</select></p>
40
      [% END %]
41
      [% IF ( categories ) %]
42
        <p><label for="categorycode">Category: </label><select name="categorycode" id="categorycode">
43
                <option value="">Any</option>[% FOREACH categorie IN categories %]
44
                [% IF ( categorie.selected ) %]
45
                <option value="[% categorie.categorycode %]" selected="selected">[% categorie.description %]</option>[% ELSE %]
46
                <option value="[% categorie.categorycode %]">[% categorie.description %]</option>[% END %]
47
                [% END %]</select></p>
48
      [% END %]
49
  </div>
49
</form>
50
</form>
50
	</div>
51
	</div>
51
52
52
- 

Return to bug 10153