<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="../../Include/Connect.asp"-->
<!--#include file="../../Include/checksession.asp"-->
<html>
<head>
<META http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../../CSS/Hompy/hompy.css" type=text/css rel=stylesheet>
<title></title>
<SCRIPT language=javascript>
<!--
function checkandsubmit()
{
    no=document.cgifrm.sumno.value;
	if (no>1)
	{
	for(i=0;i<document.cgifrm.sumno.value;i++)
	   {
	   			if(document.all.groupname[i].value=="") {
				alert("分类名字不能为空");
				document.all.groupname[i].focus();
				return;
				}
	   }
	}
	else
	{
	   			if(document.all.groupname.value=="") {
				alert("分类名字不能为空");
				document.all.groupname.focus();
				return;
				}
	}
document.cgifrm.submit();
}
//-->
</SCRIPT>
</head>
<body>
<TABLE height=300 cellSpacing=0 cellPadding=0 width=490 bgColor=#dbdbdb border=0>
                                  <TBODY>
                                    <TR> 
                                      <TD height="300" bgColor=#ffffff align="center"> 
                                        <DIV style="BORDER-RIGHT: 0px solid; BORDER-TOP: 0px solid; BORDER-LEFT: 0px solid; WIDTH: 488px; BORDER-BOTTOM: 0px solid; HEIGHT: 253px"> 
                                        <DIV style="WIDTH: 488px; HEIGHT: 300px" UNSELECTABLE="on">
                                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                              <TR> 
                                                
                <TD width="380" height=25 class=orange2_b> 分类管理 &gt; 
                  <%
												  if request.querystring("type")="photo" then 
												    response.write("相册分类")
												  elseif request.querystring("type")="article" then
												    response.write("文章分类")
												  elseif request.querystring("type")="video" then
												    response.write("视频分类")
												  end if
												  %> </TD>
                                                <TD width="108" class=font_gray9b>&nbsp;</TD>
            </TR>
            <TR> 
              <TD height=2 colspan="2" bgColor=#dddddd></TD>
            </TR>
          </table><TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                       <TD height=10></TD>
                      </TR></TBODY></TABLE><TABLE cellSpacing=0 cellPadding=0 width=484 align=center border=0>
  <TBODY>
  <TR>
    <TD height=28><IMG height=28 src="../../Images/Hompy/K_mini_admin_33_1.gif" 
      width=484></TD>
  </TR></TBODY></TABLE>
<table width="484" border="0" cellspacing="0" cellpadding="0">
<%if request.querystring("type")="photo" then%>
<FORM name=cgifrm onsubmit="return cgifrm(this);" action=mange_folder_save.asp?type=photo method=post>
  <tr>
    <td><TABLE cellSpacing=0 cellPadding=0 width=484 align=center border=0>
  <TBODY>
  <TR>
    <TD background=../../Images/Hompy/K_mini_admin_8.gif><SPAN id=add>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from Show5_Photogroup where Username='"&session("Username")&"'"
rs.CursorLocation=3
rs.open sql,cn,1,1
if rs.eof or rs.bof then
   response.write("暂无分类")
else
   Dim Groupname,Photonum,i
   i=0
   do while not rs.eof
%>
	 
      <TABLE cellSpacing=0 cellPadding=1 width=484 border=0>
        <TBODY>
        <TR>
          <TD align=middle width=50 height=29><INPUT type=hidden value=<%=rs("GroupID")%> name=groupid><%if i=0 then%><INPUT type=checkbox value=<%=rs("GroupID")%> name=no disabled><%else%><INPUT type=checkbox value=<%=rs("GroupID")%> name=no><%end if%></TD>
          <TD width="224"><INPUT class=input style="WIDTH: 200px" maxLength=8 value=<%=rs("Groupname")%> name=groupname></TD>
          <TD width="204"><select name="groupaccess" id="groupaccess">
                <option value="1"<%If rs("Groupaccess")="1" then Response.write " selected"%>>公开</option>
                <option value="2"<%If rs("Groupaccess")="2" then Response.write " selected"%>>私有</option>
              </select></TD>
        </TR>
        <TR>
          <TD background=../../Images/Hompy/K_mini_admin_11.gif colSpan=3></TD>
		</TR>
		</TBODY>
	 </TABLE>
