<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="admin_zy.aspx.cs" Inherits="Webdisk.admin_zy" %>
<!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>
</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;<asp:Label ID="Label1" runat="server"></asp:Label>
        管理</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,2)" background="images/tab_unactive_bg.gif"
																	UNSELECTABLE="on">
                      <asp:Label ID="Label2" runat="server"></asp:Label>
                      管理</TD>
                  <TD width="3"><IMG id="tabImgRight__0" height="22" src="images/tab_unactive_right.gif" width="3"></TD>
                </TR>
              </TBODY>
          </TABLE></TD>
          <TD><TABLE height="22" cellSpacing="0" cellPadding="0" border="0">
              <TBODY>
                <TR>
                  <TD width="3"><IMG id="tabImgLeft__1" height="22" src="images/tab_unactive_left.gif" width="3"></TD>
                  <TD class="tab" id="tabLabel__1" onClick="javascript:tabClick(1,2)" background="images/tab_unactive_bg.gif"
																	UNSELECTABLE="on">添加<asp:Label 
                          ID="Label3" runat="server"></asp:Label>
                    </TD>
                  <TD width="3"><IMG id="tabImgRight__1" height="22" src="images/tab_unactive_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>
              <p>
                <asp:datagrid id="DataGrid" runat="server" CssClass="GridBody" 
                    AutoGenerateColumns="False" Width="100%" PageSize="20" AllowSorting="True" 
                    onitemcommand="DataGrid_ItemCommand" 
                      ondeletecommand="DataGrid_DeleteCommand1">
                  <AlternatingItemStyle CssClass="GridLine"></AlternatingItemStyle>
                  <ItemStyle CssClass="GridItem"></ItemStyle>
                  <HeaderStyle CssClass="GridHead"></HeaderStyle>
                  <Columns>
                    <asp:BoundColumn DataField="id" HeaderText="ID" ReadOnly="True">
                      <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
                      <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="kind" HeaderText="名称">
                      <HeaderStyle HorizontalAlign="Center" Width="20%"></HeaderStyle>
                      <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:BoundColumn DataField="korder" HeaderText="排序">
                      <HeaderStyle HorizontalAlign="Center" Width="10%"></HeaderStyle>
                      <ItemStyle HorizontalAlign="Center"></ItemStyle>
                    </asp:BoundColumn>
                    <asp:TemplateColumn HeaderText="类型" SortExpression="role">
                      <ItemTemplate>
                        <%# showtype(Eval("type").ToString()) %>
                      </ItemTemplate>
                      <HeaderStyle Font-Bold="True" Font-Italic="False" Font-Overline="False" 
                              Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" 
                              Width="10%" />                          
                      <ItemStyle Font-Bold="False" Font-Italic="False" Font-Overline="False" 
                              Font-Strikeout="False" Font-Underline="False" HorizontalAlign="Center" />                          
                    </asp:TemplateColumn>
                      <asp:ButtonColumn Text="编辑" HeaderText="编辑" CommandName="edit">
                        <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                      </asp:ButtonColumn>
                      <asp:ButtonColumn Text="删除" HeaderText="删除" CommandName="Delete">
                        <HeaderStyle HorizontalAlign="Center" Width="5%"></HeaderStyle>
                        <ItemStyle HorizontalAlign="Center"></ItemStyle>
                      </asp:ButtonColumn>
                    </Columns>
                  <PagerStyle PageButtonCount="20" Mode="NumericPages"></PagerStyle>
                </asp:datagrid>
                <br>
                      </p>
              </DIV><!--内容框End-->
            <asp:Panel ID="Panel1" runat="server" Visible="False">
                    <div align="center">名称：
                        <input class="tableTdtext" id="kind2" type="text" name="kind2" runat="server">
                        排序：
                      <input class="tableTdtext" id="korder2" type="text" size="3" name="korder2" runat="server">
                      &nbsp;&nbsp;
                      <asp:Button class="formbutton" ID="Button1" runat="server" Width="50px" Text="修改" onclick="Button1_Click"></asp:Button>
                      <input id="hidid" style="WIDTH: 33px; HEIGHT: 22px" type="hidden" size="1" name="hidid"
							runat="server">
                    </div>
                </asp:Panel>
            <DIV id="tabContent__1">
                <TABLE cellSpacing="1" cellPadding="3" width="100%" align="center" border="0">
                    <TBODY>
                        <TR>
                            <TD width="22%" class="table_body">名称</TD>
              <TD width="78%" class="table_none"><input id="kind1" class="tableTdtext" type="text" name="kind1" runat="server" />
                  排序：
  <input id="korder1" class="tableTdtext" type="text" size="3" name="korder1" runat="server" />
  <asp:Button ID="btnlock" runat="server" Width="50px" class="formbutton" Text="添加" onclick="btnlock_Click"></asp:Button></TD>
                      </TR>
                    </TBODY>
                </TABLE>
            </DIV>
            <!--内容框Start-->
            </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"></div>
  </DIV>
</form>
					<script language='javascript'>
        function tabClick(idx,count) {
          for (i_tr = 0; i_tr < count; i_tr++) {
            if (i_tr == idx) {
              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';
              continue;
            }
            var tabImgLeft = eval('document.all.tabImgLeft__' + i_tr);
            var tabImgRight = eval('document.all.tabImgRight__' + i_tr);
            var tabLabel = eval('document.all.tabLabel__' + i_tr);
            var tabContent = eval('document.all.tabContent__' + i_tr);

            tabImgLeft.src = 'images/tab_unactive_left.gif';
            tabImgRight.src = 'images/tab_unactive_right.gif';
            tabLabel.background = 'images/tab_unactive_bg.gif';
            tabContent.style.visibility = 'hidden';
            tabContent.style.display = 'none';
          }
        }
        tabClick(0,2);
					</script>
<BR>
</BODY>
</HTML>