<!--#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>
</DIV>
<DIV class=col_body><P><SCRIPT language=JavaScript>
<!--
    

    function checkActiveForm() {
        if(document.form1.title.value == "") {
		alert("名称不能为空，请重新输入！");
		form1.title.focus();
		return false;
	}
	
	if(document.form1.book.value == "") {
		alert("描述不能为空！");
		form1.book.focus();
		return false;
	}

	if(document.form1.addone.value == "") {
		alert("请设置参加活动的地区！");
		form1.addone.focus();
		return false;
	}
		if(document.form1.addtwo.value == "") {
		alert("请设置参加活动的地区(市)！");
		form1.addtwo.focus();
		return false;
	}
	if(document.form1.diji.value == "") {
		alert("请设置参加活动的地址！");
		form1.diji.focus();
		return false;
	}

	return true;
    }

-->
</SCRIPT>
	<%sql3="select * from huodong where id="&request("id")
set rs3=server.createobject("ADODB.Recordset")
rs3.open sql3,conn,1,1%>
<form name="form1" method="post" action="edit_save.asp" onSubmit="return checkdata()">
<input name="did" type="hidden" value="<%=request("id")%>">
<input name="addone_" type="hidden" value="<%=rs3("addone")%>">
<input name="addtwo_" type="hidden" value="<%=rs3("addtwo")%>"> <TABLE width="100%" border=0 align="center" cellPadding=0 cellSpacing=0>
        <TBODY>
        
        <TR>
          <TD class=STYLE2 align=left width=132>请选择活动所属主题：</TD>
          <TD class=a2 align=middle width=7></TD>
          <TD width=454 height=30><span class="STYLE2">
            <INPUT type=radio value=运动健身 <%if trim(rs3("zhuti"))="运动健身" then Response.Write "checked"%> name=zhuti>
            运动健身 
            <INPUT type=radio value=游山玩水 <%if trim(rs3("zhuti"))="游山玩水" then Response.Write "checked"%> name=zhuti>
            游山玩水 
            <INPUT type=radio value=纪念日 <%if trim(rs3("zhuti"))="纪念日" then Response.Write "checked"%>
            name=zhuti>
            纪念日 
            <INPUT type=radio value=FB聚会 <%if trim(rs3("zhuti"))="FB聚会" then Response.Write "checked"%> name=zhuti>
            FB聚会 
            <INPUT name=zhuti 
            type=radio value=其他活动 <%if rs3("zhuti")="其他活动" then Response.Write "checked"%>>
            其他活动 </span></TD></TR>
          <TD class=STYLE2 align=left width=132>活动名称：</TD>
          <TD class=STYLE2 align=middle width=7>*</TD>
          <TD width=454 height=30><INPUT name=title value="<%=rs3("title")%>" size=40> </TD></TR>
          <tr>
            <TD class=STYLE2 align=left>活动描述与要求：</TD>
            <TD class=STYLE2 align=middle>&nbsp;</TD>
            <TD height=30>&nbsp;</TD>
          </TR>
          <tr align="left"><TD height="30" colspan="3" class=STYLE2><INPUT type="hidden" name="book" value="<%=Server.HTMLEncode(rs3("book"))%>">
<IFRAME ID="LatticeEditDocument" SRC="../WebEditor/ewebeditor.asp?id=book&style=standard_blue" FRAMEBORDER="0" SCROLLING="no" WIDTH="590" HEIGHT="400"></IFRAME></TD>
          </TR>
       

          <TD class=STYLE2 align=left width=132>人数限制：</TD>
          <TD class=STYLE2 align=middle width=7>*</TD>
          <TD width=454 height=30 class="STYLE2"><INPUT 
            name=ren id="ren" value="<%=rs3("ren")%>" size=4>人(人数为0表示不限制参加人数) </TD></TR>
       
        <TR height=30>
          <TD class=STYLE2 align=left width=132>所在城市：</TD>
          <TD class=a2 align=middle width=7></TD>
          <%
 set rs=server.createobject("ADODB.Recordset")
 sql = "select *  from ypaddtwo order by date desc"
