<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/admin/include/taglib.jsp"%>
<link href="assets/admin/bootstrap/2.3.1/css_cerulean/bootstrap.min.css" type="text/css" rel="stylesheet" />
<link href="assets/admin/bootstrap/2.3.1/awesome/font-awesome.min.css" type="text/css" rel="stylesheet" />
<script src="assets/admin/bootstrap/2.3.1/js/bootstrap.min.js" type="text/javascript"></script>
<link type="text/css" rel="stylesheet" href="assets/js/jquery/easyui/themes/bootstrap/easyui.css"/>
<script type="text/javascript">
$(document).ready(function() {
	$('#taxiCompany').val('${taxiCompany}');
	var arg = new Array();
	arg='${page.list}';
	if(arg=='[]'){  
		$.messager.alert("提示","当前查询条件暂无数据","info")
	}
});
function page(n,s){
	
	searchlist(n,s);
}
function searchlist(n,s){
	var reg = new RegExp("^[0-9]*$");  
	var id=$.trim($("#id").val().trim());
// 	id=id.replace(/\s/g, "");
	var taxiCompany=$("#taxiCompany").val();
	var flag=false;
	
	if(!reg.test(id)){  
		  $.messager.alert("提示","监督卡号请输入数字！","info");
		  //$("#id").val("");
		  return false;     
	}     
	else{
	$("#pageNo").val(n);
	$("#pageSize").val(s);
	var url="table/getTaxiManGridData?id="+encodeURI(id)+"&taxiCompany="+encodeURI(taxiCompany)+"&pageNo="+n+"&pageSize="+s;
	loadPage(url);
	}
	
}

</script>
<div class="about_top">
	当前位置: 出租汽车业户
</div>

<!-- about_form -->
<div class="about_form">
	<form:form method="post" action="table/getTaxiManGridData" id="tdSearchForm" class="breadcrumb form-search" modelAttribute="td"
	 onsubmit="return false">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<label>监督卡号：</label><form:input id="id" path="id" value="${id}" htmlEscape="false" maxlength="50" class="input_text"/>&nbsp;
		<label style="margin-left: 3%;">出租车公司：</label>
		<!--<form:input id="taxiCompany" path="taxiCompany" value="${taxiCompany}" htmlEscape="false" maxlength="50" class="input_text"/>&nbsp;
		-->
		<form:select id ="taxiCompany" path="taxiCompany">
			<form:option value="" select="selected" label="--请选择--"/>
			<c:forEach items="${companyList}" var="company">
				<form:option value="${company.value}" label="${company.name}"/>
			</c:forEach>
		</form:select>
		<p class="last">
			<button type="button" onclick="searchlist('','')" class="searchbutton" ><a>查询</a></button>
		</p>
	</form:form>
</div>

<!-- message-->
<sys:message content="${message}"/>

<!-- grid-->
<table id="contentTable" class="table table-striped table-bordered table-condensed">
	<thead><tr><th>监督卡号</th><th>姓名</th><th>性别</th><th>公司</th></tr></thead>
	<tbody>
	<c:forEach items="${page.list}" var="taxiInfo">
		<tr>
			<td>${taxiInfo.id}</td>
			<td>${taxiInfo.name}</td>
			<td>${taxiInfo.sex}</td>
			<td>${taxiInfo.taxiCompany}</td>
		</tr>
	</c:forEach>
	</tbody>
</table>
<%-- <div class="pagination1">${page}</div> --%>
<div class="pagination" >${page}</div>
	
	<div class="kyz_list" style="background:#ffffff;border: 1px solid #ececec;">
			<div class="kyz_span"><span>运价信息</span></div>
			<div class="train_list">
				<div style="margin-left: 4%;width: 90%;font-size:0.8vw;">
				<span>&nbsp;&nbsp;&nbsp;&nbsp;一、起步里程及起步价: 市区出租车起步里程统一为3公里，起步价为7元。<br>
					　 二、车公里运价起步:里程3公里以上,车公里运价为1.60元<br>
					　三、返程加价:在5公里以上按车公里运价50％加收返程空驶费。<br>
					　四、等候费累计等候5分钟，超过5分钟以上每分钟收取0.20元。<br>
					　五、计价方法及计价原则:出租车计价结构：3公里内的起步价7元+3公里以上车公里运价1.60元+5公里以上按车公里运价50%加收返程费+等候费即累计等候5分钟，
						超过5分钟以上每分钟收取0.20元。计价器尾数取舍以角进整，四舍五入，即尾数为5分及以上，进整为1角，反之舍去。
						出租车经营者应按计价器显示的价格向乘客收费，不得再进行尾数取舍。<br>
					　六、计费单元: 起步里程结束后按100米（含本值）车公里运价计费。即出租车每百米0.16元，不满100米按100米计算。
				</span>
				</div>
			</div>
			<div class="phone_train">
				<img src="assets/images/train_phone.png" style="width: 12%;height: 12%;">
				<span>
					<p style="margin-left: 13%;margin-top: -6%;">
						<b>约车电话</b>：12580<br>
					 </p>
				</span>
			
			</div>
		</div>
		<div class="bottom" >
		<p>以上数据仅供参考，以实际公布信息为准！</p>
	</div>
	</div>
<div class="clear"></div>
