<tr style="display:none;">
	<td colspan="5">
	</td>
</tr>
<!--{foreach from=$adlist item=data name=foo}-->

<tr onMouseOver="chgTrColor(this);" onMouseOut="chgTrColor(this);">
	<td><a title="查看详情" href="javascript:topshowDetail(adlist[<!--{$data.id}-->])"><!--{$data.adName}--></a></td>
	<td><!--{$data.balanceTypeName}--></td>
	<td><!--{$data.exportPrice|string_format:"%.3f"}--></td>
	<td style="color:#ccc;"><!--{$data.adLevel}--></td>
	<td>
		<!--{if $data.adApplyStatus eq 0}-->未申请<!--{/if}-->
		<!--{if $data.adApplyStatus eq 1}--><span style="color:#fff; background:green; padding:2px;">已申请</span><!--{/if}-->
		<!--{if $data.adApplyStatus eq 2}--><span style="color:#fff; background:#ff9600; padding:2px;">待审核..</span><!--{/if}-->
		<!--{if $data.adApplyStatus eq 7}--><span style="color:#fff; background:#ccc; padding:2px;">已暂停</span><!--{/if}-->
		<!--{if $data.adApplyStatus eq 8}--><span style="color:#fff; background:red; padding:2px;">审核未通过</span><!--{/if}-->
	</td>	
	<td>
		<!--{if $data.adApplyStatus eq 1}-->
			<!--{if $data.import_status eq 0}-->
				<a href="javascript:topimportad('<!--{$data.id}-->')">导入</a>
				<!--{else}-->
				已导入
			<!--{/if}-->
		<!--{/if}-->
		<!--{if $data.adApplyStatus !=1}-->
			<!--{if $data.adApplyStatus eq 7||$data.adApplyStatus eq 2}-->
				申请
				<!--{else}-->
				<!--{if $data.webMasterCheck==0}-->
					<a href="javascript:topapplyAdWithoutAudit(<!--{$data.id}-->);">申请</a>
				<!--{/if}-->
				<!--{if $data.webMasterCheck !=0}-->
					<!--{if $web_master_check == 0}-->
						<a href="javascript:topauditSite(<!--{$data.id}-->);">申请</a>
					<!--{else}-->
						<a href="javascript:topapplyAdWithAudit(<!--{$data.id}-->);">申请</a>
					<!--{/if}-->										
				<!--{/if}-->
			<!--{/if}-->
		<!--{/if}-->
	</td>
	<td><!--{$data.appraise}--></td>
</tr>

<tr style="display:none;">
	<td colspan="5">
		<script>
			var o = {};
			o.id = <!--{$data.id}-->;
			o.adName = "<!--{$data.adName}-->";
			o.adLanguage = "<!--{$data.adLanguage}-->";
			o.adDescription = "<!--{$data.adDescription}-->";
			o.imageUrl = "<!--{$data.imageUrl}-->";
			o.exportPrice = "<!--{$data.exportPrice|string_format:'%.3f'}-->";
			o.balanceTypeName = "<!--{$data.balanceTypeName}-->";
			o.adApplyStatus = "<!--{$data.adApplyStatus}-->";
			o.caseTypeId = "<!--{$data.caseTypeId}-->";
			o.webMasterCheck = "<!--{$data.webMasterCheck}-->";
			o.memo = "<!--{$data.memo}-->";
			o.adLevel = '<!--{$data.adLevel}-->';
			o.appraise = "<!--{$data.appraise}-->";
			adlist[<!--{$data.id}-->] = o;
		</script>
	</td>
</tr>

<!--{foreachelse}-->
<tr><td colspan="7" style="padding:30px;text-align:center;">广告已全部申请，你可以去<a href="index.php?r=Uuadv.adlist">优告广告</a>查看广告状态信息，或者<a href="index.php?r=Ad.adlist&menu_id=51">点这里</a>管理你的网站广告吧!</td></tr>
<!--{/foreach}-->