<%@ page language="C#" autoeventwireup="true" inherits="admin_system_ledit, s1.chapk.com" %>

<!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 runat="server">
    <title>友情链接编辑</title>
    <link rel="stylesheet" href="../css/table.css" type="text/css" media="all" />
    <script type="text/javascript" src="../../tool/SelectPicture.js"></script>    
</head>
<body onload="Javascript:pub_filename='<%=p_EditState %>';">
    <form id="form1" runat="server">
        <div class="my_alt">友情链接编辑</div>
        <table cellpadding="0" cellspacing="0" border="0" width="100%" class="tb">
            <tr>
                <td class="tl">网站名称：</td>
                <td class="tr"><asp:TextBox id="MC" runat="server" Width="300px"></asp:TextBox><asp:Label id="LAB_ID" runat="server" Visible="False"></asp:Label><asp:Label id="LAB_STATE" runat="server" Visible="False">1</asp:Label><asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="*" ControlToValidate="MC"></asp:RequiredFieldValidator></td>
            </tr>        
            <tr style="display:none">
                <td class="tl">链接类型：</td>
                <td class="tr">
            <asp:RadioButtonList ID="LB" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Value="0">文字链接</asp:ListItem>
                <asp:ListItem Value="1">Logo链接</asp:ListItem>
            </asp:RadioButtonList></td>
                </tr>
            <tr>
                <td class="tl">网站地址：</td>
                <td class="tr"><asp:TextBox id="URL" runat="server" Width="300px"></asp:TextBox><asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ErrorMessage="*" ControlToValidate="URL"></asp:RequiredFieldValidator></td>
            </tr>
            <tr style="display:none">
                <td class="tl">网站Logo：</td>
                <td class="tr"><asp:TextBox id="LOGO" runat="server" Width="300px"></asp:TextBox><input type="button" value="上传图片" onclick="openselect()" /></td>
            </tr>
            <tr>
                <td class="tl">站长姓名：</td>
                <td class="tr"><asp:TextBox id="NAME" runat="server" Width="200px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tl">电子邮件：</td>
                <td class="tr"><asp:TextBox id="EMAIL" runat="server" Width="200px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tl">备注：</td>
                <td class="tr"><asp:TextBox id="DETAILS" runat="server" Width="200px"></asp:TextBox></td>
            </tr>
            <tr>
                <td class="tl">显示位置：</td>
                <td class="tr"><asp:TextBox id="sort" runat="server" Width="100px"></asp:TextBox>值越小越靠前</td>
            </tr>            
            <tr>
                <td class="tl">状态：</td>
                <td class="tr">
            <asp:RadioButtonList ID="STATE" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Value="0">待审</asp:ListItem>
                <asp:ListItem Value="1">正常</asp:ListItem>
            </asp:RadioButtonList>                
                </td>
            </tr>
            <tr style="display:none">
                <td class="tl">推荐：</td>
                <td class="tr">
            <asp:RadioButtonList ID="s_p1" runat="server" RepeatDirection="Horizontal">
                <asp:ListItem Value="0">否</asp:ListItem>
                <asp:ListItem Value="1">是</asp:ListItem>
            </asp:RadioButtonList>                
                </td>
            </tr>            
            <tr>                      
                <td class="tl"></td>
                <td class="tr"><asp:Button ID="btn_ok" runat="server" Text=" 保存 " OnClick="btn_ok_Click" /></td>
            </tr>
        </table>
    </form>
</body>
</html>
