<!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=<?php echo $cfg_soft_lang; ?>" />
<title><?php echo $title;?><?php echo $lang['group_main_quan'].$lang['group_threads_all'];?></title>
<?php include_once GROUP_TPL.'/header.meta.html';?>
<style type="text/css">
<!--
.gLeft {
	float:left;
	width:75%;
}
.gCenter {
	display:none;
}
.gRight {
	float:left;
	width:24.9%;
}
-->
</style>
</head>
<body>
<?php include_once GROUP_TPL.'/header.html';?>
<div class="group wrap">
  <!--group left S -->
  <div class="gLeft">
    <div class="module" id="">
      <div class="top">
        <div class="t_l"></div>
      <div class="t_r"></div>
    <em><?php echo $lang['group_main_quanzi'].$lang['group_threads_titles'];?></em>
    </div>
  <div class="mid">
    <div class="m_l">
      <div class="m_r">
      	<div style="padding-bottom: 0pt;" class="content">
  <div id="bbs_2">
    <div class="linkFunc" id="bbs_block" style="height:100%;">
      <strong><input type="button" value="<?php echo $lang['group_topic_post'];?>" title="<?php echo $lang['group_topic_post'];?>" onClick="javascript:location='postform.php?id=<?php echo $id;?>';"/></strong>
      <a title="<?php echo $lang['group_topic_all'];?>" href="groupdisplay.php?id=<?php echo $id;?>&typeid=0"><?php echo $lang['group_topic_all'];?></a>
      <?php foreach($_COMMON['smalltypes'] as $row) { ?>  
      <em> | </em>
      <a title="<?php echo $row['name'];?>" href="groupdisplay.php?id=<?php echo $id;?>&typeid=<?php echo $row['id'];?>" <?php echo $row['selected'];?>><?php echo $row['name'];?></a>
      <?php }?>
      <div class="clear"></div>
    </div>
    <table cellspacing="0" cellpadding="0">
      <thead>
        <tr>
          <td class="td1"><?php echo $lang['group_topic_titles'];?></td>
          <td id="topichits" class="td3"><?php echo $lang['group_threads_hits'];?>/<?php echo $lang['group_threads_replies'];?></td>
          <td class="td2"><?php echo $lang['group_threads_author'];?></td>
          <td class="td5"><?php echo $lang['group_threads_lastpost'];?></td>
          <td class="td4"><?php echo $lang['group_threads_lastposter'];?></td>
        </tr>
      </thead>
      <tbody>
      	{dede:datalist}
        <?php
        $row = $fields;
        $row['subject'] = cn_substr($row['subject'],40);
        if($row['displayorder'])
        {
			$row['subject'] .= "<img src=\"images/common/top.gif\" border=\"0\" align=\"absmiddle\" />";
        }
        if($row['digest'])
        {
			$row['subject'] .= "<img src=\"images/common/best.gif\" border=\"0\" align=\"absmiddle\" />";
        }
        if($row['replies']>10)
        {
			$row['subject'] .= "<img src=\"images/common/hot.gif\" border=\"0\" align=\"absmiddle\" />";
        }
        if(!isset($keywords) && !empty($keywords))
        {
            $row['subject'] = str_replace("$keywords","<span style='color:red;'>$keywords</span>",$row['subject']);
        }
        ?>
        <tr>
          <th><em><a class="colorWeak" title="<?php echo _get_smalltype($row['smalltype']);?>" href="groupdisplay.php?id=<?php echo $id;?>&typeid=<?php echo $row['smalltype'];?>"><?php echo _get_smalltype($row['smalltype']);?></a></em><a class="linkText" href="viewthread.php?id=<?php echo $id;?>&tid=<?php echo $row['tid'];?>"><?php echo $row['subject'];?></a>   
          </th>
          <td class="bbs_color2 colorWeak"><em class="colorWeak"><?php echo $row['views'];?></em>/<em class="colorWeak"><?php echo $row['replies'];?></em></td>
          <td class="bbs_color1"><?php echo $row['author'];?></td>
          <td class="bbs_color4 colorWeak"><?php echo Mydate('m-d h:i',$row['lastpost']);?></td><td class="bbs_color3"><?php echo $row['lastposter'];?></td>
        </tr>
        {/dede:datalist}
      </tbody>
    </table>
    <div class="clear"></div>
    {dede:pagelist listitem="info,index,end,pre,next,pageno" listsize="5"/}
  </div>
  <div class="clear"></div>
  <div style="height: auto;padding: 0pt;min-height: 293px;" id="apply">
    <form action="postform.php?id=<?php echo $id;?>" method="post" name="fm_newtopic">
    <input name="action" type="hidden" value="save">
      <table cellspacing="0" cellpadding="0" style="border: 0pt none;" id="forum_fast">
        <thead>
          <tr>
            <th><?php echo $lang['group_threads_titles'];?>:</th>
            <td><input type="text" value="" maxlength="60" name="subject"/>
              <?php echo $lang['group_threads_selectstore'];?>
              <select name="types">
              	<option value="0"><?php echo $lang['group_topic_undefine'];?></option>
              	<?php foreach($_COMMON['smalltypes'] as $row) { ?>
                <option value="<?php echo $row['id'];?>"><?php echo $row['name'];?></option>
                <?php }?>
              </select>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th><?php echo $lang['group_main_texts'];?>:</th>
            <td>
            	<?php  GetEditor("threads","",260,"Member");?>            	
            </td>
          </tr>
        </tbody>
        <thead>
          <tr>
          	<th><?php echo $lang['group_main_vdcodes'];?>:</th>
            <td><input name="vdcode" type="text" id="vdcode" style='height:18;width:50px;' size="13"> <img src='../include/vdimgck.php' width='50' height='20' align="absmiddle"> <?php echo $lang['group_notice_8'];?></td>
          </tr>
        </thead>
        <tfoot>
          <tr>
            <th/>
            <td><input type="submit" value="<?php echo $lang['group_main_submit'];?>" name="publish"/> <?php echo $lang['group_main_or'];?> <a href="group.php?id=<?php echo $id;?>"><?php echo $lang['group_main_returnindex'];?></a></td>
          </tr>
        </tfoot>
      </table>
    </form>
  </div>
  <div class="clear"></div>
