{if $full_page}
{include file="page_header.htm"}
{insert_scripts files="../js/utils.js,listtable.js"}
<form method="post" action="" name="listForm">
<div class="list-div" id="listDiv">
{/if}
<table width="100%" cellspacing="0" cellpadding="0" class="list-table" {if $smarty.foreach.language.index>0} style="display:none;border-top:1px #d6dfe7 solid;"{else}style="border-top:1px #d6dfe7 solid;"{/if} id="language_{$list.language_id}-table">
    <tr class="thead">
        <th align="left" width="20%">广告名称</th>
        <th width="15%" align="left">语言</th>
        <th width="15%">显示状态</th>
        <th width="10%">排序</th>
        <th width="20%" align="center">添加日期</th>
        <th width="10%" align="left">操作</th>
    </tr>
	{foreach from=$ad_list item=ad}
        <tr>
        <td class="first-cell">
        {if $ad.ad_file}
        	<a href="#" title="{$ad.ad_file}">{$ad.img} {$ad.name}</a>
        {else}
        	{$ad.img} {$ad.name}</span>
        {/if}       
        </td>
        <td>{$ad.language_name}</td>
        <td align="center"><img src="images/{if $ad.status}yes{else}no{/if}.gif" onclick="listTable.toggle(this,'toggle_status',{$ad.ad_id})" /></td>
        <td align="center"><span onclick="listTable.edit(this, 'edit_sort_order', {$ad.ad_id})">{$ad.sort_order}</span></td>
        <td align="center">{$ad.date_added}</td>
        <td align="right" nowrap="true" class="operation">
        <a href="ad_manage.php?act=edit&id={$ad.ad_id}" title="编辑" class="op_edit"></a>
        <a href="javascript:;" onclick="listTable.remove({$ad.ad_id}, '您确认要删除吗?')" title="删除" class="op_del"></a>
        </td>
        </tr>
	{foreachelse}
	<tr><td class="no-records" colspan="15">暂无广告信息</td></tr>
	{/foreach}
</table>
{if $full_page}
</div>
</form>
{include file="page_footer.htm"}
{/if}