HeaderEnd(); $TheTable=new TableSettings; //************************************************************************************** // HTML Generation //************************************************************************************** $ThePage->BodyStart(); $ThePage->Heading(0,$Title); $ThePage->ParagraphBreak(); while ($VersionSet->FetchRow()) { $VersionID=$VersionSet->Field("ID"); $Name=$VersionSet->Field("Name"); $Version=$VersionSet->Field("Version"); $ThePage->Heading(1,$Version." ".$Name); $ThePage->BodyText($VersionSet->Field("Description")); $RevisionSet=TBL_Revisions::GetSet($Database,$VersionID); if ($RevisionSet->FetchRow()) { $ThePage->Heading(2,"Changes:"); do { $RevisionID=$RevisionSet->Field("ID"); $Change=$RevisionSet->Field("Change"); $ChangeDate=$RevisionSet->Field("ChangeDate"); $PersonID=$RevisionSet->Field("PersonID"); $PersonName=TBL_People::GetPersonsName($Database,$PersonID); $ThePage->BodyText(GetPrintDateFromSQLServerDate($ChangeDate).", $PersonName: ".$Change); /* if (GetUserLevel($Database)>=PERMISSION_ADMIN) { $TheTable->FormButton("Edit","Edit","onclick='DoEdit($Type,$VersionID,$RevisionID)'"); } */ } while ($RevisionSet->FetchRow()); } if (TBL_Permissions::HasPermission($Database,PERMISSION_ADMIN)) { $TheTable->FormButton("Add","Add","onclick='DoAdd($Type,$VersionID)'"); } } $ThePage->BodyEnd(true,false,false); ?>