<%@ codepage ="936" %>
 <% 
	data_path="../../" 'ACC连接数据库路径，对SQL无效
	numid="52"
	dir="../err.asp" 
  %>
  <!--#include file="../../conn/conn.asp" -->
   <!--#include file="../rolecheck.asp"-->

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>类别管理</title>
<link rel="stylesheet" type="text/css" href="../css/style.css">


<script language="javascript">
function istruedel()
{
var i=confirm("你确定要删除吗?");
if(i)
{
return true ;

}
else
{
return false;
}

}
</script>
</HEAD>
<table width="98%" border="0" cellspacing="0" cellpadding="0" align=center class="tableBorder"> 
  <tr> 
     <th height=25 colspan="2" class="tableHeaderText">商业信息管理 </th> 
  </tr> 
  <tr> 
     <td height="20" colspan="2"  ><font color="#666666">温馨提示：①类别直接与发布的信息相关联，删除类别可能会影响到以前发布的专项商机信息。</font> </td> 
  </tr> 
  <tr> 
     <td width="10%" height=25 class="forumRowHighlight"> <B>操作选项</B></td> 
         <FORM name=searchForm action="index.asp" method=post onSubmit="javascript:if(doSearch()==false) return false;"><td class="forumRowHighlight">
       关键字：<input name="keywords" type="text" value="<%=keywords%>" maxlength="10">
&nbsp;所属类别：
<select name="typeid" size="1">  
<%
set rs1=server.CreateObject("adodb.recordset") 
sql1="select * from Yixiang_newsType"
rs1.open sql1,conn,1,1
if not rs1.eof then
do while not rs1.eof
response.write "<option value='"&rs1("typeid")&"'>"&rs1("type")&"类信息</option>"&chr(13)+chr(10)
rs1.movenext
loop
rs1.close
end if
%>
</select> <input type="submit" value="立刻查找" id=submit name=submit>
         </td></form>
  </tr>
  <Tr><td colspan="2" height="1"  bgcolor="#CCCCCC"></td></Tr>
  <tr>
    <td height=25 class="forumRowHighlight">&nbsp;</td>
	 <td class="forumRowHighlight"><a href="index.asp">管理商业信息</a> | <a href="addinfo.asp">添加商业信息</a> | <a href="type.asp">管理信息类别</a> | <a href="Class_Ok.asp?action=add_class_1">添加信息类别</a> | [<a href="javascript:location.reload()">刷新页面</a>] </td> 
  </tr> 
</table>
<%
set rssort=server.createobject("adodb.recordset")
sql="select * from Yixiang_newstype order by orderid"
rssort.open sql,conn,1,1
%>
 <table width="95%" border="0" cellspacing="1" cellpadding="3"  align=center class="tableBorder">
	<tr> 
	<th height="22">商业信息类别列表</th>
	</tr>
	<tr>
	  <td class="Forumrow"><TABLE border="0" width="100%" cellpadding="0">
        <TR>   
          <%
		  if rssort.eof then
response.Write"<br><br><div align='center'>暂无类别请<a href=class_ok.asp?action=add_class_1>添加</a></div><br><br>"
else
		  j=1
          do while not rssort.eof
          %>
          <td width="28%" height="25"><p style="line-height: 150%"><IMG src="../images_new/plus.gif" width="9" height="9"> <%=rssort("type")%><font  color="#666666">(序:<font color="#0099CC"><b><%=rssort("orderid")%></b></font>)</font>〖<a href=class_ok.asp?action=edit_class_1&id=<%=rssort("typeid")%>><font color=#ff0000>修改</font></a>|<a href='class_ok.asp?action=del_class_1&id=<%=rssort("typeid")%>&LogName=111' onClick="return istruedel();"><font color=#ff0000>删除</font></a>〗</td>
          <%if j mod 3 = 0 then %></tr><tr ><%end if%>
          <% rssort.movenext
             j=j+1
             loop
             rssort.close
             set rssort=nothing
			 end if
          %>
      </TABLE></td>
	</tr>
</table>
<br>
<!--#include file="../copy.asp" -->