大雀软件园

首页 软件下载 安卓市场 苹果市场 电脑游戏 安卓游戏 文章资讯 驱动下载
技术开发 网页设计 图形图象 数据库 网络媒体 网络安全 站长CLUB 操作系统 媒体动画 安卓相关
当前位置: 首页 -> 技术开发 -> PHP专区 -> PHP+DBM的同学录程序(5)

PHP+DBM的同学录程序(5)

时间: 2021-07-31 作者:daque

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); } ?> <!doctype html public "-//w3c//dtd html 4.0 transitional//en"> <html><head><title>查 看 <?echo$name?> 的 资 料</title> <meta content="text/html; charset=utf8" http-equiv=content-type> <style type=text/css>a {         color: #336699; font-family: "宋体"; font-size: 9pt; text-decoration: none } a:hover {         color: #ff0000; font-family: "宋体"; font-size: 9pt; text-decoration: underline } 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 {         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></head><body bgcolor=#333366> <div align=center><table bgcolor=#000000 border=0 cellpadding=8 cellspacing=1 height=312 width="80%"><center>       <tr>         <td align=middle bgcolor=#b2b2b2 colspan=2 height=6>           <p align=center><?echo$name?>的精细材料 </p>         </td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=6 width="34%">姓名</td>         <td align=left bgcolor=#dedfdf height=6 width="66%"><?echo$name?> </td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=12       width="34%">nickname</td>         <td align=middle bgcolor=#dedfdf height=12 width="66%">           <p align=left><?echo$nickname?></p>         </td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=12 width="34%">性别</td>         <td align=left bgcolor=#dedfdf height=12 width="66%"><?echo$sex?></td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=12 width="34%">邮件地方</td>         <td align=left bgcolor=#dedfdf height=12 width="66%"><?echo$mail?></td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=12 width="34%">部分网页</td>         <td align=left bgcolor=#dedfdf height=12 width="66%"><a href=<?echo$home?>><?echo$home?></a></td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=12 width="34%">暂时工作</td>         <td align=left bgcolor=#dedfdf height=12 width="66%"><?echo$job?></td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=14 width="34%">oicq号子</td>         <td align=left bgcolor=#dedfdf height=14 width="66%"> <? if($oicq=="")echo "不报告你!"; else{ ?> <a href="http://search.tencent.com/cgi-bin/friend/user_show_info?ln=<?echo$oicq?>" target=_blank title=<?echo$name?>的oicq号子是<?echo$oicq?>,点击察看材料><img border=0 height=16       src="http://infocenter.tencent.com/<?echo$oicq?>/l/00/0/" width=16> <?echo$oicq?></a> <? } ?></td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=12 width="34%">icq 号子</td>         <td align=left bgcolor=#dedfdf height=12 width="66%"> <? if($oicq=="")echo "不报告你!"; else{ ?><img src=http://wwp.icq.com/scripts/online.dll?icq=<?echo$icq;?>&img=7><?echo$icq?> <? }?></td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=12 width="34%">华诞日子</td>         <td align=left bgcolor=#dedfdf height=12 width="66%"><?echo$birth?></td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=12 width="34%">接洽地方</td>         <td align=left bgcolor=#dedfdf height=12 width="66%"><?echo$add?></td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=12 width="34%">接洽电话</td>         <td align=left bgcolor=#dedfdf height=12 width="66%"><?echo$tel?></td>       </tr>       <tr>         <td align=middle bgcolor=#dedfdf height=12 width="34%">部分简介</td>         <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文献: 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 } 好了,结束 

热门阅览

最新排行

Copyright © 2019-2021 大雀软件园(www.daque.cn) All Rights Reserved.