<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="linkedit.aspx.cs" Inherits="FangPage.Admin.linkedit" %>

<%@ Register TagPrefix="cc1" Namespace="FangPage.Control" Assembly="FangPage.Control" %>
<!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>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="styles/style.css" type="text/css" rel="stylesheet">
    <style type="text/css">
    body {
	    background-image: url(images/main_bg.gif);
	    background-repeat: repeat-x;
	    background-color: #CEE7FC;
    }
    </style>
    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5">
    <form id="Form1" runat="server">
    <table class="TdBg" cellspacing="1" cellpadding="0" width="100%" border="0">
        <tbody>
            <tr valign="middle">
                <td class="Tdimg" style="padding-left: 10px" height="28" colspan="2">
                    <img height="18" src="images/bbs_find.gif" width="18" align="absMiddle" border="0">
                    <strong>当前位置：<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label> » 编辑导航链接</strong>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                    链接名称:
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <cc1:TextBox ID="name" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填" Size="60"
                        Width="300px"></cc1:TextBox>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                    所属分类:
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <cc1:DropDownList ID="typeid" runat="server">
                    </cc1:DropDownList>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                    显示顺序:
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <cc1:TextBox ID="displayorder" runat="server" CanBeNull="必填" RequiredFieldType="数据校验"
                        Text="0" Width="56px" MultiLine="true" MaxLength="7"></cc1:TextBox>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                    链接地址:
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <cc1:TextBox ID="url" runat="server" RequiredFieldType="暂无校验" CanBeNull="必填" Size="60"
                        Width="300px"></cc1:TextBox>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                    链接说明:
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <cc1:TextBox ID="note" runat="server" RequiredFieldType="暂无校验" CanBeNull="可为空" Size="60"
                        Width="300px"></cc1:TextBox>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                    LOGO地址:
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <cc1:TextBox ID="logo" runat="server" RequiredFieldType="暂无校验" CanBeNull="可为空" Size="60"
                        Width="300px"></cc1:TextBox>  <asp:CheckBox ID="allowupload" runat="server" Text="本地上传" />
                </td>
            </tr>
            <tr class="TdBgL" id="showdivs" style="display: none">
                <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                    上传LOGO：
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <asp:FileUpload ID="uploadfile" CssClass="k" runat="server" Width="300px" />
                    <input type="hidden" id="attachments" name="attachments" runat="server"/>
                </td>
            </tr>
           <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" height="22" align="right">
                    审核状态:
                </td>
                <td style="padding-right: 3px; padding-left: 3px; padding-bottom: 3px; padding-top: 3px">
                    <cc1:RadioButtonList ID="status" runat="server" RepeatColumns="2">
                        <asp:ListItem Value="0" Selected="True">未审核</asp:ListItem>
                        <asp:ListItem Value="1">已审核</asp:ListItem>
                    </cc1:RadioButtonList>
                </td>
            </tr>
            <tr class="TdBgL">
                <td style="padding-right: 10px; width: 100px;" height="35" align="right">
                    &nbsp;
                </td>
                <td style="padding-left: 10px">
                    <cc1:Button ID="AddAdInfo" runat="server" Text=" 提 交 " OnClick="AddAdInfo_Click">
                    </cc1:Button>&nbsp;&nbsp;
                    <button class="ManagerButton" type="button" onclick="javascript:window.location.href='linkmanage.aspx?sortid=<%=sortid%>';">
                                    <img src="images/arrow_undo.gif" />返 回</button>
                </td>
            </tr>
        </tbody>
    </table>

    <script language="javascript" type="text/javascript">
         showdiv();
         function showdiv()
         {
            if(Form1.allowupload.checked==true)
            {
                showdivs.style.display='block';
            }
            else
            {
                showdivs.style.display='none';
            }
         } 
    </script>

    </form>
</body>
</html>