</div>
      </div>        
    </div>
  </div>
  <div class="bottom">
    <div class="b_l"></div>
  <div class="b_r"></div>
</div>
</div>
</div>
<!--group left E -->
<!--group center S -->
<div class="gCenter">
</div>
<!--group center E -->
<!--group right S -->
<div class="gRight">
    <div class="module" id="">
      <div class="top">
        <div class="t_l"></div>
      <div class="t_r"></div>
    <em><?php echo $lang['group_main_quanzi'].$lang['group_main_profile'];?></em></em>
    </div>
  <div class="mid">
    <div class="m_l">
      <div class="m_r">
        <div id="gInfo" class="content">
          <h1><a  title="<?php echo $lang['group_main_quanzi'].$lang['group_main_profile'];?>" target="_blank"><?php echo $title;?></a><em>[<?php echo $_GROUPS['hidden'];?>]</em></h1>
          <img width="80" height="80" class="imgBorder" alt="" id="headPhoto" src="<?php echo $icon;?>"/>
          <ul>
            <li id="gSort"><?php echo $lang['group_store'];?>:<?php echo $_GROUPS['store_name'];?></li>
            <li id="gDistrict"><?php echo $lang['group_topic_creaters'];?>:<?php echo $creater;?></li>
            <li id="gHost"><?php echo $lang['group_topic_members'];?>:<?php echo $members.$lang['group_topic_people'];?></li>
            <li id="gTime"><?php echo $lang['group_index_create'];?>:<em><?php echo $_GROUPS['time'];?></em></li>
          </ul>
          <dl>
            <dt><?php echo $lang['group_topic_hits'];?>:</dt>
            <dd><?php echo $_GROUPS['hits'];?></dd>
            <dt><?php echo $lang['group_topic_topic'];?>:</dt>
            <dd><?php echo $_GROUPS['topics'];?></dd>
            <dt><?php echo $lang['group_main_join'];?>:</dt>
            <dd><a href="reg.php?id=<?php echo $id;?>" title="<?php echo $lang['group_main_jointhis'];?>"><?php echo $lang['group_index_need_verify'];?></a></dd>
            <dt><?php echo $lang['group_main_deses'];?>:</dt>
            <dd><?php echo $des;?></dd>  
          </dl>
        </div>
      </div>
    </div>
  </div>
  <div class="bottom">
    <div class="b_l"></div>
  <div class="b_r"></div>
</div>
</div>
<div class="module" id="">
  <div class="top">
    <div class="t_l">
  </div>
  <div class="t_r">
</div>
<em><?php echo $lang['group_member_list'];?></em>
</div>
<div class="mid">
  <div class="m_l">
    <div class="m_r">
      <div id="member" class="content">
          <ul>
          <?php foreach($_GROUPS['members'] as $row) { ?>
          <li><img alt="<?php echo $row['uname'];?>" class="seniorImg imgBorder" src="<?php echo $row['face'];?>"/><a title="<?php echo $row['uname'];?>" target="_blank" href="<?php echo $cfg_member_dir;?>/?uid=<?php echo $row['userid'];?>"><?php echo $row['uname'];?></a></li>
          <?php } ?>
          </ul>  
  <div class="clear"></div>
  <p class="more" title="<?php echo $lang['group_main_more'];?>"><?php echo $lang['group_main_more'];?></p>
</div>
    </div>
  </div>
</div>
<div class="bottom">
  <div class="b_l">
</div>
<div class="b_r">
</div>
</div>
</div>
</div>
<!--group right E -->
<div class="clear"></div>
</div>
<?php include_once GROUP_TPL.'/footer.html';?>
</body>
</html>