#!/usr/bin/perl require "sm.pl"; require "sm_html.pl"; require "sm-lib.pl"; require "cookie-lib.pl"; require "Date.pl"; &formdata; $uid=$FORM{'uid'}; $mbr_id=$FORM{'i'}; $subject_id=$FORM{'si'}; $type_id=$FORM{'ti'}; $website_id=$FORM{'wi'}; $mode=$FORM{'m'}; if ($mode eq ""){ &chkuid; if ($cookieset eq "N"){ &sh_header; } &sh_title ("$title"); &sh_body ($bg); &tabs(); &menubar; &leftbar; # ¤cytemp; $q = "Select f_item_id from t_cartitems where f_uniqueid='$uid'"; &dbmain ($m1, $m2, $q); $itemsincart=$data->numrows; if ($itemsincart==0){ if ($aff_id eq ""){ ¤cylist; ¶(6); } else{ ¶(1); &sh_fmttext ($font2, $fsize, "Feature not available"); ¶(6); } } else{ ¶(1); &sh_fmttext ($font2, $fsize, "Whoops!
It is NOT possible to change currency once you have goods in your Shopping Cart. If you still wish to change currency you must first empty your Shopping Cart.

To empty your Shopping Cart first click on the Shopping Cart logo at the top of the page then select the Empty Shopping Cart option."); ¶(6); } } elsif ($mode eq "1"){ $new_currency=$FORM{'new_currency'}; $sm_currency=$FORM{'sm_currency'}; if (($new_currency ne "")&&($new_currency ne $sm_currency)){ $sm_currency=$new_currency; if ($mbr_id ne ""){ $q="Update t_mbr set f_mbr_currency='$sm_currency' WHERE f_mbr_id='$mbr_id'"; &dbmain ($m1, $m2, $q); } if (&GetCookies($uidcookie)){ &delete_cookie($uidcookie); } $cookieset="Y"; print "Content-type: text/html\n"; &SetCookieExpDate($cookieexpiry); &SetCompressedCookies($uidcookie, 'a',$uid, 'b', $sm_currency); print "\n"; &sh_title ("$title"); &sh_body ($bg); &tabs(); &menubar; &leftbar; ¶(1); &sh_fmttext ($font2, $fsize, "Currency Changed!"); ¶(6); } else{ &sh_header; &sh_title ("$title"); &sh_body ($bg); &tabs(); &menubar; &leftbar; if ($new_currency eq ""){ ¶(1); &sh_fmttext ($font2, $fsize, "Whoops!
You have not selected a Currency. Please press the Back Button."); ¶(6); } elsif ($new_currency eq $sm_currency){ ¶(1); &sh_fmttext ($font2, $fsize, "Currency NOT Changed!
You have NOT selected a different Currency."); ¶(6); } } } &rightbar; &sh_mainpg4; &sh_footer; #************************************************************************ #sub currencytemp{ #print < #Currency
#This feature will be available shortly. #HTML #} sub currencylist{ print < Currency
From the list below please select the Currency you prefer to see prices displayed in (and, if applicable, make a payment in):

HTML }