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

</script>

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

<h2>友情连接设置</h2>
<?php include template("admin/plugin_menu");?>

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

<tr><td width="150">链接名字</td><td>链接URL</td></tr>
<?php foreach($arrLink as $item){ ?>
<tr><td><input class="input-text" name="linkname[]" value="<?php echo $item['linkname'] ?>" /></td><td><input class="input-text" name="linkurl[]" style="width:350px;" value="<?php echo $item['linkurl'] ?>" /></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");?>