<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@page import="cn.exlive.mygpsonline.bean.loginUser"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	loginUser loginUser=(loginUser)session.getAttribute("user");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<base href="<%=basePath%>" />
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>北斗位置服务平台</title>
		<link rel="stylesheet"
			href="<%=path%>/gpsonline/css/report/baobiao/ecar_v3.css" />
		<link rel="stylesheet"
			href="<%=path%>/gpsonline/css/report/baobiao/report.css" />
		<link rel="stylesheet"
			href="<%=path%>/gpsonline/css/monitor/user/monitor.css" />
		<link rel="stylesheet"
			href="<%=path%>/gpsonline/css/monitor/user/userframe-c.css" />
		<link rel="stylesheet"
			href="<%=path%>/gpsonline/css/monitor/user/guanli.css" />
		<script type="text/javascript"
			src="<%=path%>/gpsonline/js/jquery-1.4.4.min.js"></script>
		<script type="text/javascript"
			src="<%=path%>/gpsonline/js/jquery.form.js"></script>
		<script type="text/javascript"
			src="<%=path%>/gpsonline/js/language.js"></script>
		<script type="text/javascript"
			src="<%=path%>/gpsonline/js/manager/manager.js"></script>
		<script type="text/javascript"
			src="<%=path%>/gpsonline/js/language.js"></script>
	</head>
	<body>
		<!--main-->
		<div class="pageShowCanvas">
			<!--bd [[-->
			<div id="bd">
				<!--left-->
				<div class="col-min">
					<!--left nav [[-->
					<div id="leftnav">
						<div class="mod-nav">
							<!-- class=[close] -->
							<div class="hd">
								<h3 id="manager_title">
									后台管理
								</h3>
							</div>
							<div class="bd">
								<ul name="manager_menus">
									<li id="manager_client" style="display: none;">
										<a href="javascript:;" style="text-decoration: none;">客户管理</a>
									</li>
									<li id="manager_user" style="display: none;">
										<a href="javascript:;" style="text-decoration: none;">用户管理</a>
									</li>
									<li id="manager_group" style="display: none;">
										<a href="javascript:;" style="text-decoration: none;">分组管理</a>
									</li>
									<li id="manager_vehicle" style="display: none;">
										<a href="javascript:;" style="text-decoration: none;">设备管理</a>
									</li>
								</ul>
							</div>
						</div>
					</div>
					<!--left nav ]]-->
				</div>
				<!--left end-->
				<!--right-->
				<div class="col-main" id="manager_content_loadding"
					name="manager_content">
					<!--centerdiv [[-->
					<div class="centerDiv">
						<div style='padding: 10px; font-size: 14px; color: #0099FF;'>
							loading...
						</div>
					</div>
					<!--centerdiv ]]-->
				</div>
				<!--right end-->
				<!--right-->
				<div class="col-main" id="manager_content_client"
					name="manager_content" style="display: none;">
					<!--centerdiv [[-->
					<div class="centerDiv">
						<div class="mod-report">
							<!--title [[-->
							<div class="hd">
								<div class="hd shebei_caozuo">
									<!--操作-->
									<a id="addClientBtn"
										href="javascript:ClientMananger.openAddWindow();"
										style="text-decoration: none; display: none;"><span
										class="ico_add"></span>增加</a>
									<!-- <a href="javascript:ClientMananger.batchDel();"><span class="ico_dele_all"></span>批量删除</a>
	                                        <a href="javascript:;"><span class="ico_excel"></span>导出Excel</a>
	                                        <a href="javascript:;"><span class="ico_word"></span>导出word</a>-->
									<span id="manager_msg_client"
										style="color: #F00; text-align: center; display: inline-block; margin-left: 200px;"></span>
									<!--操作 end-->
								</div>
							</div>
							<!--title ]]-->
							<!--right main [[-->
							<div class="bd">
								<!--search [[-->
								<div class="block-forms">
									<div class="rr">
										<table border="0" cellspacing="0" cellpadding="0"
											class="tj_tab_input">
											<tr>
												<td class="a">
													企业名称:&nbsp;
													<!-- <input type="text" id="client_query_value" style="width: 150px;"  value="请输入要查询的企业名称" isquery="false" onfocus="this.value=''" onblur="if(this.value==''){this.value='请输入要查询的企业名称';$(this).attr('isquery','false')}else{$(this).attr('isquery','true')}" />  -->
													<input type="text" id="client_query_value"
														onfocus="this.value=''" />
													<span class="btn-submit"><button
															id="client_query_btn" onclick="ClientMananger.query(1);"
															type="button">
															查 询
														</button> </span>
												</td>
											</tr>
										</table>
									</div>
								</div>
								<!--seacrh ]]-->
								<!--data [[-->
								<div class="block-data">
									<!-- listing [[ -->
									<div class="yunxing">
										<table id="table_manager_client" name="" width="100%"
											border="0" cellpadding="3" cellspacing="0" class="listtable">
											<tr class="firstrow">
												<!-- <td align="center" style="width: 30px;"><input type="checkbox" onchange="ClientMananger.checkedAll(this)"/> </td> -->
												<td align="center" style="width: 50px;">
													<span>序号</span>
												</td>
												<td align="center" style="width: 200px;">
													<span>企业名称</span>
												</td>
												<td align="center" style="width: 200px;">
													<span>法人代表</span>
												</td>
												<td align="center" style="width: 150px;">
													<span>电话</span>
												</td>
												<td align="center" style="width: 250px;">
													<span>地址</span>
												</td>
												<td width="100" align="center">
													<span style="padding-left: 0px;">操作</span>
												</td>
											</tr>
										</table>
									</div>
									<!-- listing ]] -->

								</div>
								<!--data ]]-->

								<!--分页-->

								<div class="fenye_wrap">
									<!-- <a href="javascript:;" class="fenye_s" style="width: 200px;text-decoration: none;">共<span id="client_record_count">0</span>条数据<span id="client_page_count">0</span>页,当前第<span id="client_page_num">1</span>页</a> -->
									<div class="fenye_left">
										共
										<b id="client_page_count">0</b>页,
										<b id="client_record_count">0</b>条数据,当前第
										<b id="client_page_num">0</b>页
									</div>
									<div class="fenye" style="float: right;">
										<a id="client_startPage_Btn"
											href="javascript:ClientMananger.startPage()"
											class="un_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">首页</a>
										<a id="client_prevPage_Btn"
											href="javascript:ClientMananger.prevPage()"
											class="un_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">上一页</a>
										<a id="client_nextPage_Btn"
											href="javascript:ClientMananger.nextPage();"
											class="en_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">下一页</a>
										<a id="client_endPage_Btn"
											href="javascript:ClientMananger.endPage()" class="en_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">尾页</a>
									</div>
								</div>

								<!--分页 end-->
							</div>
							<!--right main ]]-->

						</div>
					</div>
					<!--centerdiv ]]-->
				</div>
				<!--right end-->

				<!--right-->
				<div class="col-main" id="manager_content_group"
					name="manager_content" style="display: none;">
					<!--centerdiv [[-->
					<div class="centerDiv">
						<div class="mod-report">
							<!--title [[-->
							<div class="hd">
								<div class="hd shebei_caozuo">
									<!--操作-->
									<a id="addGroupBtn"
										href="javascript:GroupMananger.openAddWindow();"
										style="text-decoration: none; display: none;"><span
										class="ico_add"></span>增加</a>
									<!--<a href="javascript:;"><span class="ico_dele_all"></span>批量删除</a>
	                                        <a href="javascript:;"><span class="ico_excel"></span>导出Excel</a>
	                                        <a href="javascript:;"><span class="ico_word"></span>导出word</a>-->
									<span id="manager_msg_group"
										style="color: #F00; text-align: center; display: inline-block; margin-left: 200px;"></span>
									<!--操作 end-->
								</div>
							</div>
							<!--title ]]-->
							<!--right main [[-->
							<div class="bd">
								<!--search [[-->
								<div class="block-forms">
									<div class="rr">
										<table border="0" cellspacing="0" cellpadding="0"
											class="tj_tab_input">
											<tr>
												<td class="a">
													分组名称:&nbsp;
													<!-- <input type="text" id="group_query_value" style="width: 150px;"  value="请输入要查询的组名称" isquery="false" onfocus="this.value=''" onblur="if(this.value==''){this.value='请输入要查询的组名称';$(this).attr('isquery','false')}else{$(this).attr('isquery','true')}" />  -->
													<input type="text" id="group_query_value"
														onfocus="this.value=''" />
													<span class="btn-submit"><button
															id="group_query_btn" onclick="GroupMananger.query(1);"
															type="button">
															查 询
														</button> </span>
												</td>
											</tr>
										</table>
									</div>
								</div>
								<!--seacrh ]]-->
								<!--data [[-->
								<div class="block-data">
									<!-- listing [[ -->
									<div class="yunxing">
										<table id="table_manager_group" name="" width="100%"
											border="0" cellpadding="3" cellspacing="0" class="listtable">
											<tr class="firstrow">
												<td align="center" style="width: 50px;">
													<span>序号</span>
												</td>
												<td align="center" style="width: 200px;">
													<span>名称</span>
												</td>
												<td align="center" style="width: 200px;">
													<span>创建时间</span>
												</td>
												<td align="center" style="width: 200px;">
													<span>最小回传时间</span>
												</td>
												<td align="center" style="width: 200px;">
													<span>最大回传时间</span>
												</td>
												<td align="center" style="width: 150px;">
													<span>用户数量</span>
												</td>
												<td align="center" style="width: 150px;">
													<span>车辆数量</span>
												</td>
												<td width="110" align="center">
													<span style="padding-left: 0px;">操作</span>
												</td>
											</tr>
										</table>
									</div>
									<!-- listing ]] -->

								</div>
								<!--data ]]-->

								<!--分页-->
								<div class="fenye_wrap">
									<!-- <a href="javascript:;" class="fenye_s" style="width: 200px;text-decoration: none;">共<span id="client_record_count">0</span>条数据<span id="client_page_count">0</span>页,当前第<span id="client_page_num">1</span>页</a> -->
									<div class="fenye_left">
										共
										<b id="group_page_count">0</b>页,
										<b id="group_record_count">0</b>条数据,当前第
										<b id="group_page_num">0</b>页
									</div>
									<div class="fenye" style="float: right;">
										<a id="group_startPage_Btn"
											href="javascript:GroupMananger.startPage()"
											class="un_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">首页</a>
										<a id="group_prevPage_Btn"
											href="javascript:GroupMananger.prevPage()" class="un_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">上一页</a>
										<a id="group_nextPage_Btn"
											href="javascript:GroupMananger.nextPage();"
											class="en_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">下一页</a>
										<a id="group_endPage_Btn"
											href="javascript:GroupMananger.endPage()" class="en_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">尾页</a>
									</div>
								</div>
								<!--分页 end-->
							</div>
							<!--right main ]]-->

						</div>
					</div>
					<!--centerdiv ]]-->
				</div>
				<!--right end-->

				<!--right-->
				<div class="col-main" id="manager_content_user"
					name="manager_content" style="display: none;">
					<!--centerdiv [[-->
					<div class="centerDiv">
						<div class="mod-report">
							<!--title [[-->
							<div class="hd">
								<div class="hd shebei_caozuo">
									<!--操作-->
									<a id="addUserBtn"
										href="javascript:UserMananger.openAddWindow();"
										style="text-decoration: none; display: none;"><span
										class="ico_add"></span>增加</a>
									<!-- <a href="javascript:;"><span class="ico_dele_all"></span>批量删除</a>
	                                        <a href="javascript:;"><span class="ico_excel"></span>导出Excel</a>
	                                        <a href="javascript:;"><span class="ico_word"></span>导出word</a>-->
									<span id="manager_msg_user"
										style="color: #F00; text-align: center; display: inline-block; margin-left: 200px;"></span>
									<!--操作 end-->
								</div>
							</div>
							<!--title ]]-->
							<!--right main [[-->
							<div class="bd">
								<!--search [[-->
								<div class="block-forms">
									<div class="rr">
										<table border="0" cellspacing="0" cellpadding="0"
											class="tj_tab_input">
											<tr>
												<td class="a">
													用户名称:&nbsp;
													<!-- <input type="text" id="user_query_value" style="width: 150px;"  value="请输入要查询的用户名称" isquery="false" onfocus="this.value=''" onblur="if(this.value==''){this.value='请输入要查询的用户名称';$(this).attr('isquery','false')}else{$(this).attr('isquery','true')}" />  -->
													<input type="text" id="user_query_value"
														onfocus="this.value=''" />
													<span class="btn-submit"><button id="user_query_btn"
															onclick="UserMananger.query(1);" type="button">
															查 询
														</button> </span>
												</td>
											</tr>
										</table>
									</div>
								</div>
								<!--seacrh ]]-->
								<!--data [[-->
								<div class="block-data">
									<!-- listing [[ -->
									<div class="yunxing">
										<table id="table_manager_user" name="" width="100%" border="0"
											cellpadding="3" cellspacing="0" class="listtable">
											<tr class="firstrow">
												<td align="center" style="width: 50px;">
													<span>序号</span>
												</td>
												<td align="center">
													<span>用户名</span>
												</td>
												<td align="center">
													<span>类型</span>
												</td>
												<td align="center">
													<span>过期时间</span>
												</td>
												<td align="center">
													<span>分组数量</span>
												</td>
												<td align="center">
													<span>设备数量</span>
												</td>
												<td align="center">
													<span>用户数量</span>
												</td>
												<td width="100" align="center">
													<span style="padding-left: 0px;">操作</span>
												</td>
											</tr>
										</table>
									</div>
									<!-- listing ]] -->

								</div>
								<!--data ]]-->

								<!--分页-->
								<div class="fenye_wrap">
									<!-- <a href="javascript:;" class="fenye_s" style="width: 200px;text-decoration: none;">共<span id="client_record_count">0</span>条数据<span id="client_page_count">0</span>页,当前第<span id="client_page_num">1</span>页</a> -->
									<div class="fenye_left">
										共
										<b id="user_page_count">0</b>页,
										<b id="user_record_count">0</b>条数据,当前第
										<b id="user_page_num">0</b>页
									</div>
									<div class="fenye" style="float: right;">
										<a id="user_startPage_Btn"
											href="javascript:UserMananger.startPage()" class="un_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">首页</a>
										<a id="user_prevPage_Btn"
											href="javascript:UserMananger.prevPage()" class="un_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">上一页</a>
										<a id="user_nextPage_Btn"
											href="javascript:UserMananger.nextPage();" class="en_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">下一页</a>
										<a id="user_endPage_Btn"
											href="javascript:UserMananger.endPage()" class="en_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">尾页</a>
									</div>
								</div>
								<!--分页 end-->
							</div>
							<!--right main ]]-->

						</div>
					</div>
					<!--centerdiv ]]-->
				</div>
				<!--right end-->

				<!--right-->
				<div class="col-main" id="manager_content_vechile"
					name="manager_content" style="display: none;">
					<!--centerdiv [[-->
					<div class="centerDiv">
						<div class="mod-report">
							<!--title [[-->
							<div class="hd">

								<div class="hd shebei_caozuo">
									<!--操作-->
									<a id="addVechileBtn"
										href="javascript:VechileMananger.openAddWindow();"
										style="text-decoration: none; display: none;"><span
										class="ico_add"></span>增加</a>
									<!-- <a href="javascript:;"><span class="ico_dele_all"></span>批量删除</a>
	                                        <a href="javascript:;"><span class="ico_excel"></span>导出Excel</a>
	                                        <a href="javascript:;"><span class="ico_word"></span>导出word</a>-->
									<span id="manager_msg_vechile"
										style="color: #F00; text-align: center; display: inline-block; margin-left: 200px;"></span>
									<!--操作 end-->
								</div>
								<div class="shebei_zhuangtai">
									<a id="ot_0" href="javascript:;" class="shebei_select"
										name="shebei_zhuangtai" style="text-decoration: none;"> <span
										class="shebei_middle"> <span
											class="ico_shebei_all margin_t7"></span> 所有设备<span
											id="ot_0_count" name="ot_count"></span> </span> </a>

									<a id="ot_7" href="javascript:;" name="shebei_zhuangtai"
										style="text-decoration: none;"> <span
										class="shebei_middle"> <span
											class="ico_shebei_zhengchang margin_t7"></span> 7天内过期<span
											id="ot_7_count" name="ot_count"></span> </span> </a>
									<a id="ot_60" href="javascript:;" name="shebei_zhuangtai"
										style="text-decoration: none;"> <span
										class="shebei_middle"> <span
											class="ico_shebei_sixty margin_t7"></span> 60天内过期<span
											id="ot_60_count" name="ot_count"></span> </span> </a>

									<a id="ot_-1" href="javascript:;" name="shebei_zhuangtai"
										style="text-decoration: none;"> <span
										class="shebei_middle"> <span
											class="ico_shebei_guoqi margin_t7"></span> 已过期<span
											id="ot_-1_count" name="ot_count"></span> </span> </a>
								</div>
							</div>
							<!--title ]]-->
							<!--right main [[-->
							<div class="bd">
								<!--search [[-->
								<div class="block-forms">
									<div class="rr">
										<table border="0" cellspacing="0" cellpadding="0"
											class="tj_tab_input">
											<tr>
												<td class="a">
													设备名称:&nbsp;
													<!--<input type="text" id="vechile_carName_query_value" style="width: 150px;"  value="请输入要查询的设备名称" isquery="false" onfocus="this.value=''" onblur="if(this.value==''){this.value='请输入要查询的设备名称';$(this).attr('isquery','false')}else{$(this).attr('isquery','true')}" />  -->
													<input type="text" id="vechile_carName_query_value"
														onfocus="this.value=''" />
													设备ID:&nbsp;
													<!-- <input type="text" id="vechile_gprs_query_value" style="width: 150px;"  value="请输入要查询的设备ID" isquery="false" onfocus="this.value=''" onblur="if(this.value==''){this.value='请输入要查询的设备ID';$(this).attr('isquery','false')}else{$(this).attr('isquery','true')}" />   -->
													<input type="text" id="vechile_gprs_query_value"
														onfocus="this.value=''" />
													SIM卡号:&nbsp;
													<!-- <input type="text" id="vechile_sim_query_value" style="width: 150px;"  value="请输入要查询的SIM卡号" isquery="false" onfocus="this.value=''" onblur="if(this.value==''){this.value='请输入要查询的SIM卡号';$(this).attr('isquery','false')}else{$(this).attr('isquery','true')}" />   -->
													<input type="text" id="vechile_sim_query_value"
														onfocus="this.value=''" />
													<span class="btn-submit"><button
															id="vechile_query_btn"
															onclick="VechileMananger.query(1);" type="button">
															查 询
														</button> </span>
												</td>
											</tr>
										</table>
									</div>
								</div>
								<!--seacrh ]]-->
								<!--data [[-->
								<div class="block-data">
									<!-- listing [[ -->
									<div class="yunxing">
										<table id="table_manager_vechile" name="" width="100%"
											border="0" cellpadding="3" cellspacing="0" class="listtable">
											<tr class="firstrow">
												<td align="center" style="width: 50px;">
													<span>序号</span>
												</td>
												<td align="center">
													<span>车牌号码</span>
												</td>
												<td align="center">
													<span>过期时间</span>
												</td>
												<td align="center">
													<span>SIM号码</span>
												</td>
												<td align="center">
													<span>语音号码</span>
												</td>
												<td align="center">
													<span>数据号码</span>
												</td>
												<td align="center">
													<span>设备ID</span>
												</td>
												<td align="center">
													<span>车辆颜色</span>
												</td>
												<td width="100px;" align="center">
													<span>操作</span>
												</td>
											</tr>
										</table>
									</div>
									<!-- listing ]] -->

								</div>
								<!--data ]]-->

								<!--分页-->
								<div class="fenye_wrap">
									<!-- <a href="javascript:;" class="fenye_s" style="width: 200px;text-decoration: none;">共<span id="client_record_count">0</span>条数据<span id="client_page_count">0</span>页,当前第<span id="client_page_num">1</span>页</a> -->
									<div class="fenye_left">
										共
										<b id="vechile_page_count">0</b>页,
										<b id="vechile_record_count">0</b>条数据,当前第
										<b id="vechile_page_num">0</b>页
									</div>
									<div class="fenye" style="float: right;">
										<a id="vechile_startPage_Btn"
											href="javascript:VechileMananger.startPage()"
											class="un_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">首页</a>
										<a id="vechile_prevPage_Btn"
											href="javascript:VechileMananger.prevPage()"
											class="un_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">上一页</a>
										<a id="vechile_nextPage_Btn"
											href="javascript:VechileMananger.nextPage();"
											class="en_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">下一页</a>
										<a id="vechile_endPage_Btn"
											href="javascript:VechileMananger.endPage()"
											class="en_fenye_s"
											style="width: 40px; border: 0px; text-decoration: none;">尾页</a>
									</div>
								</div>
								<!--分页 end-->
							</div>
							<!--right main ]]-->
						</div>
					</div>
					<!--centerdiv ]]-->
				</div>
				<!--right end-->
			</div>
			<!--bd ]]-->
		</div>
		<!--main end-->
		<div id="popuWin">
		</div>
		<!-- class="yijian_fankui_wrap" -->
		<input type="hidden" id="serverUrl" value="<%=basePath%>"/>
		<input type="hidden" id="manager_userType_2" value="<%=loginUser!=null?loginUser.getUserType():"" %>"/>
		<div id="reset_tishi" style="position: absolute; top: 50%; left: 50%;margin-left:-150px;margin-top:-45px;display:none;">
			<div class="top"></div>
			<div class="center" style="width: 300px;height:90px">
				<h3 id="resetTitle">
					<a href="javascript:;" title="关闭" onclick="hideDiv();" class="message_close"></a>
					<span>提示</span>
				</h3>
				<div class="popuWinMessage_main">
				<p style="text-align:center; margin-top:10px;">重置成功!</p>
				</div>
			</div>
		</div>
	</body>
</html>