<%
rs.movenext
i=i+1
loop
end if
%>  
<span id=add></span></SPAN>
<INPUT type=hidden value=<%=rs.recordcount%> name=sumno>
<TABLE cellSpacing=0 cellPadding=1 width=484 border=0>
        <TBODY>
        <TR>
          <TD align=middle width=50 height=29>添加：</TD>
          <TD width="224"><INPUT class=input style="WIDTH: 200px" maxLength=8 name=new_groupname></TD>
          <TD width="204"><select name="new_groupaccess" id="groupaccess">
                <option value="1" selected>公开</option>
                <option value="2">私有</option>
              </select></TD>
        </TR>
        <TR>
          <TD background=../../Images/Hompy/K_mini_admin_11.gif colSpan=3></TD>
		</TR>
		</TBODY>
	 </TABLE> </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=484 align=center border=0>
  <TBODY>
  <TR>
    <TD height=4><IMG height=4 src="../../Images/Hompy/K_mini_admin_9.gif" 
      width=484></TD>
  </TR>
  <TR>
    <TD height=5><IMG height=5 src="../../Images/Hompy/K_00pix.gif" width=1></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=484 align=center border=0>
  <TBODY>
  <TR>
    <TD height="25" align="center"><A href="javascript:checkandsubmit();"><img height=18 width=39 src="../../Images/Hompy/Bt_confirm.gif" border=0></a> &nbsp;<a href="manage_folder.asp"><img src="../../Images/Hompy/Bt_clear.gif" width="39" height="18" border="0"></a></TD>
    </TR></TBODY></TABLE>
	</td>
  </tr>
</FORM>
<%elseif request.querystring("type")="article" then%>
<FORM name=cgifrm onsubmit="return cgifrm(this);" action=mange_folder_save.asp?type=article method=post>
  <tr>
    <td><TABLE cellSpacing=0 cellPadding=0 width=484 align=center border=0>
  <TBODY>
  <TR>
    <TD background=../../Images/Hompy/K_mini_admin_8.gif><SPAN id=add>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from Show5_Articlegroup where Username='"&session("Username")&"'"
rs.CursorLocation=3
rs.open sql,cn,1,1
if rs.eof or rs.bof then
   response.write("暂无分类")
else
   i=0
   do while not rs.eof
%>
	 
      <TABLE cellSpacing=0 cellPadding=1 width=484 border=0>
        <TBODY>
        <TR>
          <TD align=middle width=50 height=29><INPUT type=hidden value=<%=rs("GroupID")%> name=groupid><%if i=0 then%><INPUT type=checkbox value=<%=rs("GroupID")%> name=no disabled><%else%><INPUT type=checkbox value=<%=rs("GroupID")%> name=no><%end if%></TD>
          <TD width="224"><INPUT class=input style="WIDTH: 200px" maxLength=8 value=<%=rs("Groupname")%> name=groupname></TD>
          <TD width="204"><select name="groupaccess" id="groupaccess">
                <option value="1"<%If rs("Groupaccess")="1" then Response.write " selected"%>>公开</option>
                <option value="2"<%If rs("Groupaccess")="2" then Response.write " selected"%>>私有</option>
              </select></TD>
        </TR>
        <TR>
          <TD background=../../Images/Hompy/K_mini_admin_11.gif colSpan=3></TD>
		</TR>
		</TBODY>
	 </TABLE>
<%
rs.movenext
i=i+1
loop
end if
%>  
<span id=add></span></SPAN>
<INPUT type=hidden value=<%=rs.recordcount%> name=sumno>
<TABLE cellSpacing=0 cellPadding=1 width=484 border=0>
        <TBODY>
        <TR>
          <TD align=middle width=50 height=29>添加：</TD>
          <TD width="224"><INPUT class=input style="WIDTH: 200px" maxLength=8 name=new_groupname></TD>
          <TD width="204"><select name="new_groupaccess" id="groupaccess">
                <option value="1" selected>公开</option>
                <option value="2">私有</option>
              </select></TD>
        </TR>
        <TR>
          <TD background=../../Images/Hompy/K_mini_admin_11.gif colSpan=3></TD>
		</TR>
		</TBODY>
	 </TABLE> </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=484 align=center border=0>
  <TBODY>
  <TR>
    <TD height=4><IMG height=4 src="../../Images/Hompy/K_mini_admin_9.gif" 
      width=484></TD>
  </TR>
  <TR>
    <TD height=5><IMG height=5 src="../../Images/Hompy/K_00pix.gif" width=1></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=484 align=center border=0>
  <TBODY>
  <TR>
    <TD height="25" align="center"><A href="javascript:checkandsubmit();"><img height=18 width=39 src="../../Images/Hompy/Bt_confirm.gif" border=0></a> &nbsp;<a href="manage_folder.asp"><img src="../../Images/Hompy/Bt_clear.gif" width="39" height="18" border="0"></a></TD>
    </TR></TBODY></TABLE>
	</td>
  </tr>
