1<?php 2include('../Code/confHeader.inc'); 3$_SESSION[Me] -> goIfInvalid("../index.php"); 4$_SESSION[Me] -> goIfNotAuthor("../index.php"); 5$Conf -> connect(); 6?> 7 8<html> 9 10<?php $Conf->header("The Authors View of Paper #$_REQUEST[paperId]") ?> 11 12<body> 13<?php 14if (!IsSet($_REQUEST[paperId]) || $_REQUEST[paperId] == 0) { 15 $Conf->errorMsg("No paper was selected for finalization?" ); 16} else { 17 $query = "SELECT Paper.title, Paper.abstract, Paper.authorInformation, " 18 . " PaperStorage.mimetype, Paper.withdrawn, Paper.collaborators " 19 . " FROM Paper,PaperStorage WHERE " 20 . " (Paper.contactId='" . $_SESSION[Me]->contactId . "' " 21 . " AND Paper.paperId=$_REQUEST[paperId] " 22 . " AND PaperStorage.paperId=$_REQUEST[paperId]" 23 . " )"; 24 25 $result = $Conf->qe($query); 26 if ( DB::isError($result) ) { 27 $Conf->errorMsg("That's odd - paper #$_REQUEST[paperId] isn't suitable for finalizing. " 28 . $result->getMessage()); 29 } else { 30 $row = $result->fetchRow(); 31 $i = 0; 32 $title = $Conf->safeHtml($row[$i++]); 33 $abstract = $Conf->safeHtml($row[$i++]); 34 $authorInfo = $Conf->safeHtml($row[$i++]); 35 $mimetype = $row[$i++]; 36 $withdrawn = $row[$i++]; 37 $collaborators = $row[$i++]; 38 39 if ($withdrawn) { 40 $Conf->infoMsg("This paper has been WITHDRAWN"); 41 } 42 43$Conf->textButton("Click here to go to the paper list", 44 "../Author/PaperActions.php"); 45 } 46 $Conf->paperTable(); 47} 48$Conf->footer() 49?> 50</body> 51</html> 52