, Jam Warehouse (Pty) Ltd, South Africa
* @package administration.docfieldmanagement
*/
function renderHeading($sHeading, $sSectionName = "") {
global $default;
if (strlen($sSectionName) == 0) {
$sSectionName = $default->siteMap->getSectionName(substr($_SERVER["PHP_SELF"], strlen($default->rootUrl), strlen($_SERVER["PHP_SELF"])));
}
$sColor = $default->siteMap->getSectionColour($sSectionName, "th");
$sToRender = "
\n";
$sToRender .= "| $sHeading |
\n";
$sToRender .= "
\n";
return $sToRender;
}
function statusPage($sTitle, $sHeading, $sText = "", $sCancelAction, $sQueryString = "") {
global $default;
$sToRender .= renderHeading($sTitle);
$sToRender .= "\n";
$sToRender .= "\n";
$sToRender .= "| $sHeading | \n";
$sToRender .= "
\n";
$sToRender .= "| $sText |
\n";
$sToRender .= "" . generateControllerLink($sCancelAction, $sQueryString, " graphicsUrl/widgets/back.gif\" border=\"0\"/>") . " |
\n";
$sToRender .= "
\n";
return $sToRender;
}
function startTable($border, $width) {
return "\n";
}
function tableCaption($sCaption) {
return "$sCaption\n";
}
function stopTable() {
return "
\n";
}
function tableRow($align, $bgcolor, $html) {
return "$html
\n";
}
function tableHeading($cssClassName, $colspan, $text) {
return "\n
$text\n
| \n";
}
function tableData($html, $iColspan = 1) {
return "$html | \n";
}
function tableCssData($html, $cssClass) {
return "$html | \n";
}
function startTableRowCell() {
return "| \n";
}
function textInput($sId, $sValue) {
return "\n";
}
function endTableRowCell() {
return " |
\n";
}
function generateImage($sImageSource) {
return "
";
}
function getNumberStringValidationJavaScript() {
return "\n";
}
/**
* Candy striping helper method
*/
function getColour($iColourCount) {
return ($iColourCount%2 == 0) ? "F5F6EE" : "FFFFFF";
}
?>