<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="YC_Link.aspx.cs" Inherits="YCHR.Web.admin.Sys.YC_Link" %>

<!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 rel="stylesheet" type="text/css" href="../images/style.css" />
    <script type="text/javascript" src="../js/jquery.js"></script>
    <script type="text/javascript" src="../js/jquery.validate.min.js"></script>
    <script type="text/javascript" src="../js/messages_cn.js"></script>
    <script type="text/javascript" src="../js/jquery.form.js"></script>
    <script type="text/javascript" src="../js/cursorfocus.js"></script>
    <script type="text/javascript" src="../js/singleupload.js"></script>
    <script type="text/javascript">
        $(function () {
            //表单验证JS
            $("#form1").validate({
                //出错时添加的标签
                errorElement: "span",
                success: function (label) {
                    //正确时的样式
                    label.text(" ").addClass("success");
                }
            });
        });
        $(function () {
            $("#cbIsImage").bind("click", function () {
                if ($(this).attr("checked") == true) {
                    $(".upordown").show();
                } else {
                    $(".upordown").hide();
                }
            });
        });
    </script>
</head>
<body style="padding:10px;">
    <form id="form1" runat="server">
    <div class="navigation">
      <span class="back"><a href="List.aspx">返回列表</a></span><b>您当前的位置：首页 &gt; 友情链接 &gt; 增加链接</b>
    </div>
     <div class="spClear"></div>   
      <table width="100%" border="0" align="center" cellpadding="2" cellspacing="1" >
 
  <tr>
    <td height=25 class="pl20"><b>管理选项：<a href="YC_Link.aspx">添加友情链接</a> | <a href="YC_Link_List.aspx">友情链接列表</a> | [<a href="javascript:location.reload()">刷新页面</a>]</b></td>
  </tr>


</table>
    <div style="padding-bottom:10px;"></div>



    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="msgtable">
        <tr>
            <th colspan="2" align="left">增加友情链接</th>
        </tr>
        <tr>
            <td width="15%" align="right">网站标题：</td>
            <td width="85%">
            <asp:TextBox ID="txtsitename" runat="server" CssClass="input required" size="30" 
            maxlength="100" minlength="3" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">网址：</td>
            <td>
            <asp:TextBox ID="txtsiteUrl" runat="server" CssClass="input w380 url required"
            maxlength="250"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">设置：</td>
            <td>
                <asp:CheckBox ID="cbIsImage" runat="server" Text="图片链接" />
            </td>
        </tr>
        <tr class="upordown" style="display:none">
            <td align="right">图片地址：</td>
            <td>
                <asp:TextBox ID="txtImgUrl" runat="server" CssClass="input w380 left" HintTitle="图片源地址"></asp:TextBox>
                <a href="javascript:void(0);" class="files"><input type="file" id="FileUpload" name="FileUpload" /></a>
                <span class="uploading">正在上传，请稍候...</span>
            </td>
        </tr>
        <tr>
            <td align="right">连接说明：</td>
            <td>
            <asp:TextBox ID="txtdesc" runat="server" CssClass="input" size="30" 
            maxlength="20" ></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td align="right">联系人：</td>
            <td>
            <asp:TextBox ID="txtlinkName" runat="server" CssClass="input" size="30" 
            maxlength="20" ></asp:TextBox>
            </td>
        </tr>
        <tr >
            <td align="right">所属频道：</td>
            <td>
                <asp:DropDownList ID="ddlchannel" runat="server">
                    <asp:ListItem Value="1">首页链接</asp:ListItem>
                    <asp:ListItem Value="2">内页链接</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
      
        <tr>
            <td align="right">优先级别：</td>
            <td>
            <asp:TextBox ID="txtorderId" runat="server" CssClass="input required number" size="10" 
            maxlength="10">0</asp:TextBox>
            </td>
        </tr>
    </table>
    <div style="margin-top:10px;text-align:center;">
  <asp:Button ID="btnSave" runat="server" Text="确认保存" CssClass="submit" onclick="btnSave_Click" 
        />
  &nbsp;
  <input name="重置" type="reset" class="submit" value="重置" />
</div>
    </form>
</body>
</html>

