]> git.plutz.net Git - confetti/blobdiff - pages/email.sh
enable prescription page to update card display
[confetti] / pages / email.sh
index c4c8a21fac512c1f95da509eb570228b9239794f..c79876fe23476c22e20ce8d859aefc4eab1ed3b2 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/zsh
 
 # Copyright 2014 Paul Hänsch
 #
 
 # Copyright 2014 Paul Hänsch
 #
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
 # You should have received a copy of the GNU Affero General Public License
 # along with Confetti.  If not, see <http://www.gnu.org/licenses/>. 
 
-[ -z "$_GET[\"order\"]" ] && _GET["order"]=DOW
+[ -z "${_GET[order]}" ] && _GET[order]=DOW
 
 listcards() {
   ls -1 ${_DATA}/vcard/*vcf 2>/dev/null |while read file; do
 
 listcards() {
   ls -1 ${_DATA}/vcard/*vcf 2>/dev/null |while read file; do
@@ -32,17 +32,3 @@ listcourses() {
     echo "$(date -d "$icstime" "+%u %H%M%S")\t$file"
   done |sort |sed -r 's:^.*\t(.*/)([^/]+)$:\2:'
 }
     echo "$(date -d "$icstime" "+%u %H%M%S")\t$file"
   done |sort |sed -r 's:^.*\t(.*/)([^/]+)$:\2:'
 }
-
-case "$1" in
-  title)
-    echo "Email"
-  ;;
-  css)
-    . ${_EXEC}/templates/email.css.sh
-  ;;
-  body)
-    . ${_EXEC}/templates/text_email.sh
-    . ${_EXEC}/templates/email.html.sh
-  ;;
-esac
-