rs.open sql,conn,1,1%>
            <script language = "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"))%>","<%= trim(rs("addtwo"))%>");
        <%count = count + 1
        rs.movenext
        loop
        rs.close
       %>
onecount1=<%=count%>;

function changelocation1(addone)
    {
    document.form1 .addtwo.length = 0; 

    var addone=addone;
    var i;
    document.form1 .addtwo.options[0] = new Option('请选择地区(市)','');
    for (i=0;i < onecount1; i++)
        {
            if (subcat1[i][1] == addone)
            { 
                document.form1 .addtwo.options[document.form1 .addtwo.length] = new Option(subcat1[i][0], subcat1[i][2]);
            }        
        }
        
    }
      </script><TD width=454 height=30><select name="addone" onChange="changelocation1(document.form1 .addone.options[document.form1 .addone.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")%>"><%=rs("addone")%></option>
              <%rs.movenext
wend
rs.Close()
%>
            </select>
              <select name="addtwo">
			     <option value="">请选择城市</option>
            </select> </TD></TR>
       
            <TD class=STYLE2 align=left width=132>具体地点和时间：</TD>
          <TD class=STYLE2 align=middle width=7>*</TD>
          <TD width=454 height=30><INPUT name=diji id="diji" value="<%=rs3("diji")%>" size=40> </TD></TR>
       
          <TD class=STYLE2 align=left width=132>联系方法：</TD>
          <TD class=a2 align=middle width=7></TD>
          <TD width=454 height=30><INPUT name=lianxi value="<%=rs3("lianxi")%>" size=40>             </TD>
        </TR>
       
          <TD class=STYLE2 align=left width=132>费用：</TD>
          <TD class=a2 align=middle width=7></TD>
          <TD width=454 height=30><INPUT name=price id="price" value="<%=rs3("price")%>" size=40> </TD></TR>
        
          <TD class=STYLE2 align=left width=132>活动开始时间：</TD>
          <TD class=STYLE2 align=middle width=7>*</TD>
          <TD width=454 height=30 class="STYLE2">
		  <SELECT name=kYear id="kYear"> 
		  <OPTION value=2005 <% if year(rs3("kdate"))="2005" then %>selected<% end if %>>2005</OPTION> 
		  <OPTION value=2006 <% if year(rs3("kdate"))="2006" then %>selected<% end if %>>2006</OPTION> 
          <OPTION value=2007 <% if year(rs3("kdate"))="2007" then %>selected<% end if %>>2007</OPTION> 
		  <OPTION value=2008 <% if year(rs3("kdate"))="2008" then %>selected<% end if %>>2008</OPTION>
		  <OPTION value=2009 <% if year(rs3("kdate"))="2009" then %>selected<% end if %>>2009</OPTION>
		  <OPTION value=2010 <% if year(rs3("kdate"))="2010" then %>selected<% end if %>>2010</OPTION>
		  <OPTION value=2011 <% if year(rs3("kdate"))="2011" then %>selected<% end if %>>2011</OPTION>
		  <OPTION value=2012 <% if year(rs3("kdate"))="2012" then %>selected<% end if %>>2012</OPTION>
		  <OPTION value=2013 <% if year(rs3("kdate"))="2013" then %>selected<% end if %>>2013</OPTION></SELECT>年 
			
			<SELECT name=kMonth id="kMonth"> 
			<OPTION value=1 <% if Month(rs3("kdate"))="1" then %>selected<% end if %>>1</OPTION> 
			<OPTION value=2 <% if Month(rs3("kdate"))="2" then %>selected<% end if %>>2</OPTION> 
			<OPTION value=3 <% if Month(rs3("kdate"))="3" then %>selected<% end if %>>3</OPTION> 
			<OPTION value=4 <% if Month(rs3("kdate"))="4" then %>selected<% end if %>>4</OPTION> 
			<OPTION value=5 <% if Month(rs3("kdate"))="5" then %>selected<% end if %>>5</OPTION> 
			<OPTION value=6 <% if Month(rs3("kdate"))="6" then %>selected<% end if %>>6</OPTION> 
			<OPTION value=7 <% if Month(rs3("kdate"))="7" then %>selected<% end if %>>7</OPTION> 
			<OPTION value=8 <% if Month(rs3("kdate"))="8" then %>selected<% end if %>>8</OPTION> 
			<OPTION  value=9 <% if Month(rs3("kdate"))="9" then %>selected<% end if %>>9</OPTION> 
			<OPTION value=10 <% if Month(rs3("kdate"))="10" then %>selected<% end if %>>10</OPTION> 
			<OPTION value=11 <% if Month(rs3("kdate"))="11" then %>selected<% end if %>>11</OPTION> 
			<OPTION value=12 <% if Month(rs3("kdate"))="12" then %>selected<% end if %>>12</OPTION></SELECT>月 
			
			
			<SELECT name=kDay id="kDay"> 
			<OPTION value=1 <% if Day(rs3("kdate"))="1" then %>selected<% end if %>>1</OPTION> 
			<OPTION value=2 <% if Day(rs3("kdate"))="2" then %>selected<% end if %>>2</OPTION> 
            <OPTION value=3 <% if Day(rs3("kdate"))="3" then %>selected<% end if %>>3</OPTION> 
			<OPTION value=4 <% if Day(rs3("kdate"))="4" then %>selected<% end if %>>4</OPTION> 
			<OPTION value=5 <% if Day(rs3("kdate"))="5" then %>selected<% end if %>>5</OPTION> 
			<OPTION value=6 <% if Day(rs3("kdate"))="6" then %>selected<% end if %>>6</OPTION> 
			<OPTION value=7 <% if Day(rs3("kdate"))="7" then %>selected<% end if %>>7</OPTION> 
			<OPTION value=8 <% if Day(rs3("kdate"))="8" then %>selected<% end if %>>8</OPTION> 
			<OPTION value=9 <% if Day(rs3("kdate"))="9" then %>selected<% end if %>>9</OPTION> 
			<OPTION value=10 <% if Day(rs3("kdate"))="10" then %>selected<% end if %>>10</OPTION> 
			<OPTION value=11 <% if Day(rs3("kdate"))="11" then %>selected<% end if %>>11</OPTION> 
			<OPTION value=12 <% if Day(rs3("kdate"))="12" then %>selected<% end if %>>12</OPTION> 
			<OPTION value=13 <% if Day(rs3("kdate"))="13" then %>selected<% end if %>>13</OPTION> 
			<OPTION value=14 <% if Day(rs3("kdate"))="14" then %>selected<% end if %>>14</OPTION> 
			<OPTION value=15 <% if Day(rs3("kdate"))="15" then %>selected<% end if %>>15</OPTION> 
			<OPTION value=16 <% if Day(rs3("kdate"))="16" then %>selected<% end if %>>16</OPTION> 
			<OPTION value=17 <% if Day(rs3("kdate"))="17" then %>selected<% end if %>>17</OPTION> 
			<OPTION value=18 <% if Day(rs3("kdate"))="18" then %>selected<% end if %>>18</OPTION> 
			<OPTION value=19 <% if Day(rs3("kdate"))="19" then %>selected<% end if %>>19</OPTION> 
			<OPTION value=20 <% if Day(rs3("kdate"))="20" then %>selected<% end if %>>20</OPTION> 
			<OPTION value=21 <% if Day(rs3("kdate"))="21" then %>selected<% end if %>>21</OPTION> 
			<OPTION value=22 <% if Day(rs3("kdate"))="22" then %>selected<% end if %>>22</OPTION> 
			<OPTION value=23 <% if Day(rs3("kdate"))="23" then %>selected<% end if %>>23</OPTION> 
			<OPTION value=24 <% if Day(rs3("kdate"))="24" then %>selected<% end if %>>24</OPTION> 
			<OPTION value=25 <% if Day(rs3("kdate"))="25" then %>selected<% end if %>>25</OPTION> 
			<OPTION value=26 <% if Day(rs3("kdate"))="26" then %>selected<% end if %>>26</OPTION> 
			<OPTION value=27 <% if Day(rs3("kdate"))="27" then %>selected<% end if %>>27</OPTION> 
			<OPTION value=28 <% if Day(rs3("kdate"))="28" then %>selected<% end if %>>28</OPTION> 
			<OPTION value=29 <% if Day(rs3("kdate"))="29" then %>selected<% end if %>>29</OPTION> 
			<OPTION value=30 <% if Day(rs3("kdate"))="30" then %>selected<% end if %>>30</OPTION> 
			<OPTION value=31 <% if Day(rs3("kdate"))="31" then %>selected<% end if %>>31</OPTION></SELECT>日 &nbsp; </TD></TR>
        <TR>
          <TD class=STYLE2 align=left width=132>活动结束时间：</TD>
          <TD class=STYLE2 align=middle width=7>*</TD>
          <TD width=454 height=30 class="STYLE2"><SELECT name=zYear id="zYear"> 
		  <OPTION value=2005 <% if year(rs3("zdate"))="2005" then %>selected<% end if %>>2005</OPTION> 
		  <OPTION value=2006 <% if year(rs3("zdate"))="2006" then %>selected<% end if %>>2006</OPTION> 
          <OPTION value=2007 <% if year(rs3("zdate"))="2007" then %>selected<% end if %>>2007</OPTION> 
		  <OPTION value=2008 <% if year(rs3("zdate"))="2008" then %>selected<% end if %>>2008</OPTION>
		  <OPTION value=2009 <% if year(rs3("zdate"))="2009" then %>selected<% end if %>>2009</OPTION>
		  <OPTION value=2010 <% if year(rs3("zdate"))="2010" then %>selected<% end if %>>2010</OPTION>
		  <OPTION value=2011 <% if year(rs3("zdate"))="2011" then %>selected<% end if %>>2011</OPTION>
		  <OPTION value=2012 <% if year(rs3("zdate"))="2012" then %>selected<% end if %>>2012</OPTION>
		  <OPTION value=2013 <% if year(rs3("zdate"))="2013" then %>selected<% end if %>>2013</OPTION></SELECT>年 
			
			<SELECT name=zMonth id="zMonth"> 
			<OPTION value=1 <% if Month(rs3("zdate"))="1" then %>selected<% end if %>>1</OPTION> 
			<OPTION value=2 <% if Month(rs3("zdate"))="2" then %>selected<% end if %>>2</OPTION> 
			<OPTION value=3 <% if Month(rs3("zdate"))="3" then %>selected<% end if %>>3</OPTION> 
			<OPTION value=4 <% if Month(rs3("zdate"))="4" then %>selected<% end if %>>4</OPTION> 
			<OPTION value=5 <% if Month(rs3("zdate"))="5" then %>selected<% end if %>>5</OPTION> 
			<OPTION value=6 <% if Month(rs3("zdate"))="6" then %>selected<% end if %>>6</OPTION> 
			<OPTION value=7 <% if Month(rs3("zdate"))="7" then %>selected<% end if %>>7</OPTION> 
			<OPTION value=8 <% if Month(rs3("zdate"))="8" then %>selected<% end if %>>8</OPTION> 
			<OPTION  value=9 <% if Month(rs3("zdate"))="9" then %>selected<% end if %>>9</OPTION> 
			<OPTION value=10 <% if Month(rs3("zdate"))="10" then %>selected<% end if %>>10</OPTION> 
			<OPTION value=11 <% if Month(rs3("zdate"))="11" then %>selected<% end if %>>11</OPTION> 
			<OPTION value=12 <% if Month(rs3("zdate"))="12" then %>selected<% end if %>>12</OPTION></SELECT>月 
			
			
			<SELECT name=zDay id="zDay"> 
			<OPTION value=1 <% if Day(rs3("zdate"))="1" then %>selected<% end if %>>1</OPTION> 
			<OPTION value=2 <% if Day(rs3("zdate"))="2" then %>selected<% end if %>>2</OPTION> 
            <OPTION value=3 <% if Day(rs3("zdate"))="3" then %>selected<% end if %>>3</OPTION> 
			<OPTION value=4 <% if Day(rs3("zdate"))="4" then %>selected<% end if %>>4</OPTION> 
			<OPTION value=5 <% if Day(rs3("zdate"))="5" then %>selected<% end if %>>5</OPTION> 
			<OPTION value=6 <% if Day(rs3("zdate"))="6" then %>selected<% end if %>>6</OPTION> 
			<OPTION value=7 <% if Day(rs3("zdate"))="7" then %>selected<% end if %>>7</OPTION> 
			<OPTION value=8 <% if Day(rs3("zdate"))="8" then %>selected<% end if %>>8</OPTION> 
			<OPTION value=9 <% if Day(rs3("zdate"))="9" then %>selected<% end if %>>9</OPTION> 
			<OPTION value=10 <% if Day(rs3("zdate"))="10" then %>selected<% end if %>>10</OPTION> 
			<OPTION value=11 <% if Day(rs3("zdate"))="11" then %>selected<% end if %>>11</OPTION> 
			<OPTION value=12 <% if Day(rs3("zdate"))="12" then %>selected<% end if %>>12</OPTION> 
			<OPTION value=13 <% if Day(rs3("zdate"))="13" then %>selected<% end if %>>13</OPTION> 
			<OPTION value=14 <% if Day(rs3("zdate"))="14" then %>selected<% end if %>>14</OPTION> 
			<OPTION value=15 <% if Day(rs3("zdate"))="15" then %>selected<% end if %>>15</OPTION> 
			<OPTION value=16 <% if Day(rs3("zdate"))="16" then %>selected<% end if %>>16</OPTION> 
			<OPTION value=17 <% if Day(rs3("zdate"))="17" then %>selected<% end if %>>17</OPTION> 
			<OPTION value=18 <% if Day(rs3("zdate"))="18" then %>selected<% end if %>>18</OPTION> 
			<OPTION value=19 <% if Day(rs3("zdate"))="19" then %>selected<% end if %>>19</OPTION> 
			<OPTION value=20 <% if Day(rs3("zdate"))="20" then %>selected<% end if %>>20</OPTION> 
			<OPTION value=21 <% if Day(rs3("zdate"))="21" then %>selected<% end if %>>21</OPTION> 
			<OPTION value=22 <% if Day(rs3("zdate"))="22" then %>selected<% end if %>>22</OPTION> 
			<OPTION value=23 <% if Day(rs3("zdate"))="23" then %>selected<% end if %>>23</OPTION> 
			<OPTION value=24 <% if Day(rs3("zdate"))="24" then %>selected<% end if %>>24</OPTION> 
			<OPTION value=25 <% if Day(rs3("zdate"))="25" then %>selected<% end if %>>25</OPTION> 
			<OPTION value=26 <% if Day(rs3("zdate"))="26" then %>selected<% end if %>>26</OPTION> 
			<OPTION value=27 <% if Day(rs3("zdate"))="27" then %>selected<% end if %>>27</OPTION> 
			<OPTION value=28 <% if Day(rs3("zdate"))="28" then %>selected<% end if %>>28</OPTION> 
			<OPTION value=29 <% if Day(rs3("zdate"))="29" then %>selected<% end if %>>29</OPTION> 
			<OPTION value=30 <% if Day(rs3("zdate"))="30" then %>selected<% end if %>>30</OPTION> 
			<OPTION value=31 <% if Day(rs3("zdate"))="31" then %>selected<% end if %>>31</OPTION></SELECT>日 &nbsp;</TD>
        </TR>
       
        <TR align=middle>
          <TD class=a2 align=middle colSpan=3 height=72><INPUT type=submit value=修改活动 border=0 name=submit>          </TD></TR>
        <TR align=left height=30>
          <TD class=con1 bgColor=#B5DFDE colSpan=3><span class="STYLE2"><FONT color=red>提醒：</FONT> 
            用户不得建立包含破坏宪法和法律、破坏民族团结、捏造或者歪曲事实、宣扬封建迷信、淫秽、色情，及其他违反宪法和法律行政法规的活动，同时也不要建立任何传销、色情乃至一夜情之类的活动！ 
                <BR>
        用户因为违反规定而触犯中华人民共和国法律的，责任自负，本站不承担任何责任。 请大家一起努力维护圈网一个健康阳光的空间!</span> </TD></TR></TBODY></TABLE>
</FORM><%rs3.Close
set rs3=nothing%></P>
 

</DIV></DIV>
</DIV>
</DIV>
<!--#include file="bottom.asp"-->

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