<!--#include file="../conn.asp" -->
<!--#include file="../admin/check_master.asp" -->
<!--#include file="../inc/publicfun.asp" -->
<%
ftblog_old=request("ftblog_old")
nav=request("nav")
tyname="nav"
if nav="b" then
   blogphoto=0
   n="分类"
else
   blogphoto=1
   n="相册"
end if
if ftblog_old<>"" then
   sql="update ftblog_type set blogtype='"&trim(request("ftblog"))&"' where blogtype='"&ftblog_old&"' and blogphoto="&blogphoto
   conn.execute sql
end if
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>BLOG</title>

<link href="../css/xmwuye.css" rel="stylesheet" type="text/css">
</head>
<script language="javascript" src="../js/publicfun.js"></script>
<body>
<table width="98%"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr valign="top"> 
                  
    <td height="50" colspan="5" bgcolor="#FFFFFF" class=new14 valign="middle"> 
      <div align="center"><strong>分 类 管 理</strong></div></td>
                </tr>
                <tr> 
                  <td height="1" colspan="5" bgcolor="#336699" class=new14><spacer height="1" type="block"></td>
                </tr>
                <tr id="t1"  style="display:none"> 
                  <td height="25" colspan="5" class=new14 bgcolor="#ffffff"> <fieldset>
                    <legend>修改“<span id="oldgroupname" style="color:red"></span>”<%=n%>名称:</legend>
                    <table width="100%"  border="0" align="center" cellpadding="3" cellspacing="1">
                      <tr> 
                        <td colspan="2" bgcolor="#FFFFFF">
						<form name="form2" method=post action="">
                            <div align="center"> 
                              <input name="ftblog" type="text" class="text" id="ftblog" />
                              <input name="Submit" type="submit" class="button" value="修 改" <%if instr(session("admin_qs"),2)<=0 then%>disabled<%end if%>/>
                              <input name="cannel" type="reset" id="cannel" value="取 消" class="button" onclick="closechk()">
                              <input type="Hidden" name="ftblog_old">
							  <input name="nav" type="Hidden" value=<%=nav%>>
                              (注意:只能是中文,英文或数字) </div>
                        </form></td>
                      </tr>
                    </table>
                    </fieldset></td>
                </tr>
                <tr> 
                  <td width="62%" height="25" bgcolor="#FFFFFF"> <div align="left"><strong>&nbsp;<%=n%>名称</strong></div></td>
                  <td width="8%" bgcolor="#FFFFFF">
<div align="center">改名</div></td>
                  <td width="15%" bgcolor="#FFFFFF">
<div align="center">权限</div></td>
                  <!--<td width="7%" bgcolor="#FFFFFF"><div align="center">排序</div></td>-->
                  <td width="8%" bgcolor="#FFFFFF"><div align="center">删除</div></td>
                </tr>
                <tr> 
                  <td height="1" colspan="5" background="../blogimages/dotbg.gif"><spacer height="1" type="block"></td>
                </tr>
<%
   sql="select * from ftblog_type where blogphoto="&blogphoto&" order by indate desc"
   set rs=server.createobject("adodb.recordset")
   rs.open sql,conn,1,1
   if not rs.eof then
     wzrep =30
     wzpage = clng(request.querystring("page"))
     if len(wzpage) = 0 or wzpage = 0 then wzpage = 1
     rs.PageSize=wzrep
     rs.AbsolutePage=wzpage
     wzpagecount=rs.PageCount
     wzcount=rs.RecordCount
     for i = 0 to wzrep-1
       if rs.eof then exit for		  
%>
                <tr> 
                  <td height="25" bgcolor="#FFFFFF">&nbsp;<%=rs("blogtype")%></td>
                  <td height="25" bgcolor="#FFFFFF"><div align="center"><a href="#" onclick="chk('<%=rs("blogtype")%>')">改名</a></div></td>
                  <td height="25" bgcolor="#FFFFFF">
				  <div align="center">
				  <%if rs("sign")=0 then%>
				  <a href="op.asp?id=<%=rs("id")%>&sign=1&act=qs&photo_name=<%=rs("blogtype")%>">公开</a>
				  <%elseif rs("sign")=1 then%>
				  <a href="op.asp?id=<%=rs("id")%>&sign=0&act=qs&photo_name=<%=rs("blogtype")%>"><font color=red>隐藏</font></a>
				  <%elseif rs("sign")=2 then%>
				  <a href="op.asp?id=<%=rs("id")%>&sign=0&act=qs&photo_name=<%=rs("blogtype")%>">加密</a>
				  <%end if%>				  
				  </div></td>
                  <!--<td height="25" bgcolor="#FFFFFF"><div align="center"><a href="op.asp?id=<%=rs("id")%>&act=odby">排序</a></div></td>-->
                  <td height="25" bgcolor="#FFFFFF"><div align="center"><a href="op.asp?id=<%=rs("id")%>&act=del">删除</a></div></td>
                </tr>
                <tr> 
                  <td height="1" colspan="5" background="../blogimages/dotbg.gif"><spacer height="1" type="block"></td>
                </tr>
<%
rs.movenext
next
rs.close
set rs=nothing
end if
%>
                <tr> 
                  <td height="30" colspan="5" align="right"><%= FtbbsPage(wzpagecount,tyname,nav,tyname,nav)%></td>
                </tr>
              </table>
</body>
</html>
