yanqiu

fuck you

1 +<component name="libraryTable">
2 + <library name="chinapnr">
3 + <CLASSES>
4 + <root url="jar://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib/chinapnr.jar!/" />
5 + <root url="jar://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib/com.hundsun.amqp.message-hs-1.0.0.jar!/" />
6 + <root url="jar://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib/com.hundsun.mcsdk-hs-1.1.2.jar!/" />
7 + <root url="jar://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib/com.hundsun.t2sdk-hs-1.1.13.jar!/" />
8 + <root url="jar://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib/commons-codec-1.4.jar!/" />
9 + <root url="jar://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib/jzsms-6.0.jar!/" />
10 + <root url="jar://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib/kaptcha-2.3.2.jar!/" />
11 + <root url="jar://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib/ojdbc-14.jar!/" />
12 + <root url="jar://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib/xml-apis-1.3.02.jar!/" />
13 + </CLASSES>
14 + <JAVADOC />
15 + <SOURCES />
16 + </library>
17 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<component name="libraryTable">
2 + <library name="lib">
3 + <CLASSES>
4 + <root url="file://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib" />
5 + </CLASSES>
6 + <JAVADOC />
7 + <SOURCES />
8 + <jarDirectory url="file://$PROJECT_DIR$/src/main/webapp/WEB-INF/lib" recursive="false" />
9 + </library>
10 +</component>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8"?>
2 +<project version="4">
3 + <component name="VcsDirectoryMappings">
4 + <mapping directory="" vcs="Git" />
5 + </component>
6 +</project>
...\ No newline at end of file ...\ No newline at end of file
...@@ -235,6 +235,38 @@ ...@@ -235,6 +235,38 @@
235 <version>4.12</version> 235 <version>4.12</version>
236 <scope>test</scope> 236 <scope>test</scope>
237 </dependency> 237 </dependency>
238 + <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-core -->
239 + <dependency>
240 + <groupId>org.apache.logging.log4j</groupId>
241 + <artifactId>log4j-core</artifactId>
242 + <version>2.0.1</version>
243 + </dependency>
244 + <!-- https://mvnrepository.com/artifact/org.apache.logging.log4j/log4j-api -->
245 + <dependency>
246 + <groupId>org.apache.logging.log4j</groupId>
247 + <artifactId>log4j-api</artifactId>
248 + <version>2.1</version>
249 + </dependency>
250 +
251 + <dependency>
252 + <groupId>log4j</groupId>
253 + <artifactId>log4j</artifactId>
254 + <version>1.2.17</version>
255 + </dependency>
256 + <!-- https://mvnrepository.com/artifact/javax.servlet/javax.servlet-api -->
257 + <dependency>
258 + <groupId>javax.servlet</groupId>
259 + <artifactId>javax.servlet-api</artifactId>
260 + <version>3.1.0</version>
261 + <scope>provided</scope>
262 + </dependency>
263 + <!-- https://mvnrepository.com/artifact/org.apache.commons/commons-lang3 -->
264 + <dependency>
265 + <groupId>org.apache.commons</groupId>
266 + <artifactId>commons-lang3</artifactId>
267 + <version>3.5</version>
268 + </dependency>
269 +
238 </dependencies> 270 </dependencies>
239 271
240 <build> 272 <build>
......
1 package com.cjs.site.action.info; 1 package com.cjs.site.action.info;
2 2
3 +import java.io.IOException;
3 import java.util.Arrays; 4 import java.util.Arrays;
4 import java.util.HashMap; 5 import java.util.HashMap;
5 import java.util.Map; 6 import java.util.Map;
6 7
8 +import com.cjs.site.model.user.account.UserInfo;
7 import org.springframework.beans.factory.annotation.Autowired; 9 import org.springframework.beans.factory.annotation.Autowired;
8 import org.springframework.mobile.device.Device; 10 import org.springframework.mobile.device.Device;
9 import org.springframework.stereotype.Controller; 11 import org.springframework.stereotype.Controller;
...@@ -17,6 +19,10 @@ import com.cjs.site.dao.pub.BannerDao; ...@@ -17,6 +19,10 @@ import com.cjs.site.dao.pub.BannerDao;
17 import com.cjs.site.util.lang.JsonUtil; 19 import com.cjs.site.util.lang.JsonUtil;
18 import com.cjs.site.util.web.PageUtils; 20 import com.cjs.site.util.web.PageUtils;
19 21
22 +import javax.servlet.ServletException;
23 +import javax.servlet.http.HttpServletRequest;
24 +import javax.servlet.http.HttpServletResponse;
25 +
20 /** 26 /**
21 * 资讯 27 * 资讯
22 * 28 *
...@@ -37,6 +43,7 @@ public class InfoAction { ...@@ -37,6 +43,7 @@ public class InfoAction {
37 model.addAttribute("pageRouter", "infolist"); 43 model.addAttribute("pageRouter", "infolist");
38 return "/mobile/index.jsp"; 44 return "/mobile/index.jsp";
39 } 45 }
46 + params.put("type",0);
40 params = PageUtils.processPage(params); 47 params = PageUtils.processPage(params);
41 // 托管公告、公告通知 48 // 托管公告、公告通知
42 params.put("cids", Arrays.asList(13, 24)); 49 params.put("cids", Arrays.asList(13, 24));
...@@ -47,6 +54,34 @@ public class InfoAction { ...@@ -47,6 +54,34 @@ public class InfoAction {
47 return "info/gonggao.jsp"; 54 return "info/gonggao.jsp";
48 } 55 }
49 56
57 + @RequestMapping("/gonggao2")
58 + public String gonggao2(@RequestParam Map<String, Object> params, Model model, Device device, HttpServletRequest request, HttpServletResponse response) {
59 + Object obj = request.getSession().getAttribute(UserInfo.USER);
60 +
61 + if(obj == null) {
62 + try {
63 + request.getRequestDispatcher("/login").forward(request, response);
64 + } catch (ServletException e) {
65 + e.printStackTrace();
66 + } catch (IOException e) {
67 + e.printStackTrace();
68 + }
69 + }
70 + if (device.isMobile()) {
71 + model.addAttribute("pageRouter", "infolist");
72 + return "/mobile/index.jsp";
73 + }
74 + params.put("type",1);
75 + params = PageUtils.processPage(params);
76 + // 托管公告、公告通知
77 + params.put("cids", Arrays.asList(13, 24));
78 + params.put("_total", articleDao.searchTotal(params));
79 + model.addAttribute("gonggao", articleDao.search(params));
80 + model.addAttribute("cid", 24);
81 + model.addAttribute("params", params);
82 + return "info/gonggao2.jsp";
83 + }
84 +
50 @RequestMapping("/news") 85 @RequestMapping("/news")
51 public String news(@RequestParam Map<String, Object> params, Model model) { 86 public String news(@RequestParam Map<String, Object> params, Model model) {
52 params = PageUtils.processPage(params); 87 params = PageUtils.processPage(params);
......
...@@ -94,7 +94,8 @@ public class HomeAction { ...@@ -94,7 +94,8 @@ public class HomeAction {
94 articleParams.put("categoryId", categoryInfo.getId()); 94 articleParams.put("categoryId", categoryInfo.getId());
95 List<ArticleInfo> youqingArticles = articleDao.queryByCategoryId(articleParams); 95 List<ArticleInfo> youqingArticles = articleDao.queryByCategoryId(articleParams);
96 model.addAttribute("youqingArticles", youqingArticles); 96 model.addAttribute("youqingArticles", youqingArticles);
97 - return "index.jsp"; 97 + //return "index.jsp";
98 + return "redirect:/user/balance";
98 } 99 }
99 100
100 /** 101 /**
......
...@@ -25,6 +25,7 @@ ...@@ -25,6 +25,7 @@
25 <if test="title != null and title != ''"> 25 <if test="title != null and title != ''">
26 and title like CONCAT('%',#{title},'%') 26 and title like CONCAT('%',#{title},'%')
27 </if> 27 </if>
28 +
28 </sql> 29 </sql>
29 30
30 <!-- 目录展示 collection.jsp,article.jsp--> 31 <!-- 目录展示 collection.jsp,article.jsp-->
...@@ -33,6 +34,9 @@ ...@@ -33,6 +34,9 @@
33 from article 34 from article
34 inner join article_category r on article.category_id = r.id 35 inner join article_category r on article.category_id = r.id
35 <include refid="searchCondition"/> 36 <include refid="searchCondition"/>
37 + <if test="type==0">
38 + <![CDATA[and article.create_at > 20190323]]>
39 + </if>
36 order by article.sort_time desc 40 order by article.sort_time desc
37 limit #{start},#{limit} 41 limit #{start},#{limit}
38 </select> 42 </select>
...@@ -42,6 +46,9 @@ ...@@ -42,6 +46,9 @@
42 from article 46 from article
43 inner join article_category r on article.category_id = r.id 47 inner join article_category r on article.category_id = r.id
44 <include refid="searchCondition"/> 48 <include refid="searchCondition"/>
49 + <if test="type==0">
50 + <![CDATA[and article.create_at > 20190323]]>
51 + </if>
45 </select> 52 </select>
46 53
47 <select id="queryById" parameterType="java.lang.Integer" resultType="ArticleInfo"> 54 <select id="queryById" parameterType="java.lang.Integer" resultType="ArticleInfo">
......
...@@ -6,11 +6,7 @@ ...@@ -6,11 +6,7 @@
6 <div class="bottomlink"> 6 <div class="bottomlink">
7 <div class="left "> 7 <div class="left ">
8 <div class="item-new"> 8 <div class="item-new">
9 - <p class="title">合作企业</p> 9 + <a href="/trade/article?id=108&cid=31" class="title">联系我们</a>&nbsp;&nbsp;&nbsp;&nbsp;
10 - <p><a href="http://www.zhaoonline.com/">赵涌在线</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.hosane.com/">泓盛</a>&nbsp;&nbsp;&nbsp;&nbsp;
11 - <a href="http://www.ytgrading.com/">源泰评级</a><!-- &nbsp;&nbsp;&nbsp;&nbsp;<a href="http://www.zbd8.com/">召宝贷</a></p> -->
12 - <p><!-- <a href="/trade/article?id=87&cid=30" class="title">关于我们</a>&nbsp;&nbsp;&nbsp;&nbsp; --><a href="/trade/article?id=108&cid=31" class="title">联系我们</a>&nbsp;&nbsp;&nbsp;&nbsp;
13 - <!-- <a href="/trade/article?id=110&cid=32" class="title">诚聘英才</a>&nbsp;&nbsp;&nbsp;&nbsp; --><a href="/trade/article?id=89&cid=33" class="title">法律声明</a></p>
14 <!-- <p><a href="http://www.zhongyoubi.com/">中邮币</a></p> --> 10 <!-- <p><a href="http://www.zhongyoubi.com/">中邮币</a></p> -->
15 </div> 11 </div>
16 <!-- <div class="item"> 12 <!-- <div class="item">
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
17 <c:set var="ctx" value="${pageContext.request.contextPath}" /> 17 <c:set var="ctx" value="${pageContext.request.contextPath}" />
18 <div class="header_box"> 18 <div class="header_box">
19 <div class="sbox"> 19 <div class="sbox">
20 -
21 <span class="top_header_box"> 20 <span class="top_header_box">
22 <c:if test="${sessionScope.USER_INFO == null }"> 21 <c:if test="${sessionScope.USER_INFO == null }">
23 <a href="${ctx }/login" class="wtr">登录</a>&nbsp;&nbsp;|&nbsp;&nbsp; 22 <a href="${ctx }/login" class="wtr">登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;
...@@ -25,7 +24,7 @@ ...@@ -25,7 +24,7 @@
25 </c:if> 24 </c:if>
26 <c:if test="${sessionScope.USER_INFO != null }"> 25 <c:if test="${sessionScope.USER_INFO != null }">
27 <a class="wtr">欢迎你,${sessionScope.USER_INFO.client_name }</a>&nbsp;&nbsp;|&nbsp;&nbsp; 26 <a class="wtr">欢迎你,${sessionScope.USER_INFO.client_name }</a>&nbsp;&nbsp;|&nbsp;&nbsp;
28 - <a href="${ctx }/user/allBalance" class="wtr">进入会员中心</a>&nbsp;&nbsp;|&nbsp;&nbsp; 27 + <a href="${ctx }/user/balance" class="wtr">进入会员中心</a>&nbsp;&nbsp;|&nbsp;&nbsp;
29 <a href="${ctx }/loginout" class="wtr">退出登录</a>&nbsp;&nbsp;|&nbsp;&nbsp; 28 <a href="${ctx }/loginout" class="wtr">退出登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;
30 29
31 </c:if> 30 </c:if>
...@@ -36,16 +35,16 @@ ...@@ -36,16 +35,16 @@
36 </div> 35 </div>
37 <div class="sbox"> 36 <div class="sbox">
38 <div class="menubox"> 37 <div class="menubox">
39 - <h1><a href="${ctx }/"><img src="${ctx }/resource/images/newHomePage/logo.png" width="200"/></a></h1> 38 +
40 <ul id="navbar"> 39 <ul id="navbar">
41 <li> 40 <li>
42 <a href="${ctx }/" class="headBar " id="homePage">首页</a> 41 <a href="${ctx }/" class="headBar " id="homePage">首页</a>
43 </li> 42 </li>
44 <li> 43 <li>
45 - <a href="${ctx }/info/gonggao" class="headBar" id="message">资讯</a> 44 + <a href="${ctx }/info/gonggao2" class="headBar" id="message">历史资讯</a>
46 </li> 45 </li>
47 <li> 46 <li>
48 - <a href="#" class="headBar" id="collocation">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a> 47 + <a href="${ctx }/info/gonggao" class="headBar" id="collocation">最新资讯</a>
49 </li> 48 </li>
50 49
51 <li> 50 <li>
...@@ -134,8 +133,14 @@ ...@@ -134,8 +133,14 @@
134 $("#collocation").siblings().show() 133 $("#collocation").siblings().show()
135 } 134 }
136 }else if(arr[3]=='info'){ 135 }else if(arr[3]=='info'){
137 - $("#message").addClass("headBar-seleced").siblings().removeClass("headBar-seleced"); 136 + if(arr[4].split('?')[0]=='gonggao2'){
138 - $("#message").siblings().show() 137 + $("#message").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
138 + $("#message").siblings().show()
139 + }else{
140 + $("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
141 + $("#collocation").siblings().show()
142 + }
143 +
139 }else if(arr[3]=='user'){ 144 }else if(arr[3]=='user'){
140 if(arr[4].split('?')[0]=='entrust'){ 145 if(arr[4].split('?')[0]=='entrust'){
141 $("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced"); 146 $("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
......
1 +<?xml version="1.0" encoding="UTF-8" ?>
2 +<%@ page language="java" contentType="text/html; charset=UTF-8"
3 + pageEncoding="UTF-8"%>
4 +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
5 +<%
6 + Cookie[] cookies = request.getCookies();
7 + String userName="";
8 + if (cookies!=null&&cookies.length > 0) {
9 + for (int i = 0; i < cookies.length; i++) {
10 + Cookie cookie = cookies[i];
11 + if(cookie.getName().equals("userName")){
12 + userName=cookie.getValue();
13 + }
14 + }
15 + }
16 +%>
17 +<c:set var="ctx" value="${pageContext.request.contextPath}" />
18 +<div class="header_box">
19 + <div class="sbox">
20 + <span class="top_header_box">
21 + <c:if test="${sessionScope.USER_INFO == null }">
22 + <a href="${ctx }/login" class="wtr">登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;
23 + <a href="${ctx }/register" class="wtr">注册</a>&nbsp;&nbsp;|&nbsp;&nbsp;
24 + </c:if>
25 + <c:if test="${sessionScope.USER_INFO != null }">
26 + <a class="wtr">欢迎你,${sessionScope.USER_INFO.client_name }</a>&nbsp;&nbsp;|&nbsp;&nbsp;
27 + <a href="${ctx }/user/balance" class="wtr">进入会员中心</a>&nbsp;&nbsp;|&nbsp;&nbsp;
28 + <a href="${ctx }/loginout" class="wtr">退出登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;
29 +
30 + </c:if>
31 + <a class="kefu-line">Tel:400-969-0800</a>
32 +
33 + </span>
34 + </div>
35 + </div>
36 + <div class="sbox">
37 + <div class="menubox">
38 +
39 + <ul id="navbar">
40 + <li>
41 + <a href="${ctx }/" class="headBar " id="homePage">首页</a>
42 + </li>
43 + <li>
44 + <a href="${ctx }/info/gonggao?type=0" class="headBar" id="message">资讯</a>
45 + </li>
46 + <li>
47 + <a href="#" class="headBar" id="collocation">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
48 + </li>
49 +
50 + <li>
51 + <a href="#" class="headBar" id="recordList">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
52 + </li>
53 + <div style="clear:both;"></div>
54 + <!--
55 + <li><a href="${ctx }/trade/articles?cid=13" class="red" id="collocation">托管</a>
56 + </li>
57 + <li><a href="${ctx }/trade/info" class="red" id="deal">交易</a>
58 + </li>
59 + <li><a href="${ctx }/info/gonggao" class="red" id="message">资讯</a>
60 + </li>
61 + <li><a href="${ctx }/help/searchArticle?categoryId=36&id=216" class="red" id="help">帮助</a>
62 + </li>
63 + <li><a href="${ctx }/down/toDownLoad" class="red" id="downLoad">下载</a></li> -->
64 + </ul>
65 + </div>
66 + </div>
67 + </div>
68 +
69 +
70 + <!--登陆-->
71 + <div id="loginModal" class="loginbox" style="display:none">
72 + <div class="logintit">登录</div>
73 + <a href="javascript:ajaxLogin.closeLogin()" id="loginModalClose" class="close">×</a>
74 + <div class="logincon">
75 + <form id="login-form2" action="${ctx }/login" method="post">
76 + <div class="inputs">
77 + <div class="nameyh">账号
78 + <input id="username2" placeholder="会员号/手机号" name="username" type="text" class="input0" maxlength="18" value="<%=userName %>" />
79 + <span class="errortip" id="tip-username2" ></span>
80 + </div>
81 + <div class="password">密码
82 + <input type="password" name="password" id="password2" class="input1" maxlength="8" />
83 + <span class="errortip" id="tip-password2"></span>
84 + </div>
85 + <!-- <div class="yanzheng">验证码
86 + <input name="code" id="code2" type="text" class="input0" maxlength="4" />
87 + <img id="imgCaptcha2" alt="验证码" style="vertical-align:middle" src=""
88 + width="70px;" height="27px;" border="1" id="validaCode" />
89 + <a href="javascript:changeCaptcha2()" class="blues">看不清,换一张</a>
90 + <span class="errortip" id="tip-code2"></span>
91 + </div> -->
92 +
93 + <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>
94 + <span class="errortip" id="tip-login-agree" ></span>
95 + </div>
96 + </div>
97 + <div class="loginenter">
98 + <div class="juli"><label><input name="remberme" type="checkbox" value="remberme" id="remberme"
99 + <%if(!"".equals(userName)) {%>checked="checked" <%} %>
100 + /> &nbsp;记住会员号</label></div>
101 + <a href="#" id="ajaxLogin" class="btnw loginbtn">登录</a>
102 + <div class="xiaozi">还不是赵涌牛会员?<a href="${ctx }/register" class="blues">立即注册</a></div>
103 +
104 + </div>
105 + </form>
106 + </div>
107 + </div>
108 +
109 +<script type="text/javascript">
110 + $(function(){
111 + var url=window.location.href;
112 + var arr= url.split('/');
113 + if(arr[3]==''){
114 + $("#homePage").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
115 + $("#homePage").siblings().show()
116 + }else if(arr[3]=='entrust'){
117 + if(arr[4]=='list'||arr[4]=='data'||arr[4].split('?')[0]=='info'){
118 + $("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
119 + $("#collocation").siblings().show()
120 + }else if(arr[4]=='record' ){
121 + $("#recordList").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
122 + $("#recordList").siblings().show()
123 + }else{
124 + $("#deal").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
125 + $("#deal").siblings().show()
126 + }
127 + }else if(arr[3]=='trade'){
128 + if(arr[4].split('?')[0]=='article'){
129 + $("#message").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
130 + $("#message").siblings().show()
131 + }else{
132 + $("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
133 + $("#collocation").siblings().show()
134 + }
135 + }else if(arr[3]=='info'){
136 + $("#message").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
137 + $("#message").siblings().show()
138 + }else if(arr[3]=='user'){
139 + if(arr[4].split('?')[0]=='entrust'){
140 + $("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
141 + $("#collocation").siblings().show()
142 + }else if(arr[4].split('?')[0]=='attention'){
143 + $("#deal").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
144 + $("#deal").siblings().show()
145 + }
146 + }else if(arr[3]=='ec'){
147 + $("#deal").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
148 + $("#deal").siblings().show()
149 + }
150 +
151 +
152 + })
153 +</script>
...\ No newline at end of file ...\ No newline at end of file
1 +<?xml version="1.0" encoding="UTF-8" ?>
2 +<%@ page language="java" contentType="text/html; charset=UTF-8"
3 + pageEncoding="UTF-8"%>
4 +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
5 +<%
6 + Cookie[] cookies = request.getCookies();
7 + String userName="";
8 + if (cookies!=null&&cookies.length > 0) {
9 + for (int i = 0; i < cookies.length; i++) {
10 + Cookie cookie = cookies[i];
11 + if(cookie.getName().equals("userName")){
12 + userName=cookie.getValue();
13 + }
14 + }
15 + }
16 +%>
17 +<c:set var="ctx" value="${pageContext.request.contextPath}" />
18 +<div class="header_box">
19 + <div class="sbox">
20 + <span class="top_header_box">
21 + <c:if test="${sessionScope.USER_INFO == null }">
22 + <a href="${ctx }/login" class="wtr">登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;
23 + <a href="${ctx }/register" class="wtr">注册</a>&nbsp;&nbsp;|&nbsp;&nbsp;
24 + </c:if>
25 + <c:if test="${sessionScope.USER_INFO != null }">
26 + <a class="wtr">欢迎你,${sessionScope.USER_INFO.client_name }</a>&nbsp;&nbsp;|&nbsp;&nbsp;
27 + <a href="${ctx }/user/balance" class="wtr">进入会员中心</a>&nbsp;&nbsp;|&nbsp;&nbsp;
28 + <a href="${ctx }/loginout" class="wtr">退出登录</a>&nbsp;&nbsp;|&nbsp;&nbsp;
29 +
30 + </c:if>
31 + <a class="kefu-line">Tel:400-969-0800</a>
32 +
33 + </span>
34 + </div>
35 + </div>
36 + <div class="sbox">
37 + <div class="menubox">
38 +
39 + <ul id="navbar">
40 + <%-- <li>
41 + <a href="${ctx }/" class="headBar " id="homePage">首页</a>
42 + </li>
43 +--%>
44 + <li>
45 + <a href="#" class="headBar" id="recordList">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</a>
46 + </li>
47 + <div style="clear:both;"></div>
48 + <!--
49 + <li><a href="${ctx }/trade/articles?cid=13" class="red" id="collocation">托管</a>
50 + </li>
51 + <li><a href="${ctx }/trade/info" class="red" id="deal">交易</a>
52 + </li>
53 + <li><a href="${ctx }/info/gonggao" class="red" id="message">资讯</a>
54 + </li>
55 + <li><a href="${ctx }/help/searchArticle?categoryId=36&id=216" class="red" id="help">帮助</a>
56 + </li>
57 + <li><a href="${ctx }/down/toDownLoad" class="red" id="downLoad">下载</a></li> -->
58 + </ul>
59 + </div>
60 + </div>
61 + </div>
62 +
63 +
64 + <!--登陆-->
65 + <div id="loginModal" class="loginbox" style="display:none">
66 + <div class="logintit">登录</div>
67 + <a href="javascript:ajaxLogin.closeLogin()" id="loginModalClose" class="close">×</a>
68 + <div class="logincon">
69 + <form id="login-form2" action="${ctx }/login" method="post">
70 + <div class="inputs">
71 + <div class="nameyh">账号
72 + <input id="username2" placeholder="会员号/手机号" name="username" type="text" class="input0" maxlength="18" value="<%=userName %>" />
73 + <span class="errortip" id="tip-username2" ></span>
74 + </div>
75 + <div class="password">密码
76 + <input type="password" name="password" id="password2" class="input1" maxlength="8" />
77 + <span class="errortip" id="tip-password2"></span>
78 + </div>
79 + <!-- <div class="yanzheng">验证码
80 + <input name="code" id="code2" type="text" class="input0" maxlength="4" />
81 + <img id="imgCaptcha2" alt="验证码" style="vertical-align:middle" src=""
82 + width="70px;" height="27px;" border="1" id="validaCode" />
83 + <a href="javascript:changeCaptcha2()" class="blues">看不清,换一张</a>
84 + <span class="errortip" id="tip-code2"></span>
85 + </div> -->
86 +
87 + <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>
88 + <span class="errortip" id="tip-login-agree" ></span>
89 + </div>
90 + </div>
91 + <div class="loginenter">
92 + <div class="juli"><label><input name="remberme" type="checkbox" value="remberme" id="remberme"
93 + <%if(!"".equals(userName)) {%>checked="checked" <%} %>
94 + /> &nbsp;记住会员号</label></div>
95 + <a href="#" id="ajaxLogin" class="btnw loginbtn">登录</a>
96 + <div class="xiaozi">还不是赵涌牛会员?<a href="${ctx }/register" class="blues">立即注册</a></div>
97 +
98 + </div>
99 + </form>
100 + </div>
101 + </div>
102 +
103 +<script type="text/javascript">
104 + $(function(){
105 + var url=window.location.href;
106 + var arr= url.split('/');
107 + if(arr[3]==''){
108 + $("#homePage").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
109 + $("#homePage").siblings().show()
110 + }else if(arr[3]=='entrust'){
111 + if(arr[4]=='list'||arr[4]=='data'||arr[4].split('?')[0]=='info'){
112 + $("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
113 + $("#collocation").siblings().show()
114 + }else if(arr[4]=='record' ){
115 + $("#recordList").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
116 + $("#recordList").siblings().show()
117 + }else{
118 + $("#deal").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
119 + $("#deal").siblings().show()
120 + }
121 + }else if(arr[3]=='trade'){
122 + if(arr[4].split('?')[0]=='article'){
123 + $("#message").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
124 + $("#message").siblings().show()
125 + }else{
126 + $("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
127 + $("#collocation").siblings().show()
128 + }
129 + }else if(arr[3]=='info'){
130 + if(arr[4].split('?')[0]=='gonggao2'){
131 + $("#message").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
132 + $("#message").siblings().show()
133 + }else{
134 + $("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
135 + $("#collocation").siblings().show()
136 + }
137 +
138 + }else if(arr[3]=='user'){
139 + if(arr[4].split('?')[0]=='entrust'){
140 + $("#collocation").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
141 + $("#collocation").siblings().show()
142 + }else if(arr[4].split('?')[0]=='attention'){
143 + $("#deal").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
144 + $("#deal").siblings().show()
145 + }
146 + }else if(arr[3]=='ec'){
147 + $("#deal").addClass("headBar-seleced").siblings().removeClass("headBar-seleced");
148 + $("#deal").siblings().show()
149 + }
150 +
151 +
152 + })
153 +</script>
...\ No newline at end of file ...\ No newline at end of file
...@@ -24,13 +24,12 @@ ...@@ -24,13 +24,12 @@
24 </head> 24 </head>
25 25
26 <body> 26 <body>
27 - <jsp:include page="${ctx}/view/common/header.jsp" /> 27 + <jsp:include page="${ctx}/view/common/header2.jsp" />
28 <div class="bigbox"> 28 <div class="bigbox">
29 - <h2>资讯</h2> 29 + <%--<h2>资讯</h2>--%>
30 <div class="crossline"></div> 30 <div class="crossline"></div>
31 <ul class="tab"> 31 <ul class="tab">
32 <li class="selected"><a href="${ctx }/info/gonggao">公告通知</a></li> 32 <li class="selected"><a href="${ctx }/info/gonggao">公告通知</a></li>
33 - <li><a href="${ctx }/info/news">新闻动态</a></li>
34 </ul> 33 </ul>
35 <div class="clear"></div> 34 <div class="clear"></div>
36 <div id="notice" class="tglist"> 35 <div id="notice" class="tglist">
......
1 +<?xml version="1.0" encoding="UTF-8" ?>
2 +<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
3 +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
4 +<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
5 +<c:set var="ctx" value="${pageContext.request.contextPath}" />
6 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
7 +<html xmlns="http://www.w3.org/1999/xhtml">
8 +<head>
9 + <jsp:include page="${ctx }/view/common/meta.jsp" />
10 + <link href="${ctx }/resource/css/detail.css" rel="stylesheet" type="text/css" />
11 + <link href="${ctx }/resource/css/entrust.css" rel="stylesheet" type="text/css" />
12 + <link href="${ctx }/resource/js/utils/page/page.css" rel="stylesheet" type="text/css" />
13 + <script src="${ctx}/resource/js/utils/page/query.js"></script>
14 + <script src="${ctx}/resource/js/utils/page/page.js"></script>
15 + <script type="text/javascript">
16 + $(function() {
17 + $('#pageToolbar').Paging({pagesize: '${params._limit }', count: '${params._total}',
18 + toolbar:true, current: Number('${params._page}'), callback:function(page, size, count) {
19 + window.location.href = '${ctx }/info/gonggao?_page=' + page + '&_limit=' + size;
20 + }});
21 + });
22 + $("#message").css("color","#f00");
23 + </script>
24 +</head>
25 +
26 +<body>
27 + <jsp:include page="${ctx}/view/common/header2.jsp" />
28 + <div class="bigbox">
29 + <%--<h2>资讯</h2>--%>
30 + <div class="crossline"></div>
31 + <ul class="tab">
32 + <li class="selected"><a href="${ctx }/info/gonggao2">公告通知</a></li>
33 + </ul>
34 + <div class="clear"></div>
35 + <div id="notice" class="tglist">
36 + <ul>
37 + <c:forEach items="${gonggao}" var="gg">
38 + <li>
39 + <a href="/trade/article?id=${gg.id}&cid=${cid}"> ${gg.title}
40 + <span><fmt:formatDate value="${gg.sortTime}" pattern="yyyy-MM-dd" /></span></a>
41 + </li>
42 + </c:forEach>
43 + </ul>
44 + </div>
45 + <div id="pageToolbar"></div>
46 + <div class="clear"></div>
47 + </div>
48 + <jsp:include page="${ctx}/view/common/bottom.jsp" />
49 +</body>
50 +</html>
...\ No newline at end of file ...\ No newline at end of file
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
28 </script> 28 </script>
29 </head> 29 </head>
30 <body> 30 <body>
31 - <jsp:include page="${ctx }/view/common/header.jsp" /> 31 + <jsp:include page="${ctx }/view/common/header1.jsp" />
32 32
33 <div class="loginbox"> 33 <div class="loginbox">
34 <div class="logintit">登录</div> 34 <div class="logintit">登录</div>
...@@ -62,10 +62,6 @@ ...@@ -62,10 +62,6 @@
62 checked="checked" <%}%> id="remberme" /> &nbsp;记住会员号</label> 62 checked="checked" <%}%> id="remberme" /> &nbsp;记住会员号</label>
63 </div> 63 </div>
64 <a href="#" id="doLogin" class="btnw loginbtn">登录</a> 64 <a href="#" id="doLogin" class="btnw loginbtn">登录</a>
65 - <div class="xiaozi">
66 - 还不是赵涌牛会员?<a href="${ctx }/register" class="blues">立即注册</a> &nbsp;&nbsp;&nbsp;
67 - <a href="${ctx }/resetPassword" class="blues">找回密码</a>
68 - </div>
69 </div> 65 </div>
70 <input type="hidden" name="referer" value="${referer }" /> 66 <input type="hidden" name="referer" value="${referer }" />
71 </form> 67 </form>
......