<?php defined('IN_ECJIA') or exit('No permission resources.');?>
<!-- {extends file="ecjia.dwt.php"} -->
<!-- {block name="footer"} -->
<script type="text/javascript">
	ecjia.admin.store_list.init();
</script>
<!-- {/block} -->
<!-- {block name="main_content"} -->
<div>
	<h3 class="heading">
		<!-- {if $ur_here}{$ur_here}{/if} -->
	</h3>
</div>

<div class="nav nav-pills">
	<li class="{if !$smarty.get.type || $smarty.get.type == 'join'}active{/if}">
		<a class="data-pjax" href='{RC_Uri::url("store/admin_preaudit/init", "{if $smarty.get.keywords}&keywords={$smarty.get.keywords}{/if}" )}'>申请入驻 
			<span class="badge badge-info">{$store_list.filter.count_join}</span>
		</a>
	</li>
	
	<li class="{if $smarty.get.type eq 'edit'}active{/if}">
		<a class="data-pjax" href='{RC_Uri::url("store/admin_preaudit/init", "type=edit{if $smarty.get.keywords}&keywords={$smarty.get.keywords}{/if}")}'>资料修改
			<span class="badge badge-info use-plugins-num">{$store_list.filter.count_edit}</span>
		</a>
	</li>
	
	<li class="{if $smarty.get.type eq 'refuse'}active{/if}">	
		<a class="data-pjax" href='{RC_Uri::url("store/admin_preaudit/init", "type=refuse{if $smarty.get.keywords}&keywords={$smarty.get.keywords}{/if}")}'>审核未通过
			<span class="badge badge-info unuse-plugins-num">{$store_list.filter.count_refuse}</span>
		</a>
	</li>
	<form class="f_r form-inline" action="{$search_action}{if $smarty.get.type}&type={$smarty.get.type}{/if}" name="searchForm" method="post">
		<input type="text" name="keywords" placeholder="{lang key='store::store.pls_name'}" value="{$store_list.filter.keywords}"/>
		<input class="btn search_store" type="submit" value="{lang key='store::store.serach'}"/>
  	</form>
</div>

<div class="row-fluid">
	<div class="span12">
		<table class="table table-striped smpl_tbl table-hide-edit">
			<thead>
				<tr>
					<th class="w50">{lang key='store::store.id'}</th>
				    <th class="w100">{lang key='store::store.store_title'}</th>
				    <th class="w100">{lang key='store::store.store_cat'}</th>
				    <th class="w100">{lang key='store::store.person'}</th>
				    <th class="w200">{lang key='store::store.companyname'}</th>
				    <th class="w150">{lang key='store::store.apply_time'}</th>
			  	</tr>
			</thead>
			<tbody>
				<!-- {foreach from=$store_list.store_list item=list} -->
				<tr>
					<td>{$list.id}</td>
				    <td class="hide-edit-area">
				    	<span>{$list.merchants_name}</span>
				    	<div class="edit-list">
				    		<a class="data-pjax" href='{RC_Uri::url("store/admin_preaudit/edit", "id={$list.id}{if $smarty.get.type}&type={$smarty.get.type}{/if}")}' title="{lang key='system::system.edit'}">{lang key='system::system.edit'}</a>&nbsp;|&nbsp;
					      	<a class="data-pjax" href='{RC_Uri::url("store/admin_preaudit/check", "id={$list.id}{if $smarty.get.type}&type={$smarty.get.type}{/if}")}' title="{lang key='store::store.check'}">{lang key='store::store.check'}</a>
					     </div>
					</td>
					<td>{$list.cat_name}</td>
					<td>{$list.responsible_person}</td>
					<td>{$list.company_name}</td>
					<td>{$list.apply_time}</td>
				</tr>
				<!-- {foreachelse} -->
				   <tr><td class="no-records" colspan="10">{lang key='system::system.no_records'}</td></tr>
				<!-- {/foreach} -->
            </tbody>
         </table>
    	<!-- {$store_list.page} -->
	</div>
</div>
<!-- {/block} -->