<%@ Page Language="C#" AutoEventWireup="true" Inherits="MyITJob.FriendSiteReg" Codebehind="FriendSiteReg.aspx.cs" %>
<%@ Register TagPrefix="ascx" TagName="PageTop" Src="~/ascx/PageTop.ascx" %>
<%@ Register TagPrefix="ascx" TagName="PageFoot" Src="~/ascx/PageFooter.ascx" %>
<!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>
<title>申请友情链接 -<%=Application["PageTitle"] %></title>
<meta name="Keywords" content="<%=Application["PageKeywords"] %>" />
<meta name="Description" content="友情链接 - <%=Application["Pagede"] %>"/>
<link href="<%=s_style %>" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript">
    function ChangeLogo(){
		var rbl = document.getElementById("RadioButtonList2_0");
		var sl = document.getElementById("SiteLogo");
		if(rbl.checked){
			sl.disabled = true;
		}else{
			sl.disabled = false;
		}
    }
    </script>
    <style type="text/css">
    	.style4{color:#F00;}
    </style>
</head>
<body>
<form id="form1" runat="server">
  <div>
    <table width="770" border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td><ascx:PageTop ID="PageTop" runat="server" /></td>
            </tr>
          </table>
          <table width="700" height="58" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="32" background="images/hightec.gif"><div align="center" class="Glow"><strong>本站信息链接</strong></div></td>
            </tr>
            <tr>
              <td background="images/hightec_bg.gif"><table width="723" border="0" align="center" cellpadding="4" cellspacing="1">
                  <tr class="tdbg">
                    <td width="40%" bgcolor="#f2f2f2"><div align="right"> 本站名称：</div></td>
                    <td width="60%" bgcolor="#f2f2f2">&nbsp;
                    <asp:Literal ID="Literal1" runat="server"></asp:Literal></td>
                  </tr>
                  <tr class="tdbg">
                    <td bgcolor="#f2f2f2"><div align="right"> 本站地址：</div></td>
                    <td bgcolor="#f2f2f2">&nbsp;
                    <asp:Literal ID="Literal2" runat="server"></asp:Literal></td>
                  </tr>
                  <tr class="tdbg">
                    <td bgcolor="#f2f2f2"><div align="right"> 本站LOGO：</div></td>
                    <td bgcolor="#f2f2f2"><img src="images/logo.gif" alt="工作易招聘网" /> <br />
                    图片地址:<%=Application["PageUrl"] %>/images/logo.gif</td>
                  </tr>
              </table></td>
            </tr>
            <tr>
              <td><img src="images/hightecbtm.gif" width="735" height="8" /></td>
            </tr>
          </table>
          <br />
          <table width="700" height="58" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td height="32" background="images/hightec.gif"><div align="center" class="Glow"><strong>申请友情链接</strong></div></td>
            </tr>
            <tr>
              <td background="images/hightec_bg.gif"><table width="723" border="0" align="center" cellpadding="4" cellspacing="1" class="border">
                  <tr class="tdbg">
                    <td width="40%" bgcolor="#f2f2f2"><div align="right"> 网站名称：</div></td>
                    <td width="60%" bgcolor="#f2f2f2"><asp:TextBox ID="SiteName" MaxLength="8" runat="server" ToolTip="这里请输入您的网站名称，最多为8个汉字" />
                      <span class="style4">*
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="SiteName"
                                                    ErrorMessage="请输入网站地址！"></asp:RequiredFieldValidator>
                      </span></td>
                  </tr>
                  <tr class="tdbg">o
                    <td bgcolor="#f2f2f2"><div align="right">                        
                        网站地址：</div></td>
                    <td bgcolor="#f2f2f2"><asp:TextBox ID="SiteUrl" runat="server" MaxLength="50" Text='http://' ToolTip="这里请输入您的网站地址，最多为50个字符，前面必须带http://" />
                      <span class="style4">*
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="SiteUrl"
                                                    ErrorMessage="请输入网站地址！"></asp:RequiredFieldValidator>
                      </span></td>
                  </tr>
                  <tr class="tdbg">
                    <td bgcolor="#f2f2f2"><div align="right"> 网站LOGO：</div></td>
                    <td bgcolor="#f2f2f2"><span style="color: #ff6600"></span>
                      <asp:RadioButtonList ID="RadioButtonList2" runat="server" RepeatDirection="Horizontal"
                                                    RepeatLayout="Flow" onclick="ChangeLogo()">
                        <asp:ListItem Selected="True">文字链接</asp:ListItem>
                        <asp:ListItem>图片链接</asp:ListItem>
                      </asp:RadioButtonList>
                      <br />
                      <asp:TextBox ID="SiteLogo" runat="server" Enabled="false" ToolTip="这里请输入您的网站LogoUrl地址，最多为50个字符" /></td>
                  </tr>
                  <tr class="tdbg">
                    <td bgcolor="#f2f2f2"><div align="right"> 站长姓名：</div></td>
                    <td bgcolor="#f2f2f2"><asp:TextBox ID="SiteAdmin" runat="server" MaxLength="10" ToolTip="这里请输入您的大名了，不然我知道您是谁啊。最多为20个字符" />
                      <span class="style4">*
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" ControlToValidate="SiteAdmin"
                                                    ErrorMessage="请输入站长姓名！"></asp:RequiredFieldValidator>
                      </span></td>
                  </tr>
                  <tr class="tdbg">
                    <td bgcolor="#f2f2f2"><div align="right">
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" ControlToValidate="SiteEmail"
                                                        ErrorMessage="Email地址不正确！" ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"></asp:RegularExpressionValidator>
                        Email地址：</div></td>
                    <td bgcolor="#f2f2f2"><asp:TextBox ID="SiteEmail" runat="server" ToolTip="这里请输入您的联系方式了，不然我不好联系你啊。最多为30个字符" />
                      <span class="style4">*
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator6" runat="server" ControlToValidate="SiteEmail"
                                                    ErrorMessage="请输入站长联系方式！"></asp:RequiredFieldValidator>
                      </span></td>
                  </tr>
                  <tr class="tdbg">
                    <td bgcolor="#f2f2f2"><div align="right"> 网站简介：</div></td>
                    <td bgcolor="#f2f2f2"><asp:TextBox ID="SiteIntro" TextMode="MultiLine" runat="server" Height="50px" Width="220px"
                                                    ToolTip="这里请输入您的网站的简单介绍，最长不超过50个汉字" />
                      <span class="style4">*
                      <asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" ControlToValidate="SiteIntro"
                                                    ErrorMessage="请输入网站简介！"></asp:RequiredFieldValidator>
                      </span></td>
                  </tr>
                  <tr class="tdbg">
                    <td align="right" bgcolor="#f2f2f2">分站所属地区：</td>
                    <td bgcolor="#f2f2f2">
                        <asp:DropDownList ID="Host_DDL" runat="server" ToolTip="授权后方可开启">
                        </asp:DropDownList></td>
                  </tr>
                  <tr class="tdbg">
                    <td align="right" bgcolor="#f2f2f2">验证码：
                    <td bgcolor="#f2f2f2"><asp:TextBox ID="yzmText" runat="server"></asp:TextBox>
                    <img src="../ascx/RndNumber.aspx" style="border: 1px #666666 solid; cursor: hand;"
                                            onclick="this.src=this.src+'?'" alt="看不清？点击刷新图片吧" /></td>
                    <asp:Panel ID="Panel1" runat="server" Visible="false">
                        <tr class="tdbg">
                          <td bgcolor="#f2f2f2"><div align="right"> 通过审核：</div></td>
                          <td bgcolor="#f2f2f2"><asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal">
                              <asp:ListItem Value="已通过审核">是</asp:ListItem>
                              <asp:ListItem Selected="True" Value="未通过审核">否</asp:ListItem>
                          </asp:RadioButtonList></td>
                        </tr>
                        <tr class="tdbg">
                          <td bgcolor="#f2f2f2"><div align="right"> 链接颜色：</div></td>
                          <td bgcolor="#f2f2f2"><asp:DropDownList ID="TitleColor" runat="server">
                              <asp:ListItem style="background-color: #000000; color: #FFFFFF" Value="">默认</asp:ListItem>
                              <asp:ListItem style="background-color: #FF0000; color: #FFFFFF" Value="#FF0000">红色</asp:ListItem>
                              <asp:ListItem style="background-color: #0000FF; color: #FFFFFF" Value="#0000FF">蓝色</asp:ListItem>
                          </asp:DropDownList></td>
                        </tr>
                        <tr class="tdbg">
                          <td bgcolor="#f2f2f2"><div align="right"> 排序号码：</div></td>
                          <td bgcolor="#f2f2f2"><input id="order_Text" maxlength="2" value="0" type="text" runat="server" style="width:20px;" onkeyup="if(isNaN(value))execCommand('undo')" /></td>
                        </tr>
                        </asp:Panel>
                  <tr class="tdbg">
                    <td colspan="2" bgcolor="#f2f2f2"><div align="center">
                        <asp:Button ID="Button1" runat="server" Text="申请" OnClick="Button1_Click" />
                        <input type="reset" name="Submit" value="重置" />
                        <br />
                        <span style="color:red;">【申请前，请先在贵站做好本站的链接】</span></div></td>
                  </tr>
                </table>
            <tr>
              <td><img src="images/hightecbtm.gif" width="735" height="8" /></td>
            </tr>
          </table>
          <div><ascx:PageFoot ID="Footer" runat="server" /></div>
          </td>
      </tr>
    </table>
  </div>
</form>
</body>
</html>
