<!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}-->
<script language="javascript">
$(document).ready(function(){
	$(".copy").click(function(){
		copyToClipboard($(this).text());
		alert("复制成功！");
	});
});
</script>
</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=FriendSite.friendsitelist" class="nolink">内管管理</a>
				<a href="index.php?r=SiteSet.friendsiteset" class="link">属性设置</a>
				<a href="index.php?r=FriendSite.friendsiteListLayout" class="link">列表页布局</a>
					<a href="index.php?r=FriendSite.friendsitePageLayout" class="link">内容页布局</a>
					<a href="index.php?r=FriendSite.realtimereport" class="link">实时数据分析</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent2">
					<form name="searchForm" action="index.php" method="get" onSubmit="setDisabled('button', window.document);">
						<input type="hidden" name="r" value="FriendSite.friendsitelist"/>
						<input type="hidden" id="channel_id" name="channel_id" value="<!--{$channel_id}-->"/>
						<input type="hidden" id="status" name="status" value="<!--{$status}-->"/>
						<input type="hidden" id="orderby" name="orderby" value="<!--{$orderby}-->"/>
						<div class="searchbar">
							站点名称&nbsp;<input type="text" class="text" name="friend_site_name" value="<!--{$friend_site_name}-->"/>
							&nbsp;<button type="submit" class="but2font">查询</button>
						</div>
					</form>
					<div class="operation">
						<button type="button" class="but2font" onClick="window.location.href='index.php?r=FriendSite.add&returnParams=<!--{$returnParams}-->'">新增</button>
						<button type="button" class="but4font" onClick="batchOperate('index.php?r=FriendSite.updatestatus&status=1&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定审核通过？')">审核通过</button>
						<button type="button" class="but4font" onClick="batchOperate('index.php?r=FriendSite.updatestatus&status=2&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定审核未通过？')">审核未通过</button>
                        <button type="button" class="but2font" onClick="batchOperate('index.php?r=FriendSite.updatechannelfriendSitestatus&top_flag=1&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定置顶？')">置顶</button>
						<button type="button" class="but2font" onClick="batchOperate('index.php?r=FriendSite.updatechannelfriendSitestatus&top_flag=0&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定消顶？')">消顶</button>
						<button type="button" class="but2font" onClick="batchOperate('index.php?r=FriendSite.delete&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定删除？')">删除</button>
					</div>
					<table class="tbl_list" width="100%" border="0" cellpadding="0" cellspacing="0">
						<tr class="thead">
							<td width="3%"><input type="checkbox" class="checkall"/></td>
							<td width="5%">ID</td>
							<td width="12%">网站名称</td>
							<td width="15%">网站地址</td>
							<td width="15%">链入地址</td>
							<td width="10%"><select onChange="$('#channel_id').val(this.value);document.forms['searchForm'].submit();">
								<option value="">频道</option>
								<!--{foreach from=$channel item=item}-->
								<option value="<!--{$item.id}-->" <!--{if $item.id == $channel_id}-->selected<!--{/if}-->><!--{$item.channel_text}--></option>
								<!--{/foreach}-->
							</select></td>
							<td width="8%"><select onChange="$('#status').val(this.value);document.forms['searchForm'].submit();">
								<option value="">状态</option>
								<option value="1" <!--{if $status == 1}-->selected<!--{/if}-->>已审核</option>
								<option value="2" <!--{if $status == 2}-->selected<!--{/if}-->>待审核</option>
							</select></td>
							<td width="14%">
								<!--{if $orderby == in_pv0}-->
								<a class="link" onClick="$('#orderby').val('in_pv1');document.forms['searchForm'].submit();">链入总量↑</a><!--{elseif $orderby == in_pv1}--><a class="link" onClick="$('#orderby').val('in_pv0');document.forms['searchForm'].submit();">链入总量↓</a><!--{else}--><a class="link" onClick="$('#orderby').val('in_pv0');document.forms['searchForm'].submit();">链入总量</a><!--{/if}-->/<!--{if $orderby == out_pv0}--><a class="link" onClick="$('#orderby').val('out_pv1');document.forms['searchForm'].submit();">链出总量↑</a><!--{elseif $orderby == out_pv1}--><a class="link" onClick="$('#orderby').val('out_pv0');document.forms['searchForm'].submit();">链出总量↓</a><!--{else}--><a class="link" onClick="$('#orderby').val('out_pv0');document.forms['searchForm'].submit();">链出总量</a><!--{/if}-->
							</td>
							<td width="10%">
								<!--{if $orderby == create_date0}-->
								<a class="link" onClick="$('#orderby').val('create_date1');document.forms['searchForm'].submit();">创建时间↑</a>
								<!--{elseif $orderby == create_date1}-->
								<a class="link" onClick="$('#orderby').val('create_date0');document.forms['searchForm'].submit();">创建时间↓</a>
								<!--{else}-->
								<a class="link" onClick="$('#orderby').val('create_date0');document.forms['searchForm'].submit();">创建时间</a><!--{/if}-->
							</td>
							<td width="8%">操作</td>
						</tr>
						<!--{foreach from=$datalist item=item name=list}-->
						<tr onMouseOver="chgTrColor(this)" onMouseOut="chgTrColor(this)">
							<td><input type="checkbox" name="recordId" value="<!--{$item.id}-->"/></td>
							<td><!--{$item.id}--></td>
							<td><!--{if $item.top_flag==1}--><span class="red">[顶]</span><!--{/if}--><a href="index.php?r=FriendSite.edit&id=<!--{$item.id}-->&returnParams=<!--{$returnParams}-->"><!--{$item.friend_site_name}--></a></td>
							<td><!--{$item.out_url}--></td>
							<td class="copy"><!--{$domain}-->/index.php?r=FriendSite.in&frid=<!--{$item.id}--></td>
							<td><!--{$item.channel_text}--></td>
							<td><!--{if $item.status == 1}-->已审核<!--{elseif $item.status == 2}-->待审核<!--{/if}--></td>
							<td><!--{$item.in_pv_all}-->/<!--{$item.out_pv_all}--></td>
							<td><!--{$item.create_date|date_format:"%Y-%m-%d"}--></td>
							<td><a href="index.php?r=FriendSite.edit&id=<!--{$item.id}-->&returnParams=<!--{$returnParams}-->">修改</a>&nbsp;
								<a href="index.php?r=FriendSite.reportlist&friend_site_id=<!--{$item.id}-->&returnParams=<!--{$returnParams}-->">报表</a></td>
						</tr>
						<!--{foreachelse}-->
						<tr><td colspan="10">没有对应数据</td></tr>
						<!--{/foreach}-->
					</table>
					<div class="operation">
						<button type="button" class="but2font" onClick="window.location.href='index.php?r=FriendSite.add&returnParams=<!--{$returnParams}-->'">新增</button>
						<button type="button" class="but4font" onClick="batchOperate('index.php?r=FriendSite.updatestatus&status=1&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定审核通过？')">审核通过</button>
						<button type="button" class="but4font" onClick="batchOperate('index.php?r=FriendSite.updatestatus&status=2&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定审核未通过？')">审核未通过</button>
                        <button type="button" class="but2font" onClick="batchOperate('index.php?r=FriendSite.updatechannelfriendSitestatus&top_flag=1&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定置顶？')">置顶</button>
						<button type="button" class="but2font" onClick="batchOperate('index.php?r=FriendSite.updatechannelfriendSitestatus&top_flag=0&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定消顶？')">消顶</button>
						<button type="button" class="but2font" onClick="batchOperate('index.php?r=FriendSite.delete&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定删除？')">删除</button>
					</div>
					<div class="page"><!--{$pager}--></div>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>