<?php die;?><html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Language" content="zh-cn" />
<title><!--{$smarty.const.MICE_TITLE}--></title>
<base href="<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/" />
<link href="css/Default.css" rel="stylesheet" type="text/css" />
<script language="JavaScript">
var baseurl = '<!--{$smarty.const.MICE_URL}--><!--{$smarty.const.MICE_TPL}-->/admin/';
</script>
<script type="text/javascript" src="js/Main.js"></script>
<script language="JavaScript">
function add(){
	window.location.href="<!--{$create}-->";
	window.event.returnValue = false;
}

function edit(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				window.location.href="<!--{$edit}-->"+c.$A("value");
				window.event.returnValue = false;
				flag = false;
				return;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要编辑的分类！" ) ;
	}

	return ;
}

function del(){
	var arr = $("contentlist").$T("input");
	var flag = true;

	for(var i=0;i<arr.length;i++){
		var c = arr[i];
		if(c.$A("value")>0){
			if($("checkbox["+c.$A("value")+"]").checked){
				document.form1.submit();
				flag = false;
				return;
			}
		}
	}

	if(flag){
		Dialog.alert( "请先选择要删除的分类！" ) ;
	}

	return ;
}
</script>
</head>

<body>
<table width="100%" border="0" cellspacing="6" cellpadding="0" style="border-collapse: separate; border-spacing: 6px;">
	 <form action="<!--{$delete}-->" method="post" name="form1" id="form1">
      <tr valign="top">
        <td>
		<table width="100%" border="0" cellspacing="0" cellpadding="0" class="blockTable">
			
			<tr>
			  <td width="100%" style="padding:6px 10px;" class="blockTd">
			  <div style="float: left;"><img src="imgs/Icons/icon021a12.gif" /> 会员组列表</div>
			  <div style="float: right; white-space: nowrap;vertical-align:middle;"><a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnAdd' onClick="add();"><img src="imgs/Icons/icon003a2.gif" width="20" height="20" /><b>新建&nbsp;</b></a> 
				<a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnEdit' onClick="edit();return false;"><img src="imgs/Icons/icon003a4.gif" width="20" height="20" /><b>编辑&nbsp;</b></a> 
				<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnDel' onClick="del();return false;" priv="article_modify" ><img src="imgs/Icons/icon003a3.gif" width="20" height="20" /><b>删除&nbsp;</b></a></div>
			 </td>
            </tr>
            <tr>
              <td style="padding-top:0px;padding-left:6px;padding-right:6px;padding-bottom:8px;">

<!--内容开始-->
<table width="100%" border='0' align="center" cellpadding='0' cellspacing='0'>
<tr>
<td style="padding:0px 5px;">

<table width="99%" cellpadding="2" cellspacing="0" class="dataTable" bgcolor="#BEBEBE" id="contentlist">
<tr class="dataTableHead">
<td width="4%" height="30"></td>
<td width="4%" height="30"><input name='chkAll' type='checkbox' id='chkAll' onclick='CheckAll(this.form)' value='checkbox'></td>
<td width="10%"><span style='float:left'><b>组编号</b></span></td>
<td width="62%"><strong>组名</strong></td>
<td width="10%"><strong>级别</strong></td>
<td width="10%"><strong>操作</strong></td>
</tr>

<!--{foreach from=$results item=rs name=counter}-->
<tr onmouseover="changeto()" onmouseout="changeback()">
<td><!--{$smarty.foreach.counter.iteration}--></td>
<td><input name="checkbox[<!--{$rs->getUsergroupId()}-->]" id="checkbox[<!--{$rs->getUsergroupId()}-->]" type="checkbox" value="<!--{$rs->getUsergroupId()}-->" /></td>
<td><!--{$rs->getUsergroupId()}--></td>
<td><span title="<!--{$rs->getName()}-->"><a href="<!--{$edit}--><!--{$rs->getUsergroupId()}-->"><!--{$rs->getName()}--></a></span></td>
<td><!--{$rs->getLevel()}--></td>
<td><a href="<!--{$edit}--><!--{$rs->getUsergroupId()}-->"><img src='imgs/Icons/icon003a4.gif' alt="编辑" border="0"></a><a href="<!--{$delete}--><!--{$rs->getUsergroupId()}-->" onclick="JavaScript:return confirm('确定删除吗?')"><img src='imgs/Icons/icon003a3.gif' alt="删除" border="0"></a></td>
</tr>
<!--{/foreach}-->
</table></td>
 </tr>
</table>
<table width="99%" border="0" align="center" cellpadding="0" cellspacing="0">
	<tr > 
		<td height="30" valign='middle'>
			<div id='_PageBar_buttom' class="pageBarWrap" style="padding-top:6px;clear:both;bottom:0px; height:30px; line-height:30px;"><div class="pageBar" style='float:right;font-family:Tahoma'></div><div style='float:left;font-family:Tahoma'><a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnAdd' onClick="add();"><img src="imgs/Icons/icon003a2.gif" width="20" height="20" /><b>新建&nbsp;</b></a> 
				<a href='javascript:void(0);' class='micePushBtn' tabindex='-1' id='BtnEdit' onClick="edit();return false;"><img src="imgs/Icons/icon003a4.gif" width="20" height="20" /><b>编辑&nbsp;</b></a> 
				<a href='javascript:void(0);' micetype='micePushBtn' class='micePushBtn' hidefocus='true' tabindex='-1' onselectstart='return false' id='BtnDel' onClick="del();return false;" priv="article_modify" ><img src="imgs/Icons/icon003a3.gif" width="20" height="20" /><b>删除&nbsp;</b></a></div></div>
		</td>
	</tr>
</table>

<!--内容结束-->
		</td>
		</tr>
	</table></td>
  </tr>
  </form>
</table>
</body>
</html>