my %States;
my $Current_Screen;
############################################################################
# Registration From for use with ASRA and other Societies #
# (Includes code for RugglesCC.pm) #
# (Includes PBLs, proper Tab spacing, ONEDAY, Intensive Workshops, #
# Master Classes, Early Bird, JavaScript deselect(Q,V), #
# State/International solution) #
# Blank Survey Responce Added #
# Added Reception/Guests, Added Research Fund (6/24/02 lth) #
# Added Society name to Form (6/25/02) lth #
# Added Non-CyberCash Transaction Verbage (6/27/02) lth #
# Removed upper case societies (8/9/02) lth #
# Added %sold_out (8/14/02) lth #
# Fixed late date problem (3/20/02) lth #
############################################################################
package SPA_IRPA_ONLINE;
my %States;
my $Current_Screen;
my $path = "./";
my $title = "Course Registration";
my $member_no = 0;
%States = (
'Default' => \&disclaimer,
'I Accept These Terms' => \&course_type,
'Continue to Step 2' => \&login_page,
'Continue to Register' => \®ister_page,
'Continue' => \®ister_page,
'Start Over' => \&course_type
);
$Current_Screen = param(".State") || "Default";
die "No screen for $Current_Screen" unless $States{$Current_Screen};
!>
#include ./header4.iphtml
;
while (my($screen_name, $function) = each %States) {
$function->($screen_name eq $Current_Screen);
}
!>
#include ./footer_include.iphtml
sub disclaimer
{
my $active = shift;
return unless $active;
print start_form();
print<
This activity has expired and is no longer available for CME credit.
THE CME SECTION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED. YOUR USE OF THE CME SECTION IS AT YOUR OWN RISK. THE CME SECTION MAY CONTAIN ERRORS AND INACCURACIES AND MAY NOT BE COMPLETE, TIMELY, OR RELIABLE. SPA DOES NOT WARRANT THAT USE OF ITS CME SECTION WILL BE UNINTERRUPTED OR ERROR-FREE, OR THAT THE CME SECTION OR THE SERVER THAT MAKES IT AVAILABLE ARE FREE OF VIRUSES OR OTHER HARMFUL COMPONENTS. SPA AND ALL THOSE INVOLVED IN THE COLLECTION, ANALYSIS, PRESENTATION, AND POSTING OF THE INFORMATION ON THE CME SECTION HEREBY DISCLAIM ALL WARRANTIES REGARDING THE CME SECTION, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, ACCURACY, TITLE, AND NONINFRINGEMENT.
EOF print end_form(); } sub course_type { my $active = shift; return unless $active; print<You are already registered for the =$meeting!>. Click here to access the course lectures.
#include ./footer_include.iphtml return; } if ($registrant_in_db) { $msg .= "$reg_fields[18], we show you having registered for a previous $society event with this email address. If you're not $reg_fields[18], click here to register with a different email address.| DESCRIPTION | UNIT PRICE | QUANTITY | TOTAL | ||
| $reg_types[$i][1]"; for ($j=0; defined($reg_types[$i][3][$j]); $j++) { foreach my $rts (@reg_types_sub) { if ($rts eq $reg_types[$i][3][$j][0]) { $buffer .= "(" . $reg_types[$i][3][$j][1] . ")"; $tab += length($reg_types[$i][3][$j][1]) +2; $subtype_count++; } } } # my $t_count=(floor((75-$tab)/8+.5)-1); my $t_count= 64-$tab; if ($cgi->param('reg_type') eq "ONEDAY") { # $t_count = $t_count-3; $t_count = $t_count - 18; } for (my $tabs=0; $tabs<$t_count; $tabs++) { # $buffer .= "\t"; $buffer .=" "; } ### Deal with ONEDAY costs here if ($cgi->param('reg_type') eq "ONEDAY") { $regcost=$subtype_count * $reg_types[$i][2][$reduced_rate]; $cost = $cost + $regcost; $buffer .= "$subtype_count days \@ \$" . $reg_types[$i][2][$reduced_rate] . "/day= \$" . $regcost; $reginfo_buffer2 .= " $subtype_count days \@ \$" . $reg_types[$i][2][$reduced_rate] . "/day | \n"; $reginfo_buffer2 .= '$'. $reg_types[$i][2][$reduced_rate] . " | \n"; $reginfo_buffer2 .= ''.$subtype_count.' | '; $reginfo_buffer2 .= '$'. $regcost . " | $'. $reg_types[$i][2][$reduced_rate] . " | \n"; $reginfo_buffer2 .= '1 | '; $reginfo_buffer2 .= '$'. $reg_types[$i][2][$reduced_rate] . " | \n"; $cost = $cost + $reg_types[$i][2][$reduced_rate]; $regcost=$reg_types[$i][2][$reduced_rate]; } } } #end first if $complete } my $extra3_total = $extras3[$reduced_rate] * $cgi->param('extras3'); $cost = $cost + $extra3_total; my $extras3_total = $cgi->param('extras3'); if ($cgi->param('extras3')) { $buffer .= "\n\nI will attend the $extras3[3]"; $buffer .= "\t\t\t\t \$"; $buffer .= $extras3[$reduced_rate]; $reginfo_buffer2 .= "
| I will attend the $extras3[3] | \n"; $reginfo_buffer2 .= '$'. $extras3[$reduced_rate] . " | \n"; $reginfo_buffer2 .= '' . $counter++ . " | \n"; $reginfo_buffer2 .= "\$$extra3_total | ||
| Accompanying Person(s) | \n"; $reginfo_buffer2 .= '$'. $extras[$reduced_rate] . " | \n"; $reginfo_buffer2 .= ''.$cgi->param('extras').' | '; $reginfo_buffer2 .= '$'. $extra_total . " | ||
| " . $counter++ . " | \n"; $reginfo_buffer2 .= "Welcome Reception: " . $cgi->param('extras2') . " Children Guest(s) \@ \$" . $extras2[$reduced_rate] . "/person | \n"; $reginfo_buffer2 .= "\$$extra2_total | |||
|---|---|---|---|---|---|
| " . $counter++ . " | \n"; $reginfo_buffer2 .= "I DO NOT plan to attend the $society Banquet and would like to donate my ticket to a resident | \n"; $reginfo_buffer2 .= "\$$mondaynightreceptioncost_total | |||
| " . $counter++ . " | \n"; $reginfo_buffer2 .= "Closing Ceremony and Reception: " . $cgi->param('kidsmondaynightreception') . " Guest(s) \@ \$" . $kidsmondaynightreception[$reduced_rate] . "/person | \n"; $reginfo_buffer2 .= "\$$kidsmondaynightreceptioncost_total | |||
| " . $workshops[$j][1] . " | \n"; $reginfo_buffer2 .= '$'. $workshops[$j][2][$reduced_rate] . " | \n"; $reginfo_buffer2 .= '1 | '; # HARD CODING WORKSHOP NAME BELOW # $reginfo_buffer2 .= "$workshops[$j][1] | \n"; # $reginfo_buffer2 .= "\n"; # my $t_count=(floor((81 - length($workshops[$j][1]))/8+.5)-1); # my $t_count = 64 - length($workshops[$j][1]); my $t_count =72 - length($subbuffer); for (my $tabs = 1; $tabs<=$t_count; $tabs++) { # $buffer .= "\t"; $buffer .= " "; } $buffer .= " \$"; $buffer .= $workshops[$j][2][$reduced_rate]; # $buffer .= "\n My handicap: " . $cgi->param('handicap') . "\n"; # $buffer .= " Requested members of foursome:\n"; # $buffer .= " 1. " . $cgi->param('foursome1') . "\n"; # $buffer .= " 2. " . $cgi->param('foursome2') . "\n"; # $buffer .= " 3. " . $cgi->param('foursome3') . "\n"; $reginfo_buffer2 .= " | \$$workshops[$j][2][$reduced_rate] |
| $pbls[$j][1] | \n"; # my $t_count=(floor((81 - length($subbuffer))/8+.5)-1); my $t_count=72 - length($subbuffer); for (my $tabs = 1; $tabs<=$t_count; $tabs++) { $buffer .= " "; # $buffer .= "\t"; } $buffer .= "\t \$"; $buffer .= $pbls[$j][2][$reduced_rate]; $reginfo_buffer2 .= "\$$pbls[$j][2][$reduced_rate] | \n"; $reginfo_buffer2 .= "1 | \n"; $reginfo_buffer2 .= "\$$pbls[$j][2][$reduced_rate] | ||
| Education/Research Fund Donation | \n"; $reginfo_buffer2 .= '$' . $cgi->param('fund') . ' | '; $reginfo_buffer2 .= '1 | '; $reginfo_buffer2 .= "\$" . $cgi->param('fund') . " | ||
| ".substr($receptions[$j][1],0,60)." | \n"; $reginfo_buffer2 .= '$'. $receptions[$j][2]{$cgi->param('reg_type')}[$reduced_rate] . " | \n"; $reginfo_buffer2 .= '1 | '; $reginfo_buffer2 .= '$'. $receptions[$j][2]{$cgi->param('reg_type')}[$reduced_rate] . " | ||
| '.$descriptions{$cgi->param('applyingfor')}.' | '; my $number = $membership_cost{$cgi->param('applyingfor')}; $number =~ s/(\d)(?=(\d{3})+(\D|$))/$1\,/g; $reginfo_buffer2 .= '$'. $number . " | \n"; $reginfo_buffer2 .= '1 | '; $reginfo_buffer2 .= '$'. $number . " | ||
| '.$descriptions{$cgi->param('member_option')}.' | '; my $number = $membership_cost{$cgi->param('member_option')}; $number =~ s/(\d)(?=(\d{3})+(\D|$))/$1\,/g; $reginfo_buffer2 .= '$'. $number . " | \n"; $reginfo_buffer2 .= '1 | '; $reginfo_buffer2 .= '$'. $number . " | ||
| Total: | '; $reginfo_buffer2 .= '$'.$number.' | ||||
';
$reginfo_buffer .= $cgi->param('ssl_first_name');
$reginfo_buffer .= " " . $cgi->param('ssl_last_name');
$reginfo_buffer .= " " . $cgi->param('title') . "\n";
$reginfo_buffer .= "
"
. $cgi->param('ssl_ship_to_address1') if $cgi->param('ssl_ship_to_address1');
$reginfo_buffer .= "
" . $cgi->param('ssl_ship_to_address2') if $cgi->param('ssl_ship_to_address2');
$reginfo_buffer .= "
" . $cgi->param('ssl_ship_to_city') . " " . $cgi->param('ssl_ship_to_state') . " " . $cgi->param('ssl_ship_to_zip');
$reginfo_buffer .= "
" . $cgi->param('ssl_ship_to_country');
$reginfo_buffer .= "
" . $cgi->param('ssl_phone') if $cgi->param('ssl_phone');
$reginfo_buffer .= "
" . $cgi->param('email') if $cgi->param('email');
$reginfo_buffer .= "
ABA Number: " . $cgi->param('aba_number') if $cgi->param('aba_number');
$reginfo_buffer .= "
Your confirmation letter will be emailed to this email address: ". $cgi->param('ssl_email') ."
"; } else { $reginfo_buffer .= "No email address was provided for delivery of your confirmation letter. Confirmation letters are sent by email only.
\n"; } print "$reginfo_buffer"; print "$reginfo_buffer2"; if ($cost) { print h4('Payment Information:'); my $new_card_no2 = substr($cgi->param('ssl_card_number'), 0, 2) . "********" . substr($cgi->param('ssl_card_number'), -4); print "$card_type: " . $new_card_no2 . "
\n";
print "Expiration Date: " . $exp_date . "
Enter a username and password. This will be your login information to access the audio and video files. Your username and password must be at least 6 characters.
All conference registration confirmations and important updates will be sent via email. Please make sure to set your email account to accept emails from societyhq.com and pedsanesthesia.org.
EOF if (%category) { print '"; print "
MEMBER FEES' if $reg_types[$i][0] == 1; print ' - You may select member fees if you completed the preceding membership application or renewal notice.' if($reg_types[$i][0] == 1 && (!$auto_renew && (!$member || $balance))); print '
' if $reg_types[$i][0] == 1; print 'NON-MEMBER FEES
' if $reg_types[$i][0] == 4; print "EOF } sub dues_notice { my ($mbrID) = @_; my ($member_type) = ''; my (@fields) = (); my $cursor = $main::dbh->prepare(qq{ SELECT balance_due, member_type, mail_country,t1.membertype_id FROM member t1,member_type t2 WHERE t1.membertype_id=t2.membertype_id AND t1.member_id= ? LIMIT 1 }); $cursor->execute($mbrID); @fields = $cursor->fetchrow; $cursor->finish; $member_type = $fields[3]; print<
Our records show you having an outstanding balance for your membership dues. YOU MUST PAY YOUR MEMBERSHIP DUES IN ORDER TO REGISTER AT THE MEMBER RATE.
Unless you unselect "Auto Renew", your membership will automatically renew for successive one year periods until cancellation. Upon renewal, you authorize =$society!> to charge the then-current membership fee amount to the payment method provided by you, for as long as you choose to remain a member. You can cancel your membership at any time by contacting the Society.
} print '"; } sub showIndCourses { my ($mbrID, @workshops) = @_; if (defined($workshops[0])) { !>
Please select all lectures you want to purchase.
| Selection | Lecture Name | Member | Non-Member | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
You are already registered for course: ';
print '| | ';
print "$workshops[$i][1] | ";
print 'Purchased | ';
print ' | '.$workshops[$i][1].' | ';
} else {
print ' | Sold Out Course: ';
print "$workshops[$i][1] | ";
}
if ($workshops[$i][2][$reduced_rate] > 0)
{
print '$'.$workshops[$i][2][1].' | ';
print '$'.$workshops[$i][2][0].' | No Charge | ';
print 'No Charge | | ||