<%@ Page Language="C#" AutoEventWireup="true" CodeFile="WantLinks.aspx.cs" Inherits="WantLinks" %>

<!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">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>添加友情链接</title>
<link rel="stylesheet" href="css/System/General.css" type="text/css" />
<link rel="stylesheet" href="Css/2009/about.css" type="text/css" />
</head>
<script type="text/javascript">
	    function wenzi()
	    {
	        logo.style.display="none";
	    }
	    function logoshow()
	    {
	         logo.style.display="";
	    }
	  
</script>
<body>
<div id="about_main">
  <div id="about_nav">
  <div class="logo"><a href="/"><img src="Images/logo.jpg" border="0" /></a></div>
  <div class="Contact"><table width="200" height="60" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="33"><a onMouseDown="return hcclick('?hctracelog=newsswindex')" onclick="javascript:this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.websen.net')" title="设为主页" style="cursor:pointer;" class="a5"
>设为首页</a> | <a onMouseDown="return hcclick('?hctracelog=newstjscj')" title="添加到收藏夹" onclick="window.external.addFavorite('http://www.websen.net','网胜科技－B2B电子商务领航者')"style="cursor:pointer;" class="a5">添加到收藏夹</a></td>
  </tr>
  <tr>
    <td height="40" valign="bottom">客服电话：0351-7622428</td>
    </tr>
</table>
</div>
  <div class="clr"></div>
  </div>
  <div id="about_nerong">
    <div id="dance">您现在的位置： <a href="../" class="a5">网站首页</a> &gt;&gt; 申请友情链接</div>
	<div class="clr"></div>
    <div class="about_left">
	 <ul>
	  <li><a href="../search/solely.aspx?url=关于我们">关于我们</a></li>
	  <li><a href="../search/solely.aspx?url=联系我们">联系我们</a></li>
	  <li><a href="../search/solely.aspx?url=广告服务">广告服务</a></li>
	  <li><a href="../search/solely.aspx?url=网站地图">网站地图</a></li>
	  <li><a href="../search/solely.aspx?url=诚聘英才">诚聘英才</a></li>
	  <li><a href="../search/solely.aspx?url=网站申明">网站申明</a></li>
	  <li><a href="../search/solely.aspx?url=意见投诉">意见投诉</a></li>
	  <li><a href="../search/solely.aspx?url=友情链接">友情链接</a></li> 
	 </ul>
	</div>
	<div class="about_right">
	  <div class="ad"><img src="../../../Images/about/banner.gif" width="580" height="67" /></div>
	  <h3>申请友情链接</h3>
	  <div class="text">
	  <form id="form1" runat="server">
	  <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
	<td width="11%" height="25" align="right">
		链接类型：	</td>
	<td width="89%" height="25" class="left2">
		<input id="radLinkType" name="LinkType"  checked type="radio" value="1" onclick="logoshow()"
			runat="server" />
		Logo链接 &nbsp; &nbsp;<input id="radLinkType1" name="LinkType" type="radio" value="2"
			onclick="wenzi()" runat="server" />文字链接	</td>
