<!--#include file="../conn/conn1.asp"-->
<!--#include file="inc.asp"-->
<%
dim rs
dim sql
dim count
set rs=server.createobject("adodb.recordset")
sql = "select * from type order by typeid asc"
rs.open sql,conn,1,1
%>
<script language = "JavaScript">
var onecount;
onecount=0;
subcat = new Array();
        <%
        count = 0
        do while not rs.eof 
        %>
subcat[<%=count%>] = new Array("<%= trim(rs("type"))%>","<%= trim(rs("cdid"))%>","<%= trim(rs("typeid"))%>");
        <%
        count = count + 1
        rs.movenext
        loop
        rs.close
        %>
onecount=<%=count%>;

function changelocation(locationid)
    {
    document.myform.typeid.length = 0; 

    var locationid=locationid;
    var i;
    for (i=0;i < onecount; i++)
        {
            if (subcat[i][1] == locationid)
            { 
                document.myform.typeid.options[document.myform.typeid.length] = new Option(subcat[i][0], subcat[i][2]);
            }        
        }
        
    }    
</script>
<!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_index.asp" method="POST" name="myform">
  <tr>
    <td height="25">标题：</td>
    <td><input name="title" type="Text" class="smallinput" id="title" value="" 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="" size="50" maxlength="50"></td>
  </tr>
  <tr>
    <td height="25">推荐操作：</td>
    <td>      <input name="flag" type="radio" value="0" checked>
正常
<input type="radio" name="flag" value="1"> 
<span class="style1">红色粗体</span><input type="radio" name="flag" value="2"> 
<span class="style2">蓝色粗体</span></td>
  </tr>
  <tr>
    <td height="25">图片地址 ：</td>
    <td><input name="pic" type="Text" class="smallinput" id="pic" value="" 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>
