Jelajahi Sumber

邮件分组显示数量

shenzhipeng 3 tahun lalu
induk
melakukan
285ba659fb

+ 5 - 0
application/module/ctrl/User_group_adminAction.class.php

@@ -28,6 +28,11 @@ class User_group_adminAction extends Action{
 
 		$list  = $admin->select_user_group($where);
 		foreach($list as &$ls){
+			$condition = "where uid='{$_SESSION['user_infos']['id']}' and group_name='{$ls['name']}'";
+			$count = $admin->select_usergroup_count($condition);
+			$count = empty($count) ? 0  : $count;
+
+			$ls['count'] = $count;
 			$ls['add_time'] = date('Y-m-d H:i:s',$ls['add_time']);
 			$ls['update_time'] = date('Y-m-d H:i:s',$ls['update_time']);
 		}

+ 2 - 2
application/module/view/user_group_admin/index.html

@@ -38,7 +38,7 @@
 					<th style="width:80px;"><input type="checkbox"  id="check-all" />&nbsp;&nbsp;全选</th>
 					<th>ID</th>
 					<th >客户分组名称</th>
-					<th >创建人</th>
+					<th >数量</th>
 					<th >修改时间</th>
 					<th >添加时间</th>
 					<th>操作</th>
@@ -52,7 +52,7 @@
 					</td>
 					<td><{$item.id}></td>
 					<td><{$item.name}></td>
-					<td><{$uname}></td>
+					<td><{$item.count}></td>
 					<td><{$item.update_time}></td>
 					<td><{$item.add_time}></td>
 					<td>