75 lines
3.6 KiB
PHP
75 lines
3.6 KiB
PHP
<div class="pageHeader">
|
|
<form rel="pagerForm" onsubmit="return navTabSearch(this);" action="{{ url()->current() }}" method="post">
|
|
<div class="searchBar">
|
|
<table class="searchContent">
|
|
<tr>
|
|
<td>
|
|
商品名称:
|
|
<input type="text" name="title" value="{{ Request::input('title') }}"/>
|
|
</td>
|
|
<td><div class="buttonActive"><div class="buttonContent"><button type="submit">检索结果</button></div></div></td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
|
|
<div class="pageContent">
|
|
<div class="panelBar">
|
|
<ul class="toolBar">
|
|
<li><a class="delete" href="{{ route('Admin.goods.clean') }}" target="ajaxDelete" title="清空回收站?"><span>清空回收站</span></a></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<table class="table" width="100%" layoutH="112">
|
|
<thead>
|
|
<tr>
|
|
<th width="50" orderField="id" @if (Request::input('orderField') == 'id') class="{{ Request::input('orderDirection') }}" @endif>编号</th>
|
|
<th>商品名称</th>
|
|
<th width="100">商户名称</th>
|
|
<th width="80">单价</th>
|
|
<th width="80">库存</th>
|
|
<th width="80">销量</th>
|
|
<th width="140" orderField="created_at" @if (Request::input('orderField') == 'created_at') class="{{ Request::input('orderDirection') }}" @endif>创建时间</th>
|
|
<th width="80"></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@foreach ($goods as $good)
|
|
<tr>
|
|
<td>{{ $good->id }}</td>
|
|
<td>{{ $good->title }}</td>
|
|
<td>{{ $good->seller->name }}</td>
|
|
<td>{{ $good->price }}</td>
|
|
<td>{{ $good->stock }}</td>
|
|
<td>{{ $good->sales }}</td>
|
|
<td>{{ $good->created_at }}</td>
|
|
<td>
|
|
<a title="还原商品?" target="ajaxTodo" href="{{ route('Admin.goods.resume', $good) }}" class="btnSelect">还原</a>
|
|
<a title="删除商品?" target="ajaxDelete" href="{{ route('Admin.goods.delete', $good) }}" class="btnDel">彻底删除</a>
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="panelBar">
|
|
<form id="pagerForm" method="post" action="#rel#">
|
|
<input type="hidden" name="page" value="{{ $goods->currentPage() }}" />
|
|
<input type="hidden" name="numPerPage" value="{{ $goods->perPage() }}" />
|
|
<input type="hidden" name="orderField" value="{{ Request::input('orderField') }}" />
|
|
<input type="hidden" name="orderDirection" value="{{ Request::input('orderDirection') }}" />
|
|
</form>
|
|
<div class="pages">
|
|
<span>显示</span>
|
|
<select class="combox" name="numPerPage" onchange="navTabPageBreak({numPerPage:this.value})">
|
|
<option @if ($goods->perPage() == 30) selected @endif value="30">30</option>
|
|
<option @if ($goods->perPage() == 100) selected @endif value="100">100</option>
|
|
<option @if ($goods->perPage() == 200) selected @endif value="200">200</option>
|
|
</select>
|
|
<span>条,共 {{ $goods->total() }} 条</span>
|
|
</div>
|
|
<div class="pagination" targetType="navTab" totalCount="{{ $goods->total() }}" numPerPage="{{ $goods->perPage() }}" pageNumShown="10" currentPage="{{ $goods->currentPage() }}"></div>
|
|
</div>
|
|
</div>
|