source: trunk/cgi-bin/geisa_post_nbcl @ 1

Last change on this file since 1 was 1, checked in by cbipsl, 18 years ago

Geisa inital import

File size: 680 bytes
Line 
1#file=geisa_post_nbcl
2#on entry: $menu_opt=...Nbcl=n&... (POST method)
3#      or: $menu_opt=...Nbclu=u&...Nbcld=d... (POST method)
4#on exit: defines $nbcl=",nbclass=[n|10*d+u]" if [n|10*d+u] != $nbcld
5#                 $nbcl="" otherwise.
6#                 $execute_parms=$execute_parms$nbcl
7nbcld=10
8ifs=$IFS;IFS="&";nbcl=;m=;for s in $menu_opt;do
9l=`expr "$s" : 'Nbcl=\(.*\)'`
10[ "$l" ]&&{ [ "$l" != "$nbcld" ]&&nbcl=",nbclas=$l";break;}
11l=`expr "$s" : 'Nbcld=\(.*\)'`
12[ "$l" ]&&{ m=$l; continue;}
13[ "$m" ]||continue
14l=`expr "$s" : 'Nbclu=\(.*\)'`
15[ "$l" ]&&{ l=`expr 10 \* $m + $l`;[ "$l" != "$nbcld" ]&&nbcl=",nbclas=$l";break;}
16done;IFS=$ifs
17execute_parms=$execute_parms$nbcl
Note: See TracBrowser for help on using the repository browser.