CGI-AppBuilder-Common
view release on metacpan or search on metacpan
my $prg = 'AppBuilder::Common->new_form';
my $tsk = $ar->{new_task}; # task: add_study
my $amg = eval $s->set_param('arg_msgs',$ar); # arg msgs
if (exists $ar->{guid}) {
my ($usr_sid,$usr_uid,$usr_tmo) = split /:/, $ar->{guid};
$ar->{user_sid} = $usr_sid if $usr_sid =~ /^\d+$/;
$ar->{user_uid} = $usr_uid if $usr_uid;
$ar->{user_tmo} = $usr_tmo if $usr_tmo;
}
$ar->{encoding} = 'multipart/form-data' if ($tsk && $tsk =~ /^upload_file/i);
if (!exists $amg->{$tsk}) {
$s->echo_msg("ERR: ($prg) could not find new task - $tsk.",0);
return;
}
my ($pid,$sid,$t,$t1,$t2) = ();
$pid = $ar->{pid} if (exists $ar->{pid} && $ar->{pid});
$sid = $ar->{sid} if (exists $ar->{sid} && $ar->{sid});
$sid = $ar->{study_id} if (!$sid && exists $ar->{study_id});
$sid = $ar->{sel_sn1} if (!$sid && exists $ar->{sel_sn1});
( run in 1.843 second using v1.01-cache-2.11-cpan-b16cb0d3907 )