当前位置: 首页>>代码示例>>PHP>>正文


PHP Evaluation::goHome方法代码示例

本文整理汇总了PHP中Evaluation::goHome方法的典型用法代码示例。如果您正苦于以下问题:PHP Evaluation::goHome方法的具体用法?PHP Evaluation::goHome怎么用?PHP Evaluation::goHome使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Evaluation的用法示例。


在下文中一共展示了Evaluation::goHome方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Course

 } 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"));
             } else {
                 if ($view == "userEvaluation") {
                     $smarty->assign('evalHome', $eval->goHome());
                     $smarty->assign('mainContent', $smarty->fetch("userEvaluation.tpl"));
                     $smarty->assign('title', '..::ECE_E-Learning:userCourses');
                 } else {
                     if ($view == "adminView") {
                         //include_once 'adminmainpage.php';
                         if ($auth->isAdmin($auth->selectSessionData($id))) {
                             //direct user to the admin main page
                             header("Location:../usr/admin/?suid=" . $id . "token=" . $token . "&view=enable_disableUser");
                         } else {
                             go_homeforlogedin();
                         }
                     } else {
                         go_homeforlogedin();
                     }
                 }
开发者ID:jerryhanks,项目名称:E-Leraning-System,代码行数:31,代码来源:index.php

示例2: htmlentities

    $user_id = $_SESSION['user_id'];
    $qCount = htmlentities(htmlspecialchars($_POST["qCount"]));
    $qCat = htmlentities(htmlspecialchars($_POST["qCategory"]));
    $qStyle = htmlentities(htmlspecialchars($_POST["qStyle"]));
    $qTime = htmlentities(htmlspecialchars($_POST["qTime"]));
    $evaluation = new Evaluation();
    //check if user has configured evaluation before if true, reset values, else configure new values
    //$evaluation->configureEValuation($user_id, $qCount, $qCat, $qStyle, $qTime);
    echo $evaluation->startEvaluation($user_id, $qCount, $qCat, $qStyle, $qTime);
}
if (isset($_POST["continueEval"])) {
    $evaluation = new Evaluation();
    $user_id = $_SESSION['user_id'];
    $currentCount = htmlentities(htmlspecialchars($_POST["currentCount"]));
    $currentCatName = htmlentities(htmlspecialchars($_POST["currentCatName"]));
    $currentId = htmlentities(htmlspecialchars($_POST["currentqId"]));
    $currentTime = htmlentities(htmlspecialchars($_POST["currentTime"]));
    $option = htmlentities(htmlspecialchars($_POST["option"]));
    $correctAns = htmlentities(htmlspecialchars($_POST["correctAns"]));
    //initial
    $qCount = htmlentities(htmlspecialchars($_POST["qCount"]));
    $qCat = htmlentities(htmlspecialchars($_POST["qCat"]));
    $qStyle = htmlentities(htmlspecialchars($_POST["qStyle"]));
    $qTime = htmlentities(htmlspecialchars($_POST["qTime"]));
    $totalScore = htmlentities(htmlspecialchars($_POST["totalScore"]));
    echo $evaluation->continueEvaluation($user_id, $currentCount, $currentCatName, $currentId, $currentTime, $option, $correctAns, $qCount, $qCat, $qStyle, $qTime, $totalScore);
}
if (isset($_POST["evalHome"])) {
    $evaluation = new Evaluation();
    echo $evaluation->goHome();
}
开发者ID:jerryhanks,项目名称:E-Leraning-System,代码行数:31,代码来源:index.php


注:本文中的Evaluation::goHome方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。