eval("\$arrReviewers= {$paper_str};");
$_SESSION["arrReviewers"] = $arrReviewers;
?>
<br><br>
<form name="form1" method="post" action="process_assign_paper.php">
  <table width="100%" border="0" cellspacing="2" cellpadding="1">
    <tr> 
      <td colspan="2" valign="top">Below is the paper you 
        are going to assign. Press Confirm to proceed.</td>
    </tr>
    <tr>
      <td colspan="2" valign="top">&nbsp;</td>
    </tr>
    <?php 
//Get the paper information
$paperInfo = get_paper_info($paperID);
//Get the lastest file of the paper
$FileIDData = get_latestFile($paperID, &$err_message);
?>
    <input type="hidden" value="<?php 
echo $paperID;
?>
" name="paperID">
	<!--Send an hidden value to distinguish between edit reviwers and assign reviewers-->
	<?php 
if (!empty($_POST["edit"])) {
    ?>
		<input type="hidden" value="true" name="edit">
	<?php 
}
?>
Exemple #2
0
//	extract ( $_SESSION , EXTR_REFS ) ;
// Define a few page vars
$settingInfo = get_Conference_Settings();
$trackStr = $settingInfo->TrackName;
//Name for Track
$topicStr = $settingInfo->TopicName;
//Name for Topic
$levelStr = $settingInfo->LevelName;
//Name for Level
$err_message = " Unable to process your request due to the following problems: <br>\n";
$header = "View Abstract";
$accepted_privilegeID_arr = array(2 => "");
$accepted_phaseID_arr = array(2 => "", 3 => "");
authentication($header, $accepted_privilegeID_arr, $accepted_phaseID_arr, $homepage, $php_root_path, $GLOBALS["DB_PREFIX"], &$err_message);
//Get the paper information
if (($paperInfo = get_paper_info($_GET["paperid"], &$err_message)) === false) {
    do_html_header("View Abstract Failed", &$err_message);
    $err_message .= " Cannot retrieve information from database. <br>\n";
    $err_message .= "<br><br> Try <a href='view_abstract.php?paperid=" . $_GET["paperid"] . "'>again</a>?";
    do_html_footer(&$err_message);
    exit;
}
//Get the lastest file of the paper
if (($FileIDData = get_latestFile($_GET["paperid"], &$err_message)) === false) {
    do_html_header("View Abstract Failed", &$err_message);
    $err_message .= " Could not execute \"get_latestFile\" in \"view_abstract.php\". <br>\n";
    $err_message .= "<br><br> Try <a href='view_abstract.php?paperid=" . $_GET["paperid"] . "'>again</a>?";
    do_html_footer(&$err_message);
    exit;
}
if ($_POST["showing"]) {
if ( $_SESSION["phase"]->phaseID != 4 )
{ 
	$homepage->showmenu = 0 ;	
	do_html_header("Show All Reviews Failed" , &$err_message );	
	$err_message .= " The requested infomation is not available at this phase. <br>\n";
	$err_message .= "<br><br> Try <a href='show_all_reviews.php?paperid=".$_GET["paperid"]."'>again</a>?" ;
	do_html_footer( &$err_message );		
	exit ;
}		
*/
do_html_header("Show All Reviews", &$err_message);
//Establish connection with database
$db = adodb_connect(&$err_message);
//Get the paper information
$paperInfo = get_paper_info($_GET["paperid"]);
//Get the lastest file of the paper
$FileIDData = get_latestFile($_GET["paperid"], &$err_message);
//Retrieve the information from Review Table
$reviewSQL = "SELECT * FROM " . $GLOBALS["DB_PREFIX"] . "Review";
$reviewSQL .= " WHERE PaperID='" . $_GET["paperid"] . "'";
$reviewSQL .= " AND Comments != ''";
// LOOK OUT FOR NOT NULL
$reviewResult = $db->Execute($reviewSQL);
$numReviews = $reviewResult->RecordCount();
?>
<table width="100%" border="0" cellspacing="0" cellpadding="1">
  <tr> 
    <td><h4><?php 
echo stripslashes($paperInfo->Title);
?>
//Establish connection with database
$db = adodb_connect();
if (!$db) {
    do_html_header("Database Conntection Fail");
    $err_message .= "Could not connect to database server - please try later.";
    do_html_footer(&$err_message);
    exit;
}
//Read the session variables
$arrPostInfo =& $_SESSION["arrPostInfo"];
$arrAttachmentInfo =& $_SESSION["arrAttachmentInfo"];
$arrContent =& $_SESSION["content"];
//get the conference info to get the contact mail
$conferenceInfo = get_conference_info();
//Get the paper information
$paperInfo = get_paper_info($_POST["paperID"]);
if (update_PaperStatus($arrPostInfo["paperID"], $arrPostInfo["status"])) {
    if ($_POST["status"] == "Accepted") {
        // Remove any previous record
        remove_paper_presentation($_POST["paperID"]);
        // Add to scheduling system as an unscheduled paper
        assign_paper_presentation_type($_POST["paperID"], $_POST["type"]);
        // If all is well, then it will get autoscheduled
        autoschedule_waiting_papers();
    } else {
        remove_paper_presentation($_POST["paperID"]);
    }
    //Now using pear SMTP mail instead of libmail
    //Send Email to user
    //~ $mail = new Mail();
    //~ $mail -> Organization($conferenceInfo -> ConferenceCodeName);
Exemple #5
0
            ?>
,
			<?php 
            $room = get_room_info($session->RoomID);
            echo $room->RoomName;
            ?>
			<br />
			
			</i>
			<table>
			<?php 
            $session_slots = get_session_slots_info($session->SessionID);
            foreach ($session_slots->Slots as $slot) {
                ?>
<tr><?php 
                $paper = get_paper_info($slot->PaperID);
                echo "<td valign=\"top\" align=\"right\"><b>" . $paper->PaperID . "</b></td>";
                echo "<td>" . $paper->Title . "</td>";
                ?>
</tr><?php 
            }
            ?>
			</table>
			</div>
			<?php 
        }
        ?>
</td><?php 
    }
    ?>
