<!-- #include file="../inc/checkadmin.asp" -->
<!-- #include file="../inc/conn.asp" -->
<!-- #include file="inc/Config.asp" -->

<% if request.QueryString("edit")<>"" then
if request.form("l_name")="" then
response.write "<Script language=JavaScript>alert('亲爱的，网站名称不能为空？');history.back();</Script>"
response.end 
end if
if request.form("l_url")="" then
response.write "<Script language=JavaScript>alert('亲爱的，网站地址不能为空？');history.back();</Script>"
response.end 
end if
if request.form("l_paixu")="" then
response.write "<Script language=JavaScript>alert('亲爱的，网站排序不能为空？');history.back();</Script>"
response.end 
end if
edit=request.QueryString("edit")
l_name=request.form("l_name")
l_url=request.form("l_url")
l_image=request.form("l_image")
l_paixu=request.form("l_paixu")
l_jieshao=request.form("l_jieshao")
l_NoFollow=request.form("l_NoFollow")
l_view_yes=request.form("l_view_yes")
l_weizhi=request.form("l_weizhi")

set rs=server.createobject("adodb.recordset")
sql="select * from web_Link where id="&edit&""
rs.open sql,conn,1,3
rs("name")=""&l_name&""
rs("url")=""&l_url&""
rs("image")=""&l_image&""
rs("paixu")=""&l_paixu&""
rs("jieshao")=""&l_jieshao&""
rs("NoFollow")=""&l_NoFollow&""
rs("view_yes")=""&l_view_yes&""
rs("weizhi")=""&l_weizhi&""
rs("time")=now
rs.update
response.write "<script>alert('恭喜，链接已成功修改！');location.href='LinkList.asp'</script>"
rs.close
set rs=nothing
response.end
end if
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
		
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
		
		<title>编辑链接 - <%=admin_name%></title>
		
		<!--                       CSS                       -->
	  
		<!-- Reset Stylesheet -->
		<link rel="stylesheet" href="images/css/reset.css" type="text/css" media="screen" />
	  
		<!-- Main Stylesheet -->
		<link rel="stylesheet" href="images/css/style.css" type="text/css" media="screen" />
		
		<!-- Invalid Stylesheet. This makes stuff look pretty. Remove it if you want the CSS completely valid -->
		<link rel="stylesheet" href="images/css/invalid.css" type="text/css" media="screen" />	
		
		<!-- Colour Schemes
	  
		Default colour scheme is green. Uncomment prefered stylesheet to use it.
		
		<link rel="stylesheet" href="images/css/blue.css" type="text/css" media="screen" />
		
		<link rel="stylesheet" href="images/css/red.css" type="text/css" media="screen" />  
	 
		-->
		
		<!-- Internet Explorer Fixes Stylesheet -->
		
		<!--[if lte IE 7]>
			<link rel="stylesheet" href="images/css/ie.css" type="text/css" media="screen" />
		<![endif]-->
		
		<!--                       Javascripts                       -->
  
		<!-- jQuery -->
		<script type="text/javascript" src="images/scripts/jquery-1.3.2.min.js"></script>
		
		<!-- jQuery Configuration -->
		<script type="text/javascript" src="images/scripts/simpla.jquery.configuration.js"></script>
		
		<!-- Facebox jQuery Plugin -->
		<script type="text/javascript" src="images/scripts/facebox.js"></script>
		
		<!-- jQuery WYSIWYG Plugin -->
		<script type="text/javascript" src="images/scripts/jquery.wysiwyg.js"></script>
		
		<!-- jQuery Datepicker Plugin -->
		<script type="text/javascript" src="images/scripts/jquery.datePicker.js"></script>
		<script type="text/javascript" src="images/scripts/jquery.date.js"></script>
		<!--[if IE]><script type="text/javascript" src="images/scripts/jquery.bgiframe.js"></script><![endif]-->

		
		<!-- Internet Explorer .png-fix -->
		
		<!--[if IE 6]>
			<script type="text/javascript" src="images/scripts/DD_belatedPNG_0.0.7a.js"></script>
			<script type="text/javascript">
				DD_belatedPNG.fix('.png_bg, img, li');
			</script>
		<![endif]-->
		
	</head>
  
	<body><div id="body-wrapper"> <!-- Wrapper for the radial gradient background -->
		<!-- #include file="Menu.asp" -->
		 <!-- End #sidebar -->
		
		<div id="main-content"> <!-- Main Content Section with everything -->
      			<noscript> <!-- Show a notification if the user has disabled javascript -->
				<div class="notification error png_bg">
					<div>
						亲爱的，你的浏览器不支持。请升级您的浏览器。</div>
				</div>
