1 # Copyright 2014 Paul Hänsch
3 # This file is part of Confetti.
5 # Confetti is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU Affero General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
10 # Confetti is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU Affero General Public License for more details.
15 # You should have received a copy of the GNU Affero General Public License
16 # along with Confetti. If not, see <http://www.gnu.org/licenses/>.
19 [ "${_GET[filtertype]}" = "$1" ] && echo 'checked="checked"'
22 [ "${_GET[order]}" = "$1" ] && echo 'checked="checked"'
26 [ -z "${_GET[filtertype]}" ] && _GET[filtertype]="any"
27 [ -z "${_GET[order]}" ] && _GET[order]="firstname"
30 <form class="filter" action="?action=filter_attendee" method="POST">
31 <h1>$(l10n filter_label)</h1>
32 <input type="hidden" name="page" value="attendees"/>
33 <input type="text" name="filter" value="$_GET["filter"]" placeholder="$(l10n filter_placeholder)"/>
36 <legend>$(l10n filter_type):</legend>
37 <input type="radio" name="filtertype" value="any" id="ft_any" $(check_type any)
38 ><label for="ft_any" >$(l10n filter_all)</label>
39 <input type="radio" name="filtertype" value="name" id="ft_name" $(check_type name)
40 ><label for="ft_name" >$(l10n filter_name)</label>
41 <input type="radio" name="filtertype" value="street" id="ft_street" $(check_type street)
42 ><label for="ft_street">$(l10n filter_street)</label>
43 <input type="radio" name="filtertype" value="zip" id="ft_zip" $(check_type zip)
44 ><label for="ft_zip" >$(l10n filter_zip)</label>
45 <input type="radio" name="filtertype" value="telephone" id="ft_phone" $(check_type telephone)
46 ><label for="ft_phone" >$(l10n filter_phone)</label>
47 <input type="radio" name="filtertype" value="birth" id="ft_birth" $(check_type birth)
48 ><label for="ft_birth" >$(l10n filter_birthyear)</label>
49 <input type="radio" name="filtertype" value="course" id="ft_course" $(check_type course)
50 ><label for="ft_course">$(l10n filter_course)</label>
53 <legend>$(l10n filter_order):</legend>
54 <input type="radio" name="order" value="firstname" id="od_fname" $(check_order firstname)
55 ><label for="od_fname">$(l10n filter_firstname)</label>
56 <input type="radio" name="order" value="lastname" id="od_lname" $(check_order lastname)
57 ><label for="od_lname">$(l10n filter_lastname)</label>
58 <input type="radio" name="order" value="bdate" id="od_bdate" $(check_order bdate)
59 ><label for="od_bdate">$(l10n filter_bdate)</label>
61 <button type="submit" name="choice" value="new_filter">$(l10n filter_apply)</button>
62 <button type="submit" name="choice" value="del_filter">$(l10n filter_cancel)</button>
65 <form class="newcard" action="?action=new_attendee" method="POST">
66 <button type="submit">$(l10n newcard)</button>
70 [ -f "vcard/$edit" -o -f "temp/$edit" ] && edit_attendee "$edit"
72 listcards |grep -v "$edit"
75 fi |while read card; do
81 # vi:set filetype=html: