<form name="frmsearch" method="post">
<input name="page" id="page" type="hidden" value="1">
<input name="pagesize" id="pagesize" type="hidden" value="{?$Saxue.request.pagesize?}">
<table class="sgrid" width="100%" align="center">
    <tr>
        <td>
			<select name="op">
				<option value="">类型</option>
				<option value="1"{?if 1==$Saxue.request.op?} selected{?/if?}>增加</option>
				<option value="2"{?if 2==$Saxue.request.op?} selected{?/if?}>减少</option>
			</select>&nbsp;
			<input type="text" name="fromtime" id="fromtime" value="{?$Saxue.request.fromtime?}" size="12" class="text date" readonly> - <input type="text" name="totime" id="totime" value="{?$Saxue.request.totime?}" size="12" class="text date" readonly>&nbsp;
			<select name="type">
				<option value="">积分来源</option>
				{?section name=i loop=$scoretype?}<option value="{?$i['key']?}"{?if ''!=$Saxue.request.type && $i['key']==$Saxue.request.type?} selected{?/if?}>{?$i['value']?}</option>{?/section?}
			</select>&nbsp;
			<select name="keytype">
				<option value="uid"{?if 'uid'==$Saxue.request.keytype?} selected{?/if?}>用户ID</option>
			</select>&nbsp;
			<input type="text" name="keyword" class="text" size="15" value="{?$Saxue.request.keyword?}">&nbsp;&nbsp;
			<input type="submit" name="btnsearch" class="button" value="搜 索">
        </td>
    </tr>
</table>
</form>
<br />
<form method="post" name="frmpost">
<input name="jumpurl" type="hidden" value="{?$saxue_thisurl?}">
<table class="grid" width="100%" align="center">
	<tr class="head">
		<td><input type="checkbox" id="checkall" name="checkall" value="checkall" onclick="javascript: for (var i=0;i<this.form.elements.length;i++){ if (this.form.elements[i].name != 'checkkall') this.form.elements[i].checked = form.checkall.checked; }"></td>
		<td>UID</td>
		<td>积分数</td>
		<td>积分余额</td>
		<td>时间</td>
		<td>来源</td>
	</tr>
	{?section name=i loop=$rows?}
	<tr class="rowbg">
		<td><input type="checkbox" name="ids[]" value="{?$rows[i].id?}"/></td>
		<td><a href="javascript:viewuser({?$rows[i].uid?})">{?$rows[i].uid?}</a></td>
		<td>{?$rows[i].amount?}</td>
		<td>{?$rows[i].balance?}</td>
		<td>{?$rows[i].time|date:"Y-m-d H:i"?}</td>
		<td>{?$rows[i].typename?}</td>
	</tr>
	{?/section?}
	<tr>
		<td colspan="12" class="foot">
			<select name="action" id="batchaction">
				<option value="">请选择批量操作</option>
				<option value="delete">批量删除</option>
			</select>&nbsp;
			<input type="button" value="批量操作" class="button" onclick="batchctrl();">
		</td>
	</tr>
</table>
</form>
<table width="100%"><tr><td width="100%">
	<div class="fl pages">
		<ul>
			<li><span class="fl">每页显示:</span></li>
			<li{?if $Saxue.request.pagesize==10?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(10)">10</a></li>
			<li{?if $Saxue.request.pagesize==30?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(30)">30</a></li>
			<li{?if $Saxue.request.pagesize==50?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(50)">50</a></li>
			<li{?if $Saxue.request.pagesize==100?} class="selected"{?/if?}><a href="javascript:void(0)" onclick="setPage(100)">100</a></li>
		</ul>
	</div>
	<div class="fr pages">{?$url_jumppage?}</div>
</td></tr></table>
<link rel="stylesheet" type="text/css" href="{?$saxue_skin_server?}/calendar/calendar.css"/>
<script type="text/javascript" src="{?$saxue_skin_server?}/calendar/calendar.js"></script>
<script type="text/javascript">
	Calendar.setup({
		inputField	: "fromtime",
		trigger		: "fromtime",
		onSelect	: function() {this.hide();}
	});
	Calendar.setup({
		inputField	: "totime",
		trigger		: "totime",
		onSelect	: function() {this.hide();}
	});
</script>