Learn to leave a message with Me (ii)

Source: Internet
Author: User
The last time we have the message of the function, database, files are designed, but also wrote the main file index.asp inside the structure, now
We then proceed to the page design.
Page design is mainly designed to design the style of the Web page, in addition to CSS (the last time has been designed), but also how to arrange the content to display. This one
The main part is to design a table that displays a single record, and a form in a Web page. Arrange the content to be displayed, and write the form check script.
Just fine. The code is as follows, and the other parts are unchanged. Note: When designing the page, we also determine the variables.
Output page Title part:
<title><%=name& "message book"%></title>

In the header section of the output page, we identified a program variable name that represents the name of the message.

Output navigation bar part:
<table cellspacing=0 cellpadding=1 width=650 align=center bgcolor= #000000 border=0>
<TBODY>
<TR>
<TD>
<table class=table002 cellspacing=0 cellpadding=4 width=650 border=0>
<TBODY>
<TR>
&LT;TD class=jnfont5 valign=center align=left><b>>> </B>
<a href= "<%=homepage%>" title= back Home > Home </A> |
<a href= "index.asp?action=showmodify" title= Edit your profile > Modify your profile </A> |
<%if session ("lybmanage") = "" Then%>
<a href= "Index.asp?action=manage" title= reply or delete message > message management </A>
<%else%>
<a href= "Index.asp?action=logout" title= Exit Management Mode > Exit Management </a>
<%end if%>
</TD>
&LT;TD class=jnfont5 valign=center align=right><%=name& "message book"%></td>
</TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<br>

In the navigation section, we identified a session variable "Lybmanage" to determine whether to log in;
Also determine three parameters passed: Manage and logout to sign in and out of login;
Showmodify Display Edit message information
Also determine a program variable: Homepage represents a link to the home page.

Referencing bottom.htm
<!--#include file= "bottom.htm"-->



' Show Message Records
<table cellspacing=1 cellpadding=3 width=650 bgcolor= #000000 >
<TBODY>
<tr bgcolor= #ffffff >
&LT;TD class=table001 valign=top width=120 rowspan=2>
<CENTER>
<table class=jnfont7>
<font color= #ffffff > name </FONT> <TBODY></TBODY>
</TABLE>
<BR>
From-place
</CENTER>
</TD>
&LT;TD class=table002 style= "Word-break:break-all" Valign=top width=530
<table cellspacing=0 cellpadding=0 width= "100%" border= "0" >
<TR>
&LT;TD width=26></td>
<TD> Message content:
<a title= "letter to XXX" href= "Mailto:xxx's Mailbox" >
mailbox </A>
<a title= "access to XXX's home page" href= "Target=_blank >
home </a>
<a title= "xxx qq number: XXX"
href= "Http://search.tencent.com/cgi-bin/friend/user_show_info?ln=XXX" target=_blank>
oicq</a>

Ip
</TD>
&LT;TD width=80 align= "center" > Article XX <a href= "#top" title= back to top >∧</a>
</TR>
</TABLE>
&LT;HR size=1>
Message content </TD>
</TR>
<tr class=table001>
&LT;TD height=13 align= "right" >
<table width= "100%" border= "0" cellspacing= "0" cellpadding= "0" >
<tr>
<td>
<a href= "Index.asp?action=delet

[1] [2] [3] [4] Next page



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.