<!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=gb2312" />
<title><?php echo $title;?>圈所有留言</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 (){
	//DIGG资讯无刷新切换
	pigzmo("subtitle","replaytitle",2,0);
	}
	function replies(_id){
	var _string;
	_string = document.getElementById("topic_"+_id).innerHTML;
	document.getElementById("reply_title").value = "[回复"+_id+"楼]"+_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 = "[引用"+_id+"楼]"+_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 $title;?>圈] - 所有留言    	
          </div>
          <div class="group_class_button_bg">
          	<div class="group_class_button"><a href="guestbookform.php?id=<?php echo $id;?>">留言</a>
            </div>
            <div class="group_class_button1"><a href="group.php?id=<?php echo $id;?>">返回</a>
            </div>		
          </div>
          <?php
          $mylist = $dlist->GetDataList();
          while($rs = $mylist->GetArray('dm'))
          {
          $i++;
          ?>
          <div class="group_class_topic" id="topic_<?php echo $i;?>"><?php echo $rs['title'];?>
          </div>
        
          <div class="group_class_topic_text1">
          	<div class="group_class_topic_id"><?php echo $i;?>楼： <a href="/member/index.php?id=<?php echo $rs['userid'];?>" target="_blank"><?php echo $rs['uname'];?></a>  <?php echo date('Y-m-d h:i:s',$rs['stime']);?> 
            </div>
            <div class="group_class_topic_reply"><a href="javascript:replies(<?php echo $i;?>);">回复</a>
            </div>
            <div class="group_class_topic_quote"><a href="javascript:quote(<?php echo $i;?>);">引用</a> <a href="guestbook.php?id=<?php echo $id;?>&do=del&bid=<?php echo $rs['bid'];?>" onClick="return(confirm('删除后无法恢复,您确定删除吗?'))"><?php if($ismaster) echo "删除";?></a></div>
            <div class="group_class_topic_font" id="quote_<?php echo $i;?>">
            <?php 
            echo $rs['message'];
            ?>
            </div>
          </div>
          <?php
          }
          ?>
      
        <div class="group_class_more"><?php echo $dlist->GetPageList(7);?></div>
   	  	</div>        
        <div class="clear">
     	</div>
        <form name="form1" action="guestbookform.php?id=<?php echo $id;?>" 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">快速留言
    		</div>
    		<div><textarea class="group_fast_reply_label" id="group_fast_reply_label" name="text"></textarea>
    		</div>
            <div>
            验证码：<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"> *输入右边出现图片上的文字.
            </div>
    		<div style="margin-top:10px;"><input type="submit" value="提  交" /> 
  			</div>
  		</div>
        </form>    
    </div>
    <div class="clear">
    </div>
  </div>
  <!--中部结束-->
<?php
require_once(dirname(__FILE__)."/line.htm");
?>
</div>
</body>
</html>