<%@ Page CodeBehind="admin_share_edit.aspx.cs" Language="c#" AutoEventWireup="True" Inherits="Typhoto.admin_share_edit" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
  <HEAD>
		<title>编辑共享</title>
<script src="../js/calendar.js" type=text/javascript></script>

<script language=javascript>
   var CalendarWebControl = new atCalendarControl();
		</script>
<LINK href="img/main.css" type=text/css rel=stylesheet >
<style type=text/css>.style4 { COLOR: #ff0000 }
	.style3 { COLOR: #ff0000 }
	.style5 { FONT-WEIGHT: bold; COLOR: #ffffff }
	.STYLE6 { FONT-WEIGHT: bold; COLOR: #ffffff }
	</style>
</HEAD>
<body>
<form id=Form1 method=post runat="server">
<div align=center>
<table cellSpacing=1 cellPadding=3 width="100%" align=center border=0>
  <tr>
    <td class=td_title colSpan=3>编辑<asp:label id=title runat="server"></asp:label> 
    </td></tr>
  <tr class=tableTd id="nobat" runat="server">
    <td align=right width="21%"><span class=forumrow 
      ><span class=a3-green>名称</span> 
      </span>：</td>
    <td width="79%"><span class=forumrow 
      ><font color=#000000><FONT 
      face=宋体><INPUT class=kuan id=dirname type=text 
      name=dirname runat="server"> </FONT><font 
      color=#000000><span class=a3-green 
      ><span class=pad><asp:requiredfieldvalidator id=RequiredFieldValidator1 runat="server" ErrorMessage="请输入名称" ControlToValidate="dirname" Display="Dynamic"></asp:requiredfieldvalidator></span></span></font></font></span></td></tr>
  <tr class=tableTd id="showdir1" runat="server">
    <td align=right width="21%">分类：</td>
    <td><select id=kind1 onchange=Result(); name=kind1 
       runat="server"></select> <select id=kind2 
      onchange="javascript:document.all.hidkind.value=document.all.kind2.value; "
      name=kind2 runat="server"></select> <asp:Button id=Button2 runat="server" Text="批量修改分类" CssClass="formbutton" CausesValidation="False" onclick="Button2_Click"></asp:Button> </td></tr>
  <tr class=tableTd>
    <td align=right width="21%"><FONT face=宋体 
      >标签：</FONT></td>
    <td><span class=forumrow><span 
      class=a3-green><FONT face=宋体 
      ><INPUT class=kuan id=tag type=text name=tag 
      runat="server"> <INPUT id=hidtag type=hidden size=1 
      name=hidtag runat="server"> <asp:Button id=Button3 runat="server" Text="批量修改标签" CssClass="formbutton" CausesValidation="False" onclick="Button3_Click"></asp:Button> </FONT><span class=style3 
      ></span></span></span></td></tr>
  <tr class=tableTd>
    <td align=right>简介：</td>
    <td><span class=pad><textarea class=kuan id=note name=note rows=5 cols=50 runat="server"></textarea> 
<asp:Button id=Button4 runat="server" Text="批量修改简介" CssClass="formbutton" CausesValidation="False" onclick="Button4_Click"></asp:Button> 
      </span></td></tr>
  <tr class=tableTd id=showdir runat="server">
    <td align=right>相册封面：</td>
    <td><FONT face=宋体><INPUT 
      class=kuan id=face type=text size=48 name=face runat="server" 
      > </FONT></td></tr>
  <tr class=tableTd id="nobat2" runat="server">
    <td align=right colSpan=2>
      <div align=center><span class=forumrow 
      ><span class=px14>
										<asp:Button ID="Button1" runat="server" Width="100px" CssClass="formbutton" Text=" 编 辑 " onclick="Button1_Click"></asp:Button><INPUT 
      id=hiddir type=hidden name=hiddir runat="server"><INPUT id=hidsharesee 
      type=hidden size=1 name=Hidden1 runat="server"><INPUT id=hidkind 
      type=hidden name=hidkind 
runat="server"> 
  </span></span></div></td></tr></table></div></form>
		<script>
function Result() 
{ 
    var kind=document.getElementById("kind1");
	if (kind.value=='不指定')
	{
		document.all("kind2").length=0;
　　　　document.all("kind2").options.add(new Option('不指定','不指定'));
	}
	else Typhoto.Album_Detail.GetKind2All(kind.value,get_Result_CallBack);
}

function get_Result_CallBack(response)
{
    if (response.value != null)
    {
        document.all("kind2").length=0;　　　　            
　　　　var ds = response.value;
        if(ds != null && typeof(ds) == "object" && ds.Tables != null)
        {                    
            for(var i=0; i<ds.Tables[0].Rows.length; i++)
　　　　    {
　　　　        var name=ds.Tables[0].Rows[i].rootkind1;
　　　　　　    var id=ds.Tables[0].Rows[i].rootkind3;
　　　　　　    document.all("kind2").options.add(new Option(name,id));
　　　　    }
			if (document.all("kind2").options.length==0) document.all("kind2").options.add(new Option("不指定","0"));
			document.all.hidkind.value=document.all.kind2.value;
        }
    }                
    return
}
		</script>


	</body>
</HTML>
