<%@ page import="java.util.List" %>
<%@ page import="pojo.User" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>管理员</title>
    <link rel="stylesheet" href="<%=request.getContextPath()%>/static/css/mainTemplate.css">
    <link rel="stylesheet" href="<%=request.getContextPath()%>/static/css/user-Info.css">

</head>
<%
    session=request.getSession();
    User user=(User)session.getAttribute("user");
    request.setCharacterEncoding("UTF-8");
%>
<body>
<div class="top-bar">
    <div class="top-bar-logo">
        <a  href="<%=request.getContextPath()%>/main/user/user-Info.jsp"><img id="logo" src="<%=request.getContextPath()%>/static/images/logo.jpg" alt="" ></a>
        <a id="logo-text" href="#">山东科技大学 作为小组停车场管理系统 <span></span></a>
    </div>
    <div class="top-bar-btn">
    </div>
    <div class="top-bar-right">
        <div class="drop-menu">
            <div class="top-bar-account">
                <span><%=user.getName()%></span>
                <div class="drop"><a href="<%=request.getContextPath()%>/account/exit">退出账户</a></div>
            </div>
        </div>
    </div>
</div>
<div class="container">
    <div class="side-bar">
        <a class="side-bar-button" href="<%=request.getContextPath()%>/main/get_user">用户信息</a>
        <a class="side-bar-button" href="<%=request.getContextPath()%>/main/get_spot">车位情况</a>
        <a class="side-bar-button" href="<%=request.getContextPath()%>/main/get_record">停车记录</a>
        <a class="side-bar-button" href="<%=request.getContextPath()%>/main/get_car_Info">车辆信息</a>
        <a class="side-bar-button" href="<%=request.getContextPath()%>/main/get_IC">IC卡信息</a>
    </div>
    <div class="tasks-content">

        <table>
            <tr>
                <th>姓名</th>
                <td><%=user.getName()%></td>
            </tr>
            <tr>
                <th>性别</th>
                <td><%=user.getGender()%></td>
            </tr>
            <tr>
                <th>电话号码</th>
                <td><%=user.getTelephone()%></td>
            </tr>
            <tr>
                <th>住址</th>
                <td><%=user.getAddress()%></td>
            </tr>
            <tr>
                <th>车位号</th>
                <td><%=user.getSpot_id()%></td>
            </tr>
        </table>
        <div class="update-Info" onclick="window.location.href='<%=request.getContextPath()%>/main/user/update-Info.jsp'">更新</div>

    </div>
</div>
</body>
</html>
