<?php
include_once("../inc/conn.php");
include_once("../inc/function.php");
include_once("ubb.php");
$ubb = new ubb();
$db->query("update {$web_dbtop}bbs_posts set dj=dj+1 where id =".intval($_GET["threadsid"]));
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD>
<TITLE>社区-<?=$web_name;?></TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<META content="<?=$web_description;?>" name="cescription">
<META content="<?=$web_keywords;?>" name="keywords">
<META content="MSHTML 6.00.3790.4426" name=GENERATOR>
<link href="../style/default.css" rel="stylesheet" type="text/css" />
<style>
.smiliesgroup ul{margin:6px 0;padding:0 0 24px 8px;border-bottom:1px solid #DDD;}
.smiliesgroup li{display:inline;}
.smiliesgroup li a{float:left;margin-right:6px;padding:2px 10px;height:24px;height:19px;border:1px solid #DDD;color:#09C;}
.smiliesgroup li a.current{border-bottom-color:#FFF;background:#FFF;font-weight:bold;color:#444;}
</style>
<script language="javascript" type="text/javascript" src="ubb/AnUbbEditor-min.js"></script>
<body>
<a name="top" id="top"></a>
<?php 
include_once("../top.php");
$query=$db->query("Select moderators from {$web_dbtop}bbs_section where id=".intval($_GET["forumsid"]));
   if($rs=$db->fetch_array($query)){
   		$moderators=$rs["moderators"];
   }?>
<script language="javascript">
qiehuan(8);
document.getElementById('bbs_<?=$_GET["forumsid"];?>').className="current";
</script>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:0 auto">
<tr>
     <td width="387" height="20" style="margin:0px;padding:0px;"><img src="images/icon_homepage.gif"> <a href="../index.php"><?=$web_name?></a> - <a href="index.php">论坛</a></td>
     <td rowspan="2" align="right"><? if(intval($_COOKIE["usersid"])){?><table border="0" cellspacing="0" cellpadding="0">
       <tr align="right">
         <td><a href="#read"><img src="images/reply.gif" width="70" height="28" border="0"></a></td>
         <td width="75"><a href="post.php?forumsid=<?=intval($_GET["forumsid"])?>"><img src="images/new_topic.gif" width="70" height="28" border="0"></a></td>
       </tr>
     </table><? }?></td>
  </tr>
  <tr>
     <td height="20" style="color: #999999;">版主：<? $moderators=explode(",",$moderators);
							foreach ($moderators as $usersbz){
								if($usersbz){
									if($usersbz==intval($_COOKIE["usersid"])){
										$bzshow=1;
									}
	  								echo showcontent("users","name",$usersbz)."&nbsp;&nbsp;";
								}
	  						}
							?></td>
  </tr>
</table>
    <?
   $i=0;
   if(empty($_GET['page']) || $_GET['page']==1){
	   $query=$db->query("Select * from {$web_dbtop}bbs_posts where id=".intval($_GET["threadsid"]));
	   if($rs=$db->fetch_array($query)){
			$i=1;
			$tid=$rs["id"];
	   ?>
	 <table width="960" border="0" align="center" cellpadding="4" cellspacing="0" style="margin:0 auto;border: 1px solid #CAD9EA; margin-bottom:5px; margin-top:5px;">
	   	<tr>
		 	<td height="28" colspan="2" background="images/menu_bg.gif" style=" padding-left:40px;" class="font14"><?=$rs["title"]?></td>
	   	</tr>
		<tr>
			<td width="180" height="30" valign="top" bgcolor="#F6FBFF" style="border-right: 1px solid #CAD9EA;border-top: 1px solid #CAD9EA; padding-top:10px;">
			<?
			$query_f=$db->query("Select id,name,points,maxexperience,vip,head,caption from {$web_dbtop}users where id=".$rs["uid"]);
			if($rs_f=$db->fetch_array($query_f)){
				$uname=$rs_f["name"];
				$ucaption=$rs_f["caption"];
				$uid=$rs_f["id"];
			?>
			<TABLE cellSpacing=0 cellPadding=0 align=center border=0>
              <TBODY>
                <TR>
                  <TD align="center">
                    <table  border="0" cellspacing="0" cellpadding="2" style="border: 1px solid #cccccc;">
                      <tr>
                        <td><IMG height=150 onerror="this.src='../images/head/1_0.jpg'" src="../<?=$rs_f["head"]?>" width=150></td>
                      </tr>
                  </table></TD>
                </TR>
                <TR>
                  <TD><TABLE cellSpacing=2 cellPadding=2 width="100%" border=0>
                      <TBODY>
                        <TR>
                          <TD>ID：</TD>
                          <TD width="72%"><A class=red href="../user.php?id=<?=$rs_f["id"]?>"  target="_blank"><?=$rs_f["id"]?></A></TD>
                        </TR>
                        <TR>
                          <TD>昵称：</TD>
                          <TD><A href="../user.php?id=<?=$rs_f["id"]?>" target="_blank" class=rf><?=$rs_f["name"]?></A></TD>
                        </TR>
                        <TR>
                          <TD>头衔：</TD>
                          <TD><?=($rs_f["vip"]==1?"VIP会员":"普通会员")?></TD>
                        </TR>
                        <TR>
                          <TD><?=$web_moneyname?>：</TD>
                          <TD><?=number_format($rs_f["points"])?><img src="../<?=$web_moneypic?>" alt="<?=$web_moneyname?>"></TD>
                        </TR>
                        <TR>
                          <TD vAlign=top>等级：</TD>
                          <TD><? showstars(userslive($rs_f["maxexperience"]));?></TD>
                        </TR>
                      </TBODY>
                  </TABLE></TD>
                </TR>
              </TBODY>
            </TABLE>
			<?
			}
			?>
		  </td>
			<td style="border-top: 1px solid #CAD9EA;"><TABLE style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all; WORD-WRAP: break-word" cellSpacing=2 cellPadding=2 width="95%" align=center border=0>
              <TBODY>
                <TR>
                  <TD height=30 class=line2><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                      <TBODY>
                        <TR>
                          <TD style="color:#666666">发表于：<?=$rs["time"]?></TD>
                          <TD width=60 align="right" style="color:#666666;font-weight: bold;">楼主</TD>
                        </TR>
                      </TBODY>
                  </TABLE></TD>
                </TR>
                <TR>
                  <TD vAlign=top class="font14">标题：
                      <?=$rs["title"]?></TD>
                </TR>
                <TR>
                  <TD vAlign=top class="font14" style="MIN-HEIGHT: 180px; HEIGHT: 180px"><?=$ubb->ubb2html($rs["content"])?></TD>
                </TR>
                <TR>
                  <TD>&nbsp;</TD>
                </TR>
                <TR>
                  <TD height=20><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                      <tr>
                        <td class="font-yellow">个性签名：<?=$ucaption?></td>
                        <td width="18%" align="right"><? if($bzshow==1){?><A title=删除 href="tcl.php?action=del&id=<?=$rs["id"]?>&forumsid=<?=$_GET["forumsid"]?>">删除</a> | <? }?><? if(intval($_COOKIE["usersid"])){?><A href="javascript:ubbquote('<?=$rs["content"]?>[align=right]-- by <?=$uname;?> (<?=$rs["time"]?>)[/align]')">引用</A><? } if($uid==intval($_COOKIE["usersid"])){?> | <A title=修改 href="post.php?act=posts&threadsid=<?=$rs["id"]?>">修改</A><? }?> </td>
                        <td width="2%" align="right" style="padding-top:2px;"><a href="#top"><img src="images/top.gif" width="13" height="13" border="0"></a></td>
                      </tr>
                    </table></TD>
                </TR>
              </TABLE></td>
		</tr>
</table>
	   <?
	   }
   }
  
		$intpage = 10-$i;
		if (isset($_GET['page'])) {
			$rsnum = (intval($_GET['page']) -1)*$intpage;
		}
		else {
			$rsnum = 0;
		}
		$sql="Select * from {$web_dbtop}bbs_reply where pid=".intval($_GET["threadsid"])." Order by id asc";
		$query=$db->query($sql);
		if($db->fetch_array($query)) 
		$intnum=$db->num_rows($query);
		$query=$db->query($sql." limit $rsnum,$intpage");
		while($rs=$db->fetch_array($query)){
   ?>
 <table width="960" border="0" align="center" cellpadding="4" cellspacing="0" style="margin:0 auto;border: 1px solid #CAD9EA;margin-bottom:5px;">
   <tr>
     <td width="180" height="30" valign="top" bgcolor="#F6FBFF" style="border-right: 1px solid #CAD9EA; padding-top:10px;"><?
			$query_f=$db->query("Select id,name,points,maxexperience,vip,head,caption from {$web_dbtop}users where id=".$rs["uid"]);
			if($rs_f=$db->fetch_array($query_f)){
				$uname=$rs_f["name"];
				$ucaption=$rs_f["caption"];
			?>
       <TABLE cellSpacing=0 cellPadding=0 align=center border=0>
         <TBODY>
           <TR>
             <TD align="center"><table  border="0" cellspacing="0" cellpadding="2" style="border: 1px solid #cccccc;">
                 <tr>
                   <td><IMG height=150 onerror="this.src='../images/head/1_0.jpg'" src="../<?=$rs_f["head"]?>" width=150></td>
                 </tr>
             </table></TD>
           </TR>
           <TR>
             <TD><TABLE cellSpacing=2 cellPadding=2 width="100%" border=0>
                 <TBODY>
                   <TR>
                     <TD>ID：</TD>
                     <TD width="72%"><A class=red href="../user.php?id=<?=$rs_f["id"]?>" target="_blank"><?=$rs_f["id"]?></A></TD>
                   </TR>
                   <TR>
                     <TD>昵称：</TD>
                     <TD><A class=rf href="../user.php?id=<?=$rs_f["id"]?>" target="_blank"><?=$rs_f["name"]?></A></TD>
                   </TR>
                   <TR>
                     <TD>头衔：</TD>
                     <TD><?=($rs_f["vip"]==1?"VIP会员":"普通会员")?></TD>
                   </TR>
                   <TR>
                     <TD><?=$web_moneyname?>：</TD>
                     <TD><?=number_format($rs_f["points"])?><img src="../<?=$web_moneypic?>" alt="<?=$web_moneyname?>"></TD>
                   </TR>
                   <TR>
                     <TD vAlign=top>等级：</TD>
                     <TD><? showstars(userslive($rs_f["maxexperience"]));?></TD>
                   </TR>
                 </TBODY>
             </TABLE></TD>
           </TR>
         </TBODY>
       </TABLE>
     <?
			}
			?></td>
      <td class="font14"><TABLE style="TABLE-LAYOUT: fixed; WORD-BREAK: break-all; WORD-WRAP: break-word" cellSpacing=2 cellPadding=2 width="95%" align=center border=0>
        <TBODY>
          <TR>
            <TD height=30 class=line2><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                <TBODY>
                  <TR>
                    <TD style="color:#666666">发表于：
                        <?=$rs["time"]?></TD>
                    <TD width=60 align="right" style="color:#666666;font-weight: bold;">#<?=$i+$rsnum?></TD>
                  </TR>
                </TBODY>
            </TABLE></TD>
          </TR>
          <TR>
            <TD vAlign=top class="font14">标题：
                <?=$rs["title"]?></TD>
          </TR>
          <TR>
            <TD vAlign=top class="font14" style="MIN-HEIGHT: 180px; HEIGHT: 180px"><?=$ubb->ubb2html($rs["content"])?></TD>
          </TR>
          <TR>
            <TD>&nbsp;</TD>
          </TR>
          <TR>
            <TD height=20><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                <tr>
                  <td class="font-yellow">个性签名：<?=$ucaption?></td>
                  <td width="18%" align="right"><? if($bzshow==1){?><A title=删除 href="tcl.php?action=delread&id=<?=$rs["id"]?>&forumsid=<?=$_GET["forumsid"]?>">删除</a> | <? }?><? if(intval($_COOKIE["usersid"])){?><A href="javascript:ubbquote('<?=$rs["content"]?>[align=right]-- by <?=$uname;?> (<?=$rs["time"]?>)[/align]')">引用</A><? } if($uid==intval($_COOKIE["usersid"]) && $_COOKIE["usersid"]){?> | <A title=修改 href="post.php?act=ereply&replyid=<?=$rs["id"]?>">修改</A><? }?></td>
                  <td width="2%" align="right" style="padding-top:2px;"><a href="#top"><img src="images/top.gif" width="13" height="13" border="0"></a></td>
                </tr>
            </table></TD>
          </TR>
        </TABLE></td>
   </tr>
</table>
<?
	$i++;
   }
?>
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" style="margin:0 auto">
  <tr>
    <td width="570" style="color: #999999;">&nbsp;</td>
    <td width="570" align="right"><div class="pagenavi"><?php
		  include_once("../inc/page_class.php");
		  $page=new page(array('total'=>$intnum,'perpage'=>$intpage));
		  echo $page->show(6,"page","curr");?></div></td>
  </tr>
</table>
<? if(intval($_COOKIE["usersid"])){?>
<script language="javascript" type="text/javascript">
var editor1=null,editor2=null,editor3=null;
_.load(function(){
        editor1=new AnUBBEditor("content",false); 
});
</script> 
<a name="read" id="read"></a>
<table width="960" border="0" align="center" cellpadding="4" cellspacing="0" style="border: 1px solid #CAD9EA;margin:0 auto">
  <form method="post" id="postform" action="post.php?act=reply" onsubmit="return validate();">
    <tr>
      <td height="28" colspan="2" background="images/panel_gray.gif">&nbsp;&nbsp;<strong>快速回复</strong></td>
    </tr>
    <tr>
      <td width="500" height="40" style="border-top:1px #CAD9EA solid;"><table width="100%"  border="0" cellspacing="5" cellpadding="0">
          <input type="hidden" name="id" id="id" value="<?=$_GET["threadsid"]?>" />
          <tr>
            <td width="8%" height="30">标题：</td>
            <td width="92%"><input name="title" type="text" id="title" style="border:1px #dddddd solid;width:300px;height:18px;"></td>
          </tr>
          <tr>
            <td colspan="2"><textarea id="content" name="content" style="width:98.5%;height:140px;"></textarea></td>
          </tr>
      </table></td>
      <td valign="top" style="border-top:1px #CAD9EA solid;"><div id="smiliesdiv">
          <DIV class=smiliesgroup style="MARGIN-RIGHT: 0px">
            <UL>
              <LI><A class=current id=stype1 onclick="toggleTo(1)" href="javascript:;">默认</A></LI>
              <LI><A id=stype2 onclick="toggleTo(2)" href="javascript:;">酷猴</A></LI>
              <LI><A id=stype3 onclick="toggleTo(3)" href="javascript:;">呆呆男</A></LI>
              <LI><A id=stype4 onclick="toggleTo(4)" href="javascript:;">阿狸</A></LI>
            </UL>
          </DIV>
          <DIV id=smiliesdiv_data1 style="CLEAR: both">
            <TABLE style="CLEAR: both" cellSpacing=16 cellPadding=0>
              <TBODY>
                <TR>
                  <TD onclick=definitionFace(":)")><IMG height=20 alt=:) src="ubb/smilies/default/smile.gif" width=20></TD>
                  <TD onclick=definitionFace(":(")><IMG height=20 alt=:( src="ubb/smilies/default/sad.gif" width=20></TD>
                  <TD onclick=definitionFace(":D")><IMG height=20 alt=:D src="ubb/smilies/default/biggrin.gif" width=20></TD>
                  <TD onclick=definitionFace(":'(")><IMG height=20 alt=":'(" src="ubb/smilies/default/cry.gif" width=20></TD>
                  <TD onclick=definitionFace(":@")><IMG height=20 alt=:@ src="ubb/smilies/default/huffy.gif" width=20></TD>
                  <TD onclick=definitionFace(":o")><IMG height=20 alt=:o src="ubb/smilies/default/shocked.gif" width=20></TD>
                  <TD onclick=definitionFace(":P")><IMG height=20 alt=:P src="ubb/smilies/default/tongue.gif" width=20></TD>
                  <TD onclick=definitionFace(":$")><IMG height=20 alt=:$ src="ubb/smilies/default/shy.gif" width=20></TD>
                  <TD onclick=definitionFace(";P")><IMG height=20 alt=;P src="ubb/smilies/default/titter.gif" width=20></TD>
                  <TD onclick=definitionFace(":L")><IMG height=20 alt=:L src="ubb/smilies/default/sweat.gif" width=20></TD>
			    <TR>
                  <TD onclick=definitionFace(":Q")><IMG height=20 alt=:Q src="ubb/smilies/default/mad.gif" width=20></TD>
                  <TD onclick=definitionFace(":lol")><IMG height=20 alt=:lol src="ubb/smilies/default/lol.gif" width=20></TD>
                  <TD onclick=definitionFace(":loveliness:")><IMG height=20 alt=:loveliness: src="ubb/smilies/default/loveliness.gif" width=20></TD>
                  <TD onclick=definitionFace(":funk:")><IMG height=20 alt=:funk: src="ubb/smilies/default/funk.gif" width=20></TD>
                  <TD onclick=definitionFace(":curse:")><IMG height=20 alt=:curse: src="ubb/smilies/default/curse.gif" width=20></TD>
                  <TD onclick=definitionFace(":dizzy:")><IMG height=20 alt=:dizzy: src="ubb/smilies/default/dizzy.gif" width=20></TD>
                  <TD onclick=definitionFace(":shutup:")><IMG height=20 alt=:shutup: src="ubb/smilies/default/shutup.gif" width=20></TD>
                  <TD onclick=definitionFace(":sleepy:")><IMG height=20 alt=:sleepy: src="ubb/smilies/default/sleepy.gif" width=20></TD>
                  <TD onclick=definitionFace(":hug:")><IMG height=20 alt=:hug: src="ubb/smilies/default/hug.gif" width=20></TD>
                  <TD onclick=definitionFace(":victory:")><IMG height=20 alt=:victory: src="ubb/smilies/default/victory.gif" width=20></TD>
                <TR>
				  <TD onclick=definitionFace(":time:")><IMG height=20 alt=:time: src="ubb/smilies/default/time.gif" width=20></TD>
                  <TD onclick=definitionFace(":kiss:")><IMG height=20 alt=:kiss: src="ubb/smilies/default/kiss.gif" width=20></TD>
                  <TD onclick=definitionFace(":handshake")><IMG height=20 alt=:handshake src="ubb/smilies/default/handshake.gif" width=20></TD>
                  <TD onclick=definitionFace(":call:")><IMG height=20 alt=:call: src="ubb/smilies/default/call.gif" width=20></TD>
                </TR>
              </TBODY>
            </TABLE>
          </DIV>
          <DIV id=smiliesdiv_data2 style="CLEAR: both;display:none;">
            <TABLE style="CLEAR: both" cellSpacing=4 cellPadding=0>
              <TBODY>
                <TR>
                  <TD onclick=definitionFace("[m:01]")><IMG height=48 alt=[m:01] src="ubb/smilies/monkey/01.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:02]")><IMG height=48 alt=[m:02] src="ubb/smilies/monkey/02.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:03]")><IMG height=48 alt=[m:03] src="ubb/smilies/monkey/03.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:04]")><IMG height=48 alt=[m:04] src="ubb/smilies/monkey/04.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:05]")><IMG height=48 alt=[m:05] src="ubb/smilies/monkey/05.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:06]")><IMG height=48 alt=[m:06] src="ubb/smilies/monkey/06.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:07]")><IMG height=48 alt=[m:07] src="ubb/smilies/monkey/07.gif" width=48></TD>
				<TR>
                  <TD onclick=definitionFace("[m:08]")><IMG height=48 alt=[m:08] src="ubb/smilies/monkey/08.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:09]")><IMG height=48 alt=[m:09] src="ubb/smilies/monkey/09.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:10]")><IMG height=48 alt=[m:10] src="ubb/smilies/monkey/10.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:11]")><IMG height=48 alt=[m:11] src="ubb/smilies/monkey/11.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:12]")><IMG height=48 alt=[m:12] src="ubb/smilies/monkey/12.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:13]")><IMG height=48 alt=[m:13] src="ubb/smilies/monkey/13.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:14]")><IMG height=48 alt=[m:14] src="ubb/smilies/monkey/14.gif" width=48></TD>
				<TR>
				  <TD onclick=definitionFace("[m:15]")><IMG height=48 alt=[m:15] src="ubb/smilies/monkey/15.gif" width=48></TD>
                  <TD onclick=definitionFace("[m:16]")><IMG height=48 alt=[m:16] src="ubb/smilies/monkey/16.gif" width=48></TD>
                </TR>
              </TBODY>
            </TABLE>
          </DIV>
          <DIV id=smiliesdiv_data3 style="CLEAR: both;display:none;">
            <TABLE style="CLEAR: both" cellSpacing=4 cellPadding=0>
              <TBODY>
                <TR>
                  <TD onclick=definitionFace("[g:01]")><IMG height=48 alt=[g:01] src="ubb/smilies/grapeman/01.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:02]")><IMG height=48 alt=[g:02] src="ubb/smilies/grapeman/02.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:03]")><IMG height=48 alt=[g:03] src="ubb/smilies/grapeman/03.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:04]")><IMG height=48 alt=[g:04] src="ubb/smilies/grapeman/04.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:05]")><IMG height=48 alt=[g:05] src="ubb/smilies/grapeman/05.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:06]")><IMG height=48 alt=[g:06] src="ubb/smilies/grapeman/06.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:07]")><IMG height=48 alt=[g:07] src="ubb/smilies/grapeman/07.gif" width=48></TD>
				<TR>
                  <TD onclick=definitionFace("[g:08]")><IMG height=48 alt=[g:08] src="ubb/smilies/grapeman/08.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:09]")><IMG height=48 alt=[g:09] src="ubb/smilies/grapeman/09.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:10]")><IMG height=48 alt=[g:10] src="ubb/smilies/grapeman/10.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:11]")><IMG height=48 alt=[g:11] src="ubb/smilies/grapeman/11.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:12]")><IMG height=48 alt=[g:12] src="ubb/smilies/grapeman/12.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:13]")><IMG height=48 alt=[g:13] src="ubb/smilies/grapeman/13.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:14]")><IMG height=48 alt=[g:14] src="ubb/smilies/grapeman/14.gif" width=48></TD>
				<TR>
                  <TD onclick=definitionFace("[g:15]")><IMG height=48 alt=[g:15] src="ubb/smilies/grapeman/15.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:16]")><IMG height=48 alt=[g:16] src="ubb/smilies/grapeman/16.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:17]")><IMG height=48 alt=[g:17] src="ubb/smilies/grapeman/17.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:18]")><IMG height=48 alt=[g:18] src="ubb/smilies/grapeman/18.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:19]")><IMG height=48 alt=[g:19] src="ubb/smilies/grapeman/19.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:20]")><IMG height=48 alt=[g:20] src="ubb/smilies/grapeman/20.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:21]")><IMG height=48 alt=[g:21] src="ubb/smilies/grapeman/21.gif" width=48></TD>
				<TR>
                  <TD onclick=definitionFace("[g:22]")><IMG height=48 alt=[g:22] src="ubb/smilies/grapeman/22.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:23]")><IMG height=48 alt=[g:23] src="ubb/smilies/grapeman/23.gif" width=48></TD>
                  <TD onclick=definitionFace("[g:24]")><IMG height=48 alt=[g:24] src="ubb/smilies/grapeman/24.gif" width=48></TD>
                </TR>
              </TBODY>
            </TABLE>
          </DIV>
          <DIV id=smiliesdiv_data4 style="CLEAR: both;display:none;">
            <TABLE style="CLEAR: both" cellSpacing=4 cellPadding=0>
              <TBODY>
                <TR>
                  <TD onclick=definitionFace("[l:01]")><IMG height=50 alt=[l:01] src="ubb/smilies/definition/01.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:02]")><IMG height=50 alt=[l:02] src="ubb/smilies/definition/02.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:03]")><IMG height=50 alt=[l:03] src="ubb/smilies/definition/03.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:04]")><IMG height=50 alt=[l:04] src="ubb/smilies/definition/04.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:05]")><IMG height=50 alt=[l:05] src="ubb/smilies/definition/05.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:06]")><IMG height=50 alt=[l:06] src="ubb/smilies/definition/06.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:07]")><IMG height=50 alt=[l:07] src="ubb/smilies/definition/07.gif" width=50></TD>
			    <TR>
                  <TD onclick=definitionFace("[l:08]")><IMG height=50 alt=[l:08] src="ubb/smilies/definition/08.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:09]")><IMG height=50 alt=[l:09] src="ubb/smilies/definition/09.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:10]")><IMG height=50 alt=[l:10] src="ubb/smilies/definition/10.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:11]")><IMG height=50 alt=[l:11] src="ubb/smilies/definition/11.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:12]")><IMG height=50 alt=[l:12] src="ubb/smilies/definition/12.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:13]")><IMG height=50 alt=[l:13] src="ubb/smilies/definition/13.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:14]")><IMG height=50 alt=[l:14] src="ubb/smilies/definition/14.gif" width=50></TD>
			    <TR>
                  <TD onclick=definitionFace("[l:15]")><IMG height=50 alt=[l:15] src="ubb/smilies/definition/15.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:16]")><IMG height=50 alt=[l:16] src="ubb/smilies/definition/16.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:17]")><IMG height=50 alt=[l:17] src="ubb/smilies/definition/17.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:18]")><IMG height=50 alt=[l:18] src="ubb/smilies/definition/18.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:19]")><IMG height=50 alt=[l:19] src="ubb/smilies/definition/19.gif" width=50></TD>
                  <TD onclick=definitionFace("[l:20]")><IMG height=50 alt=[l:20] src="ubb/smilies/definition/20.gif" width=50></TD>
                </TR>
              </TBODY>
            </TABLE>
          </DIV>
        </div>
          <script type="text/javascript">
			<!--
			function toggleTo(img)
			{
				for(i=1;i<5;i++){
					if(img==i)
					{
						document.getElementById("smiliesdiv_data"+i).style.display = "";
						document.getElementById("stype"+i).className="current";
					}
					else{
						document.getElementById("smiliesdiv_data"+i).style.display = "none";
						document.getElementById("stype"+i).className="";
					}
				}
			}
			
			function definitionFace(v){
				var obj = document.getElementById("content");
				obj.value += v;
			}
			
			function validate(){
				if(document.getElementById("content").value==""){
					alert("对不起，回复帖子内容不能为空！");
					Ofocu('content');
					return false;
				}
				return true;
			}
			
			function Ofocu(obj){
				window.tmpObj = document.getElementById(obj);
				window.setTimeout("window.tmpObj.focus()",100);
			}
			
			function ubbquote(st){
				document.getElementById("content").value += "[quote]"+unescape(st)+"[/quote]";
				Ofocu("content");
			}
			-->
			</script>
      </td>
    </tr>
    <tr>
      <td height="28" align="center" style="border-top:1px #CAD9EA solid;"><input name="imageField" type="image" src="images/doudoubbs_05.gif" width="63" height="23" border="0"></td>
      <td height="20" style="border-top:1px #CAD9EA solid;">&nbsp;</td>
    </tr>
  </form>
</table>
<?
}
?>
 <DIV class=blank10></DIV>
<?php include_once("../footer.php");?>
