<!--#include file="../main.asp" -->
<!--#include file="../IsLogin.asp" -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<HTML 
xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>管理中心-这里是所有管理的入口</TITLE>
<META http-equiv=Content-Type content="text/html; charset=gb2312"><LINK 
href="images/global.css" type=text/css rel=stylesheet><LINK 
href="images/main.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.3790.218" name=GENERATOR></HEAD>
<BODY id=main background="../images/bj.gif">
<DIV id=wrapper>
<!--#include file="top.asp"-->
<DIV class=row>
<!--#include file="left.asp"-->
<DIV class=right_side>
<DIV class=col id=bulletin>
<DIV class=col_head>
<H3><IMG height=16 alt=a hspace=3 src="images/ico_dots.gif" 
width=20 align=left vspace=3>修改圈子</H3><SPAN class=float_right><STRONG><a href="club_exit.asp">管理圈子</a></STRONG></SPAN><SPAN class=float_right>------</SPAN><SPAN class=float_right><STRONG><a href="club_add.asp">创建圈子</a></STRONG></SPAN></DIV>
<DIV class=col_body><P>
  <table border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td><%sql3="select * from T_club where F_username='"&session("goname")&"' and F_id="&request("id")
set rs3=server.createobject("ADODB.Recordset")
rs3.open sql3,conn,1,1%>
<form name="SignUpForm" method="post" action="club_add_save.asp" onSubmit="return checkdata()">
<input name="did" type="hidden" value="<%=request("id")%>">
<input name="xxone_id_" type="hidden" value="<%=rs3("F_ypxxone")%>">
<input name="xxtwo_id_" type="hidden" value="<%=rs3("F_ypxxtwo")%>">
<input name="addone_id_" type="hidden" value="<%=rs3("F_ypaddone")%>">
<input name="addtwo_id_" type="hidden" value="<%=rs3("F_ypaddtwo")%>">
<table width="545" border="0" align="center" cellpadding="0" cellspacing="0">
  <tbody>
    <tr bgcolor="#ffffff">
      <td width="116" align="right" ><span class="STYLE2">类别：</span></td>
      <td colspan="2" align="left" ><%
 set rs=server.createobject("ADODB.Recordset")
 sql = "select *  from T_ypxxtwo order by date desc"
rs.open sql,conn,1,1%>
          <script language = "JavaScript" type="text/javascript">
var onecount;
onecount=0;
subcat = new Array();
<%count = 0
do while not rs.eof%>
subcat[<%=count%>] = new Array("<%= trim(rs("xxtwo"))%>","<%= trim(rs("xxone_id"))%>","<%= trim(rs("xxtwo_id"))%>");
        <%count = count + 1
        rs.movenext
        loop
        rs.close
       %>
onecount=<%=count%>;

