"; } else { echo ""; } if ((!isset($_POST['HowMany']))||((isset($_POST['HowMany']))&&($_POST['HowMany']==''))) { $HowMany = 1; } else { $HowMany = $_POST['HowMany']; if ((isset($_POST['SendItGood']))&&($_POST['SendItGood']=="1")&&($_POST['DT']=="")) { $GoodToGo = "Delivery address was empty..."; } else if ((isset($_POST['SendItGood']))&&($_POST['SendItGood']=="1")) { $GoodToGo = "Mailing... "; $bName1 = $MailTo; // Active Address (good run) $bNameP = $_POST['EID']; // Return Path $bNameR = $_POST['EID']; // Return Receipt To $bNameF = $_POST['EID']; // From Address $bNameE = $_POST['EID']; // Return Errors To $bName2 = $_POST['EID']; // Test Address (trial run) and CC (good run) $rsMailSubjectC = "ANKN Online Order"; $rsSubtotal = 0; for ($iq = 1; $iq <= $HowMany; $iq++) { $rsMailSubjectC .= $_POST['F'.$iq.'a'] . ","; } $rsMailSubjectC = substr($rsMailSubjectC, 0, strlen($rsMailSubjectC)-1); if (isset($_POST['YesNo'])) //{ $rsMailBody .= "SHIPPING/H: $".$_POST['SC']." ".$_POST['YesNoT']."\n"; } else //{ $rsMailBody .= "SHIPPING/H: $".$_POST['SC']."\n"; } $rsMailBody .= "TOTAL COST: $".$_POST['TC']."\n\n"; for ($ia = 1; $ia <= $HowMany; $ia++) { $rsMailBody.= "ITEM NO: {$ia}: $".$_POST['F'.$ia.'c']." x ".$_POST['F'.$ia.'q']." / ".$_POST['F'.$ia.'d']."\n"; $rsSubtotal = $rsSubtotal+($_POST['F'.$ia.'c']*$_POST['F'.$ia.'q']); } $rsMailBody .= "SUBTOTAL: $".sprintf("%0.2f",$rsSubtotal)."\n\n"; for ($ib = 1; $ib <= $HowMany; $ib++) { $rsMailBody .= "[Q:".$_POST['F'.$ib.'q']."] [".$_POST['F'.$ib.'a']."] \n"; $rsMailBody .= "\t".$_POST['F'.$ib.'b']."\n"; //if ($_POST['F'.$ib.'x']!="") { $rsMailBody .= "\t".$Xtra1t." - $".$Xtra1c."\n"; } //if ($_POST['F'.$ib.'y']!="") { $rsMailBody .= "\t".$Xtra2t." - $".$Xtra2c."\n"; } } $rsMailBody.="\n"; $rsMailBody .= "DELIVER TO:\n"; $rsMailBody .= str_replace("\r\n", "\n", $_POST['DT'])."\n\n"; $rsMailBody .= "MESSAGE:\n"; if ($_POST['Msg']==""){$rsMailBody .= "\n";}else{$rsMailBody .= $_POST['Msg']."\n\n";} $rsMailBody .= "COMMENTS:\n"; if ($_POST['CMsg']==""){$rsMailBody .= "\n";}else{$rsMailBody .= $_POST['CMsg']."\n\n";} $rsMailBody .= "SHIPPING / PAYMENT:\n"; if ($_POST['SMc']=="") { $rsMailBody .= $_POST['SM']."\n"; } else { $rsMailBody .= $_POST['SM']." (".$_POST['SMc'].")\n"; } if ($_POST['PMc']=="") { $rsMailBody .= $_POST['PM']."\n"; } else { $rsMailBody .= $_POST['PM']." (".$_POST['PMc'].")\n"; } $rsMailBody .= "\nThanks!\n--\n".$_POST['CN']; $mail->IsSMTP(); // set mailer to use SMTP $mail->Host = "ankn.uaf.edu"; // specify main and backup server $mail->SMTPAuth = true; // turn on SMTP authentication $mail->Username = "publications"; // SMTP username $mail->Password = "kuukpiaq7"; // SMTP password $mail->From = "uaf-cxcs@alaska.edu"; $mail->FromName = "Online Order"; $mail->AddAddress ("sean@ankn.uaf.edu", "ANKN Orders"); $mail->WordWrap = 50; //if (isset($_POST['TestSend'])) // { $mail->to = $bName2; $GoodToGo .= "(Trial Run)..."; } //else { $mail->to = $bName1; $mail->cc = $bName2; $GoodToGo .= "(Good Run)..."; } //if ($_POST['SM']=="Standard") // { if ($_POST['SID']=="") // { $rsMailSubj = "Web Order- ".substr($_POST['CN'], 0, 15)." (".$rsMailSubjectC.")"; } //else { $rsMailSubj = "Web Order- ".substr($_POST['CN'], 0, 15)."- ".$_POST['SID']." (".$rsMailSubjectC.")"; } //} //else { if ($_POST['SID']=="") // { $rsMailSubj = "Web Order- ".substr($_POST['CN'], 0, 15)."- RUSH (".$rsMailSubjectC.")"; } // else { $rsMailSubj = "Web Order- ".substr($_POST['CN'], 0, 15)."- RUSH- ".$_POST['SID']." (".$rsMailSubjectC.")"; } //} $mail->Subject = "ANKN Online Order"; $mail->Body = $rsMailBody; //$mail->path = $bNameP; //$mail->receipt = $bNameR; //$mail->errors = $bNameE; //$mail->headers = "text/plain; charset=utf-7"; // correct - ¾ is ¾ $mail->send($rsMailBody); $GoodToGo .= " Mail has been sent!

