<%@ Page Language="C#" AutoEventWireup="true" CodeFile="add.aspx.cs" Inherits="WebXabara_Link_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 href="../InClude/StyleSheet.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
    <!--
    body {
	    margin-left: 0px;margin-top: 15px;margin-right: 10px;margin-bottom: 10px;
    }
    -->
    </style>
    <script src="/js/jquery.min.js" type="text/javascript"></script>    
    <script src="/js/all.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="divWidth">
        <div class="titleBg">添加链接</div>
        <div class="height10px">
        </div>
        <table width="100%" class="tableLine">
            <tr>
                <td class="tdTitle">
                    <strong>链接分类</strong>
                </td>
                <td class="tdContent">
                    <asp:DropDownList ID="linkList" runat="server" CssClass="inputText">
                        <asp:ListItem Selected="True" Value="">== 请选择 ==</asp:ListItem>
                    </asp:DropDownList>
                    <asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator1"
                        runat="server" ControlToValidate="linkList" ErrorMessage="请选择分类"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    <strong>图片</strong>
                </td>
                <td class="tdContent">
                    <asp:FileUpload ID="imgUpload" runat="server" CssClass="inputTextIME" Width="500px" />
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    <strong>链接名称</strong>
                </td>
                <td class="tdContent">
                    <asp:TextBox ID="linkName" runat="server" CssClass="inputText" Width="500px"></asp:TextBox>
                    <asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator2"
                        runat="server" ControlToValidate="linkName" ErrorMessage="请填写网站名称"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    <strong>链接网址</strong>
                </td>
                <td class="tdContent">
                    <asp:TextBox ID="linkHttp" runat="server" CssClass="inputText" Width="500px"></asp:TextBox>
                    <asp:RequiredFieldValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RequiredFieldValidator3"
                        runat="server" ControlToValidate="linkHttp" ErrorMessage="请填写网址"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator SetFocusOnError="True" ForeColor="#ff3300" ID="RegHttp"
                        runat="server" ControlToValidate="linkHttp" ErrorMessage="RegularExpressionValidator"></asp:RegularExpressionValidator>
                </td>
            </tr>
            <tr>
                <td class="tdTitle">
                    &nbsp;</td>
                <td class="tdContent">
                    <asp:Button ID="addLink" runat="server" CssClass="inputBottom" OnClick="addLink_Click"
                        Text="添加链接" />
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
