<!--<?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>
<table width="100%"  border="0" cellPadding="4" cellSpacing="1" bgcolor="#A5D0F1">
  <tr>
    <td background="images/wbg.gif" bgcolor="#F0F3F8" colspan="4"><b>核心设置</b></td>
  </tr>
  <tr height="30" style="padding-left:5px;" bgcolor="#FFFFFF"> 
    <td><IMG src="images/rarrow.gif" border="0">&nbsp;<a href="ng_config.php?option=General">网站核心设置</a></td>
    <td><IMG src="images/rarrow.gif" border="0">&nbsp;<a href="ng_config.php?option=tongji">更新统计信息</a></td>
    <td><IMG src="images/rarrow.gif" border="0">&nbsp;<a href="ng_config.php?option=seo">搜索引擎优化</a></td>
	<td><IMG src="images/rarrow.gif" border="0">&nbsp;<a href="ng_config.php?option=gongde">奖励功德设置</a></td>
  </tr>
</table>
<br />
<form action="ng_config.php" method="POST" name="processform">
<input type="hidden" name="option" value="$option">
<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#A5D0F1">
  <tr>
    <td background="images/wbg.gif" bgcolor="#F0F3F8" colspan="2"><b>$option</b></td>
  </tr>
<!--
EOT;
if($ng_config){
foreach($ng_config as $cg){
$bgcolor =($bgcolor == '#FFFFFF')?'#F0F3F8':'#FFFFFF';
print <<<EOT
-->
  <tr bgcolor="$bgcolor" height="40">
    <td width="300" bgcolor="#F0F3F8">$cg[comment]</td>
    <td width="380">
<!--
EOT;
if($cg[name] == 'reg_membership'){
print <<<EOT
-->
<SELECT name="cfg[$cg[name]]">
<OPTION value="" selected>普通会员</OPTION>
<!--
EOT;
foreach($membership_levels as $ml){
$mlselected =($cg[value] == $ml[membership])?"selected":"";
print <<<EOT
-->
<OPTION value="$ml[membership]" $mlselected>$ml[membership]</OPTION>
<!--
EOT;
}print <<<EOT
-->
</SELECT>

<!--
EOT;
}elseif($cg[type] == "text"){
print <<<EOT
-->
<INPUT type="text" size="30" name="cfg[$cg[name]]" value="$cg[value]">
<!--
EOT;
}elseif($cg[type] == "checkbox"){
$ychecked = "";
$nchecked = '';
if($cg[value] == "Y"){
$ychecked = "checked";
}else{
$nchecked = "checked";
}print <<<EOT
-->
<INPUT id="cfg[$cg[name]]" type="radio" name="cfg[$cg[name]]" value="Y" $ychecked />是
<INPUT id="cfg[$cg[name]]" type="radio" name="cfg[$cg[name]]" value="N" $nchecked />否
<!--
EOT;
}elseif($cg[type] == "textarea"){
print <<<EOT
-->
<TEXTAREA name="cfg[$cg[name]]" cols="60" rows="6">$cg[value]</TEXTAREA>
<!--
EOT;
}print <<<EOT
-->
    </td>
  </tr>
<!--
EOT;
}}print <<<EOT
-->
  <tr>
    <td colspan="2" align="center" bgcolor="#F0F3F8"><INPUT type="submit" value=" 保存 "></td>
  </tr>
</table>
</FORM>
<!--
EOT;
?>-->