<link href="styles/general.css" rel="stylesheet" type="text/css" />
<link href="styles/main.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="js/utils.js"></script>
<body>
<h1>
<span class="action-span"><a href="?ctl=ad&act=ad_add"><tpl>$ad_add</tpl><!--添加广告--></a></span>
<span class="action-span1"><a href="?ctl=index&act=admin_main"><tpl>$common_admin_index</tpl><!--管理首页--></a> >> <tpl>$ad_list</tpl><!--广告列表--></span>
<div style="clear:both"></div>
</h1>
<div class="list-div" id="listDiv">
<table cellpadding="3" cellspacing="1">
  <tr>
    <th><tpl>$ad_list_name</tpl><!--广告名称--></th>
    <th><tpl>$ad_list_place</tpl><!--广告位置--></th>
    <th><tpl>$ad_list_type</tpl><!--广告类型--></th>
    <th><tpl>$ad_list_start</tpl><!--开始时间--></th>
    <th><tpl>$ad_list_end</tpl><!--结束时间--></th>
    <th><tpl>$ad_list_state</tpl><!--广告状态--></th>
    <th><tpl>$ad_list_oper</tpl><!--操作--></th>
  </tr>
  <tpl>foreach $ad_array as $val</tpl>
  <tr>
    <td class="first-cell">
    <span ><tpl>$val['ad_name']</tpl></span>
    </td>
    <td align="center"><span><tpl>$val['ad_place']</tpl></span>
    </td>
    <td align="center"><span><tpl>$ad_type_lg[$val['ad_type']]</tpl></span></td>
    <td align="center"><span><tpl>$val['ad_time_start']</tpl>&nbsp;</span></td>
    <td align="center"><span><tpl>$val['ad_time_end']</tpl>&nbsp;</span></td>
    <td align="center"><img src="images/<tpl>if $val['ad_state'] == 1</tpl>yes<tpl>else</tpl>no<tpl>/if</tpl>.gif" /></td>
    <td align="center"><span>
      <a href="index.php?ctl=ad&act=ad_js&ad_id=<tpl>$val['ad_id']</tpl>" title="<tpl>$ad_list_js</tpl>"><img src="images/icon_js.gif" border="0" height="16" width="16" /></a>
      <a href="index.php?ctl=ad&act=ad_add&ad_id=<tpl>$val['ad_id']</tpl>" title="<tpl>$ad_list_edit</tpl>"><img src="images/icon_edit.gif" border="0" height="16" width="16" /></a>
      <a href="index.php?ctl=ad&act=ad_del&ad_id=<tpl>$val['ad_id']</tpl>"  title="<tpl>$ad_list_del</tpl>" onClick="return confirm('<tpl>$ad_list_del_conf</tpl>');"><img src="images/icon_drop.gif" border="0" height="16" width="16" /></a></span>
    </td>
  </tr>
  <tpl>/foreach</tpl>
</table>
</div>
<div id="footer">
<tpl>$common_copyright</tpl>
</div>
</body>
