<!--{include file="admin/header.tpl"}-->
<form name="addItem" method="post" action="group.php?action=save" onsubmit="return validator(this)">
<table cellpadding="2" cellspacing="1" class="table_list">
  <input type="hidden" name="group_id" value="<!--{$info.group_id}-->" />
  <caption>添加/编辑群组</caption>
  <tr>
    <td align="left">
      名称：<input name="group_name" value="<!--{$info.group_name}-->" valid="required" noValue="0" errmsg="值不能为空!" />
        <input type="submit" value="保存"/>
     </td>
  </tr>
</table>
</form>

<form name="myform" method="post" action="group.php?action=delete">
<table cellpadding="2" cellspacing="1" class="table_list">
  <caption>群组列表</caption>
   <tr >        
     <th width="30`">选中</th>
	 <th width="50">ID</th>
     <th >群组名</th>
     <th width="150">操作</th>
   </tr>
   <!--{foreach item=item from=$groupList}-->
   <tr>     
     <td class="align_c"><input type="checkbox" name="groups[]" value="<!--{$item.group_id}-->"></td>
     <td class="align_c"><!--{$item.group_id}--></td>
     <td><!--{$item.group_name}--></td>
     <td class="align_c"><a href="?group_id=<!--{$item.group_id}-->">编辑</a> <a href="user.php?action=right&group_id=<!--{$item.group_id}-->">权限组</a></td>
   </tr>
   <!--{/foreach}-->
</table>
<div class="button_box">
	<span style="width:60px"><a href="#" onclick="javascript:$('input[type=checkbox]').attr('checked', true);return false;">全选</a>/<a href="#" onclick="javascript:$('input[type=checkbox]').attr('checked', false)">取消</a></span>
  <input type="button" name="delete" value=" 删除 " onclick="if(confirm('删除之后千万要记住到ucenter将对应的用户进行删除')){myform.action='group.php?action=delete';myform.submit();}">
</div>
 </form>
 
<!--{include file="admin/footer.tpl"}-->
