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


PHP AdminController::createGamePage方法代码示例

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


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

示例1:

     $hotelType = "";
     $Hname = $_POST['textbox_Hotel_name'];
     $gameID = $_POST['textbox_Hotel_game_id'];
     if (isset($_POST['hotelLocation'])) {
         $location = $_POST['hotelLocation'];
     }
     if (isset($_POST['hotelType'])) {
         $hotelType = $_POST['hotelType'];
     }
     $fname = $_POST['textbox_bot_fname'];
     $lname = $_POST['textbox_bot_lname'];
     $email = $_POST['textbox_bot_email'];
     $value = $adminController->addBot($Hname, $gameID, $location, $hotelType, $fname, $lname, $email);
 } else {
     if (isset($_POST['button_createGamePage'])) {
         $value = $adminController->createGamePage();
     } else {
         if (isset($_POST['button_addGame'])) {
             $courseNumber = $_POST['textbox_courseNumber'];
             $courseID = $_POST['textbox_courseID'];
             $section = $_POST['textbox_section'];
             $semester = $_POST['textbox_semester'];
             $schedule = $_POST['textbox_schedule'];
             $value = $adminController->createGame($semester, $courseID, $courseNumber, $section, $schedule);
         } else {
             if (isset($_POST['button_activate'])) {
                 if (isset($_POST['tableCheckbox'])) {
                     $value = $adminController->activateUsers($_POST['tableCheckbox']);
                 } else {
                     $value = "No Users Selected";
                 }
开发者ID:jandr018,项目名称:StragicMarketingSimulator,代码行数:31,代码来源:ManagePage.php

示例2: AdminController

 /**
  * @covers a
  */
 function test_createGamePage()
 {
     $a = new AdminController();
     $result = "<div class='' align='left'>" . "<h2>Game Creation Page</h2>" . "<h3>Course Number</h3>" . "<input type = 'text' name = 'textbox_courseNumber' pattern='[0-9]{5}' placeholder = '88529' title='5 digit number'>" . "<h3>Course ID</h3>" . "<input type = 'text' name = 'textbox_courseID' placeholder = 'MAR2015'>" . "<h3>Section</h3>" . "<input type = 'text' name = 'textbox_section' placeholder='U02'>" . "<h3>Semester of Game</h3>" . "<input type = 'text' name = 'textbox_semester' placeholder='FALL 2016'>" . "<h3>Course Meeting time</h3>" . "<input type = 'text' name = 'textbox_schedule' placeholder='mwf 12pm-1:30pm'>" . "<br />" . "<br />" . "<br />" . "<input name='button_addGame' type = 'submit' value = 'Create Game' class='btn btn-primary'/>" . "</div>";
     return $this->assertEquals($a->createGamePage(), $result);
 }
开发者ID:jandr018,项目名称:StragicMarketingSimulator,代码行数:9,代码来源:AdminControllerTest.php


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