<%@ Page Language="c#" Inherits="Web.User.addLetterLink" CodeBehind="addLetterLink.aspx.cs" %>
<!DOCTYPE html>
<!--[if lt IE 9]><html class="lte-ie8"><![endif]-->
<!--[if gt IE 8]><!-->
<html>
<!--<![endif]-->
<head>
    <title>文字链接编辑</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <!--#include file = "../Css/userCssEdit.htm" -->
    <script type="text/javascript">
    function checkAll()
    {
        //验证
        if (checkAllValidate()){
            return true ;
        }else{
            return false ;
        }
    };
    //关闭弹出层 刷新列表
        function divClose(bigclassid,menuid){
            parent.$.fancybox.close();
            parent.location="manageLetterlink.aspx?type="+bigclassid+"&menuId="+menuid;
        };
 
    </script>
</head>
<body>
    <form  runat="server">
    <div class="edit-func-box func-box">
        <div class="hd b">文字链接编辑</div>
        <div class="bd">
            <table class="edit-table">
                <tr>
                    <th></th>
                    <td></td>
                </tr>
                <tr>
                    <th>
                        链接名称：
                    </th>
                    <td>
                        <asp:TextBox ID="name" runat="server" class="input-txt w3" notNull="true" msgName="链接名称" ></asp:TextBox>
                        &emsp; 
                        <asp:CheckBox ID="isTop" runat="server" Text="固顶"></asp:CheckBox>
                    </td>
                </tr>
                <tr>
                    <th>
                        链接地址：
                    </th>
                    <td>
                        <asp:TextBox ID="url" runat="server" class="input-txt w3" ></asp:TextBox><br />
                        <span class="lgrey">(外链需加上http://，内链可用相对路径，#表示空链接)</span>
                    </td>
                </tr>
                <tr>
                    <th>
                        浏览权限：                        
                    </th>
                    <td>
                        <asp:DropDownList ID="gate" runat="server" CssClass="drop-txt" width="125">
                            <asp:ListItem Value="0">无限制</asp:ListItem>
                            <asp:ListItem Value="1">仅内网可见</asp:ListItem>
                            <asp:ListItem Value="2">仅登录可见</asp:ListItem>
                            <asp:ListItem Value="3">内网或登录可见</asp:ListItem>
                        </asp:DropDownList>
                        显示等级： 
                        <asp:DropDownList ID="grade" runat="server" DataTextField="name" DataValueField="pkId" CssClass="drop-txt" width="125">
                        </asp:DropDownList>    
                    </td>
                </tr>

            </table>
        </div>
        <div class="ft">
            <div class="action-field txt-c">
                <asp:Button ID="add" class="btn" runat="server" Text="添 加" OnClientClick="return checkAll();" OnClick="add_Click">
                </asp:Button>
                &emsp;
               <input type="button" class="btn" value="取 消" onclick="parent.$.fancybox.close();" />
            </div>
            <!--/action-field-->
        </div>
    </div>
    </form>
</body>
</html>
