<!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=Game.resource" class="nolink">内管管理</a>
				<a href="index.php?r=SiteSet.gameset" class="link">属性设置</a>
				<a href="index.php?r=Game.gameListLayout" class="link">列表页布局</a>
					<a href="index.php?r=Game.gamePageLayout" class="link">内容页布局</a>
			</div>
			<div id="secrightContent">
				<div class="tableContent3">
					<table class="tbl_leftnav" width="100%"><tr>
						<td class="td_channel"><div class="leftnav">
							<a class="title" href="index.php?r=Game.resource">游戏资源库</a>
							<span class="sectitle">频道分类</span>
							<!--{foreach from=$channels item=channel}-->
								<!--{if $channel_id != null && $channel_id == $channel.id}-->
									<a class="onlink">[<!--{$channel.id}-->]<!--{$channel.channel_text}--></a>
								<!--{else}-->
									<a href="index.php?r=Game.channel&channel_id=<!--{$channel.id}-->">[<!--{$channel.id}-->]<!--{$channel.channel_text}--></a>
								<!--{/if}-->
							<!--{/foreach}-->
						</div></td>
						<td>
							<form name="searchForm" action="index.php" onSubmit="setDisabled(':button',window.document);">
								<input type="hidden" name="r" value="Game.channel"/>
								<input type="hidden" name="channel_id" id="channel_id" value="<!--{$channel_id}-->"/>
								<input type="hidden" name="recommend_level" id="recommend_level" value="<!--{$recommend_level}-->"/>
								<input type="hidden" name="fee_type" id="fee_type" value="<!--{$fee_type}-->"/>
								<input type="hidden" name="orderby" id="orderby" value="<!--{$orderby}-->"/>
								<div class="searchbar">
									游戏名称&nbsp;<input type="text" class="text" name="search_game_title" value="<!--{$search_game_title}-->"/>
									&nbsp;厂商&nbsp;<input type="text" class="text" name="search_game_manufacturer" value="<!--{$search_game_manufacturer}-->"/>
									&nbsp;<button type="submit" class="but2font">查询</button>
								</div>
							</form>
							<div class="operation">
								<button type="button" class="but2font" onClick="window.location.href='index.php?r=Game.addgameinfo&channel_id=<!--{$channel_id}-->&returnParams=<!--{$returnParams}-->'">新增</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Game.gametotop&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '是否确认置顶所选游戏？')">置顶</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Game.gamenottop&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '是否确认取消置顶所选游戏？')">消顶</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Game.offlinegame&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '是否确认下线所选游戏？')">下线</button>
							</div>
							<table class="tbl_list" cellpadding="0" cellspacing="0" border="0" width="100%">
								<tr class="thead">
									<td width="5%"><input type="checkbox" class="checkall"/></td>
									<td width="5%">ID</td>
									<td width="15%">游戏名称</td>
									<td width="10%">发布频道</td>
									<td width="5%"><select onChange="document.getElementById('fee_type').value=this.value;document.forms['searchForm'].submit();">
										<option value="">资费</option>
										<option value="1" <!--{if $fee_type == 1}-->selected="selected"<!--{/if}-->>免费</option>
										<option value="2" <!--{if $fee_type == 2}-->selected="selected"<!--{/if}-->>收费</option>
										<option value="3" <!--{if $fee_type == 3}-->selected="selected"<!--{/if}-->>其他</option>
									</select></td>
									<td width="5%">
										<select onChange="document.getElementById('recommend_level').value=this.value;document.forms['searchForm'].submit();">
											<option value="">等级</option>
											<option value="1" <!--{if $recommend_level == 1}-->selected="selected"<!--{/if}-->>1</option>
											<option value="2" <!--{if $recommend_level == 2}-->selected="selected"<!--{/if}-->>2</option>
											<option value="3" <!--{if $recommend_level == 3}-->selected="selected"<!--{/if}-->>3</option>
											<option value="4" <!--{if $recommend_level == 4}-->selected="selected"<!--{/if}-->>4</option>
											<option value="5" <!--{if $recommend_level == 5}-->selected="selected"<!--{/if}-->>5</option>
										</select>
									</td>
									<td width="10%">
									<!--{if $orderby == null}--><a class="link" onClick="document.getElementById('orderby').value=3;document.forms['searchForm'].submit();">下载</a><!--{elseif $orderby == 3}--><a class="link" onClick="document.getElementById('orderby').value=4;document.forms['searchForm'].submit();">下载</a>↓<!--{elseif $orderby == 4}--><a class="link" onClick="document.getElementById('orderby').value=3;document.forms['searchForm'].submit();">下载</a>↑<!--{else}--><a class="link" onClick="document.getElementById('orderby').value=3;document.forms['searchForm'].submit();">下载</a><!--{/if}-->/<!--{if $orderby == null}--><a class="link" onClick="document.getElementById('orderby').value=1;document.forms['searchForm'].submit();">人气</a><!--{elseif $orderby == 1}--><a class="link" onClick="document.getElementById('orderby').value=2;document.forms['searchForm'].submit();">人气</a>↓<!--{elseif $orderby == 2}--><a class="link" onClick="document.getElementById('orderby').value=1;document.forms['searchForm'].submit();">人气</a>↑<!--{else}--><a class="link" onClick="document.getElementById('orderby').value=1;document.forms['searchForm'].submit();">人气</a><!--{/if}-->
									</td>
									<td width="10%"><!--{if $orderby == null}--><a class="link" onClick="document.getElementById('orderby').value=5;document.forms['searchForm'].submit();">发布时间</a>↓<!--{elseif $orderby == 5}--><a class="link" onClick="document.getElementById('orderby').value='';document.forms['searchForm'].submit();">发布时间</a>↑<!--{else}--><a class="link" onClick="document.getElementById('orderby').value='';document.forms['searchForm'].submit();">发布时间</a><!--{/if}--></td>
									<td width="10%">操作</td>
								</tr>
								<!--{foreach from=$data item=data name=foo}-->
								<tr onMouseOver="chgTrColor(this)" onMouseOut="chgTrColor(this)">
									<td><input type="checkbox" class="checkid" name="recordId" value="<!--{$data.id}-->"/></td>
									<td><!--{$data.game_id}--></td>
									<td><!--{if $data.top_flag == 1}-->[顶]<!--{/if}--><a href="index.php?r=Game.editgameinfo&id=<!--{$data.game_id}-->&returnParams=<!--{$returnParams}-->"><!--{$data.title}--></a></td>
									<td><!--{$data.channel_text}--></td>
									<td><!--{if $data.fee_type == 1}-->免费<!--{elseif $data.fee_type == 2}-->收费<!--{elseif $data.fee_type == 3}-->其他<!--{/if}--></td>
									<td><!--{$data.recommend_level}--></td>
									<td><!--{$data.down_count}-->/<!--{$data.click_count}--></td>
									<td><!--{$data.create_date|date_format:"%Y-%m-%d"}--></td>
									<td><a href="index.php?r=Game.editgameinfo&id=<!--{$data.game_id}-->&returnParams=<!--{$returnParams}-->">修改</a>&nbsp;<a href="index.php?r=Game.editgamepackage&id=<!--{$data.game_id}-->&returnParams=<!--{$returnParams}-->">包管理</a></td>
								</tr>
								<!--{foreachelse}-->
								<tr><td colspan="9">没有对应数据</td></tr>
								<!--{/foreach}-->
							</table>
							<div class="operation">
								<button type="button" class="but2font" onClick="window.location.href='index.php?r=Game.addgameinfo&channel_id=<!--{$channel_id}-->&returnParams=<!--{$returnParams}-->'">新增</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Game.gametotop&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '是否确认置顶所选游戏？')">置顶</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Game.gamenottop&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '是否确认取消置顶所选游戏？')">消顶</button>
								<button type="button" class="but2font" onClick="batchOperate('index.php?r=Game.offlinegame&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '是否确认下线所选游戏？')">下线</button>
							</div>
							<div class="page"><!--{$pager}--></div>
						</td>
					</tr></table>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
</html>