杏林同学录(三)


Posted in PHP onOctober 09, 2006

客人主页:class/guest.php
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<TITLE>欢迎来到94级1班同学录</TITLE>
<style type="text/css">
<!--
.deepblue10 {  font-family: "宋体"; font-size: 10pt; color: #3333FF; text-decoration: none}
A.purple:hover {  font-size: 9pt; color: #3366FF; background-color: #99FFFF; text-decoration: none}
A.purple:link {  font-size: 10pt; text-decoration: none}
a:hover {  text-decoration: none}
a:visited {  text-decoration: none}
A.purple {  font-size: 10pt; color: #CC00FF; text-decoration: none}
.white12 {  font-size: 12pt; color: #FFFFFF; text-decoration: none}
.purple {  color: #CC00FF; text-decoration: none; font-size: 10pt}
.brown9 {  font-size: 10pt; color: #6600CC; text-decoration: none}
.black9 {  font-size: 9pt; text-decoration: none}
.yellow12 {  font-size: 12px; color: #9900CC; text-decoration: none; font-weight: normal}
.redlarge {  font-size: 18px; font-weight: bolder; color: #FF00CC}
.grey9 {  font-size: 9pt; color: #CCCCCC}
-->
</style>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<table width="755" border="1" height="65" cellpadding="0" cellspacing="0" bordercolorlight="#FF33CC" bordercolordark="#FFFFFF">
  <tr>  
    <td>  
      <div align="right"><img src="image/classlogo.gif" width="224" height="60" alt="同学录"></div>
    </td>
    <td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,2,0" width="478" height="60" align="right">
        <param name=movie value="image/2.swf">
        <param name=quality value=high>
        <embed src="image/2.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="478" height="60" align="right">
        </embed>  
      </object></td>
  </tr>
</table>
<table width="755" border="0" cellspacing="0" cellpadding="0">
  <tr>  
    <td class="black9" width="302"> 北京时间  
      <? echo date("Y年m月d日");?>
    </td>
    <td class="black9" width="453">您好,客人!您目前只能浏览班级照片和校园风光。请到"访客留言"留下您的祝福。</td>
  </tr>
</table>
<table width="755" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="19%" bgcolor="#FFeeFF" valign="top">  
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>  
          <td height="20" background="image/redbar.gif">  
            <div align="center" class="yellow12" >同学录</div>
          </td>
        </tr>
        <tr>  
          <td height="19" >  
            <div align="center" class="purple">【班通讯录】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple" >【资料修改】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center"  class="purple">【上传照片】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" ><a href="classphoto.php" title="毕业照" class="purple" target="_blank" >【班级照片】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple">【个人照片】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center"><a href="shoolphoto.php" title="唤起你美好回忆" class="purple" target="_blank" >【校园风光】</a></div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple">【私人留言】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple">【<a href="notebookg/index.php" class="purple">访客留言</a>】</div>
          </td>
        </tr>
        <tr bgcolor="#FF99CC">  
          <td height="20" bgcolor="#FF99CC" background="image/redbar.gif" >  
            <div align="center" class="yellow12">【班级聊天室】</div>
          </td>
        </tr>
        <tr>  
          <td height="19">  
            <div align="center" class="purple">【进入班级聊天室】</div>
          </td>
        </tr>
        <tr>  
          <td >  
            <div align="center" class="purple">【班级聊天室帮助】</div>
          </td>
        </tr>
        <tr>  
          <td height="20" background="image/redbar.gif">  
            <div align="center" class="yellow12" >友情链接</div>
          </td>
        </tr>
        <tr>  
          <td>  
            <div align="center"><a href="http://www.medguider.com" title="neo的个人主页" target="_blank"><img src="image/logo2.gif" width="82" height="31" border=0></a></div>
          </td>
        </tr>
        <tr>  
          <td>  
            <div align="center"><a href="http://www.5460.net" target="_blank"><img src="image/a31.gif" width="81" height="33" border="0" alt="国内最好的同学录"></a></div>
          </td>
        </tr>
        <tr>
          <td height="24">  
            <div align="center" class="purple"><a href="http://medonline.51.net/" class="purple"  target="_blank">杏林医疗在线</a></div>
          </td>
        </tr>
        <tr>  
          <td height="22">  
            <div align="center" ><a href="http://www.oso.com.cn" class="purple">奥索网</a></div>
          </td>
        </tr>
        <tr>  
          <td height="22">  
            <div align="center"><a href="http://m9401.alumni.chinaren.com" title="非常有特色的同学录" class="purple" target="_blank" >ChinaRen校友录</a></div>
          </td>
        </tr>
        <tr bgcolor="#FFCCCC">  
          <td height="22" bgcolor="#FFCCCC">  
            <div align="center" class="purple"><a href="mailto:webmaster@medguider.51.net" class="purple">与我联系</a></div>
          </td>
        </tr>
      </table>
    </td>
    <td width="61%" height="308">  
      <div align="center"><img src="image/821036.jpg" width="400" height="166"></div>
      <table width="87%" border="1" cellspacing="0" cellpadding="0" align="center" height="109" bordercolorlight="#9999FF" bordercolordark="#FFFFFF">
        <tr>  
          <td>  
            <div align="center" class="redlarge"><b>祝贺词</b></div>
          </td>
        </tr>
        <tr>  
          <td class="brown9" height="21"><img src="image/bz.gif" width="15" height="16">  
            1.欢迎使用杏林同学录。</td>
        </tr>
        <tr>  
          <td class="brown9"><img src="image/bz.gif" width="15" height="16"> 2.如果发现bug,请尽快通知我。</td>
        </tr>
        <tr>  
          <td class="brown9"> <img src="image/bz.gif" width="15" height="16">  
            3.技术支持: <a href="mailto:webmaster@medguider.51.net" class="purple">webmaster@medguider.51.net</a>  
          </td>
        </tr>
        <tr>  
          <td>  
            <div align="center" class="redlarge"> 最新访客留言</div>
          </td>
        </tr>
        <tr>  
          <td class="brown9">  
            <?php
  include "config.php";
  $result = mysql_query("SELECT * FROM notebookg",$db);
  $row=mysql_num_rows($result);//查看结果有多少行
  if ($row<=1) {$x=$row;} else {$x=2;}
  $result = mysql_query("select * from notebookg ORDER BY time DESC limit 0,$x",$db);//读取最近2条留言
  for ($i=0;$i<=($x-1);$i++) {
   $name=mysql_result($result,$i,'name');
   $time=mysql_result($result,$i,'time');
   $title=mysql_result($result,$i,'title');
   $nnote=mysql_result($result,$i,'nnote');
   echo "◆留言人:$name 时间 $time <BR>主题:$title<BR>内容:$nnote<BR>";
    }
    mysql_close($db);
          ?>
          </td>
        </tr>
      </table>
    </td>
    <td valign="top" width="20%">  
      <table border="0" cellspacing="0" cellpadding="0" width="150">
        <tr>  
          <td background="image/yellowbar3.gif" class="white12" height="19">  
            <div align="center">悄悄话</div>
          </td>
        </tr>
        <tr>  
          <td bgcolor="#FFFEEFF">  
            <div align="center" class="brown9" > 对不起,您不是本班同学</div>
          </td>
        </tr>
        <tr>  
          <td bgcolor="#FFCC66" class="white12" height="20">  
            <div align="center">最新加入</div>
          </td>
        </tr>
        <tr>  
          <td class="brown9" height="77" bgcolor="#FFFEEFF">对不起,您不是本班同学</td>
        </tr>
        <tr>  
          <td>  

            <table border="0" cellspacing="0" cellpadding="0" bgcolor="#CFBD9B" width="150">
              <tr>  
                <td height="24" colspan="3"><img src="image/noticebar.gif" width="150" height="25"></td>
                </tr>
                <tr>  

                <td height="182" width="6%"> </td>

                <td width="88%" bgcolor="#FFFFFF" background="image/fanhor01-1.jpg" class="deepblue10"><marquee direction=up scrollamount=1 scrolldelay=130 ><font color="#FFCC66">★</font>本网站已被搜狐、新浪收录<br>
                  <font color="#FFCC66">★</font>感谢leo为我们做的新动画logo.<br>
                  <font color="#FFCC66">★</font>经过数日的努力,终于用php和mysql数据库将新版同学录做好。特点:用户可在线修改资料;上传照片;悄悄话,oicq头像。<br>
                  <font color="#FFCC66">★</font>5460中国同学录上我们班已有14人加入。<br>
                  <font color="#FFCC66">★</font> 如果您有漂亮的扫描好的个人照片,请尽快上传。<br>
                  </marqee>
                  </td>

                <td height="182" width="6%"> </td>
                </tr>
                <tr>  

                <td colspan="3" height="4"> </td>
                </tr>
              </table>                        </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
<div align="center">  
  <p class="black9">您是第  
    <?php
$fs = fopen("counter.txt","r+");  
$hit = fgets($fs,10);  
$hit+=1;  
rewind($fs);  
fwrite($fs,$hit,10);  
$hit = number_format($hit);  
fclose($fs);
echo "<font color='#33FF00'>$hit</font>";
?>
    位来访者!<br>
    主页制作: <a href="http://www.medguider.com" class="black9">医学导航网</a><br>
    <span class="grey9">本页使用了flash,如果不能正常浏览,请安装<a href="http://medonline.51.net/plugsin/InstallAXFlash.exe">flash插件</a>  
    </span></p>
</div>
</BODY>
</HTML> 

PHP 相关文章推荐
PHP的简易冒泡法代码分享
Aug 28 PHP
基于php冒泡排序算法的深入理解
Jun 09 PHP
php中将数组转成字符串并保存到数据库中的函数代码
Sep 29 PHP
ThinkPHP后台首页index使用frameset时的注意事项分析
Aug 22 PHP
PHP+jQuery 注册模块的改进(三):更新到Smarty3.1
Oct 14 PHP
PHP5多态性与动态绑定介绍
Apr 03 PHP
PHP使用PDO操作数据库的乱码问题解决方法
Apr 08 PHP
WordPress中设置Post Type自定义文章类型的实例教程
May 10 PHP
Yii2中使用join、joinwith多表关联查询
Jun 30 PHP
PHP批量修改文件名称的方法分析
Feb 27 PHP
Thinkphp5框架ajax接口实现方法分析
Aug 28 PHP
PHP接口类(interface)的定义、特点和应用示例
May 18 PHP
福利彩票幸运号码自动生成器
Oct 09 #PHP
一个用php3编写的简单计数器
Oct 09 #PHP
php4的session功能评述(三)
Oct 09 #PHP
php4的session功能评述(一)
Oct 09 #PHP
php4的session功能评述(二)
Oct 09 #PHP
动态新闻发布的实现及其技巧
Oct 09 #PHP
最简单的PHP程序--记数器
Oct 09 #PHP
You might like
destoon调用企业会员公司形象图片的实现方法
2014/08/21 PHP
PHP处理会话函数大总结
2015/08/05 PHP
PhpStorm 2020.3:新增开箱即用的PHP 8属性(推荐)
2020/10/30 PHP
深入认识JavaScript中的函数
2007/01/22 Javascript
IE8 兼容性问题(属性名区分大小写)
2009/06/04 Javascript
javascript操作cookie的文章(设置,删除cookies)
2010/04/01 Javascript
treepanel动态加载数据实现代码
2012/12/15 Javascript
javascript跟随滚动效果插件代码(javascript Follow Plugin)
2013/08/03 Javascript
深入理解JQuery中的事件与动画
2016/05/18 Javascript
JS实现的跨浏览器解析XML文件实例
2016/06/21 Javascript
利用JS轻松实现获取表单数据
2016/12/06 Javascript
JavaScript实现焦点进入文本框内关闭输入法的核心代码
2017/09/20 Javascript
JavaScript html5 canvas实现图片上画超链接
2017/10/20 Javascript
vue 实现 ios 原生picker 效果及实现思路解析
2017/12/06 Javascript
Vue使用vue-area-linkage实现地址三级联动效果的示例
2018/06/27 Javascript
Element Steps步骤条的使用方法
2020/07/26 Javascript
VUE 单页面使用 echart 窗口变化时的用法
2020/07/30 Javascript
[10:21]2018DOTA2国际邀请赛寻真——Winstrike
2018/08/11 DOTA
Python深入学习之内存管理
2014/08/31 Python
python实现清屏的方法
2015/04/30 Python
WINDOWS 同时安装 python2 python3 后 pip 错误的解决方法
2017/03/16 Python
Python中执行存储过程及获取存储过程返回值的方法
2017/10/07 Python
Python中实现最小二乘法思路及实现代码
2018/01/04 Python
Python之reload流程实例代码解析
2018/01/29 Python
python写一个md5解密器示例
2018/02/23 Python
Python爬取商家联系电话以及各种数据的方法
2018/11/10 Python
Django如何使用jwt获取用户信息
2020/04/21 Python
Python预测2020高考分数和录取情况
2020/07/08 Python
CSS改变网页中鼠标选中文字背景颜色例子
2014/04/23 HTML / CSS
全球速卖通法国在线交易平台:AliExpress法国
2017/07/07 全球购物
英文翻译的自我评价语句
2013/10/04 职场文书
办理暂住证介绍信
2014/01/11 职场文书
文艺演出策划方案
2014/06/07 职场文书
2014年餐厅服务员工作总结
2014/11/18 职场文书
2014年残联工作总结
2014/11/21 职场文书
2014年幼儿园老师工作总结
2014/12/05 职场文书