<table cellpadding="0" cellspacing="0" class="adminform">
	<tr>
    	<th>系统内容</th>
    </tr>
    <tr>
    	<td><select name="c" onchange="locaurl(this)">
        <option value="">请选择
        <?php foreach($alllist as $key=>$li){?>
        <option value="<?=$key?>"><?=$li['name']?>
        <?php }?>
        </select></td>
    </tr>
    <tr>
    	<th>名称</th>
    </tr>
    <tr>
    	<td><input type="text" class="text" name="nav[name]" value="<?=@$nav->name?>" id='name' dataType="Require" msg="名称不能为空"/></td>
    </tr>
    <tr>
    	<th>排序</th>
    </tr>
    <tr>
    	<td><input type="text" class="text" name="nav[order]" value="<?=@$nav->order?$nav->order:0?>"   dataType="Number" msg="排序值只能是正整数"/></td>
    </tr>
    <tr>
    	<th>连接地址</th>
    </tr>
    <tr>
    	<td><input type="text" class="text" name="nav[url]" value="<?=@$nav->url?>" id="url"  dataType="Require" msg="连接地址不能为空" /></td>
    </tr>
    <tr>
    	<th>是否显示</th>
    </tr>
    <tr>
    	<td>
        <input type="radio" name="nav[enabled]" value="1"  <?php if(@$nav->enabled==1){?>checked="checked"<?php }?> />显示
        <input type="radio" name="nav[enabled]" value="0"  <?php if(@$nav->enabled==0){?>checked="checked"<?php }?> />不显示
        </td>
    </tr>
    <tr>
    	<th>是否新窗口</th>
    </tr>
    <tr>
    	<td>
        <input type="radio" name="nav[is_target]" value="1"  <?php if(@$nav->is_target==1){?>checked="checked"<?php }?>/>是
        <input type="radio" name="nav[is_target]" value="0"  <?php if(@$nav->is_target==0){?>checked="checked"<?php }?> />否是
        </td>
    </tr>
    <tr>
    	<th>显示位置</th>
    </tr>
    <tr>
    	<td>
        <input type="radio" name="nav[position]" value="top"  <?php if(@$nav->position=="top"){?>checked="checked"<?php }?>/>上部
        <input type="radio" name="nav[position]" value="middle"  <?php if(@$nav->position=="middle"){?>checked="checked"<?php }?>/>中部
        <input type="radio" name="nav[position]" value="bottom"  <?php if(@$nav->position=="bottom"){?>checked="checked"<?php }?>/>下部
        </td>
    </tr>
</table>
<div>
<input type="hidden" name="navid" value="<?=@$nav->navid?>" />
<input type='submit' name='subm' value="提交" class='button'>
</div>
<script language='javascript'>
    var secl    =   new Object;
    //secl        =   new Array();
    <?php foreach($alllist2 as $key=>$li){?>
    secl[<?=$key?>]      ={'url':"<?=$li['url']?>",'name':"<?=$li['name']?>"};
    <?php }?>
    function locaurl(obj){
        var li =   $(obj).attr('value');
        $("#url").val(secl[li].url);
        $("#name").val(secl[li].name);
    }
</script>