<table width="209" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="153" background="images/dl.gif"><table width="209" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="33" colspan="3"> </td>
</tr>
<tr>
<td width="15"> </td>
<td width="177"><table width="180" height="10" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><table width="100%" height="100" border="0" align="center" cellpadding="0" cellspacing="1">
<tr>
<td><table width="180" height="100" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<?php session_start();
if($_SESSION[rid]==''){?>
<table width="180" border="0" cellpadding="0" cellspacing="0">
<script language="javascript">
function chkuserinput(form){
if(form.username.value==""){
alert("请输入用户名!");
form.username.select();
return(false);
}
if(form.userpwd.value==""){
alert("请输入用户密码!");
form.userpwd.select();
return(false);
}
if(form.yz.value==""){
alert("请输入验证码!");
form.yz.select();
return(false);
}
return(true);
}
</script>
<form name="form2" method="post" action="chkuser.php" onSubmit="return chkuserinput(this)">
<tr>
<td height="10" colspan="3"> </td>
</tr>
<tr>
<td width="50" height="20"><div align="right">用户:</div></td>
<td height="20" colspan="2"><div align="left">
<input type="text" name="username" size="19" class="inputcss" style="background-color:#e8f4ff " onMouseOver="this.style.backgroundColor='#ffffff'" onMouseOut="this.style.backgroundColor='#e8f4ff'">
</div></td>
</tr>
<tr>
<td height="20"><div align="right">密码:</div></td>
<td colspan="2"><div align="left">
<input type="password" name="userpwd" size="19" class="inputcss" style="background-color:#e8f4ff " onMouseOver="this.style.backgroundColor='#ffffff'" onMouseOut="this.style.backgroundColor='#e8f4ff'">
</div></td>
</tr>
<tr>
<td height="20"><div align="right">验证:</div></td>
<td width="66" height="20"><div align="left">
<input type="text" name="yz" size="10" class="inputcss" style="background-color:#e8f4ff " onMouseOver="this.style.backgroundColor='#ffffff'" onMouseOut="this.style.backgroundColor='#e8f4ff'">
</div></td>
<td width="64"><div align="left">
<?php
$num=intval(mt_rand(1000,9999));
for($i=0;$i<4;$i++){
echo "<img src=images/code/".substr(strval($num),$i,1).".gif>";
}
?>
</div></td>
</tr>
<tr>
<td height="20" colspan="3"> <div align="right">
<input type="hidden" value="<?php echo $num;?>" name="num">
<input name="submit" type="submit" class="buttoncss" value="提 交"> <input name="reset" type="reset" class="buttoncss" value="重填"></div></td>
</tr>
</form>
</table>
<?php }
else
{
?>
<table width="180" border="0" cellpadding="0" cellspacing="0">
<form name="form2" method="post" action="chkuser.php" onSubmit="return chkuserinput(this)">
<tr>
<td height="10" colspan="3"> </td>
</tr>
<tr>
<td height="20"><div align="right">ID:</div></td>
<td colspan="2"><div align="left"><?php echo $_SESSION[uid];?></div></td>
</tr>
<tr>
<td width="50" height="20"><div align="right">用户:</div></td>
<td height="20" colspan="2"><div align="left"><?php echo $_SESSION[name];?></div></td>
</tr>
<tr>
<td height="20" colspan="3"><div align="right">
<input name="button" type="button" class="buttoncss" onclick="javascript:loginout.php" value="退出"></div></td>
</tr>
</table>
<?php
}?>
</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="17"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="39"><img src="images/gonggao.gif" width="209" height="39" border="0" usemap="#Map"></td>
</tr>
<tr>
<td height="40" background="images/line3.gif"><table width="180" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td><table width="180" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td height="5"></td>
</tr>
<?php
$sql=mysql_query("select * from article where _type='通知' and _publish='YES' order by _id desc limit 0,5");
$info=mysql_fetch_array($sql);
if($info==false){
?>
<tr>
<td height="20" align="center">本站暂无通知!</td>
</tr>
<?php
}
else{
do{
?>
<tr>
<td height="20"><div align="center">
<table width="180" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="16" height="5"><div align="center"><img src="images/xing.gif" width="9" height="9"></div></td>
<td width="164" height="24"><div align="left"> <a href="article.php?id=<?php echo $info['_id'];?>">
评论30