header2.jsp
6.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
Cookie[] cookies = request.getCookies();
String userName="";
if (cookies!=null&&cookies.length > 0) {
for (int i = 0; i < cookies.length; i++) {
Cookie cookie = cookies[i];
if(cookie.getName().equals("userName")){
userName=cookie.getValue();
}
}
}
%>
<c:set var="ctx" value="${pageContext.request.contextPath}" />
<div class="header_box">
<div class="sbox">
<span class="top_header_box">
<c:if test="${sessionScope.USER_INFO == null }">
<a href="${ctx }/login" class="wtr">登录</a> |
<a href="${ctx }/register" class="wtr">注册</a> |
</c:if>
<c:if test="${sessionScope.USER_INFO != null }">
<a class="wtr">欢迎你,${sessionScope.USER_INFO.client_name }</a> |
<a href="${ctx }/user/balance" class="wtr">进入会员中心</a> |
<a href="${ctx }/loginout" class="wtr">退出登录</a> |
</c:if>
<a class="kefu-line">Tel:400-969-0800</a>
</span>
</div>
</div>
<div class="sbox">
<div class="menubox">
<ul id="navbar">
<%-- <li>
<a href="${ctx }/" class="headBar " id="homePage">首页</a>
</li>
--%>
<li>
<a href="#" class="headBar" id="recordList"> </a>
</li>
<div style="clear:both;"></div>
<!--
<li><a href="${ctx }/trade/articles?cid=13" class="red" id="collocation">托管</a>
</li>
<li><a href="${ctx }/trade/info" class="red" id="deal">交易</a>
</li>
<li><a href="${ctx }/info/gonggao" class="red" id="message">资讯</a>
</li>
<li><a href="${ctx }/help/searchArticle?categoryId=36&id=216" class="red" id="help">帮助</a>
</li>
<li><a href="${ctx }/down/toDownLoad" class="red" id="downLoad">下载</a></li> -->
</ul>
</div>
</div>
</div>
<!--登陆-->
<div id="loginModal" class="loginbox" style="display:none">
<div class="logintit">登录</div>
<a href="javascript:ajaxLogin.closeLogin()" id="loginModalClose" class="close">×</a>
<div class="logincon">
<form id="login-form2" action="${ctx }/login" method="post">
<div class="inputs">
<div class="nameyh">账号
<input id="username2" placeholder="会员号/手机号" name="username" type="text" class="input0" maxlength="18" value="<%=userName %>" />
<span class="errortip" id="tip-username2" ></span>
</div>
<div class="password">密码
<input type="password" name="password" id="password2" class="input1" maxlength="8" />
<span class="errortip" id="tip-password2"></span>
</div>
<!-- <div class="yanzheng">验证码
<input name="code" id="code2" type="text" class="input0" maxlength="4" />
<img id="imgCaptcha2" alt="验证码" style="vertical-align:middle" src=""
width="70px;" height="27px;" border="1" id="validaCode" />
<a href="javascript:changeCaptcha2()" class="blues">看不清,换一张</a>
<span class="errortip" id="tip-code2"></span>
</div> -->
<div class="xieyi"><input type="checkbox" checked="checked" id="login_agree" /><a target="view_window" href="https://www.zhao.com/trade/article?id=96&cid=9">我已认真阅读并同意遵守《赵涌牛服务协议》 </a>
<span class="errortip" id="tip-login-agree" ></span>
</div>
</div>
<div class="loginenter">
<div class="juli"><label><input name="remberme" type="checkbox" value="remberme" id="remberme"
<%if(!"".equals(userName)) {%>checked="checked" <%} %>
/> 记住会员号</label></div>
<a href="#" id="ajaxLogin" class="btnw loginbtn">登录</a>
<div class="xiaozi">还不是赵涌牛会员?<a href="${ctx }/register" class="blues">立即注册</a></div>
</div>
</form>
</div>
</div>
<script type="text/javascript">
$(function(){
var url=window.location.href;
var arr= url.split('/');
if(arr[3]==''){
$("#homePage").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#homePage").siblings().show()
}else if(arr[3]=='entrust'){
if(arr[4]=='list'||arr[4]=='data'||arr[4].split('?')[0]=='info'){
$("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#collocation").siblings().show()
}else if(arr[4]=='record' ){
$("#recordList").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#recordList").siblings().show()
}else{
$("#deal").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#deal").siblings().show()
}
}else if(arr[3]=='trade'){
if(arr[4].split('?')[0]=='article'){
$("#message").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#message").siblings().show()
}else{
$("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#collocation").siblings().show()
}
}else if(arr[3]=='info'){
if(arr[4].split('?')[0]=='gonggao2'){
$("#message").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#message").siblings().show()
}else{
$("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#collocation").siblings().show()
}
}else if(arr[3]=='user'){
if(arr[4].split('?')[0]=='entrust'){
$("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#collocation").siblings().show()
}else if(arr[4].split('?')[0]=='attention'){
$("#deal").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#deal").siblings().show()
}
}else if(arr[3]=='ec'){
$("#deal").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
$("#deal").siblings().show()
}
})
</script>