當前位置: 首頁>>代碼示例>>PHP>>正文


PHP Forum::goHome方法代碼示例

本文整理匯總了PHP中Forum::goHome方法的典型用法代碼示例。如果您正苦於以下問題:PHP Forum::goHome方法的具體用法?PHP Forum::goHome怎麽用?PHP Forum::goHome使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在Forum的用法示例。


在下文中一共展示了Forum::goHome方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: Course

         }
     }
     $smarty->assign('errorfeed', '');
     $smarty->assign('title', '..::ECE_E-Learning:homeViewLogin');
 } else {
     if ($view == "newResource") {
         $smarty->assign('mainContent', $smarty->fetch("newResources.tpl"));
         $smarty->assign('errorfeed', '');
         $smarty->assign('title', '..::ECE_E-Learning:homeViewLogin');
     } else {
         if ($view == "archiveView") {
             $smarty->assign('mainContent', "Archive View");
             $smarty->assign('title', '..::ECE_E-Learning:archive');
         } else {
             if ($view == "forumView") {
                 $smarty->assign('forumhome', $forum->goHome());
                 $smarty->assign('mainContent', $smarty->fetch("forum.tpl"));
                 $smarty->assign('title', '..::ECE_E-Learning:forum');
             } else {
                 if ($view == "contactView") {
                     $smarty->assign('mainContent', $smarty->fetch("contact.tpl"));
                     $smarty->assign('title', '..::ECE_E-Learning:contact');
                 } else {
                     if ($view == "registerView") {
                         go_homeforlogedin();
                     } else {
                         if ($view == "userCourses") {
                             $course = new Course();
                             $smarty->assign('courses', $course->displayAllCourse());
                             $smarty->assign('title', '..::ECE_E-Learning:userCouses');
                             $smarty->assign('mainContent', $smarty->fetch("userCourses.tpl"));
開發者ID:jerryhanks,項目名稱:E-Leraning-System,代碼行數:31,代碼來源:index.php

示例2: isset

    if ($reply == true) {
        echo 'Category added succesfully';
    } else {
        print '<option>Nothing Selected</option>';
    }
}
if (isset($_POST["newcategory"])) {
    echo '<div id="newcategorydiv"><form>' . '<p class="forumfeed"></p>' . '<fieldset><legend><span class="boldertext">Category Details</span></legend>' . '<input id="cat" data-clear-btn="true" data-mini="true" class="" value="' . isset($_SESSION["user_id"]) ? $_SESSION["user_id"] : "" . '" type="hidden" required /></p>' . '<p><label>Category Name:</label>' . '<input id="cat_name" data-clear-btn="true" data-mini="true" class="" name="middlename" type="text" required /></p>' . '<p><label>Category Description:</label>' . '<textarea id="cat_desc" class="smalltextarea" cols="30" rows="4" required></textarea></p>' . '</fieldset></form></div></p>';
}
if (isset($_POST["newtopic"])) {
    global $forum;
    echo ' <div id="newtopicdiv"><form>' . '<p class="forumfeed"></p>' . '<fieldset><legend><span class="boldertext">Topic deatils</span></legend>' . '<p><label>Topic Subject</label>' . '<input id="topic_subject" class="" type="text" required /></p>' . '<p><label>Topic Category</label>' . '<select id="topic_cat_select" class="" required>' . $forum->getAllCategory() . '</select></p>' . '<p><label> Topic By</label>' . '<input id="topic_by" class=""  userid="' . $_SESSION["user_id"] . '" type="text" value="' . $_SESSION["username"] . '" required /></p>' . '</fieldset></form></div>';
}
if (isset($_POST["getallforum"])) {
    //$reply = $formu->addCategory();
    echo $forum->goHome();
}
////category view codes
if (isset($_POST["c_view"])) {
    echo $forum->getAllCategoryView();
}
//topic spec view codes
if (isset($_POST["topicspecview"])) {
    $topic = htmlentities(htmlspecialchars($_POST["topic_subject"]));
    $id = htmlentities(htmlspecialchars($_POST["topic_id"]));
    echo $forum->getTopicSpecView($topic, $id);
}
//topic in category
if (isset($_POST["topicincat"])) {
    $cat = htmlentities(htmlspecialchars($_POST["category"]));
    $id = htmlentities(htmlspecialchars($_POST["catid"]));
開發者ID:jerryhanks,項目名稱:E-Leraning-System,代碼行數:31,代碼來源:Classprocessor.php


注:本文中的Forum::goHome方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。