本文整理汇总了PHP中DbUtil::getStop方法的典型用法代码示例。如果您正苦于以下问题:PHP DbUtil::getStop方法的具体用法?PHP DbUtil::getStop怎么用?PHP DbUtil::getStop使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DbUtil
的用法示例。
在下文中一共展示了DbUtil::getStop方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: header
$lineId = $Database->getLineId($lineName, $userName);
}
if ($lat == '') {
$lat = '0';
$long = '0';
}
if ($EDIT == "") {
$Database->registerStop($stopName, $userName, $long, $lat);
} else {
$Database->updateStop($EDIT, $stopName, $userName, $long, $lat);
}
header('Location: ttbl.php', true, 303);
exit;
}
if ($DELETE != "") {
if ($userName != $Database->getStop($DELETE)->userName) {
header('Location: ttbl.php', true, 303);
die;
}
$Database->deleteStop($DELETE);
header('Location: ttbl.php', true, 303);
}
$stopName;
$lineId;
$lat;
$long;
$editLine;
if ($EDIT != "") {
$title = "バス停編集";
$StopData = $Database->getStop($EDIT);
if ($StopData == null) {
示例2: DbUtil
<!DOCTYPE html>
<?php
require_once '../db.php';
$Database = new DbUtil();
$userName = $Database->getUserName();
if ($userName == null) {
header('Location: ../login.php', true, 303);
exit;
}
$ID = $_GET['sid'];
$LINE = $_GET['lid'];
$stopData = $Database->getStop($ID);
$lineName = $Database->getLineName($LINE, $userName);
if ($lineName == null) {
die('PERMISSION DENIED');
}
$timeData = $_GET['time'];
$typeData = $_GET['type'];
if ($Database->isExistTime($ID, $LINE, $timeData, $typeData)) {
$Database->deleteTime($ID, $LINE, $timeData, $typeData);
}
header("Location: timetable.php?stopid={$ID}&lineid={$LINE}", true, 303);
示例3: DbUtil
<?php
require_once '../nav.php';
require_once '../db.php';
require_once 'sidemenu.php';
require_once 'funcs.php';
$Database = new DbUtil();
$userName = $Database->getUserName();
$sideMenu = getSideMenu('ttbl');
$NAV = nav($userName);
if ($userName == null) {
header('Location: ../login.php', true, 303);
exit;
}
$ID = $_GET['stopid'];
$LINE = $_GET['lineid'];
$stopData = $Database->getStop($ID, $userName);
if ($stopData == null) {
die('PERMISSION DENIED');
}
$lineName = $Database->getLineName($LINE, $userName);
$timeTable = $Database->getTimeTable($ID, $LINE);
?>
<html lang="ja">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>時刻表 <?php
echo "{$stopData->stopName}";
?>
</title>