</tr><?php 
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;
}
    }
    /*end of if statement*/
    ?>
  <tr> 
    <td> 
      <?php 
    if ($paperResult->RecordCount() != 0) {
        echo "<strong>" . $preferenceInfo->PreferenceName . "</strong><br>";
    }
    ?>
    </td>
  </tr>
  <?php 
    while ($paperIDInfo = $paperResult->FetchNextObj()) {
        //Call the function to get the paperinfo
        $paperInfo = get_paper_info($paperIDInfo->PaperID);
        ?>
  <tr> 
    <td><?php 
        echo "Paper#" . $paperInfo->PaperID . " - " . stripslashes($paperInfo->Title);
        ?>
</td>
  </tr>
  <?php 
    }
    /*end of inner while loop*/
    ?>
  <?php 
}
/*end of while statement*/
?>
Exemple #8
0
$php_root_path = "..";
$privilege_root_path = "/admin";
require_once "includes/include_all_fns.inc";
session_start();
// extract ( $_SESSION , EXTR_REFS ) ;
$err_message = " Unable to process your request due to the following problems: <br>\n";
do_html_header("Assign Paper#" . $id);
//Establish database connection
$db = adodb_connect();
if (!$db) {
    echo "Could not connect to database server - please try later.";
    exit;
}
//Get the paper information
$paperInfo = get_paper_info($id);
//Get the lastest file of the paper
$FileIDData = get_latestFile($id, &$err_message);
?>
<form name="form1" method="post" action="process_assign_paper.php">
  <table width="100%" border="0" cellspacing="0" cellpadding="1">
    <tr> 
      <td><h4><?php 
echo stripslashes($paperInfo->Title);
?>
</h4></td>
    </tr>
    <tr> 
      <td>&nbsp;</td>
    </tr>
    <tr> 
Exemple #9
0
			$err = $err_message . "<br><br> Go to <a href='$php_root_path/index.php'>Login</a> page." ;
			do_html_footer(&$err);
			exit;
		}
	}
	else
	{
		do_html_header("View Abstract Failed" , &$err_message );	
		$err_message .= " Cannot retrieve information from database. <br>\n" ;
		$err = $err_message . "<br><br> Try <a href='view_abstract.php?id=$id'>again</a>?" ;
		do_html_footer(&$err);
		exit;
	}		
*/
//Get the paper information
if (($paperInfo = get_paper_info($id, &$err_message)) === false) {
    do_html_header("View Abstract Failed", &$err_message);
    $err_message .= " Cannot retrieve information from database. <br>\n";
    $err = $err_message . "<br><br> Try <a href='view_abstract.php?id={$id}'>again</a>?";
    do_html_footer(&$err);
    exit;
}
//Get the lastest file of the paper
if (($FileIDData = get_latestFile($id, &$err_message)) === false) {
    do_html_header("View Abstract Failed", &$err_message);
    $err_message .= " Could not execute \"get_latestFile\" in \"view_abstract.php\". <br>\n";
    $err = $err_message . "<br><br> Try <a href='view_abstract.php?id={$id}'>again</a>?";
    do_html_footer(&$err);
    exit;
}
do_html_header("View Abstract", &$err_message);