前台模块--首页

一、今日完成任务

首页架构的布局

二、核心代码

 

<%--banner--%>
    <table border="0" cellspacing="0" cellpadding="0" width="1008" align="center" height="100">
        <tbody>
            <tr>
                <td  style="width:1008px">             
                    <img src="images/topbg.jpg" style="width:100%; height:150px;"/>
                </td>
            </tr>
        </tbody>
    </table>

    <%--导航--%>
    <form action="/b2csys/search.jsp" method="post">
        <table border="0" cellspacing="0" cellpadding="0" width="1008" align="center">
            <tbody>
                <tr>
                    <td width="7"><img src="files/me.jpg" width="7" height="35"/></td>
                    <td background="files/me1.jpg" width="1000" align="right">
                        <table class="meun" border="0" cellspacing="0" cellpadding="0" width="96%" align="center">
                            <tbody>
                                <tr>
                                    <td width="80" align="middle"><a href="index.jsp">首页</a> </td>
                                    <td align="middle"><img src="files/me2.jpg" width="2" height="28"/></td>
                                    <td width="90" align="middle"><a href="/b2csys/notices.jsp">新闻公告</a></td>
                                    <td align="middle"><img src="files/me2.jpg" width="2" height="28"/></td>
                                    <td width="90" align="middle"><a href="/b2csys/productmore.jsp">车票查询</a></td>
                                    <td align="middle"><img src="files/me2.jpg" width="2" height="28"/></td>
                                    <td width="90" align="middle"><a href="/b2csys/otherinfo.jsp">其它信息</a></td>
                                    <td align="middle"><img src="files/me2.jpg" width="2" height ="28"/></td>
                                    <td width="90" align="middle"><a href="/b2csys/msg.jsp">留言交流</a></td>
                                    <td align="middle"><img src="files/me2.jpg" width="2" height="28"/></td>
                                    <td width="110" align="middle">
                                        <input type="text" id="field2" name="field2" size="3" value="起始"/>
                                        -
                                        <input type="text" id="field3" name="field3" size="3" value="终点"/>
                                    </td>
                                    <td align="middle"><img src="files/me2.jpg" width="2" height="28"/></td>
                                    <td width="90" align="middle">&nbsp;<input type="submit" value="搜索"/>&nbsp;
                                    </td>
                                </tr>
                            </tbody>
                        </table>
                    </td>
                    <td width="7"><img src="files/me3.jpg" width="7" height="35"/></td>
                </tr>
            </tbody>
        </table>
    </form>


    <table border="0" cellspacing="0" cellpadding="0" width="1008" align="center">
        <tr>
            <td>
                <div align="right">
                    <% if(Session["username"].ToString() == "")
                       {%>
                            <a href="/b2csys/login.jsp"><span style="color:#000000">登陆</span></a>&nbsp;&nbsp;&nbsp;
                            <a href="/b2csys/register.jsp"><span style="color:#000000">注册帐号</span></a>&nbsp;&nbsp;&nbsp; 
                       <% }
                        else
                        { %>
            会员: &nbsp;&nbsp;&nbsp; 
            <a href="/b2csys/orders.jsp"><font color="#000000">我的订单</font></a>&nbsp;&nbsp;&nbsp; 
            <a href="/b2csys/car.jsp"><font color="#000000">待确认订单</font></a>&nbsp;&nbsp;&nbsp; 
            <a href="/b2csys/memberinfo.jsp"><font color="#000000">个人信息</font></a>&nbsp;&nbsp;&nbsp; 
            <a href="memberExit.action"><font color="#000000">安全退出</font></a>&nbsp;&nbsp;&nbsp; 
            <% } %>
                </div>
            </td>
        </tr>
    </table>

 

posted @ 2020-07-24 18:05  小花娟  阅读(191)  评论(0编辑  收藏  举报