<!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}-->
<!--{include file=elements/header.js.html type=date}-->
</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=Software.errorreportlist" class="nolink">软件报错</a>
				<a href="index.php?r=Game.errorreportlist" class="link">游戏报错</a>
				<a href="index.php?r=Theme.errorreportlist" 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="Software.errorreportlist"/>
						<input type="hidden" id="orderby" name="orderby" value="<!--{$orderby}-->"/>
						<div class="searchbar">
							软件名称&nbsp;<input type="text" class="text" name="title" value="<!--{$title}-->"/>
							&nbsp;时间&nbsp;<input type="text" class="date" id="begin_date" name="begin_date" value="<!--{$begin_date}-->"/>-<input type="text" class="date" id="end_date" name="end_date" value="<!--{$end_date}-->"/>
							&nbsp;<button type="submit" class="but2font">查询</button>
						</div>
					</form>
					<div class="operation"><button type="button" class="but2font" onClick="batchOperate('index.php?r=Software.deleteerrorreport&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定删除？')">删除</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="25%">软件名称</td>
							<td width="45%">错误信息</td>
							<td width="20%">
								<!--{if $orderby eq create_date0}-->
								<a class="link" onClick="$('#orderby').val('create_date1');document.forms['searchForm'].submit();">时间↑</a>
								<!--{elseif $orderby eq 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>
						</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><a href="index.php?r=Software.edit&id=<!--{$item.data_id}-->&returnParams=<!--{$returnParams}-->"><!--{$item.title}--></a></td>
							<td><!--{$item.error_content|cutstrCN:"0":"20"}--></td>
							<td><!--{$item.create_date|date_format:"%Y-%m-%d"}--></td>
						</tr>
						<!--{foreachelse}-->
						<tr><td colspan="5">没有对应数据</td></tr>
						<!--{/foreach}-->
					</table>
					<div class="operation"><button type="button" class="but2font" onClick="batchOperate('index.php?r=Software.deleteerrorreport&returnParams=<!--{$returnParams}-->', 'recordId', 'ids', '确定删除？')">删除</button></div>
					<div class="page"><!--{$pager}--></div>
				</div>
			</div>
		</div>
	</div>
</div>
</body>
<script>
function customRange(input){
	return {
		minDate : (input.id == "end_date" ? $("#begin_date").datepicker("getDate") : null),
		maxDate : (input.id == "begin_date" ? $("#end_date").datepicker("getDate") : null)
	}
}
$("#begin_date, #end_date").datepicker({
    beforeShow : customRange, buttonImageOnly : false
});
</script>
</html>