<!--{include file="admin/header.tpl"}-->
<form id="editForm" name="editForm" method="post" action="index.php?action=save" onsubmit="return validator(this)">
	<input type="hidden" name="id" value="<!--{$dataInfo.id}-->">
    <table class="table_form" cellpadding="2" cellspacing="1">
    	<caption>添加广告位</caption>
    	<tr>
        	<th width="17%">广告位名称：</th>
        	<td><input name="place_name" type="text" id="place_name" size="25" valid="required" errmsg="名称必填" value="<!--{$dataInfo.place_name}-->"  /></td>
        </tr>
    	<tr>
        	<th width="17%">选择模板：</th>
        	<td><select name="template">
        		<option value="single" <!--{if $dataInfo.template=='single'}-->selected<!--{/if}-->>单张展示</option>
        		<option value="flashBox" <!--{if $dataInfo.template=='flashBox'}-->selected<!--{/if}-->>Flash滚动展示</option>
        		<option value="picShow" <!--{if $dataInfo.template=='picShow'}-->selected<!--{/if}-->>图片展示</option>
        	</select></td>
        </tr>
        <tr>
        	<th width="17%">广告介绍：</th>
        	<td><textarea name="introduce" rows="5" style="padding:6px; width:98%; line-height:17px;"/><!--{$dataInfo.introduce}--></textarea></td>
        </tr>
        <tr>
        	<th width="17%">长宽：</th>
        	<td><input name="width" type="text" id="width" size="5" value="<!--{$dataInfo.ads_width}-->" />px * <input name="height" type="text" id="height" size="5" value="<!--{$dataInfo.ads_height}-->" />px</td>
        </tr>
        <tr>
        	<th width="17%">抽取方式：</th>
        	<td><select name="option">
        		<option value="1" <!--{if $dataInfo.ads_option==1}-->selected<!--{/if}-->>最后发表的项目</option>
        		<option value="2" <!--{if $dataInfo.ads_option==2}-->selected<!--{/if}-->>全部项目</option>
        		<option value="3" <!--{if $dataInfo.ads_option==3}-->selected<!--{/if}-->>随机抽取一个</option>	
        	</select>
        	</td>
        </tr>
        <tr>
        	<td></td>
        	<td><input name="Submit" type="button" value=" 提交 " onclick="javascript:if (validator(document.editForm)) document.editForm.submit();" ></td>
        </tr>
    </table>
</form>
<!--{include file="admin/footer.tpl"}-->