當前位置: 首頁>>代碼示例>>PHP>>正文


PHP DbUtils::getCourse方法代碼示例

本文整理匯總了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>
開發者ID:jonhy005,項目名稱:nobressart,代碼行數:22,代碼來源:header.php

示例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:&nbsp;</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;">
開發者ID:jonhy005,項目名稱:nobressart,代碼行數:31,代碼來源:timer.php

示例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);
開發者ID:jonhy005,項目名稱:nobressart,代碼行數:31,代碼來源:result.php

示例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>
開發者ID:jonhy005,項目名稱:nobressart,代碼行數:30,代碼來源:setTime.php


注:本文中的DbUtils::getCourse方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。