<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head><title><!--{$UUDEV_PAGE_TITLE}--></title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<!--{include file=elements/header.css.html}-->
<!--{include file=elements/header.js.html type=common}-->
</head>
<body>
<div id="outside">
	<!--{include file=frame/top.html}-->
	<div id="mainareaContent">
		<!--{include file=frame/left.html}-->
		<div id="rightContent">
			<div id="topContent">
				<div class="sitmap">
					<span class="r"><!--{include file="elements/uuadvad.html"}--></span>互动社区&nbsp;&gt;&nbsp;会员管理&nbsp;&gt;&nbsp;会员相册
				</div>
			</div>
			<div class="tabcontent">
				<a href="index.php?r=User.userlist" class="link">会员列表</a>
				<a href="index.php?r=SiteSet.userset" class="link">属性设置</a>
				<a href="index.php?r=User.honourlist" class="link">会员头衔</a>
				<a href="index.php?r=SiteSet.experienceset" class="link">会员经验</a>
				<a href="index.php?r=User.forumroleimg" class="link">管理员身份勋章</a>
				<a href="index.php?r=User.albumlist" class="nolink">会员相册</a>
				<a href="index.php?r=User.listphotoframe" class="link">会员相框</a>
				<a href="index.php?r=User.msglist" class="link">会员消息</a>
				<a href="index.php?r=SiteSet.msgboxset" class="link">信箱设置</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent2">
					<div class="operation">
						<button type="button" class="but2font" onClick="batchOperate('index.php?r=User.deletealbumgroup&returnParams=<!--{$albumgroupReturnParams}-->', 'recordId', 'ids', '确定删除？')">删除</button>
						<button type="button" class="but2font" onClick="window.location.href='index.php?<!--{$returnParams}-->'">返回</button>
					</div>
					<table class="tbl_list" width="100%" cellpadding="0" cellspacing="0" border="0">
						<tr class="thead">
							<td width="5%"><input type="checkbox" class="checkall"/></td>
							<td width="30%">相集名称</td>
							<td width="15%">相片数</td>
							<td width="20%">可见度</td>
							<td width="15%">创建时间</td>
							<td width="15%">操作</td>
						</tr>
						<!--{if $pageNo eq 1}-->
						<tr onMouseOver="chgTrColor(this)" onMouseOut="chgTrColor(this)">
							<td></td>
							<td class="left"><a href="index.php?r=User.albumimglist&user_id=<!--{$user_id}-->&returnParams=<!--{$albumgroupReturnParams}-->">我的共享</a></td>
							<td class="right"><!--{$shareGroupCount}--></td>
							<td class="left">允许任何人查看</td>
							<td><!--{$item.create_date|date_format:"%Y-%m-%d"}--></td>
							<td><a href="javascript:clearShareImg('<!--{$user_id}-->', '<!--{$albumgroupReturnParams}-->')">清空图片</a></td>
						</tr>
						<!--{/if}-->
						<!--{foreach from=$datalist item=item name=list}-->
						<tr onMouseOver="chgTrColor(this)" onMouseOut="chgTrColor(this)">
							<td><input type="checkbox" class="checkid" name="recordId" value="<!--{$item.id}-->"/></td>
							<td><a href="index.php?r=User.albumimglist&album_group_id=<!--{$item.id}-->&returnParams=<!--{$albumgroupReturnParams}-->"><!--{$item.group_name}--></a></td>
							<td><!--{$item.img_count}--></td>
							<td>
								<!--{if $item.visible_level eq 1}-->允许任何人查看
								<!--{elseif $item.visible_level eq 2}-->只允许好友查看
								<!--{elseif $item.visible_level eq 3}-->不允许任何人查看<!--{/if}-->
							</td>
							<td><!--{$item.create_date|date_format:"%Y-%m-%d"}--></td>
							<td><a href="javascript:clearImg('<!--{$item.id}-->', '<!--{$albumgroupReturnParams}-->')">清空图片</a></td>
						</tr>
						<!--{foreachelse}-->
						
						<!--{/foreach}-->
					</table>
					<div class="operation">
						<button type="button" class="but2font" onClick="batchOperate('index.php?r=User.deletealbumgroup&returnParams=<!--{$albumgroupReturnParams}-->', 'recordId', 'ids', '确定删除？')">删除</button>
						<button type="button" class="but2font" onClick="window.location.href='index.php?<!--{$returnParams}-->'">返回</button>
					</div>
					<div class="page"><!--{$pager}--></div>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script>
function clearShareImg(user_id, returnParams){
	if (confirm("是否清空该相册下所有图片")) {
		window.location.href = "index.php?r=User.deletealbumimg&album_group_id=0&user_id="+user_id+"&returnParams="+encodeURIComponent(returnParams);
	}
}
function clearImg(id, returnParams){
	if (confirm("是否清空该相册下所有图片")) {
		window.location.href = "index.php?r=User.deletealbumimg&album_group_id="+id+"&returnParams="+encodeURIComponent(returnParams);
	}
}
</script>
</html>