<table width="100%" class="topmenu">
	<tr><td>
		<a href="oauth.php" class="on"><em>登陆管理</em></a><span>|</span>
		<a href="?action=setting"><em>接口设置</em></a>
	</td></tr>
</table>
<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 class="odd">
			会员ID：<input name="uid" type="text" id="uid" class="text" size="15" maxlength="50" value="{?$Saxue.request.uid?}">&nbsp;
			<select name="site" id="site">
			  <option value="">平台接口</option>
			  {?section name=i loop=$oauth_cfg?}
			  <option value="{?$i['key']?}"{?if $i['key'] == $Saxue.request.site?} selected{?/if?}>{?$oauth_cfg[i].name?}</option>
			  {?/section?}
			</select>&nbsp;&nbsp;
            <input type="submit" name="btnsearch" class="button" value="搜 索">
		</td>
    </tr>
</table>
</form> <br>
<form name="frmpost" method="post">
<input name="jumpurl" type="hidden" value="{?$saxue_thisurl?}">
<table class="grid" width="100%" align="center">
	<tr>
		<th>头像</th>
		<th>昵称</th>
		<th>会员ID</th>
		<th>平台</th>
		<th>{?function saxue_getsort:'绑定时间':'addtime':$Saxue.request.form_sort:$Saxue.request.form_order?}</th>
		<th>{?function saxue_getsort:'最近登录':'logintime':$Saxue.request.form_sort:$Saxue.request.form_order?}</th>
		<th>{?function saxue_getsort:'登录次数':'logintimes':$Saxue.request.form_sort:$Saxue.request.form_order?}</th>
		<th>操作</th>
	</tr>
	{?section name=i loop=$rows?}
	<tr class="rowbg">
		<td><img src="{?$rows[i].avatar?}" width="50"></td>
		<td>{?$rows[i].nickname?}</td>
		<td>{?if $rows[i].uid>0?}<a href="javascript:viewuser({?$rows[i].uid?})">{?$rows[i].uid?}</a>{?else?}{?$rows[i].uid?}{?/if?}</td>
		<td>{?$oauth_cfg[$rows[i].site]['name']?}</td>
		<td>{?$rows[i].addtime|date:"Y-m-d H:i"?}</td>
		<td>{?$rows[i].logintime|date:"Y-m-d H:i"?}</td>
		<td>{?$rows[i].logintimes?}</td>
		<td><a href="{?$saxue_thisurl?}&oid={?$rows[i].oid?}" onclick="return confirm('确定要解除该会员登录绑定吗？');">解除绑定</a></td>
	</tr>
	{?/section?}
</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>