<!--
<?php
print<<<EOT
-->

<SCRIPT LANGUAGE="JavaScript">
<!--
function postdo(va){
	document.form_work.jobs.value=va
	document.form_work.submit();
}
function CheckAll(va){
	form=document.form_work
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		if(va=='all'){
			e.checked = true;
		}else{
			e.checked == true ? e.checked = false : e.checked = true;
		}
	}
}
//-->
</SCRIPT> 
<div class="MainContainers">
  <div class="Header"><span class="tag">{$headhtml}</span><span class="more">&gt;&gt;</span></div>
  <div class="Conter">
    <!-- <table class="ListTable"> -->

<!--
EOT;
if($job=="list"){
print <<<EOT
-->
<form name="form_work" method="post" action="index.php?lfj=$lfj&job=delall">

        <table class="ListTable">
	<tr>
		<th width="10%">ID</th>
		<th width="15%">用户名</th>
		<th width="15%">{$webdb[MoneyName]}数({$webdb[MoneyDW]})</th>
		<th width="20%">项目</th>
		<th width="10%">日期</th>
		<th width="10%">归属城市</th>
		<th width="10%">查看</th>
		<th width="10%">删除</th>
	</tr>
<!--
EOT;
foreach($listdb AS $key=>$rs){
print <<<EOT
-->
	<tr>
		<td><input type="checkbox" name="listdb[{$rs[id]}]" value="$rs[id]">{$rs[id]}</td>
		<td> <a href='?lfj=$lfj&job=list&uid={$rs[uid]}'>{$rs[username]}</a></td>
		<td>{$rs[money]}</td>
		<td class='Left'> {$rs[about]}</td>
		<td>{$rs[posttime]}</td>
		<td>{$city_DB[name][$rs[city_id]]}</td>
		<td><a href='?lfj=moneylog&job=view&id={$rs[id]}'>查看</a></td>
		<td><a href='?lfj=moneylog&job=del&id={$rs[id]}&page=$page' title='点击删除' class='del'>删除</a></td>
	</tr>

<!--
EOT;
}
print <<<EOT
-->
	</table>
<!--
EOT;
if($showpage){
print <<<EOT
-->
	<div class="m-showpage">$showpage</div>
<!--
EOT;
}
print <<<EOT
-->
	<div class='submits'>
	          <input type="button" onclick="CheckAll('all')" name="Submit2" value="全选" />
	          <input type="button" onClick='CheckAll()' name="Submit2" value="反选" /> 
	          <input type="submit" name="button" id="button" value="批量删除" />
	</div>
        </form>
<!--
EOT;
}elseif($job=="view"){
print <<<EOT
-->
    <table class="FormTable">
	<tr>
		<td class='tdL'>用户名:</td>
		<td class='tdR'> {$rsdb[username]}</td>
	</tr>
	<tr>
		<td class='tdL'>{$webdb[MoneyName]}数({$webdb[MoneyDW]}):</td>
		<td class='tdR'> {$rsdb[money]}</td>
	</tr>
	<tr>
		<td class='tdL'>项目:</td>
		<td class='tdR'> {$rsdb[about]}</td>
	</tr>
	<tr>
		<td class='tdL'>日期:</td>
		<td class='tdR'>{$rsdb[posttime]}</td>
	</tr>
    </table>

<!--
EOT;
}
print <<<EOT
-->
</div>
</div>
<!--
EOT;
?>
-->
 