<!--#include file="conn/conn.asp"-->
<!--#include file="config.asp"-->
<%
title=trim(request.form("title"))
url=trim(request.form("url"))
pic=trim(request.form("pic"))
picflag=trim(request.form("picflag"))
if title="" then
response.write"请填写网站名称!!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
if url="" then
response.write"请填写您的网址!!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
if pic="" then
response.write"请填写网站网站LOGO!!<a href=""javascript:history.go(-1)"">返回重输</a>"
response.end
end if
%>
<HTML><HEAD><TITLE>友情链接处理结果-<%=SiteName%></TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=gb2312">
<meta name="description" content="<%=SiteName%>">
<meta name="keywords" content="<%=keys%>">
<LINK 
href="images/css1.css" type=text/css rel=stylesheet><LINK 
href="images/css2.css" type=text/css rel=stylesheet>
<META content="MSHTML 6.00.2900.3395" name=GENERATOR>
<style type="text/css">
<!--
.style7 {font-weight: bold}
.style4 {	color: #008000;
	font-weight: bold;
}
.style5 {color: #FF0000}
-->
</style>
</HEAD>
<BODY background=images/wbg.gif>
<!--#include file="top.asp"-->
<TABLE cellSpacing=0 cellPadding=0 width=910 align=center bgColor=#0a253a 
border=0>
  <TBODY>
  <TR>
    <TD width=7></TD>
    <TD vAlign=top>
      <SCRIPT language=javascript>
		  function fod1(obj)
		  {
		   	//var p1 = document.getElementById("Fod_list1").getElementsByTagName("div");
			var p1 = obj.parentNode.parentNode.parentNode.parentNode;
			//alert(p1.innerHTML);
			var p11 = obj.parentNode.getElementsByTagName("div");
			var t1 = p1.getElementsByTagName("tr")[1].getElementsByTagName("ul");
			var n1 = p11.length;
			for(i=0;i<n1;i++)
			{
				if(p11[i] == obj)
				{
					p11[i].className = "s1";
					t1[i].className = "dis";
				}
				else
				{
					p11[i].className = "";
					t1[i].className = "undis";				
				}
			}
		  }
		</SCRIPT>
      
      <table width="896"  border="0" align="left" cellpadding="0" cellspacing="0" bgcolor="#2A659F">
        <tr>
          <th width="240" height="3" valign="top" scope="row"></th>
          <th width="660" valign="top" scope="row"></th>
        </tr>
        <tr>
          <th height="253" valign="top" scope="row" style="border-right:1px solid #c5e2fe;"><table width="96%"  border="0" align="center" cellpadding="0" cellspacing="0">
            <form name="form1" method="post" action="savelink.asp">
              <tr>
                <td height="25" colspan="2" scope="row">                 <font color="#FFFF00"> 1.欢迎您申请友情链接。<br>
                  2.申请链接请给本站做上相应链接。<br>
                  本站LOGO</font><a href="<%=SiteUrl%>"><img src="images/link/logo.gif" width="88" height="31" border="0"></a></td>
              </tr>
              <tr>
                <td height="25" colspan="2" align="center" scope="row">                  <font color="#FFFF00"><b>申请友情链接</b></font></td>
              </tr>
              <tr>
                <td height="25" colspan="2" scope="row"><font color="#FFFF00">站名：</font>
                  <input name="title" type="text" id="title" size="25">
                </td>
              </tr>
              <tr>
                <td height="25" colspan="2" scope="row"><font color="#FFFF00">网址：</font>
                  <input name="url" type="text" id="url" value="http://" size="25"></td>
              </tr>
              <tr>
                <td height="25" colspan="2" scope="row"><font color="#FFFF00">logo：</font>
                  <input name="pic" type="text" id="title223" size="25"></td>
              </tr>
              <tr align="center">
                <td height="25" colspan="2" scope="row"><font color="#FFFF00">文字</font>
                  <input name="picflag" type="radio" value="1" checked>
                  <font color="#FFFF00">图片</font>
                  <input type="radio" name="picflag" value="2"></td>
              </tr>
              <tr>
                <td width="20%" height="25" scope="row">&nbsp;</td>
                <td width="80%" scope="row"><input type="submit" name="Submit" value="申请">&nbsp;&nbsp;
                  <input type="reset" name="Submit2" value="取消"></td>
              </tr>
            </form>
          </table>
            <table width="240" border="0">
            <TR background="images/3081602.gif">
              <TD height=31 vAlign=bottom background="images/dv.gif" id=Fod_list1><table width="105" align="center">
                  <tr>
                    <td width="17"><IMG height=18 
            src="images/cm01.gif" width=16 align=absMiddle></span></td>
                    <td width="105"><span class="font14px"><strong>视频排行榜</strong></span></td>
                  </tr>
              </table></TD>
            </TR>

          </table>
            <table width="96%" border="0" align="center">
              <%
 set rs=server.createobject("adodb.recordset")
sql="select top 12 * from film order by hits desc , id asc " 
rs.open sql,conn,1,1
do while not rs.eof
%>
              <tr>
                <td width="13%"><span class="fontl18"><IMG height=16 
                  src="images/c11c.gif" width=16 border=0></span></td>
                <td width="87%"><a href="dvshow.asp?id=<%=rs("id")%>"><font color="#ffff00">
                  <%if len(rs("title"))>14 then
			Response.Write left(rs("title"),14)&"…"
		Else
			Response.Write rs("title")
		End if%>
                </font></a></td>
              </tr>
              <% 
	rs.movenext 
	loop  
	rs.close 
		set rs=nothing
	%>
            </table>            </th>
          <td height="50" align="center" valign="top" bordercolor="458ed5"><TABLE class=marb4 cellSpacing=0 cellPadding=0 width=100% border=0>
            <TBODY>
              <TR>
                <TD width=106 background=images/chuli.gif 
                height=25></TD>
                <TD width=185 background=images/c52.gif></TD>
                <TD width=185 background=images/c53.gif></TD>
                <TD width=184 
              background=images/c54.gif></TD>
              </TR>
            </TBODY>
          </TABLE>      
            <table width="100%" border="1" align="center" cellpadding="0" cellspacing="4" bordercolor="458ed5">
              <tr>
                <td><table width=100% border=0 align="center">
                    <tbody>
                      <tr>
                        <td><center><font color="#FFFF00"><b>链接处理结果</b></font>
                        </center></td>
                      </tr>
                    </tbody>
                  </table>                  </td>
              </tr>
              <tr>
                <td><font color="#FFFF00"><center>
                  <table width="90%"  border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td align="left" scope="row"><p>
                          <%
set rs=server.createobject("adodb.recordset")
sql="select * from link"
rs.open sql,conn,3,3
rs.addnew
rs("title")=title
rs("url")=url
rs("pic")=pic
rs("picflag")=picflag
rs("dateandtime")=now()
rs("ip")=Request("REMOTE_ADDR")
rs.update
rs.close
set rs=nothing
call closeconn()
  %>
                          <br>
                          <font color="#c5e2fe">友情链接申请成功，我们会在24小时内审核！
                        <br>
                        请在贵站也做上本站相应链接！<br>
                        </font><font color="#FFFF00">本站站名：</font><font color="#c5e2fe"><%=SiteName%></font><br>
                        <font color="#FFFF00">LOGO地址：</font><font color="#c5e2fe"><%=SiteUrl%>/images/link/logo.gif</font><font color="#c5e2fe"><br>
                        链接代码：</font><br>
                        &lt;a href=&quot;<%=SiteUrl%>&quot;&gt;&lt;img src=&quot;<%=SiteUrl%>/images/link/<font color="#FFFF00">logo</font>.gif&quot; width=&quot;88&quot; height=&quot;31&quot; border=&quot;0&quot;&gt;&lt;/a&gt;</p>
                        </td>
                    </tr>
                  </table>
                </center>
                </font></td>
              </tr>
            </table></td>
        </tr>
</table></td>
    </tr>
</table>
      </TD>
    <TD width=8></TD>
  </TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=910 align=center border=0>
  <TBODY>
  <TR>
    <TD width="5" height=6 bgColor=#0a253a></TD>
    <TD width="900" bgColor=#4A9ACD></TD>
    <TD width="5" bgColor=#0a253a></TD>
</TR></TBODY></TABLE>
<!--#include file="bom.asp"-->
</BODY></HTML>
