<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><?php echo $subject;?></title>
<link href="css/style.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="js/pigzmo.js"></script>
<script language="javascript" type="text/javascript">
	window.onload=function (){
	pigzmo("subtitle","replaytitle",2,0);
	}
	function replies(_id){
	var _string;
	_string = document.getElementById("topic_"+_id).innerHTML;
	document.getElementById("reply_title").value = "[<?php echo $lang['group_topic_reply'];?>"+_id+"<?php echo $lang['group_topic_floor'];?>]"+_string;
	}
	function quote(_id){
	var _string;
	var _string2;
	_string2 = document.getElementById("topic_"+_id).innerHTML;
	_string = document.getElementById("quote_"+_id).innerHTML;
	document.getElementById("reply_title").value = "[<?php echo $lang['group_topic_quote'];?>"+_id+"<?php echo $lang['group_topic_floor'];?>]"+_string2;
	document.getElementById("group_fast_reply_label").value = "<div class='quote'>"+_string+"</div>";
	}
</script>
</head>

<body>
<div id="container">
<?php
require_once(dirname(__FILE__)."/top.htm");
?>
  <div id="group_class_main">
    <?php
    require_once(dirname(__FILE__)."/left.htm");
    ?>
    <div id="group_class_right">
      <div class="group_class_forum1">
       	  <div class="group_class_forum_title1"><?php echo $subject;?>
          </div>
          <div class="group_class_button_bg">
          	<div class="group_class_button"><a href="postform.php?id=<?php echo $id;?>"><?php echo $lang['group_topic_form'];?></a>
            </div>
            <div class="group_class_button"><a href="reply.php?id=<?php echo $id;?>&tid=<?php echo $tid;?>&do=form"><?php echo $lang['group_topic_reform'];?></a>
            </div>
            <div class="group_class_button1"><a href="group.php?id=<?php echo $id;?>"><?php echo $lang['group_guestbook_return'];?></a>
            </div>		
          </div>
          <?php
          $mylist = $dlist->GetDataList();
          while($rs = $mylist->GetArray('dm'))
          {
          $topic = "1";
          if($rs['first']) $topic="";
          ?>
          <?php if(!empty($rs['subject'])){ ?>
          <div class="group_class_topic" id="topic_<?php echo $i;?>"><?php echo $rs['subject'];?>
          </div>
        <?php }else { ?> <div id="topic_<?php echo $i;?>"></div><?php }?>
          <div class="group_class_topic_text<?php echo $topic;?>">
          	<div class="group_class_topic_id"><?php if($rs['first']) echo $lang['group_topic_landlord'];else echo $i.$lang['group_topic_floor'];?>： <a href="/member/index.php?id=<?php echo $rs['authorid'];?>" target="_blank"><?php echo $rs['author'];?></a>  <?php echo date('y-m-d H:i:s',$rs['dateline']);?> 
            </div>
            <div class="group_class_topic_reply"><a href="javascript:replies(<?php echo $i;?>);"><?php echo $lang['group_topic_reply'];?></a>
            </div>
            <div class="group_class_topic_quote"><a href="javascript:quote(<?php echo $i;?>);"><?php echo $lang['group_topic_quote'];?></a><?php if($ismaster||$cfg_ml->M_ID==$rs['authorid']) { ?> <a href="viewthread.php?id=<?php echo $id;?>&do=del&pid=<?php echo $rs['pid'];?>&tid=<?php echo $tid;?>" onClick="return(confirm('<?php echo $lang['group_notice_7'];?>'))"> <?php echo $lang['group_main_del'];?> </a>   <a href="reply.php?id=<?php echo $id;?>&tid=<?php echo $tid;?>&do=edit&pid=<?php echo $rs['pid'];?>"><?php echo $lang['group_main_laws'];?></a><?php } ?></div>
            <div class="group_class_topic_font" id="quote_<?php echo $i;?>">
            <?php 
            echo $rs['message'];
            ?>
            </div>
          </div>
          <?php
          $i++;
          }
          ?>      
        <div class="group_class_more"><?php echo $dlist->GetPageList(7);?></div>
   	  	</div>        
        <div class="clear">
     	</div>
        <form name="form1" action="reply.php?id=<?php echo $id;?>&tid=<?php echo $tid;?>" method="post">
        <input name="action" type="hidden" value="save">
    	<div class="group_fast_reply">
        <input name="subject" id="reply_title" type="hidden" value="" />
    		<div class="group_fast_reply_title"><?php echo $lang['group_topic_fastreply'];?>
    		</div>
    		<div><textarea class="group_fast_reply_label" id="group_fast_reply_label" name="threads"></textarea>
    		</div>
            <div>
            <?php echo $lang['group_main_vdcodes'];?><input name="vdcode" type="text" id="vdcode" style='height:18;width:50' size="13"> <img src='../include/vdimgck.php' width='50' height='20' align="absmiddle"> <?php echo $lang['group_notice_8'];?>
            </div>
    		<div style="margin-top:10px;"><input type="submit" value="<?php echo $lang['group_main_submit'];?>" /> 
  			</div>
  		</div>
        </form>    
    </div>
    <div class="clear">
    </div>
  </div>
<?php
require_once(dirname(__FILE__)."/line.htm");
?>
</div>
</body>
</html>