sp; show_error(2);
$founderr=1;
}
if (!check_user_password($name,$password)){
show_error(4);
$founderr=1;
}
if ($qm){
$qm=expl_qm($name);
}
if (!$founderr){
add_doc($board);
$add=1;
setcookie ("jl_forum[name]",$name);
}
}
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";
$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="15" alt="察看用户资料" border="0"></a></td>
</tr>
<tr bgcolor="#ffffef">
<td><?php echo $cont;?></td>
</tr>
<tr bgcolor="#e8eee0">
<td>※ 来源:<?php echo $jl_forum[chinesename];?> [◆FROM:<?php echo $fromip;?>]</td>
</tr>
</table>
<br>
<?php
if ($add!=1){
while($sql_row=mysql_fetch_array($sql_result)) {
?>
<table width="98%" border="1" cellspacing="0" cellpadding="2" align="center" bordercolorlight="#CCCCCC" bordercolordark="#FFFFFF">
<tr bgcolor="#015C71">
<td><font color="#ffffff">标题:<?php echo $sql_row[title];?></font></td>
</tr>
<tr bgcolor="#eeeeee">
<td>作者:<?php echo "$sql_row[writer]";?>(<?php echo $sql_row[writetime];?>) <a href="javascript:sendmsg('<?php echo "$sql_row[writer]";?>')"><img src="image/icon1.gif" width="18" height="17" alt="给作者留言" border="0"></a> <a href="userinfo.php?name=<?php echo "$sql_row[writer]";?>"><img src="image/profile.gif" width="17" height="15" alt="察看用户资料" border="0"></a></td>
</tr>
<tr bgcolor="#ffffef">
<td><?php echo $sql_row[cont];?></td>
</tr>
<tr bgcolor="#e8eee0">
<td>※ 来源:<?php echo $jl_forum[chinesename];?> [◆FROM:<?php echo $sql_row[fromip];?>]</td>
</tr>
</table>
<?php
}
?>
<form method="post" action="read.php">
<table width="98%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>
<table width="40" border="1" cellspacing="0" cellpadding="0" height="20" bordercolorlight="#000099" bordercolordark="#FFFFFF">
<tr valign="middle" align="center" bgcolor="#acc0fa">
<td height="17">回复</td>
</tr>
</table>
</td>
</tr>
</table>
<table width="98%" border="1" cellspacing="0" cellpadding="0" align="center" bordercolorlight="#686898" bordercolordark="#CCCCCC">
<tr>
<td width="8%" align="right" bgcolor="#acc0fa">用户名</td>
<td width="33%">
<input type="text" name="name" size="17" maxlength="16" value="<?php echo "$jl_forum[name]";?>">
<font color="#FFFFFF">* </font></td>
<td width="7%" bgcolor="#acc0fa" align="center">密码</td>
<td width="52%">
<input type="password" name="password" size="17" maxlength="16">
<font color="#FFFFFF">* </font></td>
</tr>
<tr>
<td width="8%" align="right" bgcolor="#acc0fa">标题:</td>
<td colspan="3">
<input type="text" name="title" size="40" maxlength="50">
<font color="#FFFFFF"> * </font></td>
</tr>
<tr>
<td width="8%" align="right" bgcolor="#acc0fa">内容:</td>
<td colspan="3">
<textarea name="cont" cols="60" rows="3" wrap="VIRTUAL"></textarea>
</td>
</tr>
<tr>
<td width="8%" align="right" bgcolor="#acc0fa"> </td>
<td colspan="3">
<input type="button" name="clear" value="关闭窗口" onclick="win
上一页 [1] [2] [3] [4] 下一页