comparison y4.cgi @ 13:f2204bd941d5

periodic
author HIROSE Yuuji <yuuji@gentei.org>
date Tue, 21 Jul 2015 10:13:33 +0900
parents 3565d93c2fb1
children 636df1c1bdf2
comparison
equal deleted inserted replaced
12:262bbdea72e2 13:f2204bd941d5
20 bozohttp*) 20 bozohttp*)
21 set -- `echo "$@"|(IFS=+ read a b c d e f g; echo $a $b $c $d $e $f $g)` 21 set -- `echo "$@"|(IFS=+ read a b c d e f g; echo $a $b $c $d $e $f $g)`
22 ;; 22 ;;
23 esac 23 esac
24 24
25 ## err 1=$1 2=$2 3=$3 4=$4 25 err 1=$1 2=$2 3=$3 4=$4
26 stage=`getpar stage` 26 stage=`getpar stage`
27 stage=${stage:-$1} 27 stage=${stage:-$1}
28 case ${stage} in 28 case ${stage} in
29 # "") 29 # "")
30 # contenttype; echo 30 # contenttype; echo
53 invite 53 invite
54 ;; 54 ;;
55 "groupman") 55 "groupman")
56 contenttype; echo 56 contenttype; echo
57 gname=`getpar gname` 57 gname=`getpar gname`
58 [ -n "$gname" ] && par2table $formdir/grp.def 58 if [ -n "$gname" ]; then
59 par2table $formdir/grp.def
60 joingrp "$gname" "$user" yes "$user" as-admin
61 fi
62 GF_STAGE=groupman
59 m4 -D_TITLE_="グループ作成" \ 63 m4 -D_TITLE_="グループ作成" \
60 -D_FORM_="`genform $formdir/grp.def`" \ 64 -D_FORM_="`genform $formdir/grp.def`" \
61 -D_DUMPTABLE_="`DT_VIEW=grp dumptable html grp 'gname gecos'`" \ 65 -D_DUMPTABLE_="`DT_VIEW=grp dumptable html grp 'gname gecos:DESC mtime:TIME' 'order by b.TIME desc'`" \
62 $layout/html.m4.html $layout/groupman.m4.html 66 $layout/html.m4.html $layout/groupman.m4.html
63 ;; 67 ;;
64 "edittable") 68 "edittable")
65 contenttype; echo 69 contenttype; echo
66 m4 -D_TITLE_="グループ編集/削除" $layout/html.m4.html 70 m4 -D_TITLE_="グループ編集/削除" $layout/html.m4.html
78 ;; 82 ;;
79 "mems") 83 "mems")
80 contenttype; echo 84 contenttype; echo
81 m4 -D_TITLE_="参加者一覧" -D_BODYCLASS_=listmember $layout/html.m4.html 85 m4 -D_TITLE_="参加者一覧" -D_BODYCLASS_=listmember $layout/html.m4.html
82 kwd=`getpar kwd` 86 kwd=`getpar kwd`
83 listmember $kwd | tee tmp/listmem.out 87 listmember $kwd
84 ;; 88 ;;
85 "grps") 89 "grps")
86 contenttype; echo 90 contenttype; echo
87 m4 -D_TITLE_="グループ一覧" -D_BODYCLASS_=listgroup $layout/html.m4.html 91 m4 -D_TITLE_="グループ一覧" -D_BODYCLASS_=listgroup $layout/html.m4.html
88 kwd=`getpar kwd` 92 kwd=`getpar kwd`
111 [ -n "$jg" -a -n "$grp" ] && 115 [ -n "$jg" -a -n "$grp" ] &&
112 joingrp "$grp" "$user" "$jg" "`getpar email`" 116 joingrp "$grp" "$user" "$jg" "`getpar email`"
113 fi 117 fi
114 m4 -D_TITLE_="グループ $grp" \ 118 m4 -D_TITLE_="グループ $grp" \
115 $layout/html.m4.html 119 $layout/html.m4.html
116 showgroup $grp 120 showgroup "$grp"
117 121
118 ;; 122 ;;
119 "commission") 123 "commission")
120 # $2=grp $3=user-rowid 124 # $2=grp $3=user-rowid
121 contenttype; echo 125 contenttype; echo

yatex.org