<!--<?php print <<<EOT
-->
<meta http-equiv="Content-Type" content="text/html; charset=gbk" />
<style>
td {font-size: 9pt;line-height: 1.5;}
body {font-size: 9pt;line-height: 1.5;}
a:link { font-size: 9pt; color: #000000; text-decoration: none }
a:visited{ font-size: 9pt; color: #000000; text-decoration: none }
a:hover {font-size: 9pt;color: red}
</style>
<form action="lf_sx.php" method="POST" name="lform">
<input type="hidden" name="mode" value="update">
<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#A5D0F1">
  <tr>
    <td background="images/wbg.gif" bgcolor="#F0F3F8" colspan="10"><b>烧香记录管理</b></td>
  </tr>
  <tr bgcolor="#F0F3F8" height="30" align="center">
    <td width="43">ID</td>
	<td width="60">用户名</td>
    <td width="50">姓名</td>
    <td width="30">年龄</td>
	<td width="30">性别</td>
	<td width="80">地址</td>
	<td width="60">回向</td>
	<td width="60">时间</td>
	<td width="180">回向功德</td>
    <td width="20"><input type="checkbox" name="checkbox" value="Check All" onClick="CheckAll(this.form)"></td>
  </tr>
<!--
EOT;
if($sx_lists){
foreach($sx_lists as $lf){
$bgcolor =($bgcolor == '#FFFFFF')?'#F0F3F8':'#FFFFFF';
$lf[sxshijian] = get_datetime($lf[sxshijian]);
$fselected = ($lf[sxsex] == 'f')?"selected":"";
$mselected = ($lf[sxsex] == 'm')?"selected":"";
print <<<EOT
-->
  <tr onMouseOver="javascript:this.bgcolor='#FFFFCC'" onmouseout="javascript:this.bgcolor='$bgcolor'" bgcolor="$bgcolor" height="30" align="center">
    <td><a href="lf_sx.php?sxname=$lf[sxname]">$lf[sxid]</a></td>
	<td><a href="lf_sx.php?lfuid=$lf[uid]">$lf[username]</a></td>
	<td><INPUT type="text" size="6" name="POSTed_data[$lf[sxid]][sxname]" value="$lf[sxname]"></td>
    <td><INPUT type="text" size="3" name="POSTed_data[$lf[sxid]][sxage]" value="$lf[sxage]"></td>
	<td><select name="POSTed_data[$lf[sxid]][sxsex]">
	<option value=f $fselected>信女</option><option value=m $mselected>善男</option></select></td>
	<td><INPUT type="text" size="15" name="POSTed_data[$lf[sxid]][sxaddress]" value="$lf[sxaddress]"></td>
	<td>$lf[hxtitle] $lf[hxnum]</td>
	<td>$lf[sxshijian]<br /><a href="http://ip.chinaz.com/?IP=$lf[sxip]" target="_blank">$lf[sxip]</a></td>
	<td><textarea name="POSTed_data[$lf[sxid]][hxgd]" rows="5" cols="25">$lf[hxgd]</textarea></td>
    <td><INPUT type="checkbox" name="to_delete[$lf[sxid]]"></td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
  <tr>
    <td bgcolor="#FFFFFF" colspan="10">
<!--
EOT;
include ('resultspage.htm');
print <<<EOT
-->
	</td>
  </tr>
  <tr>
	<td colspan="10" bgcolor="#F0F3F8" height="30" align="right" style="padding-right:10px;">
	<input type="submit" value=" 更新 ">&nbsp;
	<input type='button' name='chkall' value='全 选' onclick='CheckAll(this.form)'>&nbsp;
	<input type="button" value="删除选中" onclick="if(confirm('您确定要删除选中的记录吗？'))document.lform.mode.value='delete'; document.lform.submit();">
	</td>
  </tr>
<!--
EOT;
}else{
print <<<EOT
-->
  <tr>
    <td colspan="10" height="60" style="padding-top:20px;" align="center" bgcolor="#FFFFFF">暂无记录</td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
</table>
</form>
<script language=javascript>
<!--
function CheckAll(form){
	for (var i=0;i<form.elements.length;i++){
		var e = form.elements[i];
		e.checked == true ? e.checked = false : e.checked = true;
	}
}
-->
</script>
<!--
EOT;
?>-->