daima

来源:互联网 发布:三星s7清除电池数据 编辑:程序博客网 时间:2024/05/06 04:09

common

header.jsp

<%@page contentType="text/html;charset=utf-8" %>
<link href="../css/header.css" rel="stylesheet" type="text/css" />
<div class="head_container">
 <div class="head_welcome">
  <div class="head_welcome_right">
   <span class="head_welcome_text"> </span>
   <span class="head_welcome_text">
     <span class="little_n">
     <a href="../main/main.jsp" name="myspace" class="head_black12a">我的空间</a> |
     <a href="#" name="helpcenter" class="head_black12a" target="_blank">帮助</a>|
   </span>
   </span>
   <div class="">
    <a href="#"></a>
   </div>
  </div>
  <span class="head_toutext" id="logininfo">
  <b>您好,欢迎光临校园二手市场交易系统</b>
  [&nbsp;<a href="../user/logout.action" class="b">退出</a>&nbsp;]
  [&nbsp;<a href="../user/login.jsp" class="b">登录</a>|<a
   href="../user/register.jsp" class="b">注册</a>&nbsp;]
  </span>
 </div>
 <div class="head_head_list">
  <div class="head_head_list_left">
   <span class="head_logo"><a href="#" name="backtobook"><img
      src="../images/logo.jpg" /> </a> </span>
  </div>
  <div class="head_head_list_right">

   <div class="head_head_list_right_b">
   </div>
  </div>
 </div>
 <div class="head_search_div">

 </div>
 <div class="head_search_bg"></div>
</div>

 

footer.jsp

<%@page contentType="text/html;charset=utf-8"%>
<link href="../css/public_footer.css" rel="stylesheet" type="text/css" />
<div class="public_footer">
 <div class="public_footer_bottom">
  <div class="public_footer_icp" style="line-height: 48px;">
   Copyright (C) 校园二手市场交易系统 2013, All Rights Reserved
  </div>
 </div>
</div>

login.jsp

<%@page contentType="text/html;charset=utf-8"%>
<!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>
  <title>登录 - 校园二手市场交易系统</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <link href="../css/login.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="../js/jquery.js"></script>
  <script type="text/javascript">
   function checkLogin(){
    var email=$("#txtUsername").val();
    var pwd=$("#txtPassword").val();
    $("#msg").text("");
    if(!email||!pwd){
      $("#msg").text("用户名或密码不能为空");
      return false;
    }
    return true;
   }
  </script>
 </head>
 <body>
  <%@include file="../common/header.jsp"%>
  <div class="enter_part">

   <%@include file="../common/introduce.jsp"%>

   <div class="enter_in">
    <div class="bj_top"></div>
    <div class="center">
     <div style="height: 30px; padding: 5px; color: red" id="divErrorMssage">
     
     </div>
     <div class="main">
      <h3>
       登录校园二手市场交易系统
      </h3>

      <form method="post" action="<%=request.getContextPath()%>/user/login" id="ctl00" onsubmit="return checkLogin();">
       <ul>
        <li>
         <span>请输入用户名:  </span>
         <input type="text" name="name" id="txtUsername" class="textbox" />
        </li>
        <li>
         <span class="blank">密码:</span>
         <input type="password" name="password" id="txtPassword"
          class="textbox" />
        </li>
        <li>
         <input type="submit" id="btnSignCheck" class="button_enter"
          value="登 录" />
        </li>
        <li>
         <span id="msg" style="color:red">
         </span>
        
        </li>
        
       </ul>
       <input type="hidden" name="uri" value="${uri}" />
      </form>
     </div>
     <div class="user_new">
      <p>
       您还没有注册?
      </p>
      <p class="set_up">
       <a href="../user/register.jsp">创建一个新用户&gt;&gt;</a>
      </p>
     </div>
    </div>
   </div>
  </div>
  <%@include file="../common/footer.jsp"%>

 </body>
</html>

 

<%@page contentType="text/html;charset=utf-8" %>

<!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>
  <title>校园二手市场交易系统 </title>
  <link href="../css/main.css" rel="stylesheet" type="text/css" />
  <link href="../css/second.css" rel="stylesheet" type="text/css" />
  <link href="../css/secBook_Show.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript"
           src="../js/jquery-1.4.3.js"></script>
     <script type="text/javascript">
      
      //$(function(){//发送Ajax请求,加载new.jsp信息
      // $("#new").html("内容正在加载中......");
      // $("#new").load("/dangdang/main/findnew.action");
      //});
      //$(function(){//发送Ajax请求,加载new.jsp信息
      // $("#left").html("内容正在加载中......");
      // $("#left").load("/dangdang/main/findcategory.action");
      //});
      
      $(function(){
    $("#left").html("<img src='../images/window_loading.gif'>正在加载中");
    $("#left").load("../main/findcategory");
    $("#recommend").html("<img src='../images/window_loading.gif'>正在加载中");
    $("#recommend").load("../main/findrecommend");
    $("#hot").html("<img src='../images/window_loading.gif'>正在加载中");
    $("#hot").load("../main/findhot");
    $("#new").html("<img src='../images/window_loading.gif'>正在加载中");
    $("#new").load("../main/findnew");
    $(".dot_r").html("<img src='../images/window_loading.gif'>正在加载中");
    $(".dot_r").load("../main/findrank");
   });
     </script>
 </head>
 
 <body>
  &nbsp;
  <!-- 头部开始 -->
  <%@include file="../common/header.jsp"%>
  <!-- 头部结束 -->
  <%@include file="../common/nav.jsp"%>
  <div style="width: 962px; margin: auto;">
   <a href="#" target="_blank">  </a>
  </div>
  <div class="book">
   <!--左栏开始-->
   <div id="left" class="book_left">
   新闻公告
   </div>
   <!--左栏结束-->

   <!--中栏开始-->
   <div class="book_center">

    <!--推荐商品开始-->
    <div class=second_c_border1 id="recommend">
    最好是以图片的形式滚动
    </div>

    <!--推荐商品结束-->

    <!--热销商品开始-->
    <div class="book_c_border2" id="hot">
    将商品以列表的形式显示
    </div>
    <!--热销商品结束-->

    <!--留言评价开始-->
    <div class="book_c_border2" id="new">
    留言
    </div>

    <!--留言结束-->

    <div class="clear">
    </div>
   </div>
   <!--中栏结束-->

 

   <!--右栏开始-->
   <div class="book_right">
    <div class="book_r_border2" id="__XinShuReMai">
     <div class="book_r_b2_1x" id="new_bang">
      <h2 class="t_xsrm">
       商品求购栏
      </h2>
      <div id="NewProduct_1_o_t" onmouseover="">
       <h3 class="second">
        <span class="dot_r"> </span><a href="#" target="_blank">更多&gt;&gt;</a>
       </h3>
      </div>
     </div>
    </div>
   </div>
   <!--右栏结束-->
   <div class="clear"></div>
  </div>

  <!--页尾开始 -->
  <%@include file="../common/footer.jsp"%>
  <!--页尾结束 -->
 </body>
</html>

 

 

 

 

原创粉丝点击