X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=templates%2Fcourses.html.sh;h=99e3381c330fdab04a3c2aec1eae4ff2dfc3f363;hp=365c576210ef21c34606a5fe97c91c2139ba6ba7;hb=4e49d483fd5121fda86a33cf583c15afa6556ad1;hpb=c195881a2389862d4bfcd2fd55ca868f7a20b8e8 diff --git a/templates/courses.html.sh b/templates/courses.html.sh old mode 100644 new mode 100755 index 365c576..99e3381 --- a/templates/courses.html.sh +++ b/templates/courses.html.sh @@ -1,7 +1,39 @@ +# Copyright 2014 Paul Hänsch +# +# This file is part of Confetti. +# +# Confetti is free software: you can redistribute it and/or modify +# it under the terms of the GNU Affero General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# Confetti is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with Confetti. If not, see . -edit="$_GET[\"edit\"]" +edit="${_GET[edit]}" + +check_order(){ + [ "${_GET[order]}" = "$1" ] && echo 'checked="checked"' +} cat < + + +