www.gusucode.com > cso中国seo优化html整站源码程序 > links/index.asp

    <!--#include file="../index/head1.asp"-->
<%
config_title = "友情链接"
config_keyword = ""
config_descrip = ""
%>
<!--#include file="../index/head2.asp"-->
<div id="wrap">
<!--#include file="../index/header.asp"-->
	<div class="box" id="sub">
		<div class="box_main" id="links">
<%
sql = "select * from so_article where typestr = 'links' and reg = 1 order by reg_top = 1,orderid desc,id desc"
rs.open sql,conn,1,1
if not rs.eof then
	do while not rs.eof
	if rs("pic_min") & "*" = "*" then
	%>
		<a href="<%=rs("url")%>" title="<%=rs("page_description")%>"><%=rs("title")%></a>
	<%
	else
%>
		<a href="<%=rs("url")%>" title="<%=rs("page_description")%>"><img src="<%=rs("pic_min")%>" alt="<%=rs("title")%>" /></a>
<%
	end if
	rs.movenext
	loop
end if
rs.close
%>
		</div>
		<div class="box_side">
<%
randomize
vcode = cstr(rnd() * 100)
session("vcode") = vcode
%>
			<div class="title"><h2>和本站申请链接</h2></div>
			<div class="content">
				<h3>请先做好本站链接:</h3>
				<p>本站名称:快速减肥</p>
				<p>本站地址:http://<%=config_domain%>/</p>
				<p>本站logo:http://<%=config_domain%>/logo.gif</p>
				<p>本站描述:快速减肥 — 和肥胖说拜拜了!</p>
			</div>
			<table cellspacing="1">
				<form action="save.asp?act=link" name="link" method="post">
				<input type="hidden" name="vcode" value="<%=vcode%>" />
				<tr>
					<td>名称:</td>
					<td><input type="text" name="title" value="" size="24" /></td>
				</tr>
				<tr>
					<td>地址:</td>
					<td><input type="text" name="url" value="http://" size="32" /></td>
				</tr>
				<tr>
					<td>logo:</td>
					<td><input type="text" name="pic_min" value="" size="32" /></td>
				</tr>
				<tr>
					<td>描述:</td>
					<td><input type="text" name="page_description" value="" size="32" /></td>
				</tr>
				<tr>
					<td></td>
					<td><input type="submit" value="提交链接" /></td>
				</tr>
				</form>
			</table>
		</div>
	</div>
<!--#include file="../index/footer.asp"-->
</div>
<!--#include file="../index/foot.asp"-->