X-Git-Url: https://git.plutz.net/?p=confetti;a=blobdiff_plain;f=cards%2Fmain.cgi;h=899388d994e07d68d304890a268d7435de5d5604;hp=bfc574f25d50998a8af7bd31b88c7f20ce58b64d;hb=d3f2a05bb824037485738394d65430c5f5407a11;hpb=516b1d6b0427b42924a60bd63ed48d8087a9e4e8 diff --git a/cards/main.cgi b/cards/main.cgi index bfc574f..899388d 100755 --- a/cards/main.cgi +++ b/cards/main.cgi @@ -1,36 +1,28 @@ #!/bin/sh -if [ "$ITEM" = "cards/cards.css" ]; then +if [ "$_PATH" = "/cards/cards.css" ]; then . $_EXEC/cgilite/file.sh FILE $_EXEC/cards/cards.css return 0 -elif [ "$(GET action)" = filter_card ]; then - . $_EXEC/cards/filter_card.sh - exit 0 fi . $_EXEC/pdiread.sh . $_EXEC/cards/l10n.sh . $_EXEC/cards/widgets.sh +. $_EXEC/cards/list.sh -filter="$(GET filter)" -order="$(GET order)" +filter="$(GET f)" +order="$(GET o)" +edit="$(GET e)" +[ "$order" ] || order=firstname -printf 'Content-Type: text/html; charset=utf-8\r\n\r\n' +{ w_filter_diag -$_EXEC/cgilite/html-sh.sed <