<!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 checkSubmit(){
	   if(document.form1.subject.value==""){
			alert("主题不能为空！");
			return false;
	   }else if(document.form1.vdcode.value==""){
	   	    alert("认证码必填！");
		    return false;
	   }
	}
</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_forum" style="margin-top:0px;">      
        	<div class="group_class_forum_title bigfont">发布新话题</div>
          <div class="group_class_forum_text">
            <form name="form1" action="" method="post" onSubmit="return checkSubmit();">
            <input name="action" type="hidden" value="save">
            <table width="100%" border="0" cellspacing="3" cellpadding="0">            
        <tr>
                      <td width="9%" height="30" align="right">主题: </td>
                      <td width="91%" height="30">
                      <?php if(!empty($smalltype_array)){ ?>
                      <select name="types" id="types">
                        <option value="0">选择话题类别</option>
                      	<?php 
                      	$smalltypes_option = '';
                        foreach($smalltype_array as $rs) $smalltypes_option .= "<option value=\"".$rs['id']."\">".$rs['smalltypes']."</option>\n";
                        echo $smalltypes_option;
                        ?>
                      </select>
                    <?php  }?> <input name="subject" type="text" id="subject" size="43" maxlength="70" style="height:18px;" /> 
                      *80个汉字内</td>
                    </tr>
                    <tr>
                      <td width="9%" height="30" align="right" valign="top">内容: </td>
                      <td width="91%">
                      <?php  GetEditor("threads","",260,"Member");?>
                      <br>
                      *话题内容在<?php echo $cfg_group_words;?>个汉字内,<span style="color:red;">拒绝任何人以任何形式在本圈子发表与中华人民共和国法律相抵触的言论!</span></td>
                    </tr>
                    <tr>
                      <td width="9%" height="30" align="right" valign="middle">认证码: </td>
                      <td width="91%" height="30"> <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"> *输入右边出现图片上的文字.</td>
              </tr>
                    <tr>
                      <td width="9%" height="30" align="right" valign="top"></td>
                      <td width="91%">
                      <input type="submit" value="提  交" /> 
                      或 <a href="group.php?id=<?php echo $id;?>">返回本圈首页</a>
                      </td>
                    </tr>
             </table>
            </form>
          </div>
      </div>
        </div>     
        <div class="clear">
        </div>        
    </div>
    <div class="clear">
    </div>
  </div>
  <!--中部结束-->    
<?php
require_once(dirname(__FILE__)."/line.htm");
?>
</div>
</body>
</html>