<!--<?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="dengji.php" method="POST" name="nglinksform">
<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="6"><b>等级管理</b></td>
  </tr>
  <tr bgcolor="#F0F3F8" height="25">
    <td width="50">排序</td>
    <td width="100">等级名称</td>
    <td width="300">等级说明</td>
    <td width="100">所需积分</td>
    <td>状态</td>
    <td>删除</td>
  </tr>
<!--
EOT;
if($dengji){
foreach($dengji as $sb){
$bgcolor =($bgcolor == '#FFFFFF')?'#F0F3F8':'#FFFFFF';
$oselected = ($sb[djgd] == "O")?"selected":"";
$nselected = ($sb[djgd] == "N")?"selected":"";
$ychecked = ($sb[djstatus] == "Y")?"checked":"";
print <<<EOT
-->
  <tr bgcolor="$bgcolor" height="25">
    <td><INPUT type="text" size="3" maxlength="5" name="POSTed_data[$sb[djid]][orderby]" value="$sb[orderby]"></td>
    <td><INPUT type="text" size="25" name="POSTed_data[$sb[djid]][djtitle]" value="$sb[djtitle]"></td>
    <td><INPUT type="text" size="45" name="POSTed_data[$sb[djid]][djintro]" value="$sb[djintro]"></td>
    <td><INPUT type="text" size="5" name="POSTed_data[$sb[djid]][djgd]" value="$sb[djgd]"></td>
    <td><INPUT type="checkbox" name="POSTed_data[$sb[djid]][djstatus]" $ychecked></td>
    <td><a href="dengji.php?mode=del&djid=$sb[djid]">删除</a></td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
  <tr>
	<td colspan="6" bgcolor="#F0F3F8"><INPUT type="submit" value="更新"></td>
  </tr>
<!--
EOT;
}else{
print <<<EOT
-->
  <tr>
    <td colspan="6" align="center" bgcolor="#FFFFFF">没有等级</td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
</table>
</FORM>

<FORM action="dengji.php" method="POST" name="nglinksform1">
<INPUT type="hidden" name="mode" value="add">
<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#A5D0F1">
  <tr>
    <td background="images/wbg.gif" bgcolor="#F0F3F8" colspan="5"><b>添加新等级</b></td>
  </tr>
  <tr bgcolor="#F0F3F8" height="25">
    <td width="50">排序</td>
    <td width="100">等级名称</td>
    <td width="280">等级介绍</td>
    <td width="150">所需积分</td>
    <td>状态</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td><INPUT type="text" size="3" maxlength="5" name="orderby"></td>
    <td><INPUT type="text" size="25" name="djtitle"></td>
    <td><INPUT type="text" size="45" name="djintro" value=""></td>
    <td><INPUT type="text" size="5" name="djgd" value=""></td>
	<td><INPUT type="checkbox" name="djstatus" value="Y" checked></td>
  </tr>
  <tr>
	<td colspan="5" bgcolor="#F0F3F8"><INPUT type="submit" value="添加"></td>
  </tr>
</table>
</FORM>
<!--
EOT;
?>-->