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

<%@ Register TagPrefix="cc1" Namespace="Focus.Control" Assembly="Focus.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">
    <meta content="MSHTML 6.00.3790.0" name="GENERATOR">
</head>
<body leftmargin="5" topmargin="5" rightmargin="5" bottommargin="5" background="Images/main_bg.gif">
    <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>
        </tbody>
    </table>
    <div id="showdivs" style="width: 100%; display: none">
        <table class="TdBg" cellspacing="1" cellpadding="0" width="100%" border="0">
            <tbody>
                <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">
                        <asp:FileUpload ID="uploadfile" CssClass="k" runat="server" Width="300px" />
                        <input type="hidden" id="attachments" name="attachments" runat="server"/>
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
    <table class="TdBg" cellspacing="1" cellpadding="0" width="100%" border="0">
        <tbody>
           <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="3">
                        <asp:ListItem Value="0" Selected="True">未审核</asp:ListItem>
                        <asp:ListItem Value="1">审核通过</asp:ListItem>
                        <asp:ListItem Value="2">审核未通过</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>
