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>
<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>
<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 >
<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>
<TD class=table002 style= "Word-break:break-all" Valign=top width=530
<table cellspacing=0 cellpadding=0 width= "100%" border= "0" >
<TR>
<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>
<TD width=80 align= "center" > Article XX <a href= "#top" title= back to top >∧</a>
</TR>
</TABLE>
<HR size=1>
Message content </TD>
</TR>
<tr class=table001>
<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