</tr>
                <tr>
                    <td height="25" align="right">
                        网站名称：                    </td>
                    <td height="25" class="left2">
                  <asp:TextBox ID="txtWebName" runat="server" Width="300px"></asp:TextBox></td>
                </tr>
                <tr>
                    <td height="25" align="right">
                        网站地址：                    </td>
                    <td height="25" class="left2">
                  <asp:TextBox ID="txtWebURL" runat="server" Width="300px">http://</asp:TextBox>                  </td>
                </tr>
                <tr id="logo" runat="server">
                    <td height="25" align="right">
                        网站Logo：                    </td>
                    <td height="25">
					   <div style="float: left">
                        <asp:HiddenField ID="HiddUserID" runat="server" />
                        <asp:HiddenField ID="ImgUrl1" runat="server" /> <a href="" id="txturldz" target="_blank">
                            <img src="Images/System/wutu1.gif" alt="" name="ImgUrl" border="0" id="ImgUrl"
                                style="width: 98px; height: 98px;" runat="server" /></a>
                        <input id="txtupload" type="button" value="上传" onclick="return rowTest()" class=" marie" />
                        <div id="rowTest" style="display: none">
                            <iframe name="tag" src="Admin/UpFile/Upload.html" style="width: 550px; height: 130px"
                                frameborder="0" scrolling="no" onload="this.height=tag.document.body.scrollHeight">                            </iframe>
                        </div>
                        <div id="Upload">                        </div>
					  </div>                  </td>
                </tr>
                <tr>
                    <td height="25" align="right">
                        网站简介：                    </td>
                    <td height="25" class="left2">
                        <asp:TextBox ID="txtWebIntro" runat="server" Width="300px" Height="99px" TextMode="MultiLine"></asp:TextBox>                  </td>
                </tr>
                <tr>
                    <td height="25" align="right">
                        站长：                    </td>
                    <td height="25" class="left2">
                        <asp:TextBox ID="txtWebAdmin" runat="server" Width="300px"></asp:TextBox>                  </td>
                </tr>
                <tr>
                    <td height="25" align="right">
                        邮箱：                    </td>
                    <td height="25" class="left2">
                        <asp:TextBox ID="txtEmail" runat="server" Width="300px"></asp:TextBox>                  </td>
                </tr>
                <tr>
                    <td height="35">&nbsp;</td>
                    <td height="35"><asp:Button ID="btnSave" runat="server" Text="提交申请" OnClick="btnSave_Click" CssClass="i_button" />
                    <asp:Button ID="btnCancel" runat="server" Text="取消申请" OnClick="btnCancel_Click" CssClass="i_button" /></td>
                </tr>
    </table>
	  </form>
	    </div>
	</div>
  </div>
  <div class="clr"></div>
  <div id="about_bottom">
	  <p><a href="http://demont.websen.net/search/solely.aspx?url=关于我们">关于网胜</a> | <a href="http://demont.websen.net/search/solely.aspx?url=联系我们">联系我们</a> | <a href="http://demont.websen.net/search/solely.aspx?url=广告服务">广告服务</a> | <a href="http://demont.websen.net/search/solely.aspx?url=网站地图">网站地图</a> | <a href="http://demont.websen.net/search/solely.aspx?url=诚聘英才">诚聘英才</a> | <a href="http://demont.websen.net/search/solely.aspx?url=网站申明">网站申明</a> | <a href="http://demont.websen.net/search/solely.aspx?url=意见投诉">意见投诉</a> | <a href="http://demont.websen.net/search/solely.aspx?url=帮助中心">帮助中心</a> | <a href="http://demont.websen.net/search/solely.aspx?url=友情链接">友情链接</a> <br />
客服咨询热线：0351-7622426 0351-7622428 传真：0351-7622428  <br />
版权所有 网胜科技有限公司 [<a href="http://bbs.websen.net" target="_blank">技术支持论坛</a>] 晋ICP备05004115号  <br />
Copyright&copy;2004-2008 websen.net. All Rights Reserved  <br />
 </p>
  </div>
</div>
<script type="text/javascript" src="js/Common.js"></script>
<script type="text/javascript">
    $("btnSave").onclick=function()
   {
     if ($("txtWebName").value.replace(/\s/g,'')=="")
     {
        alert("网站名称不能为空！");
        $("txtWebName").focus();
        return false;
     } 
    if($("radLinkType1").checked==false)
    { 
    if(FileUPload(1)==1)
     {
      alert("上传图片不能为空！")
      return false;  
     }
    }  
    if($("txtEmail").value.replace(/\s/g,'')=="")
    {
      alert("邮箱不能为空!")
      $("txtEmail").focus();  
      return false
     }
     else if(!ValidateEmail($("txtEmail").value.replace(/\s/g,'')))
     {
      alert("邮箱的格式输入错误!");
      $("txtEmail").focus();  
      return false
     }
   }
    </script> 
</body>
</html>
