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

<!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>
                <form id="form1" runat="server">
                    <input type="hidden" id="txtID" runat="server"/>
                    <div><a href="AreaAdd.aspx?r=0">添加地区</a></div>
                    <table width="100%" border="0" cellpadding="3" cellspacing="1" class="maintable">
                    <tr class="maintablehead">
                        <td align="right" style="width: 200px;">
                            地区名称</td>
                        <td align="left" style="width: 678px">
                           <input type="text" id="txtAreaName" runat="server"/>
                        </td>
                    </tr>
                    <tr class="maintablehead">
                        <td align="right" style="width: 200px">
                        </td>
                        <td align="left" colspan="2">
                           <input type="button" class="f-button" value="保存" onclick="EditArea();" />
                        </td>
                    </tr>
                </table>
                    
                </form>
                </div> 
                
            </td>
        </tr>
    </table>
</body>
</html>
<script language="JavaScript" type="text/javascript">
//function $(o){return document.getElementById(o);}

//修改地区
function EditArea()
{
    var name=$("txtAreaName").value;
    var ID=$("txtID").value;
    if(name=="")
    {
        alert("地区名字不能为空");
        return;
    }
    self.location="?Type=Edit&ID="+ID+"&name="+escape(name);
}
</script>