function changelocation(xxone)
    {
    document.SignUpForm .xxtwo_id.length = 0; 

    var xxone_id=xxone_id;
    var i;
    document.SignUpForm .xxtwo_id.options[0] = new Option('请选择小类','');
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == xxone)
            { 
                document.SignUpForm .xxtwo_id.options[document.SignUpForm .xxtwo_id.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }
      </script>
          <table height="35" border="0"  cellpadding="0" cellspacing="0">
            <tr>
              <td height="40"><select name="xxone_id" onChange="changelocation(document.SignUpForm .xxone_id.options[document.SignUpForm .xxone_id.selectedIndex].value)">
                  <option value="">请选择大类</option>
                  <%
sql="select *  from T_ypxxone order by date desc"
rs.open sql,conn,1,1
while not rs.eof%>
                  <option value="<%=rs("xxone_id")%>"><%=rs("xxone")%></option>
                  <%rs.movenext
wend
rs.Close()
%>
                </select>
                  <select name="xxtwo_id">
                    <option value="">请选择小类</option>
                </select></td>
            </tr>
        </table></td>
    </tr>
    <tr bgcolor="#ffffff">
      <td width="116" align="right" ><span class="STYLE2">区域：</span></td>
      <td colspan="2" align="left" ><%
 set rs=server.createobject("ADODB.Recordset")
 sql = "select *  from ypaddtwo order by date desc"
rs.open sql,conn,1,1%>
          <script language = "JavaScript" type="text/javascript">
var onecount1;
onecount1=0;
subcat1 = new Array();
<%count = 0
do while not rs.eof%>
subcat1[<%=count%>] = new Array("<%= trim(rs("addtwo"))%>","<%= trim(rs("addone_id"))%>","<%= trim(rs("addtwo_id"))%>");
        <%count = count + 1
        rs.movenext
        loop
        rs.close
       %>
onecount1=<%=count%>;

function changelocation1(addone)
    {
    document.SignUpForm .addtwo_id.length = 0; 

    var addone_id=addone_id;
    var i;
    document.SignUpForm .addtwo_id.options[0] = new Option('请选择地区(市)','');
    for (i=0;i < onecount1; i++)
        {
            if (subcat1[i][1] == addone)
            { 
                document.SignUpForm .addtwo_id.options[document.SignUpForm .addtwo_id.length] = new Option(subcat1[i][0], subcat1[i][2]);
            }        
        }
        
    }
      </script>
          <table height="35" border="0"  cellpadding="0" cellspacing="0">
            <tr>
              <td height="40"><select name="addone_id" onChange="changelocation1(document.SignUpForm .addone_id.options[document.SignUpForm .addone_id.selectedIndex].value)">
                  <option value="">请选择省份</option>
                  <%
sql="select *  from ypaddone order by date desc"
rs.open sql,conn,1,1
while not rs.eof%>
                  <option value="<%=rs("addone_id")%>"><%=rs("addone")%></option>
                  <%rs.movenext
wend
rs.Close()
%>
                </select>
                  <select name="addtwo_id">
                    <option value="">请选择城市</option>
                </select></td>
            </tr>
        </table></td>
    </tr>
    <tr bgcolor="#ffffff">
      <td width="116" align="right" ><span class="STYLE2">名称：</span></td>
      <td width="429" colspan="2" align="left" ><input name="name" id="name" value="<%=rs3("F_name")%>" size="35" 
                  autocomplete="off" /></td>
    </tr>
    <tr bgcolor="#ffffff">
      <td width="116" align="right" ><span class="STYLE2">圈主：</span></td>
      <td colspan="2" align="left" ><input disabled="disabled"
                  name="manage" type="text" id="manage" value="<%=m_username%>" size="19" autocomplete="off" />
          <font 
                  color="#ff0000">&nbsp;</font></td>
    </tr>
  </tbody>
  <input type="hidden" 码汉="码汉"
              name="personal_URL" />
  <tr bgcolor="#ffffff">
    <td width="116" align="right" ><span class="STYLE2">介绍：</span></td>
    <td colspan="2" ><textarea name="content" cols="50" rows="5" id="content"><%=rs3("F_content")%></textarea>
        <br></td>
  </tr>
  <tr bgcolor="#ffffff">
    <td height="20" align="right" >是否允许直接加入:</td>
    <td colspan="2" align="left" ><input type="radio" name="key1" value="1" <%if rs3("F_key")=1 then %>checked<%end if%>>
                          <span class="STYLE2">是</span>
                          <input name="key1" type="radio" value="0" <%if rs3("F_key")=0 then %>checked<%end if%>>
                          <span class="STYLE2">否</span></td>
  </tr>
  <tr bgcolor="#ffffff">
    <td width="116" align="right" ><span class="STYLE2">相片：</span></td>
    <td colspan="2" align="left" ><input name="photo" type="text" id="photo" value="<%=rs3("F_photo")%>" size="40">
      <input type="button" name="Submit2" value="上传图片" onClick="window.open('../jbw_zgcren2.asp?formname=SignUpForm&editname=photo&uppath=photo&filelx=jpg','','status=no,scrollbars=no,top=20,left=110,width=420,height=165')"></td>
  </tr>
  <tr align="center">
    <td colspan="3">
        <input type="submit" value="确 定" name="submit" />
        <input type="reset" value="取 消" name="reset" /></td>
  </tr>
</table>

</form><%rs3.Close
set rs3=nothing%></td>
    </tr>
  </table> 
  </P>
</DIV>
</DIV>
</DIV>
</DIV>
<!--#include file="bottom.asp"-->

</DIV></BODY></HTML>
