<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Area.aspx.cs" Inherits="JuSNS.Web.system.sys.Area" %>

<!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>
    <title id="ptitle" runat="server">地区管理</title>
    <link href="../images/css/style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" type="text/javascript" src="../../js/ajax.js"></script>

    <script language="javascript" type="text/javascript" src="../../js/public.js"></script>


</head>
<body>
    <table width="99%" border="0" align="center" cellpadding="5" cellspacing="1">
        <tr>
            <td width="120" align="center" valign="top">
                <div class="menu">
                    <ul>
                        <%=this.GetSystemMenu(sort)%>
                    </ul>
                </div>
            </td>
            <td valign="top">
                <div class="navip">
                    <span class="Blue">
                    <a href="index.aspx">空间管理</a> 
                    <a href="Email.aspx">电子邮件设置</a> 
                    <a href="EmailSend.aspx">邮件通知</a> 
                    <a href="EmailSys.aspx">发送邮件内容编辑</a> 
                    <a href="SysKey.aspx">关键字过滤</a> 
                    <a href="gbook.aspx">留言管理</a> 
                    <a href="EmailSTMP.aspx">邮件服务器设置</a> 
                    <a href="Area.aspx">地区管理</a> 
                        </span>
                </div>
               <div style="padding:6px 8px 0px 8px;">
               <div><a href="area.aspx">地区管理</a> <a href="vo.aspx">行业管理</a></div>
               <div><a href="areaadd.aspx?r=0">增加地区</a></div>
                <form id="form1" runat="server">
                       <asp:Repeater runat="server" ID="Rpt_UserList">
                            <HeaderTemplate>
                                <table width="100%" border="0" cellpadding="3" cellspacing="1" class="maintable">
                                    <tr class="maintablehead">
                                        <td align="center" style="width: 10%;">
                                            编号</td>
                                        <td align="center" style="width: 20%;">
                                            名称</td>
                                        <td align="center" style="width: 20%;">
                                            状态</td>
                                        <td align="center" style="width: 20%;">
                                            操作</td>
                                    </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="maintablelist">
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "ID")%>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "Name")%>
                                    </td>
                                    <td align="center">
                                        <%# DataBinder.Eval(Container.DataItem, "IsLock")%>
                                    </td>
                                    <td align="center">
                                        <a href="AreaEdit.aspx?ID=<%# DataBinder.Eval(Container.DataItem, "ID")%>&Name=<%# JuSNS.Common.Input.URLEncode(DataBinder.Eval(Container.DataItem, "Name").ToString())%>">编辑</a>
                                        | <a href="javascript:Lock(<%# DataBinder.Eval(Container.DataItem, "ID")%>,1);">锁定</a>
                                        | <a href="javascript:Lock(<%# DataBinder.Eval(Container.DataItem, "ID")%>,0);">解锁</a>
                                        | <a href="javascript:del(<%# DataBinder.Eval(Container.DataItem, "ID")%>);">删除</a>
                                    </td>
                                </tr> 
                            </ItemTemplate>
                            <FooterTemplate>
                                </table>
                            </FooterTemplate>
                        </asp:Repeater>
                        <div class="pagination" runat="server" id="DivPage" align="center">
                                    </div>
                        <table width="100%" border="0" cellpadding="3" cellspacing="1">
                            <tr class="maintablepage">
                                <td>
                                    <div align="center">
                                        输入地区名称搜索你要找的地区
                                        <asp:TextBox ID="Key" runat="server" Width="200"></asp:TextBox><asp:Button ID="Button1"
                                            runat="server" Text=" 搜索 " OnClick="Button1_Click" /></div>
                                    
                                </td>
                            </tr>
                        </table>           
                        
                    
                </form>
                </div> 
                
            </td>
        </tr>
    </table>
</body>
</html>

<script language="javascript" type="text/javascript">
function del(id)
{
    if(confirm('你确认删除此地区吗?'))
        self.location="?Type=del&id="+id;
}
function Lock(id,value)
{
    if(confirm('你确认锁定、解锁此地区吗?'))
        self.location="?Type=Lock&id="+id+"&value="+value;
}
</script>
