当前位置: 首页>>代码示例>>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;未经允许,请勿转载。