$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) {
<!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);
<?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>