"; } } ?>
This is part of the ANKN Logo This is part of the ANKN Banner
This is part of the ANKN Logo This is part of the ANKN Banner Home Page About ANKN Publications Academic Programs Curriculum Resources Calendar of Events Announcements Site Index This is part of the ANKN Banner
This is part of the ANKN Logo This is part of the ANKN Banner This is part of the ANKN Banner
This is part of the ANKN Logo This is part of the ANKN Banner This is part of the ANKN Banner
 Shipping costs will be calculated and emailed to you.
Native Pathways to Education
Alaska Native Cultural Resources
Indigenous Knowledge Systems
Indigenous Education Worldwide
 

", $STN); ?>

"; echo ""; } ?>

$GoodToGo


 

"; if ((isset($_POST['SendItGood']))&&($_POST['SendItGood']=="1")&&($_POST['DT']=="")) { echo "

Delivery address was empty, therefore, mail was NOT sent.

Please close this window to return to your order form.


"; } else { if (isset($_POST['TestSend'])) { echo "

Sent TO: ".$bName2."

"; } else { echo "

Sent TO: ".$bName1."

"; } echo "

Mail has been sent. Please close this window to return to your order form.


"; echo "
SUBJECT: ".$mail->Subject."

\n\n"; echo $rsMailBody."


"; } echo "
"; exit(); } ?>

Your Email Address  required

   [You may change the number of items with the 'Change Quantities' below]".$Xtra1t.""; } //if ($Xtra2t!="") { echo ""; } //?>
Item # Qty Item Name Cost Per Item ".$Xtra2t."

       
Total Cost 

Shipping Method 
Parcel PostPriority Mail
Payment Method 
CheckMoney OrderPurchase Order

Deliver To 
Comments 

 
 
   Confirm sent? (when you click "Send It!", it will get sent--this just opens a new window showing the message).

 
  
Note: Any item entries will be reset

Go to University of AlaskaThe University of Alaska Fairbanks is an Affirmative Action/Equal Opportunity employer, educational institution, and provider is a part of the University of Alaska system. Learn more about UA's notice of nondiscrimination.

 


Alaska Native Knowledge Network
University of Alaska Fairbanks
PO Box 756730
Fairbanks  AK 99775-6730
Phone (907) 474.1902
Fax (907) 474.1957
Questions or comments?
Contact
ANKN
Last modified March 22, 2007

 

— HOME —