结组作业,第二次冲刺(10)

今天是第二次冲刺的最后一天,项目整体已经基本完成了,对比第一阶段新添加了很多功能,这些功能都挺重要的,今天是收尾工作,对项目整体外观进行美化,加一些超链接,版权信息等,以下为今日部分代码:

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="ck" uri="http://com.work/common"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" /> 
<!DOCTYPE html>
<html>
<head>
    <title>公共头部</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/pc/css/common.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/pc/css/header.css">
</head>
<body>
    <div class="top">
        <div class="top_zhong">
            <div class="top_zhong_le">
                <p>${systemUpset.welcomText}</p>
            </div>
            <div class="top_zhong_ri"> 
                <c:if test="${pcUser == null}">
                    <ul class="top_zhong_ul01">
                        <li><a href="${ctx}/pc/index/goMailbox.action" class="a_ping" target="_self"><span class="span_ping">平台信箱</span></a></li>
                        <li><a href="${ctx}/pc/login/goLogin.action" class="a_deng"><span class="span_deng" align="right">登录</span></a></li>
                        <li><span class="span_xian"></span><a href="${ctx}/pc/login/goRegister.action" class="a_zhu"><span class="span_zhu">注册</span></a></li>
                    </ul>
                </c:if>
                <c:if test="${pcUser != null}">
                    <ul class="top_zhong_ul02">
                        <li><a href="${ctx}/pc/index/goMailbox.action" class="a_ping" target="_self"><span class="span_ping">平台信箱</span></a></li>
                        <li>
                            <a href="#" class="a_deng">
                                <span class="span_deng" align="right">${pcUser.nickName}</span>
                            </a>
                            <ul class="top_zhong_ul03">
                                <li><a href="${ctx}/pc/personal/goPersonal.action"><span class="span_ul031" align="center">个人中心</span></a></li>
                                <li><a href="${ctx}/pc/index/goPublishWork.action" target="_self"><span class="span_ul032" align="center">发布兼职</span></a></li>
                                <li><a href=""><span class="span_ul034" align="center">退出登录</span></a></li>
                            </ul>
                        </li>
                        <li>
                            <span class="span_xian"></span>
                            <span class="span_tou">
                                <img src="${pcUser.headerImage}" width="26" height="26">
                            </span>
                        </li>
                    </ul>
                </c:if> 
            </div>
        </div>
    </div>
    <div class="daohang" id="daohang">
        <div class="daohang_zhong">
            <div class="daohang_logo">
                <div class="daohang_logo01">
                    <a href="${ctx}/pc/index/goIndex.action" title="平台首页" target="_parent"><img src="${systemUpset.companyLogo}" width="200" height="60"></a>
                </div>
            </div>
            
            <div class="daohang_daohang">
                <ul>
                    <li><a href="${ctx}/pc/index/goForum.action" class="a_lun" target="_parent"><span class="span_lun">论坛交流</span></a></li>
                    <li><a href="${ctx}/pc/personal/goPersonal.action" class="a_ge" target="_parent"><span class="span_ge">个人中心</span></a></li>
                    <li><a href="${ctx}/pc/index/goNotice.action" class="a_tai" target="_parent"><span class="span_tai">平台公告</span></a></li>
                </ul>
            </div>
        </div>
    </div>
    <script type="text/javascript" src="${ctx}/pc/js/jquery-1.11.1.min.js"></script>
    <script type="text/javascript">
    //导航置顶判断begin
    $(window).scroll(function(){
        if($(document).scrollTop()>=40){
            $("#daohang").addClass("daohang_1").removeClass("daohang");
            $(".div_forum").css("margin-top",100);
        }
        else{
            $("#daohang").addClass("daohang").removeClass("daohang_1");
            $(".div_forum").css("margin-top",0);
        }
    })
    
    //退出登录
    $(".span_ul034").click(function(){
        var tf=confirm("确定退出登录吗?");
        if(tf==true){
            $.ajax({
                type: "POST",
                url: "${ctx}/pc/login/outLogin.action",
                data: {},
                success: function(res) {
                    if (res.code == 0) {
                        window.location.href="${ctx}/pc/index/goIndex.action";
                    } else {
                        alert(res.msg);
                    }
                },
                error: function(res) {
                    alert("网络错误");
                }
            });
        }
    });
    </script>
