Exemplo n.º 1
0
    <?php 
if ($catcomsep = GetSelectedTrackText($paperInfo->PaperID, &$err_message)) {
    echo $catcomsep;
} else {
    echo " <font color=\"#FF0000\"> Could not read Paper Track table. Try <a href='view_abstract.php?paperid=" . $_GET["paperid"] . "'>again</a>?</font>";
}
?>
</td>
  </tr>

<?php 
if (numCategories(&$err_message) > 0) {
    echo '<tr><td><p><strong>';
    echo "{$topicStr}(s):";
    echo '</strong>';
    if ($catcomsep = getSelectedCategoryCommaSeparated($paperInfo->PaperID, &$err_message)) {
        echo $catcomsep;
    } else {
        echo " <font color=\"#FF0000\"> Could not read Paper Category table. Try <a href='view_abstract.php?paperid=" . $_GET["paperid"] . "'>again</a>?</font>";
    }
    echo '</td></tr>';
}
?>

  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><a href='download_file.php?fileid=<?php 
echo $FileIDData->FileID;
?>
Exemplo n.º 2
0
echo "#" . $paperInfo->PaperID;
?>
</div></td>
      <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr> 
            <td colspan="2"> <strong><?php 
echo stripslashes($paperInfo->Title);
?>
</strong></td>
          </tr>
          <tr> 
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="2">Category: <?php 
echo getSelectedCategoryCommaSeparated($paperInfo->PaperID, &$err_message);
?>
</td>
          </tr>
          <tr> 
            <td colspan="2">Authors: <?php 
echo retrieve_authors($paperID);
?>
</td>
          </tr>
          <tr> 
            <td colspan="2">&nbsp;</td>
          </tr>
          <tr> 
            <td colspan="2">Assign to:</td>
          </tr>
