<form name="frmsearch" method="post">
<input name="pagesize" id="pagesize" type="hidden" value="{?$Saxue.request.pagesize?}">
<table width="100%" align="center" class="sgrid">
    <tr>
        <td>
			<select name="mtype">
			  <option value="addtime"{?if 'addtime' == $Saxue.request.mtype?} selected{?/if?}>留言时间</option>
			  <option value="updatetime"{?if 'updatetime' == $Saxue.request.mtype?} 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="lang">
				<option value="">选择语言</option>{?section name=i loop=$lang?}<option value="{?$i['key']?}"{?if $i['key']==$Saxue.request.lang?} selected{?/if?}>{?$lang[i].name?}</option>{?/section?}
			</select>&nbsp;
			<select name="isread">
			  <option value=""{?if '' == $Saxue.request.isread?} selected{?/if?}>查看状态</option>
			  <option value="1"{?if '1' == $Saxue.request.isread?} selected{?/if?}>已读</option>
			  <option value="0"{?if '0' == $Saxue.request.isread?} selected{?/if?}>未读</option>
			</select>&nbsp;
			<select name="display">
			  <option value=""{?if '' == $Saxue.request.display?} selected{?/if?}>显示状态</option>
			  <option value="1"{?if '1' == $Saxue.request.display?} selected{?/if?}>显示</option>
			  <option value="0"{?if '0' == $Saxue.request.display?} selected{?/if?}>隐藏</option>
			</select>&nbsp;
			<select name="keytype">
			  <option value="name"{?if "name" == $Saxue.request.keytype?} selected{?/if?}>姓名</option>
			  <option value="tel"{?if "tel" == $Saxue.request.keytype?} selected{?/if?}>电话</option>
			  <option value="email"{?if "email" == $Saxue.request.keytype?} selected{?/if?}>邮箱</option>
			  <option value="ip"{?if "ip" == $Saxue.request.keytype?} selected{?/if?}>IP</option>
			  <option value="content"{?if "content" == $Saxue.request.keytype?} selected{?/if?}>内容</option>
			</select>&nbsp;
			<input name="keyword" type="text" class="text" size="20" value="{?$Saxue.request.keyword?}">&nbsp;
            <input type="submit" name="btnsearch" class="button" value="搜 索">
        </td>
    </tr>
</table>
</form>
<br>
<form method="post" name="frmpost" id="frmpost">
<input name="jumpurl" type="hidden" value="{?$saxue_thisurl?}">
<table width="100%" class="grid">
	<tr>
		<th><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; }"></th>
		<th>语言</th>
		<th>姓名</th>
		<th>电话</th>
		<th>邮箱</th>
		<th>IP</th>
		<th>时间</th>
		<th>状态</th>
		<th>管理</th>
	</tr>
	<tbody>
	{?section name=i loop=$rows?}
	<tr class="rowbg">
		<td><input type="checkbox" name="ids[]" value="{?$rows[i].id?}"/></td>
		<td>{?$rows[i].langname?}</td>
		<td>{?$rows[i].name?}</td>
		<td>{?$rows[i].tel?}</td>
		<td>{?$rows[i].email?}</td>
		<td><a href="http://www.ip138.com/ips138.asp?ip={?$rows[i].ip?}" target="_blank">{?$rows[i].ip?}</a></td>
		<td>{?$rows[i].addtime|date:"Y-m-d H:i:s"?}</td>
		<td>
			{?if $rows[i].isread==1?}<span class="green">已读</span>{?else?}<span class="red">未读</span>{?/if?}&nbsp;&nbsp;
			{?if $rows[i].display==1?}<span class="green">显示</span>{?else?}<span class="red">隐藏</span>{?/if?}
		</td>
		<td><a href="javascript:doDialog('{?$saxue_url?}/feedback/admin/detail.php?id={?$rows[i].id?}','留言内容','500','300')">内容</a></td>
	</tr>
	{?/section?}
	<tr>
		<td colspan="12" class="foot">
			<select name="action" id="batchaction">
				<option value="">请选择批量操作</option>
				<option value="delete">批量删除</option>
				<option value="nodisplay">隐藏留言</option>
				<option value="display">显示留言</option>
			</select>&nbsp;
			<input type="button" value="批量操作" class="button" onclick="batchctrl();">
		</td>
	</tr>
	</tbody>
</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"><ul>{?$url_jumppage?}</ul></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>