</FORM>
<%elseif request.querystring("type")="video" then%>
<FORM name=cgifrm onsubmit="return cgifrm(this);" action=mange_folder_save.asp?type=video method=post>
  <tr>
    <td><TABLE cellSpacing=0 cellPadding=0 width=484 align=center border=0>
  <TBODY>
  <TR>
    <TD background=../../Images/Hompy/K_mini_admin_8.gif><SPAN id=add>
<%
set rs=server.createobject("adodb.recordset")
sql="select * from Show5_Videogroup where Username='"&session("Username")&"'"
rs.CursorLocation=3
rs.open sql,cn,1,1
if rs.eof or rs.bof then
   response.write("暂无分类")
else
   i=0
   do while not rs.eof
%>
	 
      <TABLE cellSpacing=0 cellPadding=1 width=484 border=0>
        <TBODY>
        <TR>
          <TD align=middle width=50 height=29><INPUT type=hidden value=<%=rs("GroupID")%> name=groupid><%if i=0 then%><INPUT type=checkbox value=<%=rs("GroupID")%> name=no disabled><%else%><INPUT type=checkbox value=<%=rs("GroupID")%> name=no><%end if%></TD>
          <TD width="224"><INPUT class=input style="WIDTH: 200px" maxLength=8 value=<%=rs("Groupname")%> name=groupname></TD>
          <TD width="204"><select name="groupaccess" id="groupaccess">
                <option value="1"<%If rs("Groupaccess")="1" then Response.write " selected"%>>公开</option>
                <option value="2"<%If rs("Groupaccess")="2" then Response.write " selected"%>>私有</option>
              </select></TD>
        </TR>
        <TR>
          <TD background=../../Images/Hompy/K_mini_admin_11.gif colSpan=3></TD>
		</TR>
		</TBODY>
	 </TABLE>
<%
rs.movenext
i=i+1
loop
end if
%>  
<span id=add></span></SPAN>
<INPUT type=hidden value=<%=rs.recordcount%> name=sumno>
<TABLE cellSpacing=0 cellPadding=1 width=484 border=0>
        <TBODY>
        <TR>
          <TD align=middle width=50 height=29>添加：</TD>
          <TD width="224"><INPUT class=input style="WIDTH: 200px" maxLength=8 name=new_groupname></TD>
          <TD width="204"><select name="new_groupaccess" id="groupaccess">
                <option value="1" selected>公开</option>
                <option value="2">私有</option>
              </select></TD>
        </TR>
        <TR>
          <TD background=../../Images/Hompy/K_mini_admin_11.gif colSpan=3></TD>
		</TR>
		</TBODY>
	 </TABLE> </TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=484 align=center border=0>
  <TBODY>
  <TR>
    <TD height=4><IMG height=4 src="../../Images/Hompy/K_mini_admin_9.gif" 
      width=484></TD>
  </TR>
  <TR>
    <TD height=5><IMG height=5 src="../../Images/Hompy/K_00pix.gif" width=1></TD></TR></TBODY></TABLE>
<TABLE cellSpacing=0 cellPadding=0 width=484 align=center border=0>
  <TBODY>
  <TR>
    <TD height="25" align="center"><A href="javascript:checkandsubmit();"><img height=18 width=39 src="../../Images/Hompy/Bt_confirm.gif" border=0></a> &nbsp;<a href="manage_folder.asp"><img src="../../Images/Hompy/Bt_clear.gif" width="39" height="18" border="0"></a></TD>
    </TR></TBODY></TABLE>
	</td>
  </tr>
</FORM>
<%end if%>
</table></DIV></DIV></TD></TR></TBODY></TABLE>
</body>
</html>