Exemplo n.º 3
0
function redisplay(&$paperid_array, &$process, &$dbprefix, $err_message = "")
{
    //Establish connection with database
    $db = adodb_connect(&$err_message);
    //global $_SESSION ;
    $i = 0;
    $array = array();
    reset($paperid_array);
    foreach ($paperid_array as $some => $paperID) {
        //Get the paper information
        if (($paperInfo = get_paper_info($paperID, &$err_message)) === false) {
            do_html_header("Update Paper Bids Failed", &$err_message);
            $err_message .= " Cannot retrieve information from database. <br>\n";
            $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"] . "'>again</a>?";
            do_html_footer(&$err_message);
            exit;
        }
        $array[$i]["paperid"] = $paperInfo->PaperID;
        $array[$i]["papertitle"] = stripslashes($paperInfo->Title);
        //Get the lastest file of the paper
        if (($FileIDData = get_latestFile($paperID, &$err_message)) === false) {
            do_html_header("Update Paper Bids Failed", &$err_message);
            $err_message .= " Could not execute \"get_latestFile\" in \"update_biddings.php\". <br>\n";
            $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"] . "'>again</a>?";
            do_html_footer(&$err_message);
            exit;
        }
        $array[$i]["fileid"] = $FileIDData->FileID;
        if ($catcomsep = getSelectedCategoryCommaSeparated($paperInfo->PaperID, &$err_message) || numCategories(&$err_message) == 0) {
            $array[$i]["cat"] = $catcomsep;
        } else {
            do_html_header("Update Paper Bids Failed", &$err_message);
            $err_message .= " Could not execute \"getSelectedCategoryCommaSeparated\" in \"update_biddings.php\". <br>\n";
            $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"] . "'>again</a>?";
            do_html_footer(&$err_message);
            exit;
        }
        if ($authors = retrieve_authors($paperInfo->PaperID, &$err_message)) {
            $array[$i]["author"] = $authors;
        } else {
            do_html_header("Update Paper Bids Failed", &$err_message);
            $err_message .= " Could not execute \"retrieve_authors\" in \"update_biddings.php\". <br>\n";
            $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"] . "'>again</a>?";
            do_html_footer(&$err_message);
            exit;
        }
        if ($process === "update") {
            $preferenceSQL = " SELECT PreferenceID FROM " . $GLOBALS["DB_PREFIX"] . "Selection ";
            $preferenceSQL .= " WHERE PaperID = " . $paperInfo->PaperID;
            $preferenceSQL .= " AND Membername = '" . $_SESSION["valid_user"] . "'";
            $preferenceResult = $db->Execute($preferenceSQL);
            if (!$preferenceResult) {
                do_html_header("Update Paper Bids Failed", &$err_message);
                $err_message .= " Could not query \"Selection\" table in database by \"redisplay()\" of \"update_biddings.php\". <br>\n";
                $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"] . "'>again</a>?";
                do_html_footer(&$err_message);
                exit;
            }
            $userPreference = $preferenceResult->FetchNextObj();
            $array[$i]["bidid"] = $userPreference->PreferenceID;
        }
        if ($bidtable = Generate_Preference_Radio_Input_Table($paperInfo->PaperID, $array[$i]["bidid"], &$err_message)) {
            $array[$i]["bid"] = $bidtable;
        } else {
            do_html_header("Update Paper Bids Failed", &$err_message);
            $err_message .= " Could not execute \"retrieve_authors\" in \"update_biddings.php\". <br>\n";
            $err_message .= "<br><br> Try <a href='" . $_SERVER["PHP_SELF"] . "?" . $_SERVER["QUERY_STRING"] . "'>again</a>?";
            do_html_footer(&$err_message);
            exit;
        }
        $i++;
    }
    //End of for loop
    return $array;
}
$paperInfo = get_paper_info($paperID);
$type = $_POST["type"];
$presType = $_POST["presType"];
//Retrieve the setting information
$settingInfo = get_Conference_Settings();
$conferenceInfo = get_conference_info();
//Format the subject of the letter
$strSubject = format_Letter_Subject(stripslashes($_POST["subject"]));
//Format the content string and Store the content into the session
$strContent = stripslashes(wordwrap($_POST["bodycontent"])) . "\n\n";
$strContent .= $settingInfo->EmailSignature . "\n\n";
//Get the constant of the letter and highlight the constants
$arrConstants = evaluate_Letter_Constants($letterType);
//Get the paper info
$strAuthors = retrieve_authors($paperID, &$err_message);
$strCat = getSelectedCategoryCommaSeparated($paperID, &$err_message);
//Get the full name of the user according to his user name
$strFullName = getMemberFullName($paperInfo->MemberName);
$arrReplaceInfo = array("fullname" => $strFullName, "paperID" => $paperInfo->PaperID, "papertitle" => $paperInfo->Title, "authors" => $strAuthors, "papercat" => $strCat, "url" => $settingInfo->HomePage, "confname" => $conferenceInfo->ConferenceName, "confcode" => $conferenceInfo->ConferenceCodeName, "contact" => $conferenceInfo->ConferenceContact, "presType" => $presType);
//Replace the dynamice constants with real values
$strContent = replace_Dynamic_Values($arrConstants, $arrReplaceInfo, $strContent);
//Store the content into the session
$arrContent["subject"] = $strSubject;
$arrContent["content"] = $strContent;
$_SESSION["content"] = $arrContent;
do_html_header($letterTitle);
?>
<form name="form1" method="post" action="process_accept_reject_mail.php">
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr> 
      <td colspan="2"><strong>Below is the information on the paper you have <?php 
Exemplo n.º 5
0
  <tr> 
    <td><strong>Track:</strong> 
      <?php 
if ($catcomsep = getSelectedTrackText($id, &$err_message)) {
    echo $catcomsep;
} else {
    echo " <font color=\"#FF0000\"> Could not read Paper table. Try <a href='view_abstract.php?id={$id}'>again</a>?</font>";
}
?>
    </td>
  </tr>
<?php 
if (numCategories(&$err_message) > 0) {
    echo '<tr>';
    echo '<td><strong>Topic(s):</strong>';
    if ($catcomsep = getSelectedCategoryCommaSeparated($id, &$err_message)) {
        echo $catcomsep;
    } else {
        echo " <font color=\"#FF0000\"> Could not read Paper Category table. Try <a href='view_abstract.php?id={$id}'>again</a>?</font>";
    }
    echo '</td>';
    echo '</tr>';
}
?>
  <tr> 
    <td>&nbsp;</td>
  </tr>
  <tr> 
    <td><a href='view_file.php?fileid=<?php 
echo $FileIDData->FileID;
?>