3 creates all the web forms for the qtl data submission
4 and sends the data to qtl_load.pl for processing
5 and loading it to the database.
8 Isaak Y Tecle (iyt2@cornell.edu)
17 use CatalystX
::GlobalContext
qw( $c );
19 my $dbh = $c->dbc->dbh;
20 my $login = CXGN::Login->new($dbh);
21 my $sp_person_id = $login->verify_session();
23 my %args = $cgi->Vars;
24 my $type = $args{type};
25 my $pop_id = $args{pop_id};
30 = qq | <a href="http://docs.google.com/View?id=dgvczrcd_1c479cgfb">Guidelines</a> |;
34 $c->forward_to_mason_view( '/qtl/qtl_form/intro.mas',
39 elsif ( $type eq 'pop_form' )
41 $c->forward_to_mason_view( '/qtl/qtl_form/pop_form.mas',
45 elsif ( $type eq 'trait_form' )
47 $c->forward_to_mason_view( '/qtl/qtl_form/trait_form.mas',
53 elsif ( $type eq 'pheno_form' )
55 $c->forward_to_mason_view( '/qtl/qtl_form/pheno_form.mas',
62 elsif ( $type eq 'geno_form' )
64 $c->forward_to_mason_view( '/qtl/qtl_form/geno_form.mas',
71 elsif ( $type eq 'stat_form' )
73 $c->forward_to_mason_view( '/qtl/qtl_form/stat_form.mas',
76 referer=> $c->req->path
81 elsif ( $type eq 'confirm' )
83 $c->forward_to_mason_view( '/qtl/qtl_form/confirm.mas',