<%@ Page Language="C#" MasterPageFile="Admin.Master" AutoEventWireup="true" CodeBehind="Linkadd.aspx.cs" Inherits="Mvcb2b.admin.Linkadd" Title="友情链接添加" ValidateRequest="false" %>
<%@ OutputCache Duration="180" VaryByParam="*" %>
<%@ MasterType VirtualPath="Admin.Master" %>
<%@ Register src="controls/Upallfiles.ascx" tagname="Upallfiles" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<script type="text/javascript">
function checkform()
{
    if (typeof (Page_ClientValidate) == 'function') {
        if (Page_ClientValidate('Haosubmit'))    //(Page_ClientValidate())
           {

           } 
    }
   }
   function pdfprocess(flag) {
       try {
           if (flag == true) {
               $("#wrapshow").show();
               fileupstate = window.setInterval("getpagestate()", 2000); 
           }
           else
               $("#wrapshow").hide();
       }
       catch (err) { }
   }
</script>

<div class="path">当前位置： 系统管理 >>  友情链接添加</div>
<h3><asp:Literal  ID="Literal1" runat="server"></asp:Literal></h3>

<table width="92%" border="0" class="editor"   style="background-color:#f5f5f5;margin-left:auto;margin-right:auto;" cellpadding="3" cellspacing="1">     

 <tr><td align="right" style="width:120px;" >网站名称：</td>
 <td><asp:TextBox ID="linkname_txt" runat="server" Text=""  Width="250px"></asp:TextBox></td>
 </tr>
  <tr><td align="right" style="width:120px;" >链接类型：</td>
 <td> <asp:DropDownList ID="linktype_txt" runat="server">
<asp:ListItem Value="1" Text="文字"></asp:ListItem>
<asp:ListItem Value="2" Text="图片"></asp:ListItem>
<asp:ListItem Value="3" Text="动画"></asp:ListItem>
</asp:DropDownList></td>
 </tr>
 <tr>
  <td align="right">广告上传：</td>
  <td><uc2:Upallfiles ID="linklogo_txt" runat="server" />  <span style="color:Gray;">可上传图片或Flash</span></td>
</tr>
 <tr><td align="right" >链接网址：</td>
 <td><asp:TextBox ID="linkurl_txt"   runat="server" Text="http://"  Width="250px"></asp:TextBox></td>
 </tr>
 <tr><td align="right" style="width:120px;" >链接位置：</td>
 <td> <asp:DropDownList ID="linkpage_txt" runat="server">
<asp:ListItem Value="1" Text="首页"></asp:ListItem>
<asp:ListItem Value="2" Text="内页"></asp:ListItem>
</asp:DropDownList></td>
 </tr>
<tr><td colspan="2" align="center"><asp:HiddenField ID="action_txt" runat="server" />
<asp:HiddenField ID="id_txt" runat="server" />
<asp:HiddenField ID="fromrefer" runat="server" />

<asp:Button ID="Save" runat="server" Text="添加" Width="58px"  ValidationGroup="Haosubmit" onclick="Save_Click" />&nbsp;
<asp:validationsummary id="ValidationSummary1"  runat="server" ShowMessageBox="True" ShowSummary="False"  ValidationGroup="Haosubmit"></asp:validationsummary> <input type="button" value="返回" name="go" style="width:58px;" onclick="javascript:window.location.href='Linksmanage.aspx';"  /></td></tr>
</table>



<div class="help">
        <h4>? 帮助</h4>
        <ul>        
        <li>1. 附件文件包括友情链接的全部内容，不受所选HTML标准限制.</li>
        </ul>
   </div>
</asp:Content>
