137 lines
6.4 KiB
HTML
137 lines
6.4 KiB
HTML
{template '_header'}
|
|
|
|
<div class="page-heading">
|
|
<span class='pull-right'>
|
|
{ifp 'store.add'}
|
|
<a class='btn btn-primary btn-sm' href="{php echo webUrl('store/add')}"><i class='fa fa-plus'></i> 添加门店</a>
|
|
{/if}
|
|
</span>
|
|
<h2>门店管理</h2> </div>
|
|
|
|
<form action="" method="get">
|
|
|
|
<input type="hidden" name="c" value="site" />
|
|
<input type="hidden" name="a" value="entry" />
|
|
<input type="hidden" name="m" value="{EWEI_SHOP_V2_MODULE_NAME}" />
|
|
<input type="hidden" name="do" value="web" />
|
|
<input type="hidden" name="r" value="store" />
|
|
<div class="page-toolbar row m-b-sm m-t-sm">
|
|
<div class="col-sm-4">
|
|
|
|
<div class="input-group-btn">
|
|
<button class="btn btn-default btn-sm" type="button" data-toggle='refresh'><i class='fa fa-refresh'></i></button>
|
|
{ifp 'store.edit'}
|
|
<button class="btn btn-default btn-sm" type="button" data-toggle='batch' data-href="{php echo webUrl('store/status',array('status'=>1))}"><i class='fa fa-circle'></i> 启用</button>
|
|
<button class="btn btn-default btn-sm" type="button" data-toggle='batch' data-href="{php echo webUrl('store/status',array('status'=>0))}"><i class='fa fa-circle-o'></i> 禁用</button>
|
|
{/if}
|
|
{ifp 'store.delete'}
|
|
<button class="btn btn-default btn-sm" type="button" data-toggle='batch-remove' data-confirm="确认要删除?" data-href="{php echo webUrl('store/delete')}"><i class='fa fa-trash'></i> 删除</button>
|
|
{/if}
|
|
|
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<div class="col-sm-6 pull-right">
|
|
|
|
<select name="type" class='form-control input-sm select-md'>
|
|
<option value="0" {if empty($_GPC['type'])}selected{/if}>门店支持</option>
|
|
<option value="1" {if $_GPC['type']==1}selected{/if}>自提</option>
|
|
<option value="2" {if $_GPC['type']==2}selected{/if}>核销</option>
|
|
<option value="3" {if $_GPC['type']==3}selected{/if}>自提+核销</option>
|
|
|
|
</select>
|
|
<div class="input-group">
|
|
<input type="text" class="input-sm form-control" name='keyword' value="{$_GPC['keyword']}" placeholder="门店名称/地址/电话"> <span class="input-group-btn">
|
|
|
|
<button class="btn btn-sm btn-primary" type="submit"> 搜索</button> </span>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
</form>
|
|
|
|
{if count($list)>0}
|
|
|
|
<table class="table table-hover table-responsive">
|
|
<thead>
|
|
<tr>
|
|
<th style="width:25px;"><input type='checkbox' /></th>
|
|
<th style='width:50px'>顺序</th>
|
|
<th style="width:120px;">门店名称</th>
|
|
<th style="width:160px;">地址/电话</th>
|
|
<th style="width:60px;">核销员</th>
|
|
<th style="width:90px;">门店支持</th>
|
|
<th style="width:60px;">状态</th>
|
|
<th>操作</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{loop $list $row}
|
|
<tr>
|
|
|
|
<td>
|
|
<input type='checkbox' value="{$row['id']}"/>
|
|
</td>
|
|
<td>
|
|
{ifp 'store.edit'}
|
|
<a href='javascript:;' data-toggle='ajaxEdit' data-href="{php echo webUrl('store/displayorder',array('id'=>$row['id']))}" >{$row['displayorder']}</a>
|
|
{else}
|
|
{$row['displayorder']}
|
|
{/if}
|
|
</td>
|
|
<td>{$row['storename']}</td>
|
|
|
|
<td>{$row['tel']}<br/>{$row['address']}</td>
|
|
<td>{$row['salercount']}</td>
|
|
<td>
|
|
{if $row['type']==1}自提{else if $row['type']==2}核销{else if $row['type']==3}自提+核销{/if}
|
|
|
|
</td>
|
|
<td>
|
|
<span class='label {if $row['status']==1}label-success{else}label-default{/if}'
|
|
{ifp 'store.edit'}
|
|
data-toggle='ajaxSwitch'
|
|
data-switch-value='{$row['status']}'
|
|
data-switch-value0='0|禁用|label label-default|{php echo webUrl('store/status',array('status'=>1,'id'=>$row['id']))}'
|
|
data-switch-value1='1|启用|label label-success|{php echo webUrl('store/status',array('status'=>0,'id'=>$row['id']))}'
|
|
{/if}
|
|
>
|
|
{if $row['status']==1}启用{else}禁用{/if}</span>
|
|
</td>
|
|
<td>
|
|
{if p('newstore')}
|
|
<a class='btn btn-default btn-sm' href="{php echo webUrl('store/goods', array('id' => $row['id']))}"><i class='fa fa-star'></i> 商品</a>
|
|
{/if}
|
|
{ifp 'store.edit|store.view'}
|
|
<a class='btn btn-default btn-sm' href="{php echo webUrl('store/edit', array('id' => $row['id']))}"><i class='fa fa-edit'></i> {ifp 'shop.verify.store.edit'}编辑{else}查看{/if}</a>{/if}
|
|
{ifp 'store.delete'}<a class='btn btn-default btn-sm' data-toggle="ajaxRemove" href="{php echo webUrl('store/delete', array('id' => $row['id']))}" data-confirm="确认删除此门店吗?"><i class='fa fa-trash'></i> 删除</a>{/if}
|
|
|
|
{if p('newstore')}
|
|
{ifp 'store.diypage'}
|
|
<a class="btn btn-default btn-sm" href="{php echo webUrl('store/diypage/settings', array('id'=>$row['id']))}"><i class="fa fa-list"></i> 装修</a>
|
|
{/if}
|
|
{/if}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
{/loop}
|
|
|
|
</tbody>
|
|
</table>
|
|
|
|
</form>
|
|
|
|
{$pager}
|
|
{else}
|
|
<div class='panel panel-default'>
|
|
<div class='panel-body' style='text-align: center;padding:30px;'>
|
|
暂时没有任何门店!
|
|
</div>
|
|
</div>
|
|
{/if}
|
|
|
|
{template '_footer'}
|