本文整理匯總了PHP中Forum::showTopic方法的典型用法代碼示例。如果您正苦於以下問題:PHP Forum::showTopic方法的具體用法?PHP Forum::showTopic怎麽用?PHP Forum::showTopic使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Forum
的用法示例。
在下文中一共展示了Forum::showTopic方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: switch
}
switch ($_REQUEST['show']) {
case 'ignorelist':
$forums->ignoreList();
break;
case 'userpop':
$forums->userPopUp();
break;
case 'showforums':
$forums->showForums();
break;
case 'showforum':
$forums->showForum();
break;
case 'showtopic':
$forums->showTopic();
break;
case 'getfile':
$forums->getFile();
break;
case 'closetopic':
$forums->openClose('close');
break;
case 'opentopic':
$forums->openClose('open');
break;
case 'move':
$forums->moveTopic();
break;
case 'deltopic':
$forums->delTopic();
示例2: Forum
<img src="../Images/logoforum.jpg" width="100%" height="92"/>
<br />
<?php
//if session is not set then access will be denied
if (!isset($_SESSION['admin'])) {
echo "<p><font color='#FF0000' size='4'>Access Denied,<br />" . "You are not allowed to access the content until you login" . "<br /></p>\n\t<a href='index.php'>Login Here</a></font>";
} else {
?>
<p class="style7"> <strong> <h2>DISCUSSION FORUM</h2></strong> </p>
<br /><br />
<a href="home.php"><img src="../Images/home.png" alt="Go Back To Home" /></a>
<?php
$show = new Forum();
$show->showTopic();
}
?>
<br /><br />
<a href="forum.php"><strong><em>Go Back to the topic list</em></strong></a>
</div>
<br /><br /><br /><br />
<marquee>
<p class="style2">::Designed and
Developed by Udara Senanayake:: </p>
</marquee>
</body>
</html>