<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>聚合首页后台管理</title>
		<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
		<link rel='stylesheet' type='text/css' href='admin/style/style.css'>
			<script>
		// 根据鼠标或焦点事件，设置文本框和按钮样式,此函数会与样式相关
function IEvent(sType,oInput)
{
	var onStyle,offStyle,eleType;
	eleType = oInput.type;
	// 设置关联样式
	if("button" == eleType || "submit" == eleType || "reset" == eleType || "textarea" == oInput.tagName)
	{
		onStyle = "button_on";
		offStyle = "button_off";
	}
	else
	{
		onStyle = "input_on";
		offStyle = "input_off";
	}
	// 根据事件选择样式
	switch (sType)
	{
		case "focus" :
			oInput.isfocus = true;
		case "mouseover" :
			oInput.className = onStyle;
			break;
		case "blur" :
			oInput.isfocus = false;
		case "mouseout" :
			if(!oInput.isfocus)
			{
				oInput.className = offStyle;
			}
			break;
	}
}
			</script>
	</head>
	<body>
		<table class="maintable" cellpadding="0" cellspacing="1" border="0">
			<tr>
				<th colspan="2">
					圈子分类管理...</th>
			</tr>
			<tr>
				<td valign="top" width="20%">
					<blockquote>
						<P><a href="quan_admin_type.aspx" target="_self">分类列表</a></p>
						<p><a href="quan_admin_type.aspx?action=addnew" target="_self">添加分类</a></P>
					</blockquote>
				</td>
				<td valign="top">
					<form method="post" action="" style="PADDING-RIGHT:0px;PADDING-LEFT:0px;PADDING-BOTTOM:0px;MARGIN:0px;PADDING-TOP:0px"
						enctype="multipart/form-data">
						<div style="PADDING-RIGHT:10px; PADDING-LEFT:10px; PADDING-BOTTOM:0px; PADDING-TOP:0px">
							<table>
								<!--{if(null!=GroupType && action == "ShowList")}-->
								<tr align="center">
									<td>分类名</td>
									<td>添加时间</td>
									<td>操作</td>
								</tr>
								<!--{for(int i=0;i<GroupType.Rows.Count;i++)}-->
								<tr>
									<td><%=GroupType.Rows[i]["title"].ToString()%></td>
									<td><%=GroupType.Rows[i]["createdate"].ToString()%></td>
									<td><a href="quan_admin_type.aspx?action=edit&id=<%=GroupType.Rows[i]["id"].ToString()%>">修改</a>&nbsp;<a href="quan_admin_type.aspx?delete_id=<%=GroupType.Rows[i]["id"].ToString()%>">删除</a></td>
								</tr>
								<!--{endfor}-->
								<!--{else if(null!=GroupType && action == "edit")}-->
								<tr align="left">
									<td colspan="3">编辑分类</td>
								</tr>
								<!--{for(int i=0;i<GroupType.Rows.Count;i++)}-->
								<tr align="left">
									<td colspan="3"><input type="text" name="type_title" value="<%=GroupType.Rows[i]["title"].ToString()%>" /></td>
								</tr>
								<!--{endfor}-->
								<tr align="left">
									<td colspan="3"><br />
										<input type="submit" value=" 修 改 " class="button_on" /></td>
								</tr>
								<!--{else if(null==GroupType && action == "addnew")}-->
								<tr align="left">
									<td colspan="3">添加分类</td>
								</tr>
								<tr align="left">
									<td colspan="3"><input type="text" name="type_title" value="<%=type_title%>" onFocus="IEvent('focus',this);" onBlur="IEvent('blur',this)"	onMouseOver="IEvent('mouseover',this)" onMouseOut="IEvent('mouseout',this)" /></td>
								</tr>
								<tr align="left">
									<td colspan="3"><br />
										<input type="submit" value=" 添 加 " class="button_off" onmouseover="this.className='button_on'" onmouseout="this.className='button_off'" /></td>
								</tr>
								<!--{endif}-->
								<!--{if(Msg.Length>0)}-->
								<tr align="left">
									<td colspan="3"><%=Msg%></td>
								</tr>
								<!--{endif}-->
							</table>
						</div>
					</form>
				</td>
			</tr>
		</table>
		<input type="hidden" id="autopage" name="autopage">
	</body>
</html>
