10、会员信息显示文件show.php3
if($login){
require("common.php3");
if(!isset($id))error("怎么没有填写用户的ID?");
else{
$id=chop($id);
$dbm=dbmopen("class","r");
if(!dbmexists($dbm,$id))error("没有这个用户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);
}
?>
查 看 的 资 料 width="80%">
的详细资料 |
姓名 |
|
width="34%">NickName |
|
性别 |
|
邮件地址 |
|
个人主页 |
> |
目前职业 |
|
OICQ号码 |
if($oicq=="")echo "不告诉你!"; else{ ?> " target=_blank title=的OICQ号码是,点击查看资料> } ?> |
ICQ 号码 |
if($oicq=="")echo "不告诉你!"; else{ ?>&img=7> }?> |
生日日期 |
|
联系地址 |
|
联系电话 |
|
个人简介 |
|
}else header("location:login.php3");
?>
11、css文件:
A {text-decoration: none; color: #336699; font-family: "宋体"; font-size: 9pt}
A:hover {text-decoration: underline; color: #FF0000; font-family: "宋体"; font-size: 9pt}
body { font-family: "宋体", "serif"; font-size: 9pt}
td { font-family: "宋体", "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,宋体; 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 }
好了,完了