<!--#include file="../conn/conn1.asp"-->
<!--#include file="inc.asp"-->
<%
dim id
id=replace(request("id")," ","")
if isnumeric(id)=0 or id="" then
response.write "非法ID参数你是猪啊,欠扁啊你!"
response.end
end if
set rs=server.createobject("adodb.recordset") 	  
sql="select * from index where id="&id&"" 
rs.open sql,conn,1,1
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>
<link href="../css/css.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {color: #0000FF}
-->
</style>
</head>

<body>
<table width="95%" border="0" align="center" cellpadding="2" cellspacing="1" class="border">
  <tr class="topbg">
    <td height="22" colspan="2"  align="center"><strong>推 荐 修 改 </strong></td>
  </tr>
  <tr class="tdbg">
    <td width="70" height="30" ><strong>管理导航：</strong></td>
    <td><a href="hao.asp">推荐管理首页</a>&nbsp;| <a href="add_hao.asp">添加推荐信息</a></td>
  </tr>
</table>
<br>
<br>
<table cellspacing="2" cellpadding="0" border="0" width="90%" align="center">
  <form action="save_indexedit.asp?id=<%=id%>" method="POST" name="myform">
  <tr>
    <td height="25">标题：</td>
    <td><input name="title" type="Text" class="smallinput" id="title" value="<%=rs("title")%>" size="50" maxlength="50">
        <span class="style1">*</span> </td>
  </tr>
  <tr>
    <td height="25">链接地址：</td>
    <td><input name="url" type="Text" class="smallinput" id="url" value="<%=rs("url")%>" size="50" maxlength="50"></td>
  </tr>
  <tr>
    <td height="25">推荐操作：</td>
    <td>      <input name="flag" type="radio" value="0" <%if rs("flag")=0 then Response.Write "checked" %>>
正常
<input type="radio" name="flag" value="1" <%if rs("flag")=1 then Response.Write "checked" %>> 
<span class="style1">红色粗体</span><input type="radio" name="flag" value="2" <%if rs("flag")=2 then Response.Write "checked" %>> 
<span class="style2">蓝色粗体</span></td>
  </tr>
  <tr>
    <td height="25">图片地址 ：</td>
    <td><input name="pic" type="Text" class="smallinput" id="pic" value="<%=rs("pic")%>" size="50" maxlength="50"> 
      如果填后在会显示小图片</td>
  </tr>
  <tr>
    <td width="18%" valign="top">
      <div align="right"></div></td>
    <td width="82%"><input type="submit" name="Submit" value="提交"> </td>
  </tr>
  </form>
</table>
</body>
</html>
