<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_daohang_Add.aspx.cs" Inherits="YCHR.Web.admin.Sys.YC_daohang_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 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; 分站管理 </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="javascript:location.reload()">刷新页面</a>]</b>
            </td>
        </tr>
    </table>
    <div class="spClear">
    </div>
   <table width="100%" cellspacing="0" cellpadding="0" border="0" class="msgtable">
        <tbody><tr>
            <th width="5%" align="center">
                序号
            </th>
            <th width="30%" align="center">
                菜单名称</th>
            <th width="10%" align="center">
                页面地址</th>
         
            <th width="10%" align="center">
                展开目标</th>
            <th width="10%" align="center">
                创建日期
            </th>
            
            <th width="10%" align="center">
                操作
            </th>
        </tr>
          <asp:Repeater ID="repdaohangList" runat="server">
            <ItemTemplate>
                <tr>
                    <td align="center">
                        <span class="checkall">      <asp:HiddenField ID="txtid" Value='<%#Eval("id") %>' runat="server" />
                        <%#Eval("id") %>
                    </td>
                    <td align="center">
                        <%#Eval("title") %>
                      </td>
                    <td align="center">
                      <%#Eval("link") %>
                  
                    <td align="center">
                   <%#Eval("target")=="1"?"原窗口":"新窗口" %>
                    </td>
                      <td align="center">
                      <%#Eval("addtime") %>
                    </td>
                      
                    <td align="center">
                      <span>
                    <a href="?editid=<%#Eval("id") %>"><img src="../images/white_edit.png"></a>  
                    </span><span>
                   <a href="?deleid=<%#Eval("id") %>"><img src="../images/white_delete.png"></a> </td>
                </tr>
            
                 </ItemTemplate>
        </asp:Repeater>
            
    </tbody></table>   &nbsp;<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="txttitle" 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="txtlink" runat="server" class="input" name="txtlink" 
                    type="text" value="" />
               
            </td>
        </tr>
        <tr id="tradechose" runat="server">
            <td width="15%" align="right">
                打开方式：
            </td>
            <td width="85%">
                <select id="target" runat="server" 
                    name="target">
                    <option value="0">本窗口</option>
                    <option value="1">新窗口</option>
                </select></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>

