<!--<?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="ng_bottom.php" method="POST" name="ngbottomform">
<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($ng_bottom){
foreach($ng_bottom as $sb){
$bgcolor =($bgcolor == '#FFFFFF')?'#F0F3F8':'#FFFFFF';
$oselected = ($sb[newwin] == "O")?"selected":"";
$nselected = ($sb[newwin] == "N")?"selected":"";
$ychecked = ($sb[status] == "Y")?"checked":"";
print <<<EOT
-->
  <tr bgcolor="$bgcolor" height="25">
    <td><INPUT type="text" size="3" maxlength="5" name="POSTed_data[$sb[tid]][orderby]" value="$sb[orderby]"></td>
    <td><INPUT type="text" size="25" name="POSTed_data[$sb[tid]][title]" value="$sb[title]"></td>
    <td><INPUT type="text" size="45" name="POSTed_data[$sb[tid]][intro]" value="$sb[intro]"></td>
    <td><select name="POSTed_data[$sb[tid]][newwin]">
<OPTION value="O" $oselected>原窗口</OPTION>
<OPTION value="N" $nselected>新窗口</OPTION>
</select></td>
    <td><INPUT type="checkbox" name="POSTed_data[$sb[tid]][status]" $ychecked></td>
    <td><a href="ng_bottom.php?mode=del&tid=$sb[tid]">删除</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="ng_bottom.php" method="POST" name="ngbottomform1">
<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="title"></td>
    <td><INPUT type="text" size="45" name="intro" value="http://"></td>
    <td><select name="newwin"><OPTION value="O">原窗口</OPTION>
<OPTION value="N" selected="selected">新窗口</OPTION></select></td>
	<td><INPUT type="checkbox" name="status" value="Y" checked></td>
  </tr>
  <tr>
	<td colspan="5" bgcolor="#F0F3F8"><INPUT type="submit" value="添加"></td>
  </tr>
</table>
</FORM>
<!--
EOT;
?>-->