<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_batch.aspx.cs" Inherits="Webdisk.admin_batch" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
  <HEAD><TITLE></TITLE><LINK href="images/Site_Css.css" type=text/css rel=stylesheet>
<META http-equiv=Content-Type content="text/html; charset=gb2312">
<LINK href="images/Css.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.6000.16544" name=GENERATOR>
<style type="text/css">
.style4 { COLOR: #ff0000 }
.style3 { COLOR: #ff0000 }
</style>    
    <script src="../js/jquery-1.7.1.min.js" type="text/javascript"></script>
    <script src="../js/Common.js" type="text/javascript"></script>
	<script src="../js/calendar.js" type="text/javascript"></script>
        			<script language="javascript">
function Result() 
{ 
    Webdisk.admin_adduser.GetBmAll(document.all.company.value,get_Result_CallBack);
}

function get_Result_CallBack(response)
{
    if (response.value != null)
    {
        document.all("dept").length=0;document.all("dept2").length=0;document.all("dept3").length=0;document.all("dept4").length=0;document.all("dept5").length=0;
		document.all("dept").options.add(new Option("不指定","0"));document.all("dept2").options.add(new Option("不指定","0"));document.all("dept3").options.add(new Option("不指定","0"));document.all("dept4").options.add(new Option("不指定","0"));document.all("dept5").options.add(new Option("不指定","0"));　　　　            
　　　　var ds = response.value;
        if(ds != null && typeof(ds) == "object")
        {         
            for(var i=0; i<ds.Rows.length; i++)
　　　　    {
　　　　        var name=ds.Rows[i].knamem;
　　　　　　    var id=ds.Rows[i].id;
　　　　　　    document.all("dept").options.add(new Option(name,id));document.all("dept2").options.add(new Option(name,id));document.all("dept3").options.add(new Option(name,id));document.all("dept4").options.add(new Option(name,id));document.all("dept5").options.add(new Option(name,id));
　　　　    }
 			document.all.hiddept.value=document.all.dept.value;document.all.hiddept2.value=document.all.dept2.value;document.all.hiddept3.value=document.all.dept3.value;document.all.hiddept4.value=document.all.dept4.value;document.all.hiddept5.value=document.all.dept5.value;
        }
    }                
    return
}
function show(id) 
{ 
    document.getElementById("adddept"+id).style.display='none';
	document.getElementById("tdshow"+id).style.display='';
}

</script>
</HEAD>
<BODY bgColor=#ffffff topMargin=5 marginwidth="0" marginheight="0">
<form name="Form1" method="post" id="Form1" runat="server">
<DIV></DIV>
<DIV>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <TBODY>
  <TR>
    <TD class=menubar_title><IMG hspace=3 src="images/default.gif" 
      align=absMiddle vspace=3 border=0>&nbsp;批量修改用户</TD>
    <TD class=menubar_readme_text vAlign=bottom>&nbsp;</TD>
  </TR>
  <TR>
    <TD class=menubar_function_text height=1>&nbsp;</TD>
    <TD class=menubar_menu_td align=right>&nbsp;</TD></TR>
  <TR>
    <TD colSpan=2 height=5></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width="100%" align=center border=0>
  <TBODY>
  <TR>
    <TD background=images/tab_top_bg.gif height=22>
      <TABLE cellSpacing=0 cellPadding=0 border=0>
        <TBODY>
        <TR><!--按钮　Start-->
          <TD>
            <TABLE height=22 cellSpacing=0 cellPadding=0 border=0>
              <TBODY>
              <TR>
                <TD width=3><IMG id=tabImgLeft__0 height=22 
                  src="images/tab_unactive_left.gif" width=3></TD>
                <TD class=tab id=tabLabel__0 onclick=javascript:tabClick(0,1) 
background="images/tab_active_bg.gif" UNSELECTABLE="on">批量修改用户</TD>
                <TD width=3><IMG id=tabImgRight__0 height=22 
src="images/Menu/tab_active_right.gif" width=3></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
    <TD bgColor=#ffffff>
      <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
        <TBODY>
        <TR>
          <TD width=1 background=images/tab_bg.gif><IMG height=1 
            src="images/tab_bg.gif" width=1></TD>
          <TD 
          class="borderstyle" 
          vAlign=top>
            <DIV id=tabContent__0>
            <TABLE width="100%" 
            border=0 align=center cellPadding=3 cellSpacing=1>
              <TBODY>
              <TR>
                <TD width="27%" class=table_body>&nbsp;</TD>
                <TD width="73%" class=table_none><strong>
                  <asp:CheckBox ID="all" runat="server" Text='以下操作对列出的所有页用户都生效（不选此项则仅对勾选的用户生效）'></asp:CheckBox>
                </strong></TD>
                </TR>
              <TR>
                <TD width="27%" class=table_body><span class="a3-green">存储分区</span></TD>
                <TD width="73%" class=table_none><strong>
                  <asp:DropDownList ID="team" runat="server"></asp:DropDownList>
&nbsp;&nbsp;
<asp:Button ID="Button11" runat="server" Width="70px" class="formbutton" Text="修改分区" onclick="Button11_Click"></asp:Button>
                </strong></TD>
                </TR>
              <TR>
                <TD class=table_body><span class="a3-green">角色</span></TD>
                <TD class=table_none><strong><strong>
                  <asp:DropDownList ID="role" runat="server">
                      <asp:ListItem Value="3">管理</asp:ListItem>
                      <asp:ListItem Value="1">教师</asp:ListItem>
                      <asp:ListItem Value="2">学生</asp:ListItem>
                    </asp:DropDownList>
&nbsp;&nbsp;
<asp:Button ID="Butrole" runat="server" Width="70px" class="formbutton" Text="修改角色" onclick="Butrole_Click"></asp:Button>
                </strong></strong></TD>
                </TR>
              <TR>
                <TD class=table_body><span class="a3-green">空间大小</span></TD>
                <TD class=table_none><strong><strong>
                  <asp:textbox id="spacesize" runat="server" CssClass="tableTdtext" Columns="10">-1</asp:textbox>
M（-1为不限制）&nbsp;&nbsp;
<asp:Button ID="Button" runat="server" Width="70px" class="formbutton" Text="修改大小" onclick="Button_Click"></asp:Button>
                </strong></strong></TD>
                </TR>
              <TR>
                <TD class=table_body>有效期至</TD>
                <TD class=table_none><strong>
                  <asp:TextBox ID="enddate" runat="server" class="tableTdtext" onfocus="new Calendar().show(this)"></asp:TextBox>
&nbsp;&nbsp;
<asp:Button ID="Button6" runat="server" Width="80px" class="formbutton" Text="修改有效期" onclick="Button6_Click"></asp:Button>
                </strong></TD>
              </TR>
              <TR>
                <TD class=table_body>有效期增加</TD>
                <TD class=table_none><strong><strong>
                  <asp:textbox id="enddate2" runat="server" Columns="5" class="tableTdtext" onfocus="new Calendar().show(this)"></asp:textbox>
天 &nbsp;&nbsp;
<asp:button class="formbutton" id="Button3" runat="server" Width="80px" Text="修改有效期" onclick="Button3_Click"></asp:button>
                </strong></strong></TD>
              </TR>
              <TR>
                <TD class=table_body>所在部门</TD>
                <TD class=table_none><SELECT name="dept" id="dept" runat="server">
                  <OPTION selected></OPTION>
                </SELECT>
                  &nbsp;<strong><strong>
                  <asp:button class="formbutton" id="Button4" runat="server" Text="修改部门" 
                        onclick="Button4_Click"></asp:button>
                  </strong></strong></TD>
              </TR>
              <TR> 
                <TD class=table_body>所在部门2</TD>
                <TD class=table_none><SELECT name="dept2" id="dept2" runat="server">
                  <OPTION selected></OPTION>
                </SELECT>
                  &nbsp;<strong><strong>
                  <asp:button class="formbutton" id="Button5" runat="server" Width="80px" 
                        Text="修改部门2" onclick="Button5_Click"></asp:button>
                  </strong></strong></TD>
              </TR>
              <TR>
                <TD class=table_body>所在部门3</TD>
                <TD class=table_none><SELECT name="dept3" id="dept3" runat="server">
                  <OPTION selected></OPTION>
                </SELECT>
&nbsp;<strong><strong>
<asp:button class="formbutton" id="Button7" runat="server" Width="80px" Text="修改部门3" 
                        onclick="Button7_Click"></asp:button>
</strong></strong></TD>
              </TR>
              <TR>
                <TD class=table_body>所在部门4</TD>
                <TD class=table_none><SELECT name="dept4" id="dept4" runat="server">
                  <OPTION selected></OPTION>
                </SELECT>
&nbsp;<strong><strong>
<asp:button class="formbutton" id="Button8" runat="server" Width="80px" Text="修改部门4" 
                        onclick="Button8_Click"></asp:button>
</strong></strong></TD>
              </TR>
              <TR>
                <TD class=table_body>所在部门5</TD>
                <TD class=table_none><SELECT name="dept5" id="dept5" runat="server">
                  <OPTION selected></OPTION>
                </SELECT>
&nbsp;<strong><strong><strong><strong>
<asp:Button class="formbutton" ID="Button9" runat="server" Width="80px" Text="修改部门5" 
                        onclick="Button9_Click"></asp:Button>
</strong></strong></strong></strong></TD>
              </TR>
              </TBODY></TABLE>
            </DIV><!--内容框End--></TD>
          <TD width=1 background=images/tab_bg.gif><IMG height=1 
            src="images/tab_bg.gif" width=1></TD></TR></TBODY></TABLE></TD></TR>
  <TR>
  <TD background=images/tab_bg.gif bgColor=#ffffff><IMG height=1 
      src="images/tab_bg.gif" 
width=1></TD></TR></TBODY></TABLE><!--选项卡 End--></DIV>
  <DIV>    
    <div align="center">
        <input id="sql" type="hidden" size="1" name="sql" runat=server><input id="hdvalue" type="hidden" size="1" name="hdvalue" runat=server>
      </div>
  </DIV>
</form>
  <SCRIPT language=javascript>
        function tabClick(idx,count) {
          for (i_tr = 0; i_tr < count; i_tr++) {
              var tabImgLeft = eval('document.all.tabImgLeft__' + idx);
              var tabImgRight = eval('document.all.tabImgRight__' + idx);
              var tabLabel = eval('document.all.tabLabel__' + idx);
              var tabContent = eval('document.all.tabContent__' + idx);

              tabImgLeft.src = 'images/tab_active_left.gif';
              tabImgRight.src = 'images/tab_active_right.gif';
              tabLabel.background = 'images/tab_active_bg.gif';
              tabContent.style.visibility = 'visible';
              tabContent.style.display = 'block';
          }
        }
        tabClick(0,1);
       </SCRIPT>
<BR>
</BODY>
</HTML>