PHP+DBM's Alumni Program (5)

Source: Internet
Author: User
Program 10, member information display file SHOW.PHP3
?
if ($login) {
Require ("common.php3");
if (!isset ($id)) error ("How did you not fill in the user ID?") ");
else{
$id =chop ($id);
$DBM =dbmopen ("Class", "R");
if (!dbmexists ($DBM, $id)) error ("No this user id! ");
else{
$data =dbmfetch ($dbm, $id);
$info =explode ("|!:!|", $data);
$name = $info [0]; $nickname = $info [1]; $mail = $info [2]; $home = $info [3]; $OICQ = $info [4];
$ICQ = $info [5]; $add = $info [6]; $tel = $info [7]; $birth = $info [8]; $job = $info [9];
$intro = $info [10]; $sex = $info [11];
}
Dbmclose ($DBM);
}
?>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 transitional//en" >
<HTML><HEAD><TITLE> View <?echo$name?> Information </TITLE>
<meta content= "text/html; charset=gb2312 "http-equiv=content-type>
<style Type=text/css>a {
COLOR: #336699; Font-family: "The song Body"; font-size:9pt; Text-decoration:none
}
a:hover {
COLOR: #ff0000; Font-family: "The song Body"; font-size:9pt; Text-decoration:underline
}
Body {
font-family: "Song Body", "serif"; Font-size:9pt
}
TD {
font-family: "Song Body", "serif"; Font-size:9pt
}
INPUT {
Font-size:9pt
}
P
Font-size:9pt
}
BR {
Font-size:9pt
}
TR {
Font-size:9pt
}
TABLE {
Font-size:9pt
}
INPUT {
Font-family:arial, song body; font-size:9pt; padding-top:3px
}
Input.text {
Background-color: #f0f0f0; Border-bottom: #101010 1px solid; Border-left: #101010 1px solid; Border-right: #101010 1px solid; Border-top: #101010 1px solid; COLOR: #000000
}
Input.file {
Background-color: #f0f0f0; Border-bottom: #101010 1px solid; Border-left: #101010 1px solid; Border-right: #101010 1px solid; Border-top: #101010 1px solid; COLOR: #000000
}
SELECT {
Background-color: #f0f0f0; Border-bottom: #101010 1px solid; Border-left: #101010 1px solid; Border-right: #101010 1px solid; Border-top: #101010 1px solid; COLOR: #000000
}
TEXTAREA {
Background-color: #f0f0f0; Border-bottom: #101010 1px solid; Border-left: #101010 1px solid; Border-right: #101010 1px solid; Border-top: #101010 1px solid; COLOR: #000000
}
. stedit {
Border-bottom: #000066 1px solid; Border-left: #4a3163 1px solid; Border-right: #4a3163 1px solid; Border-top: #4a3163 1px solid; Font-size:9pt
}
. STBTM {
Border-bottom: #665b8e 1px solid; Border-left: #ffffff 1px solid; Border-right: #665b8e 1px solid; Border-top: #ffffff 1px solid; COLOR: #000000; font-size:9pt; height:20px
}
. ddd {
COLOR: #ffffff; Filter:glow (color=black,strength=1); font-size:9pt; line-height:13pt; position:relative; width:100%
}
</style><div align=center><table bgcolor= #000000 border=0 cellpadding=8 cellspacing=1 height=312
Width= "80%" ><CENTER>
<TR>
&LT;TD align=middle bgcolor= #b2b2b2 colspan=2 height=6>
More information of <p align=center><?echo$name?> </P>
</TD>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=6 width= "34%" > surname?? Name </TD>
&LT;TD align=left bgcolor= #dedfdf height=6 width= "66%" ><?echo$name?> </TD>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=12
Width= "34%" >NickName</TD>
&LT;TD align=middle bgcolor= #dedfdf height=12 width= "66%" >
<p align=left><?echo$nickname?></p>
</TD>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=12 width= "34%" > Sex?? No </TD>
&LT;TD align=left bgcolor= #dedfdf height=12 width= "66%" ><?echo$sex?></TD>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=12 width= "34%" > Email address </TD>
&LT;TD align=left bgcolor= #dedfdf height=12 width= "66%" ><?echo$mail?></TD>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=12 width= "34%" > Personal homepage </TD>
&LT;TD align=left bgcolor= #dedfdf height=12 width= "66%" ><a href=<?echo$home?>><?echo$home?> </a></TD>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=12 width= "34%" > Current career </TD>
&LT;TD align=left bgcolor= #dedfdf height=12 width= "66%" ><?echo$job?></TD>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=14 width= "34%" &GT;OICQ number </TD>
&LT;TD align=left bgcolor= #dedfdf height=14 width= "66%" >
?
if ($oicq = = "") echo does not tell you! ";
else{
?>
<a href= "http://search.tencent.com/cgi-bin/friend/user_show_info?ln=<?echo$oicq?>" Target=_blank title= <?echo$name?> OICQ number is <?echo$oicq?&gt, click to view information >/l/00/0/"Width=16> <?echo$oicq?></A>
?
}
?></td>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=12 width= "34%" &GT;ICQ number </TD>
&LT;TD align=left bgcolor= #dedfdf height=12 width= "66%" >
?
if ($oicq = = "") echo does not tell you! ";
else{
? >&img=7><?echo$icq?>
?
}?></td>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=12 width= "34%" > Birthday date </TD>
&LT;TD align=left bgcolor= #dedfdf height=12 width= "66%" ><?echo$birth?></TD>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=12 width= "34%" > Contact address </TD>
&LT;TD align=left bgcolor= #dedfdf height=12 width= "66%" ><?echo$add?></TD>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=12 width= "34%" > Tel </TD>
&LT;TD align=left bgcolor= #dedfdf height=12 width= "66%" ><?echo$tel?></TD>
</TR>
<TR>
&LT;TD align=middle bgcolor= #dedfdf height=12 width= "34%" > Profile </TD>
&LT;TD align=left bgcolor= #dedfdf height=12 width= "66%" ><?echo$intro?></TD>
</TR>
</center>
</TABLE>
</DIV></BODY></HTML>
?
}else header ("location:login.php3");
?>

