#!/usr/bin/perl

# $Id: choose_icon.pl,v 1.1 1996/01/20 08:32:29 hoagland Exp $

# choose_icon.pl, by Jim Hoagland (hoagland@cs) 1/96

# this program invokes &draw_choose_icon to return the HTML for the page
# to choose icon assignments from
# Input is CGI, a field on a form or none.
# Output is eventually HTML to STDOUT.

require '/pkg/www/arpa/secret/cgi-bin/gui-helper.pl';
require '/pkg/www/arpa/secret/cgi-bin/draw_choose_icon.pl';
umask 000;

require CGI;

$input= new CGI;

foreach (@ARGV) {  # simulate field input
  $input->param(split('=',$_,2));
}

$state= State->new(&get_statefile);

#-------------


&draw_choose_icon($state,$input->param('folder'));

1;
