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

<!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="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../js/messages_cn.js"></script>
    <script type="text/javascript" src="../js/jquery.form.js"></script>
    <script type="text/javascript" src="../js/cursorfocus.js"></script>
       <script type="text/javascript" src="<%=tempconfig.templatetheme %>/js/core.com.js"></script>
    <script type="text/javascript" src="<%=tempconfig.templatetheme %>/js/selectdata.js"></script>
    <script type="text/javascript" src="<%=tempconfig.templatetheme %>/js/jobsearch.js"></script>
    <link href="../images/system.css" rel="stylesheet" type="text/css" />
     <script>
         $(function () {
             
             $('#name_cplaceid').bindArea({
                 max: 1,
                 formInputName: 'cplaceid'
             });
             //行业
             $('#name_ctradeid').bindCalling({
                 max: 1,
                 formInputName: 'ctradeid'
             });
            
         }); 
    </script>
    <script type="text/javascript">
        $(function () {
            //表单验证JS
            $("#form1").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function (label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }
            });
        });
        $(function () {
            $("#cbIsImage").bind("click", function () {
                if ($(this).attr("checked") == true) {
                    $(".upordown").show();
                } else {
                    $(".upordown").hide();
                }
            });
        });
    </script>
</head>
<body style="padding: 10px;">
    <form id="form1" runat="server">
    <div class="navigation">
        <span class="add"></span><b>您当前的位置：首页 &gt; 分站管理 &gt; 分站列表</b></div>
    <div class="spClear">
    </div>
    <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1">
       <tr>
            <td height="25" class="pl20">
                <b>管理选项： <a href="YC_Site_Add.aspx?addtype=1">添加地区分站</a> |<a href="YC_Site_Add.aspx?addtype=2">添加行业分站</a> | <a href="YC_Sitelist.aspx?sitetype=1">地区分站列表</a>| <a href="YC_Sitelist.aspx?sitetype=2">行业分站列表</a> |[<a
                    href="javascript:location.reload()">刷新页面</a>]</b>
            </td>
        </tr>
    </table>
    <div class="spClear">
    </div>
    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">
                添加地区分站
            </th>
        </tr>
        <tr>
            <td width="15%" align="right">
                分站名称：</td>
            <td width="85%">
                <asp:TextBox ID="txtsitename" CssClass="input w50  required"  runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr id="areachose" runat="server">
            <td width="15%" align="right">
                选择分站地区：
            </td>
            <td width="85%">
                <input id="name_cplaceid" runat="server" class="input" name="name_cplaceid" 
                    type="text" value="" />
                <input id="cplaceid" runat="server" name="cplaceid" type="hidden" />
            </td>
        </tr>
        <tr id="tradechose" runat="server">
            <td width="15%" align="right">
                选择分站行业：
            </td>
            <td width="85%">
                <input id="name_ctradeid" runat="server" class="input" name="name_ctradeid" 
                    type="text" value="" />
                <input id="ctradeid" runat="server" name="ctradeid" type="hidden" />
            </td>
        </tr>
        <tr>
            <td align="right">
                分站域名标志：
            </td>
            <td>
                <asp:TextBox ID="txtsitedomain" runat="server" CssClass="input w50  required" MaxLength="50"></asp:TextBox>
                (如杭州分站可输入拼音：hangzhou)</td>
        </tr>
        <tr>
            <td align="right">
                排序优先级：</td>
            <td>
                <asp:TextBox ID="txtorderId" runat="server" CssClass="input required number" 
                    maxlength="10" size="10">0</asp:TextBox>
                (数字越大越靠前)</td>
        </tr>
    </table>
    <div style="margin-top: 10px; text-align: center;">
        <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" OnClick="btnSave_Click" />
        &nbsp;
        <input name="重置" type="reset" class="submit" value="重置" />
    </div>
    </form>
</body>
</html>

