get_LoginID(); $portal_name = $L3_Config->get_GlobalConfig("Portal_Name"); $webmaster = $L3_Config->get_GlobalConfig("Portal_WebmasterEmail"); $L2DBA = new L2_DBA; $L2DBA2 = new L2_DBA; if ($Action==$L3_Lang->get_Label("bulletin_index_a1")) : $q = "DELETE from BulletinSubscriptions WHERE ClientID='$UserID'" ; $L2DBA->query($q) ; echo "\n" ; elseif ($Action==$L3_Lang->get_Label("bulletin_index_a2")) : $q = "INSERT INTO BulletinSubscriptions SET ClientID='$UserID',LatestIssue=0" ; $L2DBA->query($q) ; echo "\n" ; elseif ($Action==$L3_Lang->get_Label("bulletin_index_a4")) : $q = "UPDATE BulletinSubscriptions SET Suspend='',SuspendReason='',LatestIssue='0' WHERE ClientID='$UserID'" ; $L2DBA->query($q) ; echo "\n" ; elseif ($Action==$L3_Lang->get_Label("bulletin_index_a3")) : echo "\n" ; endif ; /* -- -- */ ?>
print_Label("bulletin_index_label_01"); ?> print_Label("bulletin_index_label_15"); ?>

query($q) ; /* -- get email address -- */ $q = "SELECT SenderEmail FROM UserRegistration WHERE UserID='$UserID'" ; $L2DBA2->query($q) ; while ($L2DBA2->next_record()) { $EmailAddr = $L2DBA2->f('SenderEmail') ; } if ($EmailAddr != '' && $EM != '') : if ($EM==1) : $eMsg = $L3_Lang->get_Label("bulletin_index_label_02_0") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_02_1") . $EmailAddr . $L3_Lang->get_Label("bulletin_index_label_02_2") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_02_3") . $webmaster . $L3_Lang->get_Label("bulletin_index_label_02_4") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_02_5"); elseif ($EM==2) : $eMsg = $L3_Lang->get_Label("bulletin_index_label_03_0") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_03_1") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_03_2") . $webmaster . $L3_Lang->get_Label("bulletin_index_label_03_3") . $portal_name; elseif ($EM==3) : $eMsg = $L3_Lang->get_Label("bulletin_index_label_04_0") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_04_1") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_04_2") . $webmaster . $L3_Lang->get_Label("bulletin_index_label_04_3") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_04_4"); endif ; $L3_Message = new L2_Message; $L3_Message->send_Mail($eMsg, $EmailAddr, "$portal_name " . $L3_Lang->get_Label("common_PlasticsBulletin"), "From: $webmaster"); /* mail( "$EmailAddr", "$portal_name " . $L3_Lang->get_Label("common_PlasticsBulletin"), $eMsg, "From: $webmaster" );*/ endif; ?>

"; $L3_Lang->print_Label("bulletin_index_label_16"); } ?>

print_Label("bulletin_index_label_17"); ?>
nf() > 0) : ?>
print_Label("bulletin_index_label_05"); ?>
print_Label("bulletin_index_label_06"); ?>

print_Label("bulletin_index_label_07"); ?>

print_Label("bulletin_index_label_08"); ?>
f("Suspend") == 1) : ?> print_Label("bulletin_index_label_09"); ?> next_record()) { $L2DBA->p('SuspendReason') ; } ?>.

"> ">
print_Label("bulletin_index_label_10");?>
print_Label("bulletin_index_label_11"); ?>

print_Label("bulletin_index_label_12"); ?>

print_Label("bulletin_index_label_13"); ?>
"> ">