<!--<?php
include_once PrintEot('left');
print <<<EOT
-->
<div class="admin_info mb10">
	<h3 class="h1"><b>提示信息</b></h3>
	<div class="legend"><br />可以查看和管理用户自定义积分</div>
</div>
<!--
EOT;
if (!$action){print <<<EOT
-->
<form action="$basename&" method="post">
<input type="hidden" name="action" value="edit" />
<h2 class="h1"><b>自定义积分管理</b></h2>
<div class="admin_table mb10">
<table width="100%" cellspacing="0" cellpadding="0">
<tr class="tr1 vt">
	<td class="td1">用户名</td>
	<td class="td2"><input class="input input_wa" type="text" name="username" /></td>
	</tr>
</table>
</div>
<div class="mb10 tac">
	<span class="btn"><span><button type="submit">提 交</button></span></span>
</div>
</form>
<div class="cc mb10">$pages</div>
<h2 class="h1"><b>自定义积分管理</b></h2>
<div class="admin_table mb10">
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr2 td_bgB">
		<td width="24">ID</td>
		<td width="80">用户名</td>
		<td width="120">自定义积分名称</td>
		<td width="100">自定义积分值</td>
		<td>操作</td>
	</tr>
<!--
EOT;
$id=($page-1)*$db_perpage;
foreach($creditdb as $key => $value){
if($value[username] && $value[name]){
$id++;
print <<<EOT
-->
	<tr class="tr1 vt">
		<td class="td2">$id</td>
		<td class="td2">$value[username]</td>
		<td class="td2">$value[name]</td>
		<td class="td2">$value[value]</td>
		<td class="td2"><a title="编辑" href="$basename&action=edit&uid=$value[uid]">编辑</a></td>
	</tr>
<!--
EOT;
}}print <<<EOT
-->
</table>
</div>
<div class="mb10 cc">$pages</div>
<!--
EOT;
}elseif($action=='edit'){print <<<EOT
-->
<form action="$basename&" method="post">
<input type="hidden" name="action" value="edit">
<input type="hidden" name="step" value="2">
<input type="hidden" name="uid" value="$rt[uid]">
<h2 class="h1"><b>自定义积分管理</b></h2>
<div class="admin_table mb10">
<table width="100%" cellspacing="0" cellpadding="0">
	<tr class="tr1 vt">
		<td class="td1">用户名</td>
		<td class="td2">$rt[username]</td>
	</tr>
<!--
EOT;
foreach($_CREDITDB as $key => $value){print <<<EOT
-->
	<tr class="tr1 vt">
		<td class="td1">$value[0]</td>
		<td class="td2"><input class="input" type="text" name="creditdb[$key]" value="{$u_credit[$key]}"></td>
	</tr>
<!--
EOT;
}print <<<EOT
-->
</table>
</div>
<div class="tac mb10">
	<span class="btn"><span><button type="submit">提 交</button></span></span>
</div>
</form>
<!--
EOT;
}include_once PrintEot('adminbottom');
?>
-->