<!--
<?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>
<form name="formlist" method="post" action="index.php?lfj=$lfj&action=$atc">
<div class="MainContainers">
  <div class="Header"><span class="tag">菜单管理</span><span class="more">&gt;&gt;</span></div>
  <div class="Conter">
    <table class="FormTable">
      <td class="tdL">所属用户组</td>
      <td class="tdR">$select_group</td>
    </tr>
    <!--
EOT;
if($rsdb[fid]||(!$rsdb&&!$addsort)){print <<<EOT
-->
    <tr> 
      <td class="tdL">所属分类</td>
      <td class="tdR">$selected</td>
    </tr>
    <!--
EOT;
}print <<<EOT
-->
    <tr> 
      <td class="tdL">名称 </td>
      <td class="tdR"> 
        <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 class="tdL">链接地址</td>
      <td class="tdR"> 
        <input type="text" name="postdb[linkurl]" value="$rsdb[linkurl]" size="50" id="Mlinkurl">
      </td>
    </tr>
    <tr> 
      <td class="tdL">字体颜色</td>
      <td class="tdR"> 
        <input style="color:$rsdb[color];" type="text" name="postdb[color]" value="$rsdb[color]" onclick="foreColor_font(this);">
      </td>
    </tr>    
    <tr>
      <td class="tdL">是否新开窗口</td>
      <td class="tdR"> 
        <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 class="tdL">排序值</td>
      <td class="tdR"> 
        <input type="text" name="postdb[list]" value="$rsdb[list]" maxlength="4" size="5">
        (数字) </td>
    </tr><tr>
      <td class="tdL">所属会员类型</td>
      <td class="tdR"> 
        <input type="radio" name="postdb[ifcompany]" value="0" $ifcompany[0]>
        个人用户 
        <input type="radio" name="postdb[ifcompany]" value="1" $ifcompany[1]>
        企业用户</td>
    </tr>

  </table>
    <div class='submits'>
        <input type="submit" name="Submit" value="提交">
        <input type="hidden" name="id" value="$id">
        <input type="hidden" name="addsort" value="$addsort">      
    </div>
</form> 
<!--
EOT;
?>
-->
