<?php
	//公交查询
	function sobus(){
		global $city,$cityname,$buszd1,$buszd2,$buszd,$busline;
		if(empty($busline)) $busline='';
		if(empty($buszd)) $buszd='';
		if(empty($buszd1)) $buszd1='';
		if(empty($buszd1)) $buszd2='';
		return "<div class=box>
			<h3>{$cityname}公交查询</h3>
			<script src=js/auto.js></script>
			<script src=data/bus/{$city}/busline.js></script>
			<script src=data/bus/{$city}/buszd.js></script>
			<script src=js/bus.js></script>
			<script>sugbus();</script>
			<div class=sch>
				<div class=line>
				<form method=get action=sobusline.php>
					<input type=hidden name=city value='{$city}'>
					查询线路：<input name=busline id=busline value='{$busline}' size=30> 
					<input type=submit class=submit value='查询'>
				</form>
				</div>
				<div class=line>
				<form method=get action=sobuszd.php>
					<input type=hidden name=city value='{$city}'>
					查询站点：<input name=buszd id=buszd value='{$buszd}' size=30> 
					<input type=submit class=submit value='查询'>
				</form>
				</div>
				<div class=line>
				<form method=get action=sobuszz.php>
					<input type=hidden name=city value='{$city}'>
					站站查询：<input name=buszd1 id=buszd1 value='{$buszd1}' size=15> →
					<input name=buszd2 id=buszd2 value='{$buszd2}' size=15>
					<input type=submit class=submit value='查询'>
				</form>
				</div>
			</div>
			</div>";
	}
?>