<!--
<?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>

<div class="MainContainers">
  <div class="Header"><span class="tag">管理员后台菜单添加、修改</span><span class="more">&gt;&gt;</span></div>
  <div class="Conter">


        <form name="formlist" method="post" action="index.php?lfj=$lfj&action=$atc">
        <table class="FormTable">
    <!--
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'> 
                <textarea name="postdb[name]" cols="90" id="Mname" rows="5">$rsdb[name]</textarea>
              </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">
                <!-- (<a href="#" onclick="window.open('index.php?lfj=adminguidemenu&job=sysmenu&gid=$gid','','width=650,height=500,scrollbars=yes')"><font color="#FF0000">选择系统功能</font></a>)  -->
              </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>    
            <!--
EOT;
if($rsdb[fid]){print <<<EOT
-->
            <tr>
              <td class='tdL'>排板样式 </td>
              <td class='tdR'> 
                <input type="radio" name="postdb[iftier]" value="0" $iftier[0]>
                独立一行 
                <input type="radio" name="postdb[iftier]" value="1" $iftier[1]>
                与前一链接菜单同一行 </td>
            </tr>   
     <!--
EOT;
}print <<<EOT
-->
    <!--
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>
          </table>
          <div class='submits'>
                <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">            
          </div>
        </form> 
  </div>
</div>

<!--
EOT;
?>
-->
<SCRIPT LANGUAGE="JavaScript">
<!--
function putmenu(link,name){
	get_obj('Mlinkurl').value=link;
	get_obj('Mname').value=name;
}
//-->
</SCRIPT>