本文整理汇总了PHP中DbUtils::getCourse方法的典型用法代码示例。如果您正苦于以下问题:PHP DbUtils::getCourse方法的具体用法?PHP DbUtils::getCourse怎么用?PHP DbUtils::getCourse使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbUtils
的用法示例。
在下文中一共展示了DbUtils::getCourse方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: DbUtils
<?php
require_once 'tools/db/DbUtils.php';
$dbUtils = new DbUtils();
$dbUtils->connect();
$course = $dbUtils->getCourse();
$dbUtils->close();
?>
<table class="mainSize">
<tr><th class="bloc_menu" colspan="4"><h1>Runnerz TEAM course <b><?php
echo $course;
?>
</b></h1></th></tr>
<tr>
<th><a href="./index.php?page=inscriptions.php"><div class="button">Inscriptions</div></a></th>
<th><a href="./index.php?page=timer.php"><div class="button">Timer</div></a></th>
<th><a href="./index.php?page=result.php&query=general"><div class="button">Résultats</div></a></th>
<th><a href="./index.php?page=correction/correction_results.php"><div class="button">Corrections</div></a></th>
</tr>
</table>
示例2: DbUtils
</head>
<body onLoad="setFocus()">
<?php
require_once 'tools/db/DbUtils.php';
require_once 'tools/http/HTTP_REQUEST.php';
require_once 'tools/db/queries.php';
require_once 'tools/service/tools.php';
$obj_utils = new DbUtils();
$obj_utils->connect();
$saved = false;
if (isset($_POST['dossard'])) {
$saved = $obj_utils->setRunner($_POST['dossard']);
}
$obj_utils->connect();
$courseToShow = $obj_utils->getCourse();
$query = getQueryForKey("generalLast10", $courseToShow);
$tabRequest = $obj_utils->executeQuery($query);
$tool = new Tool($obj_utils);
?>
<h1>Arrivée</h1>
<form name="form1" method="post" action="./index.php?page=timer.php">
<table class="principale">
<tr>
<td width="50%" align="center">
<table >
<tr><td style="text-align: center;"><strong>Numéro de dossard: </strong></td></tr>
<tr>
<td style="text-align: center;">
<input maxlength="5" size="5" type="text" name="dossard" autocomplete="off" style="font-size: 25px; text-align: right;">
示例3: DbUtils
<?php
require_once 'tools/http/HTTP_REQUEST.php';
require_once 'tools/db/DbUtils.php';
require_once 'tools/service/tools.php';
require_once 'tools/db/queries.php';
if (Config::team) {
include 'pages/header/result_header.php';
}
$obj_utils = new DbUtils();
$obj_utils->connect();
$queryKey = HTTP_RESQUEST::get('query');
$course = HTTP_RESQUEST::get('course');
if ($queryKey == "general") {
$course = $obj_utils->getCourse();
}
$courseToShow = $course;
if ($queryKey == "challenge") {
$courseToShow = "ALL CHALLENGE";
}
$tool = new Tool($obj_utils);
$query = getQueryForKey($queryKey, $course);
$tabRequest = $obj_utils->executeQuery($query);
?>
<h1>Resultats <?php
echo $courseToShow;
?>
</h1>
<?php
if ($queryKey == "challenge" && $tabRequest != 0) {
$results = $tool->buildList($tabRequest);
示例4: DbUtils
</head>
<body>
<br>
<table class="principale" width="100%" style="border-style: none;">
<tr>
<td><h1><?php
require_once 'tools/db/DbUtils.php';
require_once 'tools/http/HTTP_REQUEST.php';
if (HTTP_RESQUEST::exist('login') && HTTP_RESQUEST::exist('password')) {
$login = HTTP_RESQUEST::param('login');
$password = HTTP_RESQUEST::param('password');
if ($login == "set" && ($password = "time")) {
$obj_utils = new DbUtils();
$obj_utils->connect();
$obj_utils->setTime();
$time = $obj_utils->getTime($obj_utils->getCourse());
$obj_utils->close();
echo "La valeur du temp de référence est: " . $time;
}
?>
</h1> <?php
}
?>
</td>
</tr>
</table>
</body>
</html>