siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
$sTDBGColour = $default->siteMap->getSectionColour($sSectionName, "td");
$sToRender;
if ($oDocument) {
$sToRender .= "
\n";
return $sToRender;
}
return "";
}
function getDocumentType($iFolderID, $iDocumentTypeID) {
global $default;
$sWhereClause = "FDL.folder_id = $iFolderID";
$oPatternListBox = & new PatternListBox("$default->document_types_table", "name", "id", "fDocumentTypeID",$sWhereClause);
$oPatternListBox->setIncludeDefaultValue(false);
$oPatternListBox->setFromClause("INNER JOIN $default->folder_doctypes_table AS FDL ON ST.id = FDL.document_type_id");
if (isset($iDocumentTypeID)) {
$oPatternListBox->setSelectedValue($iDocumentTypeID);
}
return $oPatternListBox->render();
}
function renderPage($oDocument, $iDocumentTypeID, $bFirstEdit) {
global $default;
$sToRender = renderHeading(_("Edit Document Details"));
$sToRender .= displayDocumentPath($oDocument->getID());
$sToRender .= "\n";
$sToRender .= "\n";
$sToRender .= "| \n";
$sToRender .= renderEditableDocumentData($oDocument, $iDocumentTypeID) . "\n";
$sToRender .= " |
\n";
$sToRender .= "
\n";
$sToRender .= "\n";
return $sToRender . getValidationJavaScript();
}
function getValidationJavaScript() {
$sToRender .= "\n\n\n\n";
return $sToRender;
}
function wrapInTable($sHtml) {
return "\n\t\t\t\n";
}?>