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/>.
21 [ "${_GET[order]}" = "$1" ] && echo 'checked="checked"'
26 <form class="search" action="?" method="GET">
27 <input type="hidden" name="page" value="courses"/>
28 <input type="hidden" name="edit" value="$edit"/>
29 <span class="label">$(l10n sort_order):</span>
30 <input type="radio" name="order" value="DOW" $(check_order DOW)>$(l10n order_DOW)</input>
31 <input type="radio" name="order" value="TOD" $(check_order TOD)>$(l10n order_TOD)</input>
33 <button type="submit" name="" value="">$(l10n order_apply)</button>
37 <div class="newcourse">
38 <form action="?action=new_course" method="POST">
39 <button type="submit">$(l10n newcourse)</button>
43 <div class="courselist">
45 [ -f "ical/$edit" -o -f "temp/$edit" ] && edit_course "$edit"
47 listcourses |grep -v "$edit"
50 fi |while read card; do
57 # vi:set filetype=html: