3 if [ "$_PATH" = "/courses/courses.css" ]; then
4 . $_EXEC/cgilite/file.sh
5 FILE $_EXEC/courses/courses.css
10 . $_EXEC/courses/l10n.sh
11 . $_EXEC/courses/widgets.sh
12 . $_EXEC/courses/list.sh
14 unescape() { [ $# = 0 ] && sed -E 's;\\(.);\1;g' || printf %s "$*" |sed -E 's;\\(.);\1;g'; }
15 upcase=' y;abcdefghijklmnopqrstuvwxyzäöüé;ABCDEFGHIJKLMNOPQRSTUVWXYZÄÖÜÉ;; '
17 order="$(GET o |grep -m1 -xE 'DOW|TOD')"
20 [ "$order" ] || order=DOW
25 [form .newcourses action="/cards/new_course.sh" method="POST"
26 [button type="submit" %s]
27 ]' "$(l10n newcourse)"
29 [ "$edit" ] && edit_course "$edit"
30 printf '[div .courselist\n'
33 } | yield_page courses /courses/courses.css