</noscript>
			
			<!-- Page Head -->
			<div class="content-box">
			  <!-- Start Content Box -->
			  <div class="content-box-header">
			    <h3>编辑链接</h3>
			    <ul class="content-box-tabs">
			      <li></li>
			      <!-- href must be unique and match the id of target div -->
		        </ul>
			    <div class="clear"></div>
		      </div>
			  <!-- End .content-box-header -->
			  <div class="content-box-content">
			    <div class="tab-content default-tab" id="tab1">
			      <!-- This is the target div. id must match the href of this div's tab -->
			      <div class="notification attention png_bg"> <a href="#" class="close"><img src="images/images/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
			        <div> 操作提示：在这里您可以对网站的友情链接进行修改。</div>
		          </div>
<table width="83%">
			        <tbody>
			          <%
id=request.QueryString("id")
set rs=server.createobject("adodb.recordset")
sql="select * from web_Link where id="&id&""
rs.open(sql),conn,1,1
l_id=rs("id")
l_name=rs("name")
l_url=rs("url")
l_image=rs("image")
l_paixu=rs("paixu")
l_jieshao=rs("jieshao")
l_NoFollow=rs("NoFollow")
l_view_yes=rs("view_yes")
l_time=rs("time")
l_weizhi=rs("weizhi")
rs.close
set rs=nothing
%>
		            </tbody>
			        <form id="form1" method="post" action="?edit=<%=l_id%>">
			          <tr>
			            <td width="9%">网站名称：</td>
			            <td width="91%"><input name="l_name" type="text"  id="u_name2" value="<%=l_name%>" size="30" /></td>
		              </tr>
			          <tr >
			            <td>网站地址：</td>
			            <td><input name="l_url" type="text"  id="u_name" value="<%=l_url%>" size="30" /></td>
		              </tr>
			          <tr >
			            <td>站长邮箱：</td>
			            <td><input name="l_image" type="text"  id="u_name" value="<%=l_image%>" size="30" /></td>
		              </tr>
			          <tr >
			            <td>网站排序：</td>
			            <td><input name="l_paixu" type="text"  id="web_title" value="<%=l_paixu%>" size="10" /></td>
		              </tr>
                      	 <tr >
			            <td>网站PR值：</td>
			            <td> <script language="JavaScript" src="http://www.09672.com/tool/pr.asp?<%=l_url%>"></script></td>
		              </tr>
			          <tr>
			            <td>是否显示</td>
			            <td><input name="l_view_yes" type="radio" id="radio3" value="1"  <% if l_view_yes=1 then response.write "checked='checked'" end if%>/>
			              显示
			              <input type="radio" name="l_view_yes" id="radio4" value="0" <% if l_view_yes<>1 then response.write "checked='checked'" end if%>/>
			              不显示</td>
		              </tr>
                      			          <tr>
			            <td>显示位置</td>
			            <td><input name="l_weizhi" type="radio" id="l_weizhi" value="1"  <% if l_weizhi=1 then response.write "checked='checked'" end if%>/>
			              首页
			              <input type="radio" name="l_weizhi" id="l_weizhi" value="2" <% if l_weizhi<>1 then response.write "checked='checked'" end if%>/>
			              内页</td>
		              </tr>
			          <tr >
			            <td>网站介绍：</td>
			            <td><textarea name="l_jieshao" cols="65" rows="5" class="text5" id="u_content"><%=l_jieshao%></textarea></td>
		              </tr>
			          <tr>
			            <td>NoFollow</td>
			            <td><input name="l_NoFollow" type="radio" id="radio" value="1"  <% if l_NoFollow=1 then response.write "checked='checked'" end if%>/>
			              是
			              <input type="radio" name="l_NoFollow" id="radio2" value="0" <% if l_NoFollow<>1 then response.write "checked='checked'" end if%>/>
			              否</td>
		              </tr>
			          <tr >
			            <td>添加时间：</td>
			            <td><%=l_time%></td>
		              </tr>
			          <tr >
			            <td>&nbsp;</td>
			            <td>
			              <input type="submit" name="button" id="button" value="提交" />
			              &nbsp;
			              <input type="reset" name="button2" id="button2" value="重置" />
			              </td>
		              </tr>
		            </form>
		          </table>
			      <p><br />
</p>
</div>
			    <!-- End #tab1 -->
			    <div class="tab-content" id="tab2"></div>
			    <!-- End #tab2 -->
		      </div>
		  <!-- End .content-box-content --></div> <!-- End .clear --><!-- End .content-box --><!-- End .content-box --><!-- End .content-box -->

			
			
			<!-- Start Notifications --><!-- End Notifications -->
			
<div id="footer">
				<small> <!-- Remove this notice or replace it with whatever you want -->
						<%=Copyright%>
				</small>
			</div><!-- End #footer -->
			
		</div> <!-- End #main-content -->
		
	</div></body>
  

</html>
<!-- #include file="../inc/close.asp" -->