<{if $smarty.get.ajax!=1}>
<div class="admin_right_top">Procurement management</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=buy&s=admin_buy_list&ajax=1"><{$lang.all}></a></li>
  <li><a href="main.php?m=buy&s=admin_buy_list&ajax=1&statu=1"><{$lang.auditpass}></a></li>
  <li><a href="main.php?m=buy&s=admin_buy_list&ajax=1&statu=-1"><{$lang.notpass}></a></li>
  <li><a href="main.php?m=buy&s=admin_buy_list&ajax=1&statu=0"><{$lang.wpass}></a></li>
</ul>
<!-- single pane. it is always visible -->
<div class="css-panes">
<div style="display:block">
<{/if}>
<table class="admin_table tab-list">
    <tr class="sheader">
        <td width="110"><{$lang.picture}></td>
        <td><{$lang.business_title}></td>
        <td width="100"><{$lang.refresh_time}></td>
        <td width="160"><{$lang.operation}></td>
    </tr>
	<{foreach item=list from=$re.list}>
	<tr>
        <td><{if $list.nopic }> <img width=90 src="<{$config.weburl}>/image/default/nopic.gif"  alt="<{$list.pname}>" /> <{else}> <img width=90 src="<{$list.img}>"  alt="<{$list.pname}>" /> <{/if}> </td>
        <td>
        <b><a target="_blank" href="<{$config.weburl}>/?m=buy&s=detail&id=<{$list.id}>"><{$list.title}></a></b><br />
        <{if $list.bnum}>
        （<span onclick="show_id('<{$list.id}>')" ><{$list.bnum}></span> <{$lang.quoted_pic}>）
        <{else}>
        （<{$lang.un_quote}>）
        <{/if}>
        </td>
        <td><{$list.uptime|date_format}></td>
        <td>
            <a href="?edit=<{$list.id}>&m=buy&s=admin_buy"><{$lang.edit}></a>
            <a href="?deid=<{$list.id}>&m=buy&s=admin_buy_list" onclick="return confirm('<{$lang.sure_del}>');"><{$lang.del}></a>
        </td>
    </tr>
    <{foreachelse}>
    <tr>
    	<td colspan="4" class="no">No Buy found. <a href="main.php?m=buy&s=admin_buy">Post a New Buy.</a></td>
    </tr>
	<{/foreach}>
    <{if $re.page&&$re.page!='   '}>
    <tr>
    	<td colspan="4"><div align="right"><{$re.page}></div></td>
    </tr>
    <{/if}>
    </table>
<{if !$smarty.get.ajax}>
</div>
</div>
<script type="text/javascript" src="<{$config.weburl}>/script/artdialog/artDialog.source.js?skin=default"></script>
<script type="text/javascript" src="<{$config.weburl}>/script/artdialog/plugins/iframeTools.source.js"></script>
<script type="text/javascript">
function show_id(id)
{
	art.dialog.open('<{$config.weburl}>/main.php?m=buy&s=admin_qprice&id='+id,{title:'报价单',drag:false,resize: false, fixed:true,width:'720px',height:'400px',lock:true,id:'testID2'});
}

$(function() {
  $("ul.css-tabs").tabs("div.css-panes > div", {effect: 'ajax'});
});
</script>
<{/if}>