0) $sSortSQL .= " " . $asSortPos[$anSort[$i]]; else $sSortSQL .= " " . $asSortNeg[-$anSort[$i]]; } return $sSortSQL; } function aPostList($nRoom,$sView,$sSort,$nPage) { return ""; } function aPostDetail($nRoom,$sView,$sSort,$nPage,$nPost) { return ""; } function aPostCreate($nRoom,$sView,$sSort,$nPage) { return ""; } // get the sort order $sSort = $HTTP_GET_VARS[sort]; if (!$sSort) $sSort = "1,2,3"; $anSort = preg_split("/,/",$sSort); $sSortSQL = sortSQL($anSort); // Get the room id $nRoomId = $HTTP_GET_VARS["room"]; if (!$nRoomId) $nRoomId = 100; if ($nRoomId < 100) $nRoomId = 100; // Get the view stype $sView = $HTTP_GET_VARS["view"]; if (!$sView) $sView = s; // Get the page number $nPage = $HTTP_GET_VARS["page"]; if (!$nPage) $nPage = 1; // Include the standard header $NAVIGATION = "eforum"; include("header.php"); // Include the side navigation $SIDENAV = "disc_room"; include("sidenav.php"); // Get the comments and the number of pages $aaComment = getComment($q="(P.nRoomIdOriginal = '$nRoomId' or P.nRoomIdCurrent = '$nRoomId') and P.bViewable = 'Y' order by $sSortSQL",$nPage - 1,10); $nPageCount = $aaComment["pagecount"]; $sPager = printPager("postlist.php?room=$nRoomId&view=$sView&sort=$sSort&page=",$nPage,$nPageCount); // Get Room Information $aaRoom = getRoom("nId = '$nRoomId'"); $sRoomName = $aaRoom[0]["sName"]; $sRoomDesc = $aaRoom[0]["sDescription"]; ?>



View by Title
| View by Full Comment | Add a Comment

Sort by Date | Sort by Author | Sort by Title


"; for ($i=0; $i<$aaComment["count"]; $i++) { $aComment = $aaComment[$i]; ?> $aComment[sDate] ".aPostDetail($nRoomId,$sView,$sSort,$nPage,$aComment[nId])."$aComment[sSubject] ($aComment[sAuthor]) "; if ($aComment[nPostIdParent]) { $aaParent = getComment("P.nId = '$aComment[nPostIdParent]'",0,0); $aParent = $aaParent[0]; echo "      in response to ".aPostDetail($nRoomId,$sView,$sSort,$nPage,$aParent[nId])."$aParent[sSubject] ($aParent[sAuthor])   "; } if ($aComment[nRoomIdCurrent] != $nRoomId) { $aaRoom = getRoom("nId = '$aComment[nRoomIdCurrent]'"); $aRoomNew = $aaRoom[0]; echo "     Moved to room ".aPostList($aRoomNew[nId],$sView,$sSort,1)."$aRoomNew[sName]   "; } else { if ($sView == 'l') { ?> " . nl2br($aComment[sComment]) . ""; if ($aComment[sModeratorComment]) { ?> Comments By Moderator:
Related Links:
$aLink[sLinkName] - $aLink[sDescription]
"); } ?>
"; ?>