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


PHP Evaluation::startEvaluation方法代码示例

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


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

示例1: htmlentities

    // $auth->creatprofile($fname, $lname, $mname, $regno, $entryYear, $dateOfBirth, $gender, $email, $phone, $address, $username, $password,$family, $passport);
    //header('Location:e-learning.com/?view=register&feedback=Thank you for registering');
}
//header('location:../?view=registerView&feedback='.urlnecode('Thank you for registering! Do you want to <a href="/">Login</a>'));
// header('Location:../?view=register&feedback=Thank you for registering\nDo you wantn to <a href="/">Login</a>');
//this code is used for evaluation
if (isset($_POST["config"])) {
    $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"]));
开发者ID:jerryhanks,项目名称:E-Leraning-System,代码行数:31,代码来源:index.php


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