$sql_result); }
} elseif ($add){ if (!is_board_exits($board)){ show_error(7); $founderr=1; } if (empty($title)){ show_error(2); $founderr=1; } if (!check_user_password($name,$password)){ show_error(4); $founderr=1; } if (strlen($title)>50){ show_error(6); $founderr=1; } if ($qm){ $qm=expl_qm($name); $founderr=1; } if (!$founderr){ add_doc($board); } } else { if (!is_board_exits){ show_error(7); } add_one_hit($board,$id); $sql="select * from $board where id=$id"; $sql_result=mysql_query($sql); $sql_row=mysql_fetch_array($sql_result); $title=$sql_row[title]; $writer=$sql_row[writer]; $cont=$sql_row[cont]; $writetime=$sql_row[writetime]; $hits=$sql_row[$hits]; $fromip=$sql_row[fromip]; $sql="select * from $board where slaveid=$id order by id desc"; $sql_result=mysql_query($sql); # $sql_row=mysql_fetch_array($sql_result); } ?> <html> <head> <title><?php echo $title;?></title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <link rel="stylesheet" type="text/css" href="css/index.css"> <script language="javascript"> function sendmsg(name){ window.open("sendmsg.php?name="+name,"","height=200,width=500,resizable=yes,scrollbars=yes,status=no,toolbar=no,menubar=no,location=no"); } </script>
</head>
<body bgcolor="#666699"> <?php include "ad.php";?><br> <hr noshade width="98%" size="1"> <table width="98%" border="1" cellspacing="0" cellpadding="2" align="center" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF"> <tr bgcolor="#666666"> <td><font color="#FFcc00"><b>标题:<?php echo $title;?></b></font></td> </tr> <tr> <td bgcolor="#eeeeee">作者:<?php echo "$writer";?>(<?php echo $writetime;?>) <a href="javascript:sendmsg('<?php echo "$writer";?>')"><img src="image/icon1.gif" width="18" height="17" alt="给作者留言" border="0"></a> <a href="userinfo.php?name=<?php echo $writer;?>"><img src="image/profile.gif" width="16" height="16" alt="察看用户资料" border="0"></a></td> </tr> <tr> <td bgcolor="#ffffef"><?php echo $cont;?></td> </tr> <tr bgcolor="#e8eee0"> <td>※ 来源:<?php echo $jl_forum[chinesename];?> [◆FROM:<?php echo $fromip;?>]</td> </tr> </table> <br> <?php include"footer.php";?><br> </body> </html>
|