<?php include template("admin/header");?>
<!--公用的JS-->
<script src="<?php echo SITE_URL; ?>public/js/jquery.min.js" type="text/javascript"></script>
<script>
function insertMenu(){
	$("#before").before('<tr><td><input name="navname[]" /></td><td><input name="navurl[]" style="width:350px;"  /></td></tr>');
}
</script>

<!--main-->
<div class="midder">

<h2>头部导航设置</h2>
<?php include pubTemplate("plugin_menu");?>

<form method="POST" action="<?php echo SITE_URL; ?>index.php?app=pubs&ac=plugin&plugin=navs&in=edit&ts=do">
<table  cellpadding="0" cellspacing="0">

<tr><td width="150">链接名字</td><td>链接URL</td></tr>
<?php foreach($arrNav as $item){ ?>
<tr><td><input name="navname[]" value="<?php echo $item['navname'] ?>" /></td><td><input name="navurl[]" style="width:350px;" value="<?php echo $item['navurl'] ?>" /></td></tr>
<?php } ?>

<tr id="before"><td><input type="submit" value="提 交" /></td><td><a href="javascript:void('0');" onclick="insertMenu();">点我增加链接</a>（说明：如需删除某一项，请将要删除的某项清空提交即可。）</td></tr>

</table>
</form>
</div>

<?php include template("admin/footer");?>