ZLW-PC\Administrator
7 years ago
15 changed files with 685 additions and 168 deletions
-
92app/Http/Controllers/Admin/BonusController.php
-
92app/Http/Controllers/Admin/KuaidiController.php
-
32app/Http/Controllers/Admin/UserController.php
-
12app/Http/Controllers/Admin/UserRankController.php
-
30app/Http/Model/Kuaidi.php
-
79resources/views/admin/bonus/add.blade.php
-
79resources/views/admin/bonus/edit.blade.php
-
36resources/views/admin/bonus/index.blade.php
-
79resources/views/admin/kuaidi/add.blade.php
-
79resources/views/admin/kuaidi/edit.blade.php
-
36resources/views/admin/kuaidi/index.blade.php
-
44resources/views/admin/user/add.blade.php
-
75resources/views/admin/userrank/add.blade.php
-
75resources/views/admin/userrank/edit.blade.php
-
13routes/web.php
@ -0,0 +1,92 @@ |
|||
<?php |
|||
namespace App\Http\Controllers\Admin; |
|||
|
|||
use App\Http\Controllers\Admin\CommonController; |
|||
use DB; |
|||
use App\Http\Model\Bonus; |
|||
use App\Common\Helper; |
|||
|
|||
class BonusController extends CommonController |
|||
{ |
|||
public function __construct() |
|||
{ |
|||
parent::__construct(); |
|||
} |
|||
|
|||
public function index() |
|||
{ |
|||
$data['posts'] = parent::pageList('bonus', '', [['status', 'asc'], ['listorder', 'asc']]); |
|||
|
|||
if($data['posts']) |
|||
{ |
|||
foreach($data['posts'] as $k=>$v) |
|||
{ |
|||
$data['posts'][$k]->status_text = Bonus::getStatusText(array('status'=>$v->status)); |
|||
} |
|||
} |
|||
|
|||
return view('admin.bonus.index', $data); |
|||
} |
|||
|
|||
public function add() |
|||
{ |
|||
if(Helper::isPostRequest()) |
|||
{ |
|||
if(isset($_POST['editorValue'])){unset($_POST['editorValue']);} |
|||
unset($_POST["_token"]); |
|||
|
|||
if(DB::table('bonus')->insert(array_filter($_POST))) |
|||
{ |
|||
success_jump('添加成功!', route('admin_bonus')); |
|||
} |
|||
else |
|||
{ |
|||
error_jump('添加失败!请修改后重新添加'); |
|||
} |
|||
} |
|||
|
|||
return view('admin.bonus.add'); |
|||
} |
|||
|
|||
public function edit() |
|||
{ |
|||
if(Helper::isPostRequest()) |
|||
{ |
|||
if(!empty($_POST["id"])){$id = $_POST["id"];unset($_POST["id"]);}else{$id="";exit;} |
|||
|
|||
if(isset($_POST['editorValue'])){unset($_POST['editorValue']);} |
|||
unset($_POST["_token"]); |
|||
|
|||
if(DB::table('bonus')->where('id', $id)->update($_POST)) |
|||
{ |
|||
success_jump('修改成功!', route('admin_bonus')); |
|||
} |
|||
else |
|||
{ |
|||
error_jump('修改失败!'); |
|||
} |
|||
} |
|||
|
|||
if(!empty($_GET["id"])){$id = $_GET["id"];}else{$id="";} |
|||
if(preg_match('/[0-9]*/',$id)){}else{exit;} |
|||
|
|||
$data['id'] = $id; |
|||
$data['post'] = object_to_array(DB::table('bonus')->where('id', $id)->first(), 1); |
|||
|
|||
return view('admin.bonus.edit', $data); |
|||
} |
|||
|
|||
public function del() |
|||
{ |
|||
if(!empty($_GET["id"])){$id = $_GET["id"];}else{error_jump('删除失败!请重新提交');} |
|||
|
|||
if(DB::table('bonus')->whereIn("id", explode(',', $id))->delete()) |
|||
{ |
|||
success_jump('删除成功'); |
|||
} |
|||
else |
|||
{ |
|||
error_jump('删除失败!请重新提交'); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,92 @@ |
|||
<?php |
|||
namespace App\Http\Controllers\Admin; |
|||
|
|||
use App\Http\Controllers\Admin\CommonController; |
|||
use DB; |
|||
use App\Http\Model\Kuaidi; |
|||
use App\Common\Helper; |
|||
|
|||
class KuaidiController extends CommonController |
|||
{ |
|||
public function __construct() |
|||
{ |
|||
parent::__construct(); |
|||
} |
|||
|
|||
public function index() |
|||
{ |
|||
$data['posts'] = parent::pageList('kuaidi', '', [['status', 'asc'], ['listorder', 'asc']]); |
|||
|
|||
if($data['posts']) |
|||
{ |
|||
foreach($data['posts'] as $k=>$v) |
|||
{ |
|||
$data['posts'][$k]->status_text = Kuaidi::getStatusText(array('status'=>$v->status)); |
|||
} |
|||
} |
|||
|
|||
return view('admin.kuaidi.index', $data); |
|||
} |
|||
|
|||
public function add() |
|||
{ |
|||
if(Helper::isPostRequest()) |
|||
{ |
|||
if(isset($_POST['editorValue'])){unset($_POST['editorValue']);} |
|||
unset($_POST["_token"]); |
|||
|
|||
if(DB::table('kuaidi')->insert(array_filter($_POST))) |
|||
{ |
|||
success_jump('添加成功!', route('admin_kuaidi')); |
|||
} |
|||
else |
|||
{ |
|||
error_jump('添加失败!请修改后重新添加'); |
|||
} |
|||
} |
|||
|
|||
return view('admin.kuaidi.add'); |
|||
} |
|||
|
|||
public function edit() |
|||
{ |
|||
if(Helper::isPostRequest()) |
|||
{ |
|||
if(!empty($_POST["id"])){$id = $_POST["id"];unset($_POST["id"]);}else{$id="";exit;} |
|||
|
|||
if(isset($_POST['editorValue'])){unset($_POST['editorValue']);} |
|||
unset($_POST["_token"]); |
|||
|
|||
if(DB::table('kuaidi')->where('id', $id)->update($_POST)) |
|||
{ |
|||
success_jump('修改成功!', route('admin_kuaidi')); |
|||
} |
|||
else |
|||
{ |
|||
error_jump('修改失败!'); |
|||
} |
|||
} |
|||
|
|||
if(!empty($_GET["id"])){$id = $_GET["id"];}else{$id="";} |
|||
if(preg_match('/[0-9]*/',$id)){}else{exit;} |
|||
|
|||
$data['id'] = $id; |
|||
$data['post'] = object_to_array(DB::table('kuaidi')->where('id', $id)->first(), 1); |
|||
|
|||
return view('admin.kuaidi.edit', $data); |
|||
} |
|||
|
|||
public function del() |
|||
{ |
|||
if(!empty($_GET["id"])){$id = $_GET["id"];}else{error_jump('删除失败!请重新提交');} |
|||
|
|||
if(DB::table('kuaidi')->whereIn("id", explode(',', $id))->delete()) |
|||
{ |
|||
success_jump('删除成功'); |
|||
} |
|||
else |
|||
{ |
|||
error_jump('删除失败!请重新提交'); |
|||
} |
|||
} |
|||
} |
@ -0,0 +1,30 @@ |
|||
<?php |
|||
namespace App\Http\Model; |
|||
|
|||
use Illuminate\Database\Eloquent\Model; |
|||
use DB; |
|||
|
|||
class Kuaidi extends Model |
|||
{ |
|||
//轮播图
|
|||
|
|||
protected $table = 'kuaidi'; |
|||
public $timestamps = false; |
|||
protected $guarded = []; //$guarded包含你不想被赋值的字段数组。
|
|||
|
|||
//获取是否显示文字:0显示,1不显示
|
|||
public static function getStatusText($where) |
|||
{ |
|||
$res = ''; |
|||
if($where['status'] === 0) |
|||
{ |
|||
$res = '显示'; |
|||
} |
|||
elseif($where['status'] === 1) |
|||
{ |
|||
$res = '不显示'; |
|||
} |
|||
|
|||
return $res; |
|||
} |
|||
} |
@ -0,0 +1,79 @@ |
|||
@extends('admin.layouts.app') |
|||
@section('title', '快递添加') |
|||
|
|||
@section('content') |
|||
<h5 class="sub-header"><a href="<?php echo route('admin_kuaidi'); ?>">快递列表</a> > 添加快递</h5> |
|||
|
|||
<form id="addarc" method="post" action="" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }} |
|||
<table class="table table-striped table-bordered"> |
|||
<tbody> |
|||
<tr> |
|||
<td align="right" width="150px">快递名称:</td> |
|||
<td><input name="name" type="text" id="name" value="" class="required" style="width:30%" placeholder="在此输入关键词"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">编码:</td> |
|||
<td><input name="code" type="text" id="code" value="" size="15" class="required"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">金额:</td> |
|||
<td><input name="money" type="text" id="money" value="0" size="10"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">说明:</td> |
|||
<td><input name="des" type="text" id="des" value="" style="width:60%"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">电话:</td> |
|||
<td><input name="tel" type="text" id="tel" value="" size="15"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">官网:</td> |
|||
<td><input name="website" type="text" id="website" value="" size="30"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">是否显示:</td> |
|||
<td> |
|||
<input type="radio" value='0' name="status" checked /> 是 |
|||
<input type="radio" value='1' name="status" /> 否 |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">排序:</td> |
|||
<td> |
|||
<input name="listorder" type="text" id="listorder" value="50" size="3" /> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button> <button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td> |
|||
</tr> |
|||
</tbody></table></form><!-- 表单结束 --> |
|||
<script> |
|||
$(function(){ |
|||
$(".required").blur(function(){ |
|||
var $parent = $(this).parent(); |
|||
$parent.find(".formtips").remove(); |
|||
if(this.value=="") |
|||
{ |
|||
$parent.append(' <small class="formtips onError"><font color="red">不能为空!</font></small>'); |
|||
} |
|||
else |
|||
{ |
|||
$parent.append(' <small class="formtips onSuccess"><font color="green">OK</font></small>'); |
|||
} |
|||
}); |
|||
|
|||
//重置
|
|||
$('#addarc input[type="reset"]').click(function(){ |
|||
$(".formtips").remove(); |
|||
}); |
|||
|
|||
$("#addarc").submit(function(){ |
|||
$(".required").trigger('blur'); |
|||
var numError = $('#addarc .onError').length; |
|||
|
|||
if(numError){return false;} |
|||
}); |
|||
}); |
|||
</script> |
|||
@endsection |
@ -0,0 +1,79 @@ |
|||
@extends('admin.layouts.app') |
|||
@section('title', '快递修改') |
|||
|
|||
@section('content') |
|||
<h5 class="sub-header"><a href="<?php echo route('admin_kuaidi'); ?>">快递列表</a> > 快递修改</h5> |
|||
|
|||
<form id="addarc" method="post" action="" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }} |
|||
<table class="table table-striped table-bordered"> |
|||
<tbody> |
|||
<tr> |
|||
<td align="right" width="150px">快递名称:</td> |
|||
<td><input name="name" type="text" id="name" value="<?php echo $post['name']; ?>" class="required" style="width:30%" placeholder="在此输入关键词"><input style="display:none;" name="id" type="text" id="id" value="<?php echo $id; ?>"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">编码:</td> |
|||
<td><input name="code" type="text" id="code" value="<?php echo $post['code']; ?>" size="15" class="required"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">金额:</td> |
|||
<td><input name="money" type="text" id="money" value="<?php echo $post['money']; ?>" size="10"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">说明:</td> |
|||
<td><input name="des" type="text" id="des" value="<?php echo $post['des']; ?>" style="width:60%"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">电话:</td> |
|||
<td><input name="tel" type="text" id="tel" value="<?php echo $post['tel']; ?>" size="15"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">官网:</td> |
|||
<td><input name="website" type="text" id="website" value="<?php echo $post['website']; ?>" size="30"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">是否显示:</td> |
|||
<td> |
|||
<input type="radio" value='0' name="status" <?php if(isset($post['status']) && $post['status']==0){echo 'checked';} ?> /> 是
|
|||
<input type="radio" value='1' name="status" <?php if(isset($post['status']) && $post['status']==1){echo 'checked';} ?> /> 否
|
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">排序:</td> |
|||
<td> |
|||
<input name="listorder" type="text" id="listorder" value="<?php echo $post['listorder']; ?>" size="3" /> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button> <button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td> |
|||
</tr> |
|||
</tbody></table></form><!-- 表单结束 --> |
|||
<script> |
|||
$(function(){ |
|||
$(".required").blur(function(){ |
|||
var $parent = $(this).parent(); |
|||
$parent.find(".formtips").remove(); |
|||
if(this.value=="") |
|||
{ |
|||
$parent.append(' <small class="formtips onError"><font color="red">不能为空!</font></small>'); |
|||
} |
|||
else |
|||
{ |
|||
$parent.append(' <small class="formtips onSuccess"><font color="green">OK</font></small>'); |
|||
} |
|||
}); |
|||
|
|||
//重置
|
|||
$('#addarc input[type="reset"]').click(function(){ |
|||
$(".formtips").remove(); |
|||
}); |
|||
|
|||
$("#addarc").submit(function(){ |
|||
$(".required").trigger('blur'); |
|||
var numError = $('#addarc .onError').length; |
|||
|
|||
if(numError){return false;} |
|||
}); |
|||
}); |
|||
</script> |
|||
@endsection |
@ -0,0 +1,36 @@ |
|||
@extends('admin.layouts.app') |
|||
@section('title', '快递列表') |
|||
|
|||
@section('content') |
|||
<h2 class="sub-header">快递管理</h2>[ <a href="<?php echo route('admin_kuaidi_add'); ?>">添加快递</a> ]<br><br> |
|||
|
|||
<form name="listarc"><div class="table-responsive"><table class="table table-hover"> |
|||
<thead><tr class="info"> |
|||
<th>ID</th> |
|||
<th>快递名称</th> |
|||
<th>编码</th> |
|||
<th>金额</th> |
|||
<th>说明</th> |
|||
<th>电话</th> |
|||
<th>官网</th> |
|||
<th>排序</th> |
|||
<th>是否显示</th> |
|||
<th>管理</th> |
|||
</tr></thead> |
|||
<tbody> |
|||
<?php if($posts){foreach($posts as $row){ ?><tr>
|
|||
<td><?php echo $row->id; ?></td>
|
|||
<td><?php echo $row->name; ?></td>
|
|||
<td><?php echo $row->code; ?></td>
|
|||
<td><?php echo $row->money; ?></td>
|
|||
<td><?php echo $row->des; ?></td>
|
|||
<td><?php echo $row->tel; ?></td>
|
|||
<td><?php echo $row->website; ?></td>
|
|||
<td><?php echo $row->listorder; ?></td>
|
|||
<td><?php if($row->status==0){echo "是";}else{echo "<font color=red>否</font>";} ?></td>
|
|||
<td><a href="<?php echo route('admin_kuaidi_edit',array('id'=>$row->id)); ?>">修改</a> | <a onclick="delconfirm('<?php echo route('admin_kuaidi_del',array('id'=>$row->id)); ?>')" href="javascript:;">删除</a></td> |
|||
</tr><?php }} ?>
|
|||
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 --> |
|||
|
|||
<nav aria-label="Page navigation">{{ $posts->links() }}</nav> |
|||
@endsection |
@ -0,0 +1,79 @@ |
|||
@extends('admin.layouts.app') |
|||
@section('title', '快递添加') |
|||
|
|||
@section('content') |
|||
<h5 class="sub-header"><a href="<?php echo route('admin_kuaidi'); ?>">快递列表</a> > 添加快递</h5> |
|||
|
|||
<form id="addarc" method="post" action="" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }} |
|||
<table class="table table-striped table-bordered"> |
|||
<tbody> |
|||
<tr> |
|||
<td align="right" width="150px">快递名称:</td> |
|||
<td><input name="name" type="text" id="name" value="" class="required" style="width:30%" placeholder="在此输入关键词"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">编码:</td> |
|||
<td><input name="code" type="text" id="code" value="" size="15" class="required"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">金额:</td> |
|||
<td><input name="money" type="text" id="money" value="0" size="10"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">说明:</td> |
|||
<td><input name="des" type="text" id="des" value="" style="width:60%"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">电话:</td> |
|||
<td><input name="tel" type="text" id="tel" value="" size="15"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">官网:</td> |
|||
<td><input name="website" type="text" id="website" value="" size="30"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">是否显示:</td> |
|||
<td> |
|||
<input type="radio" value='0' name="status" checked /> 是 |
|||
<input type="radio" value='1' name="status" /> 否 |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">排序:</td> |
|||
<td> |
|||
<input name="listorder" type="text" id="listorder" value="50" size="3" /> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button> <button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td> |
|||
</tr> |
|||
</tbody></table></form><!-- 表单结束 --> |
|||
<script> |
|||
$(function(){ |
|||
$(".required").blur(function(){ |
|||
var $parent = $(this).parent(); |
|||
$parent.find(".formtips").remove(); |
|||
if(this.value=="") |
|||
{ |
|||
$parent.append(' <small class="formtips onError"><font color="red">不能为空!</font></small>'); |
|||
} |
|||
else |
|||
{ |
|||
$parent.append(' <small class="formtips onSuccess"><font color="green">OK</font></small>'); |
|||
} |
|||
}); |
|||
|
|||
//重置
|
|||
$('#addarc input[type="reset"]').click(function(){ |
|||
$(".formtips").remove(); |
|||
}); |
|||
|
|||
$("#addarc").submit(function(){ |
|||
$(".required").trigger('blur'); |
|||
var numError = $('#addarc .onError').length; |
|||
|
|||
if(numError){return false;} |
|||
}); |
|||
}); |
|||
</script> |
|||
@endsection |
@ -0,0 +1,79 @@ |
|||
@extends('admin.layouts.app') |
|||
@section('title', '快递修改') |
|||
|
|||
@section('content') |
|||
<h5 class="sub-header"><a href="<?php echo route('admin_kuaidi'); ?>">快递列表</a> > 快递修改</h5> |
|||
|
|||
<form id="addarc" method="post" action="" role="form" enctype="multipart/form-data" class="table-responsive">{{ csrf_field() }} |
|||
<table class="table table-striped table-bordered"> |
|||
<tbody> |
|||
<tr> |
|||
<td align="right" width="150px">快递名称:</td> |
|||
<td><input name="name" type="text" id="name" value="<?php echo $post['name']; ?>" class="required" style="width:30%" placeholder="在此输入关键词"><input style="display:none;" name="id" type="text" id="id" value="<?php echo $id; ?>"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">编码:</td> |
|||
<td><input name="code" type="text" id="code" value="<?php echo $post['code']; ?>" size="15" class="required"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">金额:</td> |
|||
<td><input name="money" type="text" id="money" value="<?php echo $post['money']; ?>" size="10"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">说明:</td> |
|||
<td><input name="des" type="text" id="des" value="<?php echo $post['des']; ?>" style="width:60%"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">电话:</td> |
|||
<td><input name="tel" type="text" id="tel" value="<?php echo $post['tel']; ?>" size="15"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">官网:</td> |
|||
<td><input name="website" type="text" id="website" value="<?php echo $post['website']; ?>" size="30"></td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">是否显示:</td> |
|||
<td> |
|||
<input type="radio" value='0' name="status" <?php if(isset($post['status']) && $post['status']==0){echo 'checked';} ?> /> 是
|
|||
<input type="radio" value='1' name="status" <?php if(isset($post['status']) && $post['status']==1){echo 'checked';} ?> /> 否
|
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td align="right">排序:</td> |
|||
<td> |
|||
<input name="listorder" type="text" id="listorder" value="<?php echo $post['listorder']; ?>" size="3" /> |
|||
</td> |
|||
</tr> |
|||
<tr> |
|||
<td colspan="2"><button type="submit" class="btn btn-success" value="Submit">保存(Submit)</button> <button type="reset" class="btn btn-default" value="Reset">重置(Reset)</button></td> |
|||
</tr> |
|||
</tbody></table></form><!-- 表单结束 --> |
|||
<script> |
|||
$(function(){ |
|||
$(".required").blur(function(){ |
|||
var $parent = $(this).parent(); |
|||
$parent.find(".formtips").remove(); |
|||
if(this.value=="") |
|||
{ |
|||
$parent.append(' <small class="formtips onError"><font color="red">不能为空!</font></small>'); |
|||
} |
|||
else |
|||
{ |
|||
$parent.append(' <small class="formtips onSuccess"><font color="green">OK</font></small>'); |
|||
} |
|||
}); |
|||
|
|||
//重置
|
|||
$('#addarc input[type="reset"]').click(function(){ |
|||
$(".formtips").remove(); |
|||
}); |
|||
|
|||
$("#addarc").submit(function(){ |
|||
$(".required").trigger('blur'); |
|||
var numError = $('#addarc .onError').length; |
|||
|
|||
if(numError){return false;} |
|||
}); |
|||
}); |
|||
</script> |
|||
@endsection |
@ -0,0 +1,36 @@ |
|||
@extends('admin.layouts.app') |
|||
@section('title', '快递列表') |
|||
|
|||
@section('content') |
|||
<h2 class="sub-header">快递管理</h2>[ <a href="<?php echo route('admin_kuaidi_add'); ?>">添加快递</a> ]<br><br> |
|||
|
|||
<form name="listarc"><div class="table-responsive"><table class="table table-hover"> |
|||
<thead><tr class="info"> |
|||
<th>ID</th> |
|||
<th>快递名称</th> |
|||
<th>编码</th> |
|||
<th>金额</th> |
|||
<th>说明</th> |
|||
<th>电话</th> |
|||
<th>官网</th> |
|||
<th>排序</th> |
|||
<th>是否显示</th> |
|||
<th>管理</th> |
|||
</tr></thead> |
|||
<tbody> |
|||
<?php if($posts){foreach($posts as $row){ ?><tr>
|
|||
<td><?php echo $row->id; ?></td>
|
|||
<td><?php echo $row->name; ?></td>
|
|||
<td><?php echo $row->code; ?></td>
|
|||
<td><?php echo $row->money; ?></td>
|
|||
<td><?php echo $row->des; ?></td>
|
|||
<td><?php echo $row->tel; ?></td>
|
|||
<td><?php echo $row->website; ?></td>
|
|||
<td><?php echo $row->listorder; ?></td>
|
|||
<td><?php if($row->status==0){echo "是";}else{echo "<font color=red>否</font>";} ?></td>
|
|||
<td><a href="<?php echo route('admin_kuaidi_edit',array('id'=>$row->id)); ?>">修改</a> | <a onclick="delconfirm('<?php echo route('admin_kuaidi_del',array('id'=>$row->id)); ?>')" href="javascript:;">删除</a></td> |
|||
</tr><?php }} ?>
|
|||
</tbody></table></div><!-- 表格结束 --></form><!-- 表单结束 --> |
|||
|
|||
<nav aria-label="Page navigation">{{ $posts->links() }}</nav> |
|||
@endsection |
Write
Preview
Loading…
Cancel
Save
Reference in new issue