<?php
	!defined('DIRCMS_MANAGE') && exit('Access Denied!');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>广告位管理</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link rel="stylesheet" type="text/css" href="admin/template/css/style.css" />
<script type="text/javascript" src="images/js/jquery.min.js"></script>
<script src="images/js/check.func.js"></script>
<script language="javascript" type="text/javascript">
	$(document).ready(function(){
		checkForm(0);
	});
</script>
</head>
<body>
<div id="wrap">
	<div class="tab">
		<ul>
			<li><a href="?file=other&action=adspos">广告位管理</a></li>
			<li><a href="javascript:void(0);" class="on">添加广告位</a></li>			
		</ul>
	</div>
	<div class="main">
	<fieldset>
		<legend>操作提示</legend>
		1：广告位名称不能为空； 2：广告位价格应为数字；
	</fieldset>
	<form action="" method="post" name="myform">
	<input type="hidden" name="do_submit" value="1" />
	<input type="hidden" name="id" value="<?php echo $id;?>" />
	<table cellspacing="0" class="sub">
		<tr>
			<td width="80" align="right">广告位名称：</td>
			<td>
			<input type="text" name="info[name]" datatype="limit" value="<?php echo $result['name'];?>" min="2" max="25" size="25"/>
			</td>
		</tr>
		<tr>
			<td width="80" align="right">广告位模板：</td>
			<td>
			 <?php echo $tlpname_select;?>
			</td>
		</tr>
		<tr>
			<td align="right">广告位宽度：</td>
			<td>
			<input type="text" size="6" value="<?php echo $result['width'];?>" datatype="integer" name="info[width]" />像素
			</td>
		</tr>
		<tr>
			<td align="right">广告位高度：</td>
			<td>
			<input type="text" size="6" value="<?php echo $result['height'];?>" datatype="integer" name="info[height]" />像素
			</td>
		</tr>
		<tr>
			<td align="right">广告位价格：</td>
			<td>
			<input type="text" size="6" value="<?php echo $result['price'];?>" datatype="number" name="info[price]" />元/月
			</td>
		</tr>
		<tr>
			<td align="right">多个广告时：</td>
			<td>
			<input type="radio" class="radio" value="1" <?php echo $result['option']?'checked="checked"':'';?> name="info[option]" />全部列出
			<input type="radio" class="radio" value="0" <?php echo !$result['option']?'checked="checked"':'';?> name="info[option]" />随机列出一个
			</td>
		</tr>
		<tr>
			<td align="right">是否启用：</td>
			<td>
			<input type="radio" class="radio" value="1" <?php echo $result['ispassed']?'checked="checked"':'';?> name="info[ispassed]" />启用
			<input type="radio" class="radio" value="0" <?php echo !$result['ispassed']?'checked="checked"':'';?> name="info[ispassed]" />待审
			</td>
		</tr>
		<tr>
			<td width="80" align="right">广告位介绍：</td>
			<td>
			<textarea name="info[introduce]" cols="60" rows="5"><?php echo $result['introduce'];?></textarea> 
			</td>
		</tr>
		<tr class="bg2"><td></td><td><input type="button" class="button" onclick="doSubmit(this);" value="保存广告位" /> <input type="button" class="button" onclick="window.location.href='<?php echo ADMIN_FILE;?>?file=other&action=adspos'" value="取消返回" /></td></tr>
	</table>
	</form>

	</div>
</div>
</body>
</html>