<%@ page language="C#" autoeventwireup="true" inherits="admin_admin_table_add, App_Web_admin_table_add.aspx.fdf7a39c" debug="true" smartnavigation="true" %>

<%@ Register Src="yanz.ascx" TagName="yanz" TagPrefix="uc1" %>
<!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 id="Head1" runat="server">
    <title>管理员添加</title>
    <link href="images/style.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="frame_Toolbar" class="toolbarBg"> 
        <uc1:yanz ID="Yanz1" runat="server" />
        <a href="javascript:self.history.back();" class="icoBtn_ct"><span class="btnIco btnBack"></span><span class="btnTxt">返回</span></a> <a href="javascript:self.location.reload();" class="icoBtn_ct"><span class="btnIco btnReload"></span><span class="btnTxt">刷新</span></a> <span class="split ftSplit" ></span>
	<div id="guide" class="light_orange">您现在的位置：用户管理 >> <a href="admin_table.aspx"  style="color:#000">管理员管理 </a> >>管理员添加</div>
	<div class="pageInfo right light_gray"></div>
    </div>
    <table class="cTable_2 table">
	<tr class="cTitle toolbarBg">
		<td width="25%"><div>基本信息</div></td>
		<td colspan="2"></td>
	</tr>
	<tr>
		<td class="tRight">后台管理名：</td>
		<td colspan="2"><asp:TextBox ID="TextBox1" runat="server" Width="150px"></asp:TextBox><font color="red"></font></td>
	</tr>
    <tr>
		<td class="tRight">后台管理密码：</td>
		<td colspan="2"><asp:TextBox ID="TextBox2" runat="server" TextMode="Password" Width="150px"></asp:TextBox>
            <asp:Literal ID="Literal1" runat="server" Text="不修改密码请为空"></asp:Literal><font color="red"></font></td>
	</tr>
	 <tr style="display:none">
		<td class="tRight">后台管理密码：</td>
		<td colspan="2"><asp:TextBox ID="TextBox3" runat="server" TextMode="Password" Width="150px"></asp:TextBox></td>
	</tr>
	<tr>
		<td class="tRight">后台管理权限：</td>
		<td colspan="2">
            <asp:Repeater ID="Repeater1" runat="server">
            <ItemTemplate>
            <table border="0" cellpadding="0" cellspacing="0" style="width: 100%; text-align:left">
                <tr>
                    <td style="width:100px">
                        <span id="qx_txt_<%=i1 %>"><%#DataBinder.Eval(Container.DataItem, "u1")%></span>
                        &nbsp;
                    </td>
                    <td>
                     <%--<%#set_check(DataBinder.Eval(Container.DataItem, "u1").ToString(),i1,i1)%>--%>
                    <input type="checkbox" name="qx_box_<%=i1 %>" id="qx_box" value="查看" />查看&nbsp;<input type="checkbox" name="qx_box_<%=i1 %>" id="Checkbox1"  value="增加"/>增加&nbsp;<input type="checkbox" name="qx_box_<%=i1 %>" id="Checkbox2"  value="修改"/>修改&nbsp;<input type="checkbox" name="qx_box_<%=i1 %>" id="Checkbox3"  value="删除"/>删除&nbsp;
                    </td>
                </tr>
                
            </table>
            <%
                i1++;
             %>
            </ItemTemplate>
            </asp:Repeater>
            
            </td>
	</tr>

	  	      </table>
    <div id="cEndToolbar" class="toolbarBg">
      <div class="caButCase">
          <asp:Button ID="Button1" runat="server" CssClass="button" Text="确认操作" OnClick="Button1_Click1"  OnClientClick="return admin_js()" />
		    
	        <input type="reset" name="Submit2" value="清空重填" class="button" />
      </div>
    </div>
<script type="text/javascript">
    var che_list=<%=i1 %>;
    
    function admin_js()
    {
        var t1="";
        for(i=1;i<che_list;i++)
        {
            var boxes = document.getElementsByName("qx_box_"+i); 
            for (var j = 0; j < boxes.length; j++)   
            {
                 if (boxes[j].checked)   
                {
                       if(j==0)
                       {
                                t1=t1+boxes[j].value;
                       }
                       else
                       {
                                t1=t1+","+boxes[j].value; 
                       }
                }
                else
                {
                        if(j==0)
                       {
                                t1=t1+"";
                       }
                       else
                       {
                                t1=t1+","+""; 
                       } 
                }
            }
        }
       document.getElementById("TextBox3").value=t1;

    }
    
</script>
    </form>
    <iframe frameborder="no" scrolling="no" width="100%" height="25" src="a.htm"
    tabIndex="0">
</iframe>
</body>
</html>


