<%guidedisplay=1%>
<%copyrightend=1%>
<!--#include file="admin_start.asp" -->
<body topmargin="0" marginwidth="0" marginheight="0" leftmargin="0" rightmargin="0" bottommargin="0">
<%
dim id

id=request("id")

if not MySys.check.isInteger(id) then
   MySys.Error.info = "请提交合法的栏目id！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

id=int(id)

if not MySys.object.GetObject(id) then
   MySys.Error.info = "此栏目不存在！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

 
if not MySys.object.ListUp(id) then
   MySys.Error.info = "栏目索引错误！"
   MySys.Error.location = "back"
   MySys.Error.err()
End If

dim menu(1)
dim menu_o(1)
menu(0)="栏目基本设置"
'menu(1)="栏目样式设置"
menu(1)="栏目模版编辑"
'menu(3)="栏目权限设置"
'menu(4)="其他设置"
menu_open=request("open")
if menu_open="" then menu_open=0
%>

<table cellpadding="0" cellspacing="0" width="783" height="650">
	<!-- MSTableType="nolayout" -->
	<tr>
		<td height="48" bgcolor="#014E82" style="padding: 5px" colspan="3" ><font color=#ffffff>　·栏目属性设置 <%=MySys.object.object_url%></font></td>
	</tr>
	<tr>
		<td height="6" bgcolor="#5E8FB0" colspan="3"></td>
	</tr>
	<tr>
		<td width="160" bgcolor="#A3BFD2" rowspan="2">
		<table cellpadding="0" cellspacing="0" width="100%" height="100%">
			<!-- MSTableType="nolayout" -->
			<tr>
				<td height="60" width="100%" colspan="2">　</td>
			</tr>
			<%for i=0 to ubound(menu)%>
			<tr>
				<td height="33" width="6%">　</td>
				<td height="33" width="94%" background="Images/menu_yes.gif" style="padding-left: 30px">
				<a href='javascript:menushow("+ <%=menu(i)%> +",<%=i%>);'>
				<%=menu(i)%>
				</a>
				</td>
			</tr>
			<tr>
				<td height="5" width="100%" colspan="2"></td>
			</tr>
			<%
			if menu_open-i=0 then menu_o(i)="" else menu_o(i)="none"
			next
			%>
			<tr>
				<td  width="100%" colspan="2">　</td>
			</tr>
		</table>
		</td>
		
		<td valign=top>
			<table cellspacing="0" cellpadding="0">
			<tr>
				<td width="212" bgcolor="#A3BFD2" background="Images/chanle.gif" valign="bottom" align="center"><div id=menu > 
					+ <%=menu(menu_open)%> +</div></td>
				<td width="421" bgcolor="#A3BFD2" height="28">　</td>
		    </tr>
		    <tr>
				<td height="518" bgcolor="#FFFFFF" colspan="2">
				<table cellpadding="0" cellspacing="0" width="100%" height="100%">
					<!-- MSTableType="nolayout" -->
					<tr>
						<td height="100%" width="100%" valign= top>
						<div id=m_0 style='display:<%=menu_o(0)%>'>
<!--#include file="admin_object_edit_basic.asp" -->
						</div>
						
						<div id=m_1 style='display:<%=menu_o(1)%>' >
<!--#include file="admin_object_edit_template.asp" -->
						</div>
						</td>
					</tr>
				</table>
				</td>
		    </tr>
	  </table>      </td>
	</tr>
</table>
<SCRIPT language=javascript>

	function opencat(cat)
	{
 	 	if(cat.style.display=="none"){
     	cat.style.display="";
  		} else {
     	cat.style.display="none"; 
  		}
	}
	function menushow(m,i){
		document.getElementById("menu").innerHTML=m;
		for(var ii=0 ;ii< 3;ii++)
			if (ii==i)
				document.getElementById("m_"+ii).style.display="";
			else
				document.getElementById("m_"+ii).style.display="none";
	}
	
</SCRIPT>

</body>
<!--#include file="admin_end.asp" -->