本文整理汇总了PHP中AdminController::CreatePage方法的典型用法代码示例。如果您正苦于以下问题:PHP AdminController::CreatePage方法的具体用法?PHP AdminController::CreatePage怎么用?PHP AdminController::CreatePage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AdminController
的用法示例。
在下文中一共展示了AdminController::CreatePage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: AdminController
/**
* @covers a
*/
function test_CreatePage()
{
$a = new AdminController();
$value = $a->viewUsersForGame(3);
$return = "<form action='' method='post'>\n\t\t\t\t\t<div class='bs-example'>" . "<div class='panel panel-default'>" . "<div class='panel-body' align='center'>" . "<h2>User Accounts Management</h2>" . "<a href='http://marketsim-dev.cis.fiu.edu/admin/ManagePage.php?addAdminUser=Add+Admistrative+User' class='btn btn-primary'>Add Admistrative User</a>" . "<a href='http://marketsim-dev.cis.fiu.edu/admin/ManagePage.php?addBotUser=Add+Bot+User' class='btn btn-primary'>Add Bot User</a>" . "<a href='http://marketsim-dev.cis.fiu.edu/admin/ManagePage.php?viewAllGames=View+All+Games' class='btn btn-primary'>View All Games</a>" . "<a href='http://marketsim-dev.cis.fiu.edu/admin/ManagePage.php?viewAllUsers=View+All+Users' class='btn btn-primary'>View All Users</a>" . "</div>" . "<div class='' align='center'>" . "<div class='panel-footer clearfix' style='width: 1060px' >" . $value . "</div>" . "</div>" . "</div>" . "</div>" . "</form>";
return $this->assertEquals($a->CreatePage($value), $return);
}
示例2:
$value = $adminController->getAllUsers();
} else {
if (isset($_GET['viewUsersForGame'])) {
$value = $adminController->viewUsersForGame($_GET['game']);
} else {
//Session checking
/*if (isset($_SESSION['admin login']))
{
}
else
{
header('Location: /login.php');
exit;
}*/
}
}
}
}
}
}
}
}
}
}
}
$content = $adminController->CreatePage($value);
$title = "User Accounts Management";
//$content = "<h1 style = 'color:blue' align='center'>Strategic Marketing Simulator</h1>
// <p style = 'color:blue' align='center'>The Manage page is still under construction</p>";
include '../Styles/ManageTemplate.php';