<!--<?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">
<FORM action="ng_gao.php" method="POST" name="nglogoform" enctype="multipart/form-data">
<INPUT type="hidden" name="mode" value="update_logo">
  <tr>
    <td background="images/wbg.gif" bgcolor="#F0F3F8" colspan="2"><b>网站店标管理</b></td>
  </tr>
  <tr bgcolor = "#FFFFFF" height="25">
    <td width="150">目前店标</td>
    <td><img src="../$netgou[netgou_logo]" border="0" /></td> 
  </tr>
  <tr bgcolor="#F0F3F8">
    <td>添加新店标</td>
    <td><INPUT type="file" name="title" size="50">&nbsp;<INPUT type="submit" value="更新"></td>
  </tr>
</FORM>
</table>
<br />
<FORM action="ng_gao.php" method="POST" name="nggaoform">
<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="7"><b>网站广告管理</b></td>
  </tr>
  <tr bgcolor="#F0F3F8" height="25">
    <td width="30">排序</td>
    <td width="100">广告位置</td>
    <td width="150">广告图片</td>
    <td width="150">链接地址</td>
    <td width="100">新窗口</td>
    <td width="30">状态</td>
    <td width="30">删除</td>
  </tr>
<!--
EOT;
if($ng_gao){
foreach($ng_gao as $sb){
$bgcolor =($bgcolor == '#FFFFFF')?'#F0F3F8':'#FFFFFF';
$oselected = ($sb[newwin] == "O")?"selected":"";
$nselected = ($sb[newwin] == "N")?"selected":"";
$ychecked = ($sb[status] == "Y")?"checked":"";

$acselected1 = ($sb[weizhi] == 1)?"selected":"";
$acselected2 = ($sb[weizhi] == 2)?"selected":"";
$acselected3 = ($sb[weizhi] == 3)?"selected":"";

$acselected11 = ($sb[weizhi] == 11)?"selected":"";
$acselected12 = ($sb[weizhi] == 12)?"selected":"";
$acselected13 = ($sb[weizhi] == 13)?"selected":"";
$acselected14 = ($sb[weizhi] == 14)?"selected":"";
$acselected15 = ($sb[weizhi] == 15)?"selected":"";

$acselected21 = ($sb[weizhi] == 21)?"selected":"";
$acselected22 = ($sb[weizhi] == 22)?"selected":"";
$acselected23 = ($sb[weizhi] == 23)?"selected":"";
$acselected24 = ($sb[weizhi] == 24)?"selected":"";
$acselected25 = ($sb[weizhi] == 25)?"selected":"";

$acselected31 = ($sb[weizhi] == 31)?"selected":"";
$acselected32 = ($sb[weizhi] == 32)?"selected":"";
$acselected33 = ($sb[weizhi] == 33)?"selected":"";
$acselected34 = ($sb[weizhi] == 34)?"selected":"";
$acselected35 = ($sb[weizhi] == 35)?"selected":"";
print <<<EOT
-->
  <tr  onMouseOver="javascript:this.bgcolor='#FFFFCC'" onmouseout="javascript:this.bgcolor='$bgcolor'" bgcolor="$bgcolor" height="30">
    <td><INPUT type="text" size="3" maxlength="5" name="POSTed_data[$sb[tid]][orderby]" value="$sb[orderby]"></td>
    <td><select name="POSTed_data[$sb[tid]][weizhi]">
<OPTION value="1" $acselected1>头部广告</OPTION>
<OPTION value="2" $acselected2>横幅广告</OPTION>
<OPTION value="3" $acselected3>页脚广告</OPTION>

<OPTION value="31" $acselected31>滚动广告一</OPTION>
<OPTION value="32" $acselected32>滚动广告二</OPTION>
<OPTION value="33" $acselected33>滚动广告三</OPTION>
<OPTION value="34" $acselected34>滚动广告四</OPTION>
<OPTION value="35" $acselected35>滚动广告五</OPTION>

<OPTION value="11" $acselected11>左边广告一</OPTION>
<OPTION value="12" $acselected12>左边广告二</OPTION>
<OPTION value="13" $acselected13>左边广告三</OPTION>
<OPTION value="14" $acselected14>左边广告四</OPTION>
<OPTION value="15" $acselected15>左边广告五</OPTION>

<OPTION value="21" $acselected21>右边广告一</OPTION>
<OPTION value="22" $acselected22>右边广告二</OPTION>
<OPTION value="23" $acselected23>右边广告三</OPTION>
<OPTION value="24" $acselected24>右边广告四</OPTION>
<OPTION value="25" $acselected25>右边广告五</OPTION>
</select></td>
    <td><INPUT type="text" size="30" name="POSTed_data[$sb[tid]][title]" value="$sb[title]"></td>
    <td><INPUT type="text" size="30" 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_gao.php?mode=del&tid=$sb[tid]">删除</a></td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
  <tr>
	<td colspan="7" bgcolor="#F0F3F8"><INPUT type="submit" value="更新"></td>
  </tr>
<!--
EOT;
}else{
print <<<EOT
-->
  <tr>
    <td colspan="7" align="center" bgcolor="#FFFFFF">没有广告</td>
  </tr>
<!--
EOT;
}print <<<EOT
-->
</table>
</FORM>

<FORM action="ng_gao.php" method="POST" name="nggaoform1">
<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="6"><b>添加新广告</b></td>
  </tr>
  <tr bgcolor="#F0F3F8" height="25">
    <td width="50">排序</td>
    <td width="100">广告位置</td>
    <td width="150">广告图片</td>
    <td width="150">链接地址</td>
    <td width="100">新窗口</td>
    <td width="30">状态</td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td><INPUT type="text" size="3" maxlength="5" name="orderby"></td>
    <td><select name="weizhi">
<OPTION value="1">头部广告</OPTION>
<OPTION value="2" selected>横幅广告</OPTION>
<OPTION value="3">页脚广告</OPTION>

<OPTION value="31">滚动广告一</OPTION>
<OPTION value="32">滚动广告二</OPTION>
<OPTION value="33">滚动广告三</OPTION>
<OPTION value="34">滚动广告四</OPTION>
<OPTION value="35">滚动广告五</OPTION>

<OPTION value="11">左边广告一</OPTION>
<OPTION value="12">左边广告二</OPTION>
<OPTION value="13">左边广告三</OPTION>
<OPTION value="14">左边广告四</OPTION>
<OPTION value="15">左边广告五</OPTION>

<OPTION value="21">右边广告一</OPTION>
<OPTION value="22">右边广告二</OPTION>
<OPTION value="23">右边广告三</OPTION>
<OPTION value="24">右边广告四</OPTION>
<OPTION value="25">右边广告五</OPTION>
</select></td>
    <td><INPUT type="file" size="30" name="title"></td>
    <td><INPUT type="text" size="30" 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="6" bgcolor="#F0F3F8"><INPUT type="submit" value="添加"></td>
  </tr>
</table>
</FORM>
<!--
EOT;
?>-->