11, CSS File:
A {text-decoration:none; color: #336699; font-family: "XXFarEastFont-font-size:9pt}";
a:hover {text-decoration:underline; color: #FF0000; font-family: "Song Body"; font-size:9pt}
Body {font-family: "XXFarEastFont-Arial", "Serif"; font-size:9pt}
TD {Font-family: "Song Body", "serif"; font-size:9pt}
Input {font-size:9pt}
p {font-size:9pt}
br {FONT-SIZE:9PT}
TR {FONT-SIZE:9PT}
Table {FONT-SIZE:9PT}
INPUT {font-family:arial, song body; font-size:9pt; PADDING-TOP:3PX}
Input.text {
Background-color: #f0f0f0; Border-bottom: #101010 1px solid; Border-left: #101010 1px solid; Border-right: #101010 1px solid; Border-top: #101010 1px solid; COLOR: #000000
}
Input.file {
Background-color: #f0f0f0; Border-bottom: #101010 1px solid; Border-left: #101010 1px solid; Border-right: #101010 1px solid; Border-top: #101010 1px solid; COLOR: #000000
}
SELECT {
Background-color: #f0f0f0; Border-bottom: #101010 1px solid; Border-left: #101010 1px solid; Border-right: #101010 1px solid; Border-top: #101010 1px solid; COLOR: #000000
}
TEXTAREA {
Background-color: #f0f0f0; Border-bottom: #101010 1px solid; Border-left: #101010 1px solid; Border-right: #101010 1px solid; Border-top: #101010 1px solid; COLOR: #000000
}
. stedit {font-size:9pt; border-left:1px solid #4a3163;
border-right:1px solid #4a3163; border-top:1px solid #4a3163;
border-bottom:1px Solid #000066}
. STBTM {background-color: #cococo; color: #000000; font-size:9pt; height:20px;
border-left:1px solid #ffffff; border-right:1px solid #665b8e;
border-top:1px solid #ffffff; border-bottom:1px Solid #665b8e}


All right, it's over.

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.