<{if $smarty.get.ajax!=1}>
<div class="admin_right_top">Manage Products</div>
<script src="script/jquery.tools.min.js"></script>
<link rel="stylesheet" type="text/css" href="templates/default/tabs-no-images.css"/>
<ul class="css-tabs">
  <li><a href="main.php?m=offer&s=admin_offer_list&ajax=1"><{$lang.all}></a></li>
  <li><a href="main.php?m=offer&s=admin_offer_list&ajax=1&statu=1"><{$lang.auditpass}></a></li>
  <li><a href="main.php?m=offer&s=admin_offer_list&ajax=1&statu=-1"><{$lang.notpass}></a></li>
  <li><a href="main.php?m=offer&s=admin_offer_list&ajax=1&statu=0"><{$lang.wpass}></a></li>
</ul>
<div class="css-panes">
<div style="display:block">
<{/if}>
<table class="admin_table tab-list">
	<tr class="sheader">
        <td width="60"><{$lang.picture}></td>
        <td>Offer Subject</td>
        <td width="70">Type </td>
        <td width="80">Duration</td>
        <td width="90">Operation Date</td>
        <td width="60"><{$lang.operation}></td>
    </tr>
    <{foreach item=list from=$re.list}>
    <tr>
        <td align="center"><img width="60" src="<{if $list.nopic }><{$config.weburl}>/image/default/nopic.gif<{else}><{$list.img.0}><{/if}>"  alt="<{$list.pname}>" /></td>
        <td><a target="_blank" href="<{$config.weburl}>/?m=offer&s=detail&id=<{$list.id}>"><{$list.title}></a></td>
        <td align="center"><{foreach item=slist key=key from=$infoType }><{if $key==$list.type}><{$slist}><{/if}><{/foreach}></td>
        <td align="center"><{foreach item=slist key=key from=$valid_time }><{if $key==$list.valid_time}><{$slist}><{/if}><{/foreach}></td>
        <td align="center"><{$list.uptime|date_format}></td>
        <td align="center">
            <p><a href="?edit=<{$list.id}>&m=offer&s=admin_offer"><{$lang.edit}></a></p>
			<p><a href="?deid=<{$list.id}>&m=offer&s=admin_offer_list" onclick="return confirm('<{$lang.sure_del}>');"><{$lang.del}></a></p> 				
        </td>
	</tr>
	<{foreachelse}>
    <tr>
    	<td colspan="6" class="no">No offer found. <a href="main.php?m=offer&s=admin_offer">Post a New Offer.</a></td>
    </tr>
	<{/foreach}>
    <{if $re.page&&$re.page!='   '}>
    <tr>
    	<td colspan="6"><div align="right"><{$re.page}></div></td>
    </tr>
    <{/if}>
</table>
<{if !$smarty.get.ajax}>
</div>
</div>
<script type="text/javascript">
$(function() {
  $("ul.css-tabs").tabs("div.css-panes > div", {effect: 'ajax'});
});
</script>
<{/if}>