<!--#include file="Access.asp"  -->
<!-- #include file="inc/functions.asp" -->

	<%
Call header()
%>
<script language="JavaScript">
<!--
function ask(msg) {
	if( msg=='' ) {
		msg='警告：删除后将不可恢复，可能造成意想不到后果？';
	}
	if (confirm(msg)) {
		return true;
	} else {
		return false;
	}
}
//-->
</script>
	<table cellpadding='3' cellspacing='1' border='0' class='tableBorder' align=center>
	<tr>
	  <th width="100%" height=25 class='tableHeaderText'>底部栏目管理</th>
	
	<tr><td height="400" valign="top"  class='forumRow'><%set rs=server.createobject("adodb.recordset")
sql="select id,type,type_en,memo,time from web_models order by id"
rs.open(sql),cn,1,1
if not rs.eof and not rs.bof then
%>
	    <table width="95%" border="0" align="center" cellpadding="0" cellspacing="2">
          <tr>
            <td width="5%" height="30" bgcolor="#A5C6FC"><div align="center" style="font-weight: bold">编号</div></td>
            <td width="8%" bgcolor="#A5C6FC"><div align="center" style="font-weight: bold">栏目名称</div></td>
            <td width="12%" bgcolor="#A5C6FC"><div align="center" style="font-weight: bold">标签字符</div></td>
            <td width="45%" bgcolor="#A5C6FC"><div align="center" style="font-weight: bold">关键字</div></td>
            <td width="18%" bgcolor="#A5C6FC"><div align="center" style="font-weight: bold">修改时间</div></td>
            <td width="12%" bgcolor="#A5C6FC"><div align="center" style="font-weight: bold">操作</div></td>
          </tr>
		  <%
		  do while not rs.eof
		  %>
          <tr>
            <td height="28" class='forumRowHighLight'>
            <div align="center"><%=rs("id")%></div></td>
            <td class='forumRowHighLight'>&nbsp;<%=rs("type")%></td>
            <td class='forumRowHighLight'>&nbsp;<%=rs("type_en")%></td>
            <td class='forumRowHighLight'>&nbsp;<%=rs("memo")%></td>
            <td class='forumRowHighLight'>&nbsp;<%=rs("time")%></td>
            <td class='forumRowHighLight'>
            <div align="center"><a href="web_models_edit.asp?id=<%=rs("id")%>">修改</a><%
			if rs("id")>10 then%> | <a href="javascript:if(ask('警告：删除后将不可恢复，可能造成意想不到后果？')) location.href='web_models_del.asp?id=<%=rs("id")%>';">删除</a>
              <%end if %></div></td>
          </tr>
		  <%
		  rs.movenext
		  loop
		  else
		  response.write "暂无模板！"
		  end if 
		  %>
      </table>
	    <br></td>
	</tr>
	</table>

<%
Call DbconnEnd()
 %>