<?php include template("admin/header") ?>

<script>
function insertMenu(){
	$("#before").before('<tr><td><input class="wd350" name="title[]" /></td><td><input class="wd350" name="url[]" /></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=wordad&in=edit&ts=do">
<table  cellpadding="0" cellspacing="0">

<tr class="old"><td width="150">广告文字</td><td>广告URL</td></tr>
<?php foreach($arrData as $item){ ?>
<tr><td><input class="wd350" name="title[]" value="<?php echo $item['title'] ?>" /></td><td><input class="wd350" name="url[]" value="<?php echo $item['url'] ?>" /></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") ?>