<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_Place_List.aspx.cs" Inherits="YCHR.Web.admin.Sys.YC_Place_List" %>

<!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 rel="stylesheet" type="text/css" href="../images/style.css" />
   <script type="text/javascript" src="/javascript/jquery-1.4.1.js"></script>
     
       <script type="text/javascript" src="/yc2011/js/manager.js"></script>       
    <script type="text/javascript">
        $(function () {
            $(".msgtable tr:nth-child(odd)").addClass("tr_bg"); //隔行变色
            $(".msgtable tr").hover(
			    function () {
			        $(this).addClass("tr_hover_col");
			    },
			    function () {
			        $(this).removeClass("tr_hover_col");
			    }
		    );
        });
    </script>

</head>
<body style="padding:10px;">
    <form id="form1" runat="server">
        <div class="navigation"><span class="back"><a href="#" onclick="window.history.go(-1);">返回上级列表</a></span><b>您当前的位置：首页 &gt; 地区管理 &gt; 地区列表</b></div>
        <div style="padding-bottom:10px;"></div>

        <asp:Repeater ID="rptPlaceList" runat="server" 
            onitemcommand="rptPlaceList_ItemCommand" >
            <HeaderTemplate>
                <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                    <tr>
                        <th width="7%">编号</th>
                        <th align="center" width="30%">中文名</th>
                        <th  align="center" width="30%" >父编号</th>
                        <th >排序</th>
                        <th width="150">管理操作</th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                    <tr>
                        <td align="center" >                       
                           <%#Eval("AreaCode")%>
                        </td>
                        
                        <td width="30%" align="center" ><asp:HiddenField ID="txtId" Value='<%#Eval("AreaCode") %>'  runat="server" />  
                        <asp:HiddenField ID="reptxtparentid" Value='<%#Eval("AreaCode") %>'  runat="server" />                 
                     <asp:TextBox ID="txtcname" runat="server" Text='    <%#Eval("Name") %>'  CssClass="input"></asp:TextBox>
                        </td>
                           <td  width="30%" align="center" ><asp:TextBox ID="txtparentcode" runat="server" Text=' <%#Eval("ParentCode") %>'  CssClass="input"></asp:TextBox></td>
                        <td align="center" > <asp:TextBox ID="txtdisplayorder" MaxLength="10"  runat="server" Text=' <%#Eval("DisplayOrder") %>'  CssClass="input"></asp:TextBox></td>
                        <td align="center">  
                            <span>
   <asp:ImageButton ID="ImgRead"   CommandName="ImgRead" ImageUrl="../images/organisation.png"  runat="server"  />
    <asp:ImageButton ID="ImgAddChild"  CommandName="ImgAddChild" ImageUrl="../images/white_add.png"  runat="server" />                        
<asp:ImageButton ID="ImgDel"  OnClientClick="return confirm( '确定要删除吗？会连同子类一起被删除并且无法恢复 ');" CommandName="ImgDel" ImageUrl="../images/white_delete.png"  runat="server" />  <asp:ImageButton ID="ImgIndex"  CommandName="Imgindex" ImageUrl='<%# Eval("iscommon").ToString().ToLower() == "true" ? "../Images/ico-1.png" : "../Images/ico-1_.png"%>'  ToolTip='<%# Eval("iscommon").ToString().ToLower() == "true" ? "取消首页显示" : "设置首页显示"%>'  runat="server" />      
      </td>
  </tr>
  </ItemTemplate>
 <FooterTemplate>
 </table>
</FooterTemplate>
  </asp:Repeater>
 <p>
新增分类（新增1项，不新增请不要填写以下内容。)
</p>
  <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
                    <tr>
                        
                        <th width="7%">新增<input type="hidden" id="horderid" name="horderid" value="<%=Maxcount %>" /></th>
                        <th align="center" width="30%" id="newid1"><asp:TextBox ID="tcname" name="tcname" runat="server" CssClass="input"></asp:TextBox></th>
                        <th  align="center" width="30%"  id="newid2"><asp:TextBox ID="tparentcode" name="tparentcode" runat="server"  CssClass="input"></asp:TextBox></th>
                        <th  id="newid3"><asp:TextBox ID="torderid" runat="server" name="torderid"  CssClass="input" ></asp:TextBox></th>
                        <th width="150"> </th>
                    </tr>
                    </table>
        <p align="center" >
           
         
            <asp:Button ID="btnaddedit" runat="server" Text="一键修改添加" Width="113px" onclick="btnaddedit_Click1" 
                 />
        </p>
 
     </form>
</body>
</html>

