[PHP] 校友会网站管理系统 →→→→→进入此内容的聊天室

来自 , 2020-10-13, 写在 PHP, 查看 126 次.
URL http://www.code666.cn/view/564645fb
  1. <?php
  2. include('inc/site.php');
  3. include('inc/db_class.php');
  4. include('inc/function.php');
  5. ?>
  6. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  7. <html xmlns="http://www.w3.org/1999/xhtml">
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  10. <title>上海交通大学世纪会</title>
  11. <meta name="keywords" content="上海交通大学世纪会" />
  12. <meta name="description" content="上海交通大学世纪会" />
  13. <link href="css/style.css" rel="stylesheet" type="text/css" />
  14. </head>
  15.  
  16. <body>
  17. <?php
  18. include('header.php');
  19. ?>
  20. <table width="776" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:6px;">
  21.   <tr>
  22.     <td><img src="images/body_top.gif" width="776" height="7" /></td>
  23.   </tr>
  24.   <tr>
  25.     <td bgcolor="#FFFFFF"><table width="100%" height="560" border="0" cellpadding="0" cellspacing="0">
  26.       <tr>
  27.         <td height="560" valign="top"><div align="center">
  28.           <table width="195" border="0" align="center" cellpadding="0" cellspacing="0">
  29.             <tr>
  30.               <td width="195" height="179" valign="top">
  31. <table width="195" border="0" cellspacing="0" cellpadding="0" background="images/member.gif">
  32.   <tr>
  33.     <td height="40">&nbsp;</td>
  34.   </tr>
  35.   <tr>
  36.     <td><iframe id=user src="cp.php" frameBorder="0" width="100%" scrolling="no" height="140" allowTransparency="true"></iframe>
  37.                           </td>
  38.   </tr>
  39. </table></td>
  40.             </tr>
  41.             <tr>
  42.               <td height="3" valign="top"></td>
  43.             </tr>
  44.             <tr>
  45.               <td height="480" valign="top" background="images/left_bg.gif"><table width="185" border="0" align="center" cellpadding="0" cellspacing="0">
  46.                 <tr>
  47.                   <td height="26" align="left" class="menu" style="padding-left:20px;">世纪传承</td>
  48.                 </tr>
  49.                 <tr class="font">
  50.                   <td align="left" valign="top">
  51. <?php  
  52. if($result=$db->getfirst("select * from inheritance where istop=1 order by id desc"))
  53. {
  54. $topid=$result[id];
  55. if(empty($result[photo]))
  56. {
  57. echo "·<a href=showinheritance.php?id=".$result[id].">".$result[title]."</a><br />";
  58. }
  59. else
  60. {
  61. ?>
  62.                                   <a href="showinheritance.php?id=<?=$result[id]?>"><img src="<?=$result['photo']?>" width="185" height="80" border="0" alt="<?=$result[title]?>" /></a>
  63. <?php
  64. }
  65. }
  66. if(empty($topid))
  67. {
  68. $result=$db->query("select * from inheritance order by id desc limit 0,5");
  69. }
  70. else
  71. {
  72. $result=$db->query("select * from inheritance where id <>$topid order by id desc limit 0,5");
  73. }
  74. while($row=$db->getarray($result)){
  75. ?>
  76.                         ·<a href="showinheritance.php?id=<?=$row[id]?>"><?=$row[title]?></a><br />
  77.                         <?php
  78. }
  79. ?>
  80.                                   </td>
  81.                 </tr>
  82.                 <tr>
  83.                   <td height="10"></td>
  84.                 </tr>
  85.                 <tr>
  86.                   <td><?php include('inc/link.php'); ?></td>
  87.                 </tr>
  88.               </table></td>
  89.             </tr>
  90.           </table>
  91.         </div></td>
  92.         <td width="570" valign="top"><table width="570" border="0" align="center" cellpadding="0" cellspacing="0">
  93.           <tr>
  94.             <td width="570" height="112"><div align="right">
  95.                           <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="570" height="112">
  96.                 <param name="movie" value="images/flash/banner.swf" />
  97.                 <param name="quality" value="high" />
  98.                 <embed src="images/flash/banner.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="570" height="112"></embed>
  99.                             </object>
  100.             </div></td>
  101.           </tr>
  102.         </table>
  103.           <table width="100%" border="0" cellspacing="3" cellpadding="0">
  104.             <tr>
  105.               <td><table width="288" height="233" border="0" cellpadding="0" cellspacing="0">
  106.                 <tr>
  107.                   <td valign="top" background="images/bg.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  108.                     <tr>
  109.                       <td height="26"><table width="90%" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
  110.                         <tr>
  111.                           <td width="60" class="menu"><div align="center">世纪活动</div></td>
  112.                           <td class="font"><div align="right"><a href="active.php">更多>></a></div></td>
  113.                         </tr>
  114.                       </table></td>
  115.                     </tr>
  116.                     <tr>
  117.                       <td height="207" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="8" class="font">
  118.                         <tr>
  119.                           <td><?php  
  120. if($result=$db->getfirst("select * from active where istop=1 order by id desc"))
  121. {
  122. $topid=$result[id];
  123. if(empty($result[photo]))
  124. {
  125. echo "·<a href=showactive.php?id=".$result[id].">".$result[title]."</a><br />";
  126. }
  127. else
  128. {
  129. ?>
  130.                               <table width="100%" border="0" cellspacing="0" cellpadding="0">
  131.                                 <tr>
  132.                                   <td width="94"><img src="<?=$result['photo']?>" width="94" height="58" /></td>
  133.                                   <td style="padding-left:8px;"><span style="font-size: 14px;font-weight: bold;"><a href="showactive.php?id=<?=$result[id]?>">
  134.                                     <?=CutString($result['title'],18)?>
  135.                                     </a></span><br />
  136.                                   <a href="showactive.php?id=<?=$result[id]?>" style="font-size: 14px;font-weight: bold;"><font color="#ff9933">[详细查看]</font></a></td>
  137.                                 </tr>
  138.                             </table>
  139. <?php
  140. }
  141. }
  142. if(empty($topid))
  143. {
  144. $result=$db->query("select * from active order by id desc limit 0,5");
  145. }
  146. else
  147. {
  148. $result=$db->query("select * from active where id <>$topid order by id desc limit 0,5");
  149. }
  150. while($row=$db->getarray($result)){
  151. ?>
  152.                         ·<a href="showactive.php?id=<?=$row[id]?>"><?=CutString($row[title],32)?></a><br />
  153.                         <?php
  154. }
  155. ?>
  156.                                                         </td>
  157.                         </tr>
  158.                       </table></td>
  159.                     </tr>
  160.                   </table></td>
  161.                 </tr>
  162.               </table></td>
  163.               <td><table width="278" height="233" border="0" cellpadding="0" cellspacing="0">
  164.                 <tr>
  165.                   <td background="images/bg2.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  166.                     <tr>
  167.                       <td height="26"><table width="90%" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
  168.                         <tr>
  169.                           <td width="60" class="menu"><div align="center">世纪公告</div></td>
  170.                           <td class="font"><div align="right"><a href="notice.php">更多>></a></div></td>
  171.                         </tr>
  172.                       </table></td>
  173.                     </tr>
  174.                     <tr>
  175.                       <td height="207" valign="top" ><table width="100%" border="0" cellpadding="0" cellspacing="8" class="font">
  176.                         <tr>
  177.                           <td>
  178. <?php  
  179. $result=$db->query("select nid,title from notice order by nid desc limit 0,8");
  180. //mysql_query("set names 'gb2312'");//这就是指定数据库字符集,一般放在连接数据库后面就系了
  181. while($row=$db->getarray($result)){
  182. ?>
  183.                                                   ·<a href="shownotice.php?id=<?php echo $row[nid]; ?>"><?=CutString($row[title],32)?></a><br />
  184. <?php
  185. }
  186. ?></td>
  187.                         </tr>
  188.                       </table></td>
  189.                     </tr>
  190.                   </table></td>
  191.                 </tr>
  192.               </table></td>
  193.             </tr>
  194.             <tr>
  195.               <td><table width="288" height="233" border="0" cellpadding="0" cellspacing="0">
  196.                 <tr>
  197.                   <td valign="top" background="images/bg.gif"><table width="100%" border="0" align="left" cellpadding="0" cellspacing="0">
  198.                       <tr>
  199.                         <td height="26"><table width="90%" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
  200.                           <tr>
  201.                             <td width="60" class="menu"><div align="center">世纪家园</div></td>
  202.                             <td class="font"><div align="right"><a href="home.php">更多>></a></div></td>
  203.                           </tr>
  204.                         </table></td>
  205.                       </tr>
  206.                       <tr>
  207.                         <td height="207" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="8" class="font">
  208.                           <tr>
  209.                             <td>
  210. <?php  
  211. $result=$db->getfirst("select * from topic order by id desc");
  212. //mysql_query("set names 'gb2312'");//这就是指定数据库字符集,一般放在连接数据库后面就系了
  213. $topid=$result[id];
  214. ?>
  215.                                                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
  216.                                 <tr>
  217.                                   <td width="94"><img src="images/01.gif" width="94" height="58" /></td>
  218.                                   <td style="padding-left:8px;"><span style="font-size: 14px;font-weight: bold;"><a href="view.php?id=<?=$topid?>"><?=CutString($result['title'],18)?></a></span><br />
  219.                                     <a href="view.php?id=<?=$topid?>" style="font-size: 14px;font-weight: bold;"><font color="#ff9933">[详细查看]</font></a></td>
  220.                                 </tr>
  221.                             </table></td>
  222.                           </tr>
  223.                           <tr>
  224.                             <td>
  225. <?php  
  226. $result=$db->query("select id,title from topic where id <>$topid order by id desc limit 0,5");
  227. //mysql_query("set names 'gb2312'");//这就是指定数据库字符集,一般放在连接数据库后面就系了
  228. while($row=$db->getarray($result)){
  229.  echo "·<a href=\"view.php?id=".$row[id]."\">".CutString($row[title],32)."</a><br />";
  230. }
  231. ?></td>
  232.                           </tr>
  233.                         </table></td>
  234.                       </tr>
  235.                   </table></td>
  236.                 </tr>
  237.               </table></td>
  238.               <td><table width="278" height="233" border="0" cellpadding="0" cellspacing="0">
  239.                 <tr>
  240.                   <td background="images/bg2.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  241.                       <tr>
  242.                         <td height="26"><table width="90%" height="26" border="0" align="center" cellpadding="0" cellspacing="0">
  243.                           <tr>
  244.                             <td width="60" class="menu"><div align="center">世纪风采 </div></td>
  245.                             <td class="font"><div align="right"><a href="flavor.php">更多>></a></div></td>
  246.                           </tr>
  247.                         </table></td>
  248.                       </tr>
  249.                       <tr>
  250.                         <td height="207" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="8" class="font">
  251.                           <tr>
  252.                             <td>
  253. <?php  
  254. if($result=$db->getfirst("select * from flavor where istop=1 order by id desc"))
  255. {
  256. $topid=$result[id];
  257. if(empty($result[photo]))
  258. {
  259. echo "·<a href=showflavor.php?id=".$result[id].">".$result[title]."</a><br />";
  260. }
  261. else
  262. {
  263. ?>
  264.                                                         <table width="100%" border="0" cellspacing="0" cellpadding="0">
  265.                                 <tr>
  266.                                   <td width="94"><img src="<?=$result['photo']?>" width="94" height="58" /></td>
  267.                                   <td style="padding-left:8px;"><span style="font-size: 14px;font-weight: bold;"><a href="showflavor.php?id=<?php echo $result[id]; ?>"><?=CutString($result['title'],18)?></a></span><br />
  268.                                     <a href="showflavor.php?id=<?php echo $result[id]; ?>" style="font-size: 14px;font-weight: bold;"><font color="#ff9933">[详细查看]</font></a></td>
  269.                                 </tr>
  270.                             </table>
  271. <?php
  272. }
  273. }
  274.  
  275. if(empty($topid))
  276. {
  277. $result=$db->query("select * from flavor order by id desc limit 0,5");
  278. }
  279. else
  280. {
  281. $result=$db->query("select * from flavor where id <>$topid order by id desc limit 0,5");
  282. }
  283. while($row=$db->getarray($result)){
  284. ?>
  285.                         ·<a href="showflavor.php?id=<?=$row[id]?>"><?=CutString($row[title],32)?></a><br />
  286.                         <?php
  287. }
  288. ?>
  289.                                                        
  290.                                                         </td>
  291.                           </tr>
  292.                         </table></td>
  293.                       </tr>
  294.                   </table></td>
  295.                 </tr>
  296.               </table></td>
  297.             </tr>
  298.           </table></td>
  299.       </tr>
  300.     </table></td>
  301.   </tr>
  302.   <tr>
  303.     <td><img src="images/body_bottom.gif" width="776" height="7" /></td>
  304.   </tr>
  305. </table>
  306. <?php
  307. include('footer.php');
  308. ?>
  309. </body>
  310. </html>

回复 "校友会网站管理系统"

这儿你可以回复上面这条便签

captcha