<!--
<?php
print<<<EOT
-->  
<SCRIPT>
function foreColor_font(obj)
{
  var arr = showModalDialog('images/selcolor.htm', '', 'dialogWidth:18.5em; dialogHeight:17.5em; status:0');
  if (arr != null) { obj.value=arr;obj.style.color=arr;}
  else  obj.focus();
  
}
</SCRIPT>
<table width=100% cellspacing=1 cellpadding=3  class="tablewidth">
  <form name="formlist" method="post" action="index.php?lfj=$lfj&action=$atc">
    <tr> 
      <td class="head" bgcolor="#EAEAEA" colspan="2"><font color="#FFFFFF">菜單管理</font></td>
    </tr>
    <!--
EOT;
if($rsdb[fid]||(!$rsdb&&!$addsort)){print <<<EOT
-->
    <tr> 
      <td bgcolor=#FFFFFF align="left" width="22%">所屬分類</td>
      <td bgcolor=#FFFFFF align="left" width="78%">$selected</td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
    <tr> 
      <td bgcolor=#FFFFFF align="left" width="22%">名稱 </td>
      <td bgcolor=#FFFFFF align="left" width="78%"> 
        <input type="text" name="postdb[name]" value="$rsdb[name]" size="40" id="Mname">
      </td>
    </tr>
    <!--
EOT;
if($rsdb[fid]||(!$rsdb&&!$addsort)){print <<<EOT
-->
    <tr> 
      <td bgcolor=#FFFFFF align="left" width="22%">鏈接地址</td>
      <td bgcolor=#FFFFFF align="left" width="78%"> 
        <input type="text" name="postdb[linkurl]" value="$rsdb[linkurl]" size="50" id="Mlinkurl">
      </td>
    </tr>
    <tr> 
      <td bgcolor=#FFFFFF align="left" width="22%">字體顏色</td>
      <td bgcolor=#FFFFFF align="left" width="78%"> 
        <input style="color:$rsdb[color];" type="text" name="postdb[color]" value="$rsdb[color]" onclick="foreColor_font(this);">
      </td>
    </tr>    
    <tr>
      <td bgcolor=#FFFFFF align="left" width="22%">是否新開窗口</td>
      <td bgcolor=#FFFFFF align="left" width="78%"> 
        <input type="radio" name="postdb[target]" value="0" $target[0]>
        原窗口打開
        <input type="radio" name="postdb[target]" value="1" $target[1]>
        新開窗口打開</td>
    </tr>   
    <!--
EOT;
}print <<<EOT
-->
    <tr> 
      <td bgcolor=#FFFFFF align="left" width="22%">排序值</td>
      <td bgcolor=#FFFFFF align="left" width="78%"> 
        <input type="text" name="postdb[list]" value="$rsdb[list]" maxlength="4" size="5">
        (數字) </td>
    </tr>
    <tr> 
      <td bgcolor=#FFFFFF align="left" width="22%">&nbsp;</td>
      <td bgcolor=#FFFFFF align="left" width="78%"> 
        <input type="submit" name="Submit" value="提交">
        <input type="hidden" name="id" value="$id">
        <input type="hidden" name="gid" value="$gid">
        <input type="hidden" name="addsort" value="$addsort">
      </td>
    </tr>
  </form>
</table> 
<!--
EOT;
?>
-->