</body>
</html>

 

 

<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    
<div class="top">
    <div class="top_zhong">
        <div class="top_zhong_le">
            <p>大学生校园兼职平台—论坛!</p>
        </div>
        <div class="top_zhong_ri">
            <c:if test="${empty sessionScope.u_id}">
                <ul class="top_zhong_ul01">
                    <li><a href="${pageContext.request.contextPath}/mailbox.action" class="a_ping" target="_self"><span class="span_ping">平台信箱</span></a></li>
                    <li><a href="${pageContext.request.contextPath}/login.action" class="a_deng"><span class="span_deng" align="right">登录</span></a></li>
                    <li><span class="span_xian"></span><a href="${pageContext.request.contextPath}/register.action" class="a_zhu"><span class="span_zhu">注册</span></a></li>
                </ul>
            </c:if>
            <c:if test="${not empty sessionScope.u_id}">
                <ul class="top_zhong_ul02">
                    <li><a href="${pageContext.request.contextPath}/mailbox.action" class="a_ping" target="_self"><span class="span_ping">平台信箱</span></a></li>
                    <li>
                        <a href="#" class="a_deng">
                            <span class="span_deng" align="right">${sessionScope.real_name}</span>
                        </a>
                        <ul class="top_zhong_ul03">
                            <li><a href="${pageContext.request.contextPath}/personalCentre.action"><span class="span_ul031" align="center">个人中心</span></a></li>
                            <li><a href="${pageContext.request.contextPath}/publishWork.action" target="_self"><span class="span_ul032" align="center">发布兼职</span></a></li>
                            <li><span class="span_ul033" align="center">注销账号</span></li>
                            <li><span class="span_ul034" align="center">退出登录</span></li>
                        </ul>
                    </li>
                    <li>
                        <span class="span_xian"></span>
                        <span class="span_tou">
                            <img src="/findUserImage.action?fileName=${sessionScope.headportrait}" width="26" height="26">
                        </span>
                        <span class="span_fu">
                            <img src="${pageContext.request.contextPath}/images/fugai.png" width="26" height="26">
                        </span>
                    </li>
                </ul>
            </c:if>
        </div>
    </div>
</div>
<div class="daohang" id="daohang">
    <div class="daohang_zhong">
        <div class="daohang_logo">
            <div class="daohang_logo01">
                <a href="${pageContext.request.contextPath}/index.action" title="平台首页"><img src="${pageContext.request.contextPath}/images/logo.png" width="200" height="60"></a>
            </div>
        </div>
        
        <div class="daohang_daohang">
            <ul>
                <li><a href="${pageContext.request.contextPath}/forum.action" class="a_lun"><span class="span_lun">论坛交流</span></a></li>
                <li><a href="${pageContext.request.contextPath}/personalCentre.action" class="a_ge"><span class="span_ge">个人中心</span></a></li>
                <li><a href="${pageContext.request.contextPath}/notice.action" class="a_tai"><span class="span_tai">平台公告</span></a></li>
            </ul>
        </div>
    </div>
</div>

 

 

 

<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="ck" uri="http://com.work/common"%>
<c:set var="ctx" value="${pageContext.request.contextPath}" /> 
<!DOCTYPE html>
<html>
<head>
    <title>公共尾部</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/pc/css/common.css">
    <link rel="stylesheet" type="text/css" href="${ctx}/pc/css/footer.css">
</head>
<body>
    <div class="banquan">
        <div class="banquan_zhong">


            <ul class="ul_banquan_3">
                <li class="li_banquan">联系我们</li>
                <li class="li_banquan01">地址:${systemUpset.companyAddres}</li>
                <li class="li_banquan02">客服电话:${systemUpset.phone}</li>
                <li class="li_banquan02">客服QQ:${systemUpset.qq}</li>
            </ul><ul class="ul_banquan_4">
                <li class="li_banquan" ><a href="${ctx}/manager/login/goServerLogin.action" style="color: #bb0000">${systemUpset.company}  后台登录</a></li>
            </ul>
        </div>
    </div>
</body>
</html>

 

posted @ 2024-06-16 11:56  Code13  阅读(3)  评论(0编辑  收藏  举报