⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 web_road.htm

📁 我的比赛作品 第22届全国青少年科技创新大赛3等奨 备注: 同时使用VC及Delphi开发
💻 HTM
字号:
<?php
include template('header');
print <<<EOT
<H1>详细路线资料</H1>
<center><table cellpadding='2' cellspacing='1' class='itable' width='98%'>
<tr><td complist='smlfont'>

正在运行巴士:

<table width='100%' cellpadding='2' cellspacing='1' bgcolor="#cccccc">
<tr style='font-weight:bold;text-align:center;background-color:#bbddee'>
<td>预计到站时间</td><td>已过站</td><td>正在前往</td><td>巴士类型</td><td>巴士车牌</td><td>拥挤情况</td>
</tr>
EOT;
foreach ($busList as $r)
{
if ($r[people] >= $r[fulpeop])
{
	$ou = "<font color='red'>拥挤</font>";
}elseif ($r[people] >= $r[midpeop])
{
	$ou = "<font color='blue'>一般</font>";
}else
{
	$ou = "<font color='green'>空闲</font>";
}

if ($r[number]=='MF-1234')
{
$img = " <a href='../cap/picture0.jpg'>Preview</a>";
}else{
$img="";
}
print <<<EOT
<tr bgcolor='#ffffff'>
<td>$r[nexttime]</td>
<td>$r[current]</td>
<td>$r[next]</td>
<td align='center' nowrap>$r[name]</td>
<td align='center' nowrap>$r[number]</td>
<td align='center' nowrap>$ou($r[people])$img</td>
</tr>
EOT;
}
print <<<EOT
</table>
<br>
<font color='red'>***代表可能目前该区塞车,导致统计数字出错</font>

<br>
<table width="100%" cellpadding="3" cellspacing="0">
<tr>
EOT;
foreach ($route as $rou)
{
	echo "<td>$rou[name]</td>";
}
print <<<EOT
</tr>
<tr>
EOT;
$k = 0;
foreach ($route as $key => $rou)
{
	echo "<td align='center'><font color='".(($k == 0 && $station==0) || ($k == count($route)-1 && $station==-1) || $route[$rou['next']]['station'] == $station ? "red" : "gray")."'>●</font></td>";
	$k++;
}
print <<<EOT
</tr>
</table>
<a href='index.php'>回到首页</a>
</td></tr>
</table>
</center>
EOT;
include template('footer');
?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -