<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Flink_Edit.aspx.cs" Inherits="TotCms.Web.Admin.Flink_Edit" %>

<%@ Register src="UI/main_top.ascx" tagname="main_top" tagprefix="uc1" %>

<!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">
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <title>添加链接</title>
  <link href="style/global.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="js/common.js"></script>
  <script src="../js/jquery-1.5.1.min.js" type="text/javascript"></script>
    <script src="../js/jquery-ui-1.8.10/js/jquery-ui-1.8.10.custom.min.js" type="text/javascript"></script>
    <link href="../js/jquery-ui-1.8.10/css/ui-lightness/jquery-ui-1.8.10.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
      $(function () {
        $("#dialog:ui-dialog").dialog("destroy");
        $("#dialog-win").dialog({
          autoOpen: false,
          width: 530,
          height: 250,
          modal: true,
          close: function () {

          }
        });
      });
      function Upload_Open(id) {
        $("#dialog-win").dialog("open");
        document.getElementById('win_frame').src = 'Upload.aspx?rid=' + id;
        $("#dialog-win").dialog('option', 'title', '上传图片');
      }
      function CloseFrame() {
        $("#dialog-win").dialog("close");
      }
</script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
      <uc1:main_top ID="main_top1" runat="server" />
    
    </div>
    <table style="width:100%;" border="0" cellpadding="0" cellspacing="1" 
      class="black_border">
      <tr class="suphead">
        <td colspan="2">
                    修改友情链接</td>
    </tr>
    <tr>
      <td class="fields_text">
        网站名称：</td>
      <td class="fields_input">
        <asp:TextBox ID="Title" runat="server"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
          ControlToValidate="Title" ErrorMessage="网站名称不能为空"></asp:RequiredFieldValidator>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
        域名地址：</td>
      <td class="fields_input">
        <asp:TextBox ID="Url" runat="server" CssClass="input_middle"></asp:TextBox>
          <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
          ControlToValidate="Url" ErrorMessage="域域名地址不能为空"></asp:RequiredFieldValidator>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
        Logo：</td>
      <td class="fields_input">
        <asp:TextBox ID="Logo" runat="server" CssClass="input_middle"></asp:TextBox>
          &nbsp;<input name="UpLoad" type="button" id="UpLoad" value="上传" 
          onclick="Upload_Open('Logo')" class="btn-general" />
          &nbsp;
          </td>
    </tr>
    <tr>
      <td class="fields_text">
        类型：</td>
      <td class="fields_input">
        <asp:DropDownList ID="LinkType" runat="server">
          <asp:ListItem Value="0">文字链接</asp:ListItem>
          <asp:ListItem Value="1">图片链接</asp:ListItem>
        </asp:DropDownList>
          </td>
    </tr>
    <tr>
      <td class="fields_text">
        排序：</td>
      <td class="fields_input">
        <asp:TextBox ID="SortId" runat="server">0</asp:TextBox>
        数字越小越靠前</td>
    </tr>
    <tr>
      <td></td>
      <td height="45" align="left">
        <asp:Button ID="Button1" runat="server" Text="修 改" onclick="Button1_Click" 
          CssClass="btn-submit" />
        &nbsp;<input id="Button2" type="reset" value="取 消" class="btn-cancel" /></td>
    </tr>
  </table>
  <div id="dialog-win" title="window">
	  <iframe id="win_frame" name="win_frame" src="Blank.htm" width="500" height="170" frameborder="0"></iframe>	
  </div>
    </form>
</body>
</html>
