<!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 $groupsname?>圈子信息</title>
<link href="../member/images/member.css" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="../images/js/j.js"></script>
<script language="javascript" type="text/javascript" src="../member/js/table_function.js"></script>
<script language="javascript" type="text/javascript">
function checkSubmit(){
   if(document.form1.groupname.value==""){
	    alert("圈子名称不能为空！");
	    return false;
   }else if(document.form1.store.value==0){
   		alert("请选择一个分类！");
	    return false;
   }
}
function SeePic(img,f){
   if ( f.value != "" ) { img.src = f.value; }
}
</script>
</head>
<body>
<?php  include(DEDEMEMBER."./templets/head.htm"); ?>
<div class="wrapper lineT">
  <div class="mainBox">
    <div class="main"><?php  include(DEDEMEMBER."./templets/menu.php");?>
      <div class="dedeMain">
        <div class="location">管理<i>|</i><a href="../group/group.php?id=<?php echo $id?>" target="_blank"><?php echo $_GROUPS['groupname'];?></a></div>
        <div class="titleTabBar bgGreen lineTB">
          <ul>
            <li class="select"><a href="mygroup.php">创建的圈子</a></li>
            <!--<li><a href="myjoin.php">参与的圈子</a></li> -->
            <li><a href="myjoin.php">我的发帖</a></li>
          </ul>
        </div>
        
        <div class="mL10 mR10 mTB10">
        <div class="titleBar bgGrass lineB mB10">
          <div class="fLeft"><strong>基本资料</strong></div>
          <div class="fRight titSecondary white" style="margin-top:5px;">
            <em class="mR10"><a href="mygroup_manage.php?id=<?php echo $id;?>">基本资料</a></em>
            <em class="mR10"><a href="mygroup_cate.php?id=<?php echo $id;?>">话题分类</a></em>
            <em class="mR10"><a href="mygroup_member.php?id=<?php echo $id;?>">成员管理</a></em>
            <em class="mR10"><a href="mygroup_skin.php?id=<?php echo $id;?>">自定义风格</a></em>
            <em><a href="mygroup_notice.php?id=<?php echo $id;?>">修改公告</a></em></div>
        </div>
        <div class="item">
          <div class="itemBody" >
            <form name="form1" action="" enctype="multipart/form-data" method="post" onsubmit="return checkSubmit();">
              <input name="action" type="hidden" value="save" />
              <table cellspacing="1" class="submit">
                <tbody>
                  <tr>
                    <td width="15%" align="right" valign="top">名称：</td>
                    <td><input class="text" name="groupname" type="text" id="groupname" value="<?php echo $groupsname?>" size="30" maxlength="70" />
                      *在30个字符内。</td>
                  </tr>
                  <tr>
                    <td align="right" valign="top">分类：</td>
                    <td><select name="store" id="store" class="group_option">
                        <?php echo $option?>
                      </select></td>
                  </tr>
                  <tr>
                    <td align="right" valign="top">图标：</td>
                    <td><input name="litpic" size="33" type="file" id="litpic" onchange="SeePic(document.picview,document.form1.litpic);" value="<?php echo $groupimg?>" /><div class="clear mTB10"></div>
                      <img src="<?php echo $groupimg!='' ? $groupimg : 'img/pview.gif';?>" name="picview" width="100" height="70" id="picview" /> </td>
                  </tr>
                  <tr>
                    <td align="right" valign="top"><span class="td1">说明：</span></td>
                    <td><textarea name="des" cols="60" rows="5" id="des" style="width:70%;"><?php echo $groupdes?></textarea></td>
                  </tr>
                </tbody>
                <tfoot>
                  <tr>
                    <td align="right" valign="top">&nbsp;</td>
                    <td><button class="button2" type="submit">保存</button></td>
                  </tr>
                </tfoot>
              </table>
            </form>
          </div>
        </div>
        </div>
      </div>
    </div>
    <div class="clear"></div>
  </div>
  <div class="clear"></div>
</div>
</div>
<?php  include(DEDEMEMBER."./templets/foot.htm");?>
</body>
</html>
