示例#1
0
switch ($_GET["lettertype"]) {
    case "paperacceptance":
        $letterTitle = "Paper Acceptance";
        break;
    case "paperrejection":
        $letterTitle = "Paper Rejection";
        break;
}
//Fetch letter information
$letterInfo = get_LetterInfo_By_Title($letterTitle);
//Read the session variable if there is
if (isset($_SESSION["arrLetterInfo"])) {
    $arrLetterInfo =& $_SESSION["arrLetterInfo"];
}
//Get the user email to include at Cc field
$useremail = getMemberEmail($valid_user);
//Make the URL for email list
$parameterList = "letterID=" . $letterInfo->LetterID . "&recipientGroupName=" . $letterInfo->RecipientGroupName;
$url = "<a href=\"#\" onClick=\"" . make_Popup_Window("mailing_list_by_papers.php", $parameterList, 600, 1000, "yes") . "\">edit email list</a>&nbsp;|&nbsp; <a href=\"#\" onClick=\"" . make_Popup_Window("view_emails_list_by_papers.php", $parameterList, 600, 900, "yes") . "\">view email list</a>";
do_html_header($letterInfo->Title);
?>
<form name="form1" method="post" action="confirm_send_paper_info.php">
  <table width="100%" border="0" cellspacing="0" cellpadding="2">
    <tr> 
      <td colspan="2">Use the constants values mentioned below whenever you wish 
        to include Dynamic information. The constants will be substituted with 
        dynamic values when the letter is emailed. These constants are case-sensitive.</td>
    </tr>
    <tr> 
      <td colspan="2">&nbsp;</td>
    </tr>
    </tr>
    <tr> 
      <td><strong>User Fullname:</strong></td>
      <td><?php 
echo getMemberFullName($paperInfo->MemberName);
?>
</td>
    </tr>
    <tr> 
      <td><strong>User Email:</strong></td>
      <td><?php 
echo getMemberEmail($paperInfo->MemberName);
?>
</td>
      <input type="hidden" name="email" value="<?php 
echo getMemberEmail($paperInfo->MemberName);
?>
">
    </tr>
    <tr> 
      <td>&nbsp;</td>
      <td>&nbsp;</td>
    </tr>
    <tr> 
      <td colspan="2">Use the constants values mentioned below whenever you wish 
        to include Dynamic information. The constants will be substituted with 
        dynamic values when the letter is sent out. These constants are case-sensitive.</td>
    </tr>
    <tr> 
      <td colspan="2">&nbsp;</td>
    </tr>