#!/usr/local/bin/zsh # The first two echo commands must be present in all script files echo Content-type: text/html echo # from here on is up to you echo "

WCCO 1996 Delegate Search

" echo \ if [ A$name = A ] then echo "Search Criteria:

" echo "" echo "" echo "" echo "" echo "" echo "" echo "" echo "
" echo "A. Technique:" if [ "$techniques" = ".*" ] then echo "Any Technique" else grep -i "$techniques" /home/cotstaff/cavram/www/wcco96/dial/dial_form.htm fi echo "
  
" echo "C. Target Group:" if [ "$targets" = ".*" ] then echo "All Target Groups " else grep -i "$targets" /home/cotstaff/cavram/www/wcco96/dial/dial_form.htm fi echo "
  
" echo "E. Language:" if [ "$languages" = ".*" ] then echo "Any Language" else grep -i "$languages" /home/cotstaff/cavram/www/wcco96/dial/dial_form.htm fi echo "
" echo "B. Setting:" if [ "$settings" = ".*" ] then echo "All Settings " else grep -i "$settings" /home/cotstaff/cavram/www/wcco96/dial/dial_form.htm fi echo "
  
" echo "D. Cancer Type:" if [ "$types" = ".*" ] then echo "All Cancer Types " else grep -i "$types" /home/cotstaff/cavram/www/wcco96/dial/dial_form.htm fi echo "
  
" echo "F. Professional area:" if [ "$professions" = ".*" ] then echo "All Professions" else grep -i "$professions" /home/cotstaff/cavram/www/wcco96/dial/dial_form.htm fi echo "

" else echo "Showing all and only those records that contain the text '$name'" fi echo "" echo "" echo "" echo "" if [ A$name = A ] then name='.*' # change 12/2/96 cpa /home/cotstaff/cavram/www/wcco96/dial/jan24.db | cat $db | grep -i "$languages" | grep -i "$professions" | grep -i "$techniques" | grep -i "$settings" | grep -i "$targets" | grep -i "$types" #echo DEBUG #echo "$languages" #echo "$professions" #echo "$techniques" #echo "$settings" #echo "$targets" #echo "$types" #echo "$db" #echo "$script" else grep -i "$name" "$db" # change 12/2/96 cpa /home/cotstaff/cavram/www/wcco96/dial/jan24.db fi echo "" #echo "" echo "" echo "
Family NameTitleGiven NameOrganisationFull_Street_AddressTownStateCountryPost codeFaxEmail
End of dataMatching Delegates" #wc -l <"$db" echo "Total Delegates" wc -l <"$db" echo "Dial forms received" echo `wc -l <"$db"` "-" `grep "" "$db" | wc -l` | bc echo "Dial forms required" grep "" "$db" | wc -l echo "
" echo \