Commit ee7ec9fb authored by 章建武's avatar 章建武

dep

parent 37c2c4f5
<?php
/**
* 精品项目控制器
*/
namespace app\admin\controller;
use app\common\model\Attachment;
use think\Request;
use think\Db;
use app\common\model\IndexBanner;
use app\common\validate\IndexBannerValidate;
class BoutiqueController extends Controller
{
//列表
public function index(Request $request, IndexBanner $model)
{
$param = $request->param();
$model = $model->scope('where', $param);
$data = $model->where(['type'=>[5,6,7],'delete_time'=>0])->paginate($this->admin['per_page'], false, ['query' => $request->get()]);
foreach ($data as &$v){
$v['language_type'] = $v['language_type'] === 1 ? '英语' : '中文';
$v['type'] = $this->getCat($v['type']);
$v['created_at'] = date('Y-m-d H:i:s',$v['created_at']);
}
//关键词,排序等赋值
$this->assign($request->get());
$this->assign([
'data' => $data,
'page' => $data->render(),
'total' => $data->total(),
]);
return $this->fetch();
}
//添加
public function add(Request $request, IndexBanner $model)
{
if ($request->isPost()) {
$param = $request->param();
//处理图片
$attachment_avatar = new Attachment;
$pic = $attachment_avatar->uploadMulti('path');
$data = [];
foreach ($pic as $k => $v){
$data[] = [
'path' => $v,
'language_type' => $param['language_type'],
'title' => $param['title'],
'content' => $param['content'],
'created_at' => time(),
'type' => $param['type'],
'url' => 'http://'.$_SERVER['SERVER_NAME'],
'img_title' => $param['img_title'][$k],
];
}
$result = $model->insertAll($data);
$url = URL_BACK;
if (isset($param['_create']) && $param['_create'] == 1) {
$url = URL_RELOAD;
}
return $result ? success('添加成功', $url) : error();
}
$this->assign([
'language_type' => $model->language_type,
'type' => $model->type,
'pic' => 'http://'.$_SERVER['SERVER_NAME'].'/empty.jpg'
]);
return $this->fetch('add');
}
//修改
public function edit($id, Request $request, IndexBanner $model, IndexBannerValidate $validate)
{
$data = $model::get($id);
if ($request->isPost()) {
$param = $request->param();
$validate_result = $validate->scene('edit')->check($param);
if (!$validate_result) {
return error($validate->getError());
}
//处理头像上传
if (!empty($_FILES['path']['name'])) {
$attachment_avatar = new Attachment;
$file_avatar = $attachment_avatar->upload('path');
if ($file_avatar) {
$param['path'] = $file_avatar->url;
}
}
$result = $data->save($param);
return $result ? success() : error();
}
$this->assign([
'data' => $data,
'type' => $model->type,
'language_type' => $model->language_type,
'pic' => 'http://'.$_SERVER['SERVER_NAME'].'/empty.jpg'
]);
return $this->fetch('edit');
}
//删除
public function del($id, IndexBanner $model)
{
if (count($model->noDeletionId) > 0) {
if (is_array($id)) {
if (array_intersect($model->noDeletionId, $id)) {
return error('ID为' . implode(',', $model->noDeletionId) . '的数据无法删除');
}
} else if (in_array($id, $model->noDeletionId)) {
return error('ID为' . $id . '的数据无法删除');
}
}
if ($model->softDelete) {
$result = $model->whereIn('id', $id)->update(['delete_time'=>time()]);
} else {
$result = $model->whereIn('id', $id)->update(['delete_time'=>time()]);
}
return $result ? success('操作成功', URL_RELOAD) : error();
}
protected function getCat($type){
if($type == 5){
return '空间景观';
}elseif($type == 6){
return '活动运营';
}elseif($type == 7){
return '艺术街区';
}
}
}
{extend name='public/base' /}
{block name='content'}
{include file='public/content_header' /}
<section class="content">
<style>
.form-pic span input
{
position: absolute;
left: 0;
bottom: 0;
width: 100px;
height: 100px;
opacity: 0;
cursor: pointer;
}
.form-pic span {
position: relative;
margin-left: 10px;
display: inline-block;
width: 100px;
height: 100px;
}
.form-pic img {
width: 100px;
height: 100px;
}
</style>
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<!-- 表单头部 -->
<div class="box-header with-border">
<div class="btn-group">
<a class="btn flat btn-sm btn-default BackButton">
<i class="fa fa-arrow-left"></i>
返回
</a>
</div>
</div>
<!-- 表单 -->
<form id="dataForm" class="form-horizontal dataForm" action="" method="post"
enctype="multipart/form-data">
<!-- 表单字段区域 -->
<div class="box-body">
<div class="form-group">
<label for="language_type" class="col-sm-2 control-label">选择语言</label>
<div class="col-sm-10 col-md-4">
<select name="language_type" id="language_type" class="form-control select2">
{foreach name='language_type' item='item' }
<option value="{$key}" {if isset($data) && $data.language_type==$key}selected{/if}>
{$item}
</option>
{/foreach}
</select>
</div>
</div>
<script>
$('#language_type').select2();
</script>
<div class="form-group">
<label for="type" class="col-sm-2 control-label">图片分类</label>
<div class="col-sm-10 col-md-4">
<select name="type" id="type" class="form-control select2">
{foreach name='type' item='item'}
<option value="{$key}" {if isset($data) &&
$data.type==$key}selected{/if}>
{$item}
</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label for="mobile" class="col-sm-2 control-label">标题</label>
<div class="col-sm-10 col-md-4">
<input id="mobile" name="title" value="{$data.manager_position|default=''}" placeholder="请输入标题"
type="text" maxlength="50" class="form-control field-mobile">
</div>
</div>
<div class="form-group">
<label for="nickname" class="col-sm-2 control-label">文章</label>
<div class="col-sm-10 col-md-4">
<input id="nickname" name="content" placeholder="请输入内容" type="text" class="form-control field-text">
</div>
</div>
<div class="form-group">
<label class="col-sm-2 control-label">图片</label>
<a class="btn btn-sm btn-info add_people" style="margin-left: 15px;">添加图片</a>
<div class="row repair_people" style="display:none;margin: 15px;">
</div>
</div>
</div>
<!-- 表单底部 -->
<div class="box-footer">
{:token()}
<div class="col-sm-2">
</div>
<div class="col-sm-10 col-md-4">
{if !isset($data)}
<div class="btn-group pull-right">
<label class="createContinue">
<input type="checkbox" value="1" id="_create" name="_create"
title="继续添加数据">继续添加</label>
</div>
{/if}
<div class="btn-group">
<button type="submit" class="btn flat btn-info dataFormSubmit">
保存
</button>
</div>
<div class="btn-group">
<button type="reset" class="btn flat btn-default dataFormReset">
重置
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<!--预览图片-->
<script type="text/javascript">
$(document).on('change','.form-pic .inp',function(event){
event.stopPropagation();
if ($(this).get(0).files[0]) {
var src=window.URL.createObjectURL($(this).get(0).files[0]);
var dom = $(this).get(0);
var fileSize = dom.files[0].size;
if(fileSize>5120000){
alert('上传的图片不能超过5M');
$(this).val('');
$(this).prev().attr('src','');
return false;
}
if(src!=null){
$(this).prev().attr('src',src);
}
} else {
$(this).prev().attr('src',$(this).prev().data('ori'));
}
});
</script>
<!--施工团队-->
<script>
var j=-1;
$('body').delegate('.p_del','click',function(){
j--;
var num = $(this).data('id');
var str_confirm = confirm('你确定删除当前的内容?');
if(str_confirm){
$('.team_'+num).remove();
}
});
$(function(){
$('body').delegate('.add_people','click',function(){
j++;
$(".repair_people").css('display','block');
var str =
'<div class="row team_'+j+'" style="padding-left:15px;">'+
'<div class="form-group">'+
'<label class="col-sm-2 control-label" >图片标题</label>'+
'<input class="" name="img_title[]" maxlength="20" required="required" style="width:300px;margin-left:12px;"value="" type="text"/>'+
'<span class="btn btn-sm btn-danger p_del" data-id="'+j+'" style="margin-left: 10px;">删除</span>'+
'</div>'+
'<div class="form-group" style="padding-left:10px;">'+
'<div class="form-group">'+
'<label class="col-sm-2 control-label">图片</label>'+
'<div class="form-group form-pic">'+
'<span>'+
'<img class="hall_pic" data-ori="" src="{$pic}">'+
'<input class="inp" type="file" name="path[]">'+
'</span>'+
'</div>'+
'</div>'+
'</div>'+
'</div>'+
'</div>'+
'</div>';
$('.repair_people').prepend(str);
})
});
</script>
<script>
/** 表单验证 **/
$('#dataForm').validate({
rules: {
'user_level_id': {
required: true,
},
},
messages: {
'user_level_id': {
required: "用户等级不能为空",
},
}
});
</script>
{/block}
\ No newline at end of file
{extend name='public/base' /}
{block name='content'}
{include file='public/content_header' /}
<section class="content">
<style>
.form-pic span input
{
position: absolute;
left: 0;
bottom: 0;
width: 100px;
height: 100px;
opacity: 0;
cursor: pointer;
}
.form-pic span {
position: relative;
margin-left: 10px;
display: inline-block;
width: 100px;
height: 100px;
}
.form-pic img {
width: 100px;
height: 100px;
}
</style>
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<!-- 表单头部 -->
<div class="box-header with-border">
<div class="btn-group">
<a class="btn flat btn-sm btn-default BackButton">
<i class="fa fa-arrow-left"></i>
返回
</a>
</div>
</div>
<!-- 表单 -->
<form id="dataForm" class="form-horizontal dataForm" action="" method="post"
enctype="multipart/form-data">
<!-- 表单字段区域 -->
<div class="box-body">
<div class="form-group">
<label for="language_type" class="col-sm-2 control-label">选择语言</label>
<div class="col-sm-10 col-md-4">
<select name="language_type" id="language_type" class="form-control select2">
{foreach name='language_type' item='item' }
<option value="{$key}" {if isset($data) && $data.language_type==$key}selected{/if}>
{$item}
</option>
{/foreach}
</select>
</div>
</div>
<script>
$('#language_type').select2();
</script>
<div class="form-group">
<label for="type" class="col-sm-2 control-label">图片分类</label>
<div class="col-sm-10 col-md-4">
<select name="type" id="type" class="form-control select2">
{foreach name='type' item='item'}
<option value="{$key}" {if isset($data) &&
$data.type==$key}selected{/if}>
{$item}
</option>
{/foreach}
</select>
</div>
</div>
<div class="form-group">
<label for="mobile" class="col-sm-2 control-label">标题</label>
<div class="col-sm-10 col-md-4">
<input id="mobile" name="title" value="{$data.title|default=''}" placeholder="请输入标题"
type="text" maxlength="50" class="form-control field-mobile">
</div>
</div>
<div class="form-group">
<label for="nickname" class="col-sm-2 control-label">文章</label>
<div class="col-sm-10 col-md-4">
<input id="nickname" name="content" placeholder="请输入内容" value="{$data.content}" type="text" class="form-control field-text">
</div>
</div>
<div class="form-group">
<!--<label class="col-sm-2 control-label">图片</label>-->
<!--<a class="btn btn-sm btn-info add_people" style="margin-left: 15px;">添加图片</a>-->
<div class="row repair_people" style="margin: 15px;">
<div class="row team_'+j+'" style="padding-left:15px;">
<div class="form-group">
<label class="col-sm-2 control-label" >图片标题</label>
<input class="" name="img_title" maxlength="10" value="{$data.img_title}" required="required" style="width:525px;margin-left:12px;"value="" type="text"/>
</div>
<div class="form-group" style="padding-left:10px;">
<div class="form-group">
<label class="col-sm-2 control-label">图片</label>
<div class="form-group form-pic">
<span>
<img class="hall_pic" data-ori="" src="{$data.path}">
<input class="inp" type="file" name="path">
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- 表单底部 -->
<div class="box-footer">
{:token()}
<div class="col-sm-2">
</div>
<div class="col-sm-10 col-md-4">
{if !isset($data)}
<div class="btn-group pull-right">
<label class="createContinue">
<input type="checkbox" value="1" id="_create" name="_create"
title="继续添加数据">继续添加</label>
</div>
{/if}
<div class="btn-group">
<button type="submit" class="btn flat btn-info dataFormSubmit">
保存
</button>
</div>
<div class="btn-group">
<button type="reset" class="btn flat btn-default dataFormReset">
重置
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<!--预览图片-->
<script type="text/javascript">
$(document).on('change','.form-pic .inp',function(event){
event.stopPropagation();
if ($(this).get(0).files[0]) {
var src=window.URL.createObjectURL($(this).get(0).files[0]);
var dom = $(this).get(0);
var fileSize = dom.files[0].size;
if(fileSize>5120000){
alert('上传的图片不能超过5M');
$(this).val('');
$(this).prev().attr('src','');
return false;
}
if(src!=null){
$(this).prev().attr('src',src);
}
} else {
$(this).prev().attr('src',$(this).prev().data('ori'));
}
});
</script>
<!--施工团队-->
<script>
var j=-1;
$('body').delegate('.p_del','click',function(){
j--;
var num = $(this).data('id');
var str_confirm = confirm('你确定删除当前的内容?');
if(str_confirm){
$('.team_'+num).remove();
}
});
$(function(){
$('body').delegate('.add_people','click',function(){
j++;
$(".repair_people").css('display','block');
var str =
'<div class="row team_'+j+'" style="padding-left:15px;">'+
'<div class="form-group">'+
'<label class="col-sm-2 control-label" >图片标题</label>'+
'<input class="" name="img_title[]" maxlength="10" required="required" style="width:300px;margin-left:12px;"value="" type="text"/>'+
'<span class="btn btn-sm btn-danger p_del" data-id="'+j+'" style="margin-left: 10px;">删除</span>'+
'</div>'+
'<div class="form-group" style="padding-left:10px;">'+
'<div class="form-group">'+
'<label class="col-sm-2 control-label">图片</label>'+
'<div class="form-group form-pic">'+
'<span>'+
'<img class="hall_pic" data-ori="" src="{$pic}">'+
'<input class="inp" type="file" name="path[]">'+
'</span>'+
'</div>'+
'</div>'+
'</div>'+
'</div>'+
'</div>'+
'</div>';
$('.repair_people').prepend(str);
})
});
</script>
<script>
/** 表单验证 **/
$('#dataForm').validate({
rules: {
'user_level_id': {
required: true,
},
},
messages: {
'user_level_id': {
required: "用户等级不能为空",
},
}
});
</script>
{/block}
\ No newline at end of file
{extend name="public/base" /}
{block name='content'}
{include file='public/content_header' /}
<!--数据列表页面-->
<section class="content">
<!--顶部搜索筛选-->
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-body">
<form class="form-inline searchForm" id="searchForm" action="{:url('index')}" method="GET">
<div class="form-group">
<input value="{$_keywords ? $_keywords : '' ;}"
name="_keywords" id="_keywords" class="form-control input-sm"
placeholder="图片标题">
</div>
<div class="form-group">
<select name="_by" id="_by" class="form-control input-sm index-order">
<option value="">排序方式</option>
<option value="desc" {if isset($_by) && $_by=='desc'}selected{/if}>倒序</option>
<option value="asc" {if isset($_by) && $_by=='asc'}selected{/if}>正序</option>
</select>
</div>
<script>
$('#_order').select2();
$('#_by').select2();
</script>
<div class="form-group">
<button class="btn btn-sm btn-primary" type="submit"><i class="fa fa-search"></i> 查询
</button>
</div>
<!--<div class="form-group">-->
<!--<button onclick="exportData()" class="btn btn-sm btn-warning exportData" type="button"><i-->
<!--class="fa fa-search"></i> 导出-->
<!--</button>-->
<!--</div>-->
<div class="form-group">
<button onclick="clearSearchForm()" class="btn btn-sm btn-default" type="button"><i
class="fa fa-eraser"></i> 清空查询
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="box">
<!--数据列表顶部-->
<div class="box-header">
<div>
<a title="添加" data-toggle="tooltip" class="btn btn-primary btn-sm add" href="{:url('add')}">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-danger btn-sm AjaxButton" data-toggle="tooltip" title="删除选中数据"
data-confirm-title="删除确认" data-confirm-content="您确定要删除选中的数据吗?" data-id="checked"
data-url="{:url('del')}">
<i class="fa fa-trash"></i> 删除
</a>
<!--<a class="btn btn-success btn-sm AjaxButton" data-toggle="tooltip" title="启用选中数据"-->
<!--data-confirm-title="启用确认" data-confirm-content="您确定要启用选中的数据吗?" data-id="checked"-->
<!--data-url="{:url('enable')}">-->
<!--<i class="fa fa-circle"></i> 启用-->
<!--</a>-->
<!--<a class="btn btn-warning btn-sm AjaxButton" data-toggle="tooltip" title="禁用选中数据"-->
<!--data-confirm-title="禁用确认" data-confirm-content="您确定要禁用选中的数据吗?" data-id="checked"-->
<!--data-url="{:url('disable')}">-->
<!--<i class="fa fa-circle"></i> 禁用-->
<!--</a>-->
<a class="btn btn-success btn-sm ReloadButton" data-toggle="tooltip" title="刷新">
<i class="fa fa-refresh"></i> 刷新
</a>
</div>
</div>
<div class="box-body table-responsive">
<table class="table table-hover table-bordered datatable" width="100%">
<thead>
<tr>
<th>
<input id="dataCheckAll" type="checkbox" onclick="checkAll(this)" class="checkbox"
placeholder="全选/取消">
</th>
<th>ID</th>
<th>图片</th>
<th>图片标题</th>
<th>分类</th>
<th>语言</th>
<th>创建时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
{foreach name="data" id="item"}
<tr>
<td>
<input type="checkbox" onclick="checkThis(this)" name="data-checkbox"
data-id="{$item.id}" class="checkbox data-list-check" value="{$item.id}"
placeholder="选择/取消">
</td>
<td>{$item.id}</td>
<td><img style="max-width: 60px" src="{$item.path}"></td>
<td>{$item.img_title}</td>
<td>{$item.type}</td>
<td>{$item.language_type}</td>
<td>{$item.created_at}</td>
<td class="td-do">
<a href="{:url('edit',['id'=>$item.id])}"
class="btn btn-primary btn-xs" title="修改" data-toggle="tooltip">
<i class="fa fa-pencil"></i>
</a>
<a class="btn btn-danger btn-xs AjaxButton" data-toggle="tooltip" title="删除"
data-id="{$item.id}" data-confirm-title="删除确认"
data-confirm-content='您确定要删除ID为 <span class="text-red">{$item.id}</span> 的数据吗'
data-url="{:url('del')}">
<i class="fa fa-trash"></i>
</a>
</td>
</tr>
{/foreach}
</tbody>
</table>
</div>
<!-- 数据列表底部 -->
<div class="box-footer">
{$page|raw}
<label class="control-label pull-right" style="margin-right: 10px; font-weight: 100;">
<small>共{$total}条记录</small>&nbsp;
<small>每页显示</small>
&nbsp;
<select class="input-sm" onchange="changePerPage(this)">
<option value="10" {if $admin.per_page==10}selected{/if}>10</option>
<option value="20" {if $admin.per_page==20}selected{/if}>20</option>
<option value="30" {if $admin.per_page==30}selected{/if}>30</option>
<option value="50" {if $admin.per_page==50}selected{/if}>50</option>
<option value="100" {if $admin.per_page==100}selected{/if}>100</option>
</select>
&nbsp;
<small>条记录</small>
</label>
</div>
</div>
</div>
</div>
</section>
{/block}
<?php
/**
* 图片模型
*/
namespace app\common\model;
class IndexBanner extends Model
{
protected $name = 'index_banner';
//可搜索字段
protected $searchField = ['img_title'];
public $language_type = [
0 => '中文',
1 => '英语'
];
public $type = [
5 => '空间景观',
6 => '活动运营',
7 => '艺术街区',
];
}
<?php
/**
* 精品项目验证器
*/
namespace app\common\validate;
class IndexBannerValidate extends Validate
{
protected $rule = [
'title|标题' => 'require',
'content|职位' => 'require',
'img_title|图片标题' => 'require',
];
protected $message = [
'title.require' => '标题不能为空',
'content.require' => '文章不能为空',
'img_title.require' => '图片标题不能为空',
];
protected $scene = [
'add' => ['path', 'language_type', 'title','content',],
'edit' => ['path', 'language_type', 'title','content',],
];
}
This source diff could not be displayed because it is too large. You can view the blob instead.
<?php /*a:9:{s:83:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\navigation\index.html";i:1588042597;s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\base.html";i:1588211322;s:82:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_css.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_js.html";i:1588830847;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\header.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\sidebar.html";i:1588038504;s:88:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\content_header.html";i:1588063433;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\footer.html";i:1588037872;s:89:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\control_sidebar.html";i:1587980045;}*/ ?>
<?php if(!$admin['pjax']): ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<?php endif; ?>
<title><?php echo htmlentities((isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin')); ?> | <?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Admin')); ?></title>
<?php if(!$admin['pjax']): ?>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!--头部css-->
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-switch/css/bootstrap-switch.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/iconpicker/css/iconpicker.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/select2/css/select2.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/fileinput/css/fileinput.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/AdminLTE.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/_all-skins.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/skins.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/viewer/viewer.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/nprogress/nprogress.css" />
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!--头部js-->
<?php if(!$admin['pjax']): ?>
<script type="text/javascript" src="/static/admin/plugins/js-cookie/js.cookie-2.2.0.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/layer/layer.js"></script>
<script type="text/javascript" src="/static/admin/plugins/laydate/laydate.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/localization/messages_zh.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-number/bootstrap-number.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fastclick/fastclick.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/select2/js/select2.full.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/nprogress/nprogress.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/iconpicker/js/iconpicker.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/plugins/piexif.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/fileinput.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/locales/zh.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/static/admin/plugins/clipboard/clipboard.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/viewer/viewer.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/viewer/jquery-viewer.min.js"></script>
<!--勿必把地图api key更换成自己的-->
<script type="text/javascript" src='//webapi.amap.com/maps?v=1.4.15&key=cccf8ea926e153be0a013d55edd47c11&plugin=AMap.ToolBar'></script>
<!-- UI组件库 1.0 -->
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
<script>
//是否为debug模式
var adminDebug = <?php echo htmlentities($debug); ?>;
//cookie前缀
var cookiePrefix = '<?php echo htmlentities($cookie_prefix); ?>';
//UEditor server地址
var UEServer = "<?php echo url('editor/server'); ?>";
//列表页当前选择的ID
// 实例化编辑器
var dataSelectIds = [];
</script>
<script type="text/javascript" src="/static/admin/js/adminlte.min.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.pjax.js"></script>
<script type="text/javascript" src="/static/admin/js/admin.js"></script>
<script type="text/javascript" src="/static/admin/js/demo.js"></script>
<script type="text/javascript" src="/static/admin/js/app.js"></script>
<?php endif; ?>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php endif; ?>
<!-- 顶部 -->
<!--网页头部-->
<?php if(!$admin['pjax']): ?>
<header class="main-header">
<a class="logo">
<span class="logo-mini"><?php echo htmlentities((isset($admin['short_name']) && ($admin['short_name'] !== '')?$admin['short_name']:'Backend')); ?></span>
<span class="logo-lg"><?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Backend')); ?></span>
</a>
<nav class="navbar navbar-static-top">
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle ReloadButton" title="刷新页面" data-toggle="dropdown">
<i class="fa fa-refresh"></i>
</a>
</li>
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="user-image" alt="用户头像">
<span class="hidden-xs"><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></span>
</a>
<ul class="dropdown-menu">
<li class="user-header">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="img-circle" alt="用户头像">
<p>
<?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?>
<small><?php echo htmlentities((isset($admin['user']['username']) && ($admin['user']['username'] !== '')?$admin['user']['username']:'')); ?></small>
</p>
</li>
<li class="user-footer">
<div class="pull-left">
<a href="<?php echo url('admin_user/profile'); ?>" class="btn btn-default btn-flat">个人资料</a>
</div>
<div class="pull-right">
<a href="<?php echo url('auth/logout'); ?>" class="btn btn-default btn-flat">退出</a>
</div>
</li>
</ul>
</li>
<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
</li>
</ul>
</div>
</nav>
</header>
<?php endif; ?>
<!-- 左侧 -->
<!--左侧菜单-->
<?php if(!$admin['pjax']): ?>
<aside class="main-sidebar">
<section class="sidebar">
<div class="user-panel">
<div class="pull-left image">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'__BACKEND_IMAGES__/avatar.png')); ?>" class="img-circle" alt="用户头像">
</div>
<div class="pull-left info">
<p><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></p>
<a><i class="fa fa-circle text-success"></i> 在线</a>
</div>
</div>
<form method="get" class="sidebar-form" id="sidebar-form">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="搜索菜单" id="search-input">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<ul class="sidebar-menu" data-widget="tree">
<li class="header">导航菜单</li>
<?php echo (isset($admin['menu']) && ($admin['menu'] !== '')?$admin['menu']:''); ?>
</ul>
</section>
</aside>
<?php endif; ?>
<!-- 内容 -->
<div class="content-wrapper" id="pjax-container">
<!--内容头部-->
<section class="content-header">
<h1>
<?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'admin'); ?>
</h1>
<ol class="breadcrumb">
<li><a href="<?php echo url('index/index'); ?>"><i class="fa fa-dashboard"></i> 主页</a></li>
<li class="active"><?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin'); ?></li>
</ol>
</section>
<?php if(app('session')->get('error_message')): ?>
<!--如果有错误或者成功的消息-->
<script>
layer.msg('<?php echo htmlentities(app('session')->get('error_message')); ?>',{icon:2});
$.pjax({
url: "<?php echo htmlentities(app('session')->get('url')); ?>",
container: '#pjax-container'
});
</script>
<?php endif; if(app('session')->get('success_message')): ?>
<script>
layer.msg('<?php echo htmlentities(app('session')->get('success_message')); ?>',{icon:1});
$.pjax({
url: '<?php echo htmlentities(app('session')->get('url')); ?>',
container: '#pjax-container'
});
</script>
<?php endif; ?>
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-header">
<div>
<a title="添加" data-toggle="tooltip" class="btn btn-primary btn-sm " href="<?php echo url('add'); ?>">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-danger btn-sm AjaxButton" data-toggle="tooltip" title="删除选中数据"
data-confirm-title="删除确认" data-confirm-content="您确定要删除选中的数据吗?" data-id="checked"
data-url="<?php echo url('del'); ?>">
<i class="fa fa-trash"></i> 删除
</a>
<a class="btn btn-success btn-sm ReloadButton" data-toggle="tooltip" title="刷新"
data-id="checked" data-url="<?php echo url('del'); ?>">
<i class="fa fa-refresh"></i> 刷新
</a>
</div>
</div>
<div class="box-body table-responsive">
<table class="table table-hover table-bordered datatable" width="100%">
<thead>
<tr>
<th>
<input id="dataCheckAll" type="checkbox" onclick="checkAll(this)" class="checkbox"
placeholder="全选/取消">
</th>
<th>ID</th>
<th>菜单名称</th>
<th>URL</th>
<th>父级ID</th>
<th>语言</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php echo $data; ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</section>
</div>
<!--页面底部-->
<?php if(!$admin['pjax']): ?>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> <?php echo htmlentities((isset($admin['version']) && ($admin['version'] !== '')?$admin['version']:'1.0')); ?>
</div>
<strong>Copyright &copy; <?php echo date('Y'); ?> <a href="<?php echo htmlentities((isset($admin['link']) && ($admin['link'] !== '')?$admin['link']:'#')); ?>">时尚集团</a>.</strong> All rights
reserved.
</footer>
<?php endif; ?>
<!--侧边栏-->
<?php if(!$admin['pjax']): ?>
<aside class="control-sidebar control-sidebar-dark">
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
</ul>
<div class="tab-content">
<div class="tab-pane" id="control-sidebar-home-tab">
</div>
</div>
</aside>
<div class="control-sidebar-bg"></div>
<?php endif; if(!$admin['pjax']): ?>
</div>
<?php endif; if(!$admin['pjax']): ?>
</body>
</html>
<?php endif; ?>
\ No newline at end of file
<?php /*a:9:{s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\index\index.html";i:1587980045;s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\base.html";i:1588211322;s:82:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_css.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_js.html";i:1588830847;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\header.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\sidebar.html";i:1588038504;s:88:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\content_header.html";i:1588063433;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\footer.html";i:1588037872;s:89:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\control_sidebar.html";i:1587980045;}*/ ?>
<?php if(!$admin['pjax']): ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<?php endif; ?>
<title><?php echo htmlentities((isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin')); ?> | <?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Admin')); ?></title>
<?php if(!$admin['pjax']): ?>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!--头部css-->
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-switch/css/bootstrap-switch.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/iconpicker/css/iconpicker.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/select2/css/select2.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/fileinput/css/fileinput.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/AdminLTE.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/_all-skins.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/skins.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/viewer/viewer.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/nprogress/nprogress.css" />
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!--头部js-->
<?php if(!$admin['pjax']): ?>
<script type="text/javascript" src="/static/admin/plugins/js-cookie/js.cookie-2.2.0.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/layer/layer.js"></script>
<script type="text/javascript" src="/static/admin/plugins/laydate/laydate.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/localization/messages_zh.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-number/bootstrap-number.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fastclick/fastclick.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/select2/js/select2.full.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/nprogress/nprogress.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/iconpicker/js/iconpicker.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/plugins/piexif.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/fileinput.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/locales/zh.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/static/admin/plugins/clipboard/clipboard.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/viewer/viewer.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/viewer/jquery-viewer.min.js"></script>
<!--勿必把地图api key更换成自己的-->
<script type="text/javascript" src='//webapi.amap.com/maps?v=1.4.15&key=cccf8ea926e153be0a013d55edd47c11&plugin=AMap.ToolBar'></script>
<!-- UI组件库 1.0 -->
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
<script>
//是否为debug模式
var adminDebug = <?php echo htmlentities($debug); ?>;
//cookie前缀
var cookiePrefix = '<?php echo htmlentities($cookie_prefix); ?>';
//UEditor server地址
var UEServer = "<?php echo url('editor/server'); ?>";
//列表页当前选择的ID
// 实例化编辑器
var dataSelectIds = [];
</script>
<script type="text/javascript" src="/static/admin/js/adminlte.min.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.pjax.js"></script>
<script type="text/javascript" src="/static/admin/js/admin.js"></script>
<script type="text/javascript" src="/static/admin/js/demo.js"></script>
<script type="text/javascript" src="/static/admin/js/app.js"></script>
<?php endif; ?>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php endif; ?>
<!-- 顶部 -->
<!--网页头部-->
<?php if(!$admin['pjax']): ?>
<header class="main-header">
<a class="logo">
<span class="logo-mini"><?php echo htmlentities((isset($admin['short_name']) && ($admin['short_name'] !== '')?$admin['short_name']:'Backend')); ?></span>
<span class="logo-lg"><?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Backend')); ?></span>
</a>
<nav class="navbar navbar-static-top">
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle ReloadButton" title="刷新页面" data-toggle="dropdown">
<i class="fa fa-refresh"></i>
</a>
</li>
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="user-image" alt="用户头像">
<span class="hidden-xs"><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></span>
</a>
<ul class="dropdown-menu">
<li class="user-header">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="img-circle" alt="用户头像">
<p>
<?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?>
<small><?php echo htmlentities((isset($admin['user']['username']) && ($admin['user']['username'] !== '')?$admin['user']['username']:'')); ?></small>
</p>
</li>
<li class="user-footer">
<div class="pull-left">
<a href="<?php echo url('admin_user/profile'); ?>" class="btn btn-default btn-flat">个人资料</a>
</div>
<div class="pull-right">
<a href="<?php echo url('auth/logout'); ?>" class="btn btn-default btn-flat">退出</a>
</div>
</li>
</ul>
</li>
<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
</li>
</ul>
</div>
</nav>
</header>
<?php endif; ?>
<!-- 左侧 -->
<!--左侧菜单-->
<?php if(!$admin['pjax']): ?>
<aside class="main-sidebar">
<section class="sidebar">
<div class="user-panel">
<div class="pull-left image">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'__BACKEND_IMAGES__/avatar.png')); ?>" class="img-circle" alt="用户头像">
</div>
<div class="pull-left info">
<p><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></p>
<a><i class="fa fa-circle text-success"></i> 在线</a>
</div>
</div>
<form method="get" class="sidebar-form" id="sidebar-form">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="搜索菜单" id="search-input">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<ul class="sidebar-menu" data-widget="tree">
<li class="header">导航菜单</li>
<?php echo (isset($admin['menu']) && ($admin['menu'] !== '')?$admin['menu']:''); ?>
</ul>
</section>
</aside>
<?php endif; ?>
<!-- 内容 -->
<div class="content-wrapper" id="pjax-container">
<!--内容头部-->
<section class="content-header">
<h1>
<?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'admin'); ?>
</h1>
<ol class="breadcrumb">
<li><a href="<?php echo url('index/index'); ?>"><i class="fa fa-dashboard"></i> 主页</a></li>
<li class="active"><?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin'); ?></li>
</ol>
</section>
<?php if(app('session')->get('error_message')): ?>
<!--如果有错误或者成功的消息-->
<script>
layer.msg('<?php echo htmlentities(app('session')->get('error_message')); ?>',{icon:2});
$.pjax({
url: "<?php echo htmlentities(app('session')->get('url')); ?>",
container: '#pjax-container'
});
</script>
<?php endif; if(app('session')->get('success_message')): ?>
<script>
layer.msg('<?php echo htmlentities(app('session')->get('success_message')); ?>',{icon:1});
$.pjax({
url: '<?php echo htmlentities(app('session')->get('url')); ?>',
container: '#pjax-container'
});
</script>
<?php endif; ?>
<section class="content">
<?php if($show_notice): ?>
<div class="row">
<div class="pad margin no-print">
<div class="callout callout-info">
<h4><i class="fa fa-info"></i> 您好,<?php echo htmlentities((isset($user['nickname']) && ($user['nickname'] !== '')?$user['nickname']:'管理员')); ?>:</h4>
<?php echo htmlentities((isset($notice_content) && ($notice_content !== '')?$notice_content:'')); ?>
</div>
</div>
</div>
<?php endif; ?>
<div class="row">
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-aqua">
<i class="fa fa-user"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">后台用户</span>
<span class="info-box-number"><?php echo htmlentities((isset($admin_user_count) && ($admin_user_count !== '')?$admin_user_count:'0')); ?></span>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-red">
<i class="fa fa-users"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">后台角色</span>
<span class="info-box-number"><?php echo htmlentities((isset($admin_role_count) && ($admin_role_count !== '')?$admin_role_count:'0')); ?></span>
</div>
</div>
</div>
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-green">
<i class="fa fa-list"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">后台菜单</span>
<span class="info-box-number"><?php echo htmlentities((isset($admin_menu_count) && ($admin_menu_count !== '')?$admin_menu_count:'0')); ?></span>
</div>
</div>
</div>
<div class="clearfix visible-sm-block"></div>
<div class="col-md-3 col-sm-6 col-xs-12">
<div class="info-box">
<span class="info-box-icon bg-yellow">
<i class="fa fa-keyboard-o"></i>
</span>
<div class="info-box-content">
<span class="info-box-text">操作日志</span>
<span class="info-box-number"><?php echo htmlentities((isset($admin_log_count) && ($admin_log_count !== '')?$admin_log_count:'0')); ?></span>
</div>
</div>
</div>
</div>
<div class="row">
<section class="col-lg-7 connectedSortable" id="sortable1">
<div class="box sortable-widget" id="user_info">
<div class="box-header with-border">
<h3 class="box-title">访问信息</h3>
</div>
<div class="box-body">
<table class="table table-bordered table-striped">
<tbody>
<tr>
<th>用户系统</th>
<td><?php echo htmlentities($system_info['user_os']); ?></td>
<th>用户IP</th>
<td><?php echo htmlentities($system_info['user_ip']); ?></td>
</tr>
<tr>
<th>浏览器</th>
<td><?php echo htmlentities($system_info['user_browser']); ?></td>
<th>所在城市</th>
<td><?php echo htmlentities($system_info['user_ip_address']); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="box sortable-widget" id="system_info">
<div class="box-header with-border">
<h3 class="box-title">系统信息</h3>
</div>
<div class="box-body">
<table class="table table-bordered table-striped">
<tbody>
<tr>
<th>服务器系统</th>
<td><?php echo htmlentities($system_info['server_os']); ?></td>
<th>服务器IP</th>
<td><?php echo htmlentities($system_info['server_ip']); ?></td>
</tr>
<tr>
<th>PHP版本</th>
<td><?php echo htmlentities($system_info['php_version']); ?></td>
<th>运行内存限制</th>
<td><?php echo htmlentities($system_info['memory_limit']); ?></td>
</tr>
<tr>
<th>最大文件上传限制</th>
<td><?php echo htmlentities($system_info['upload_max_filesize']); ?></td>
<th>单次上传数量限制</th>
<td><?php echo htmlentities($system_info['max_file_uploads']); ?></td>
</tr>
<tr>
<th>最大POST限制</th>
<td><?php echo htmlentities($system_info['post_max_size']); ?></td>
<th>项目磁盘剩余容量</th>
<td><?php echo htmlentities($system_info['disk_free']); ?></td>
</tr>
<tr>
<th>ThinkPHP版本</th>
<td><?php echo htmlentities($system_info['think_version']); ?></td>
<th>后台系统版本</th>
<td><?php echo htmlentities($system_info['admin_version']); ?></td>
</tr>
<tr>
<th>MySql版本</th>
<td><?php echo htmlentities($system_info['db_version']); ?></td>
<th>PHP当前运行模式</th>
<td><?php echo htmlentities($system_info['php_sapi_name']); ?></td>
</tr>
<tr>
<th>PHP当前时区</th>
<td><?php echo htmlentities($system_info['timezone']); ?></td>
<th>PHP当前时间</th>
<td><?php echo htmlentities($system_info['date_time']); ?></td>
</tr>
</tbody>
</table>
</div>
</div>
</section>
<section class="col-lg-5 connectedSortable" id="composer_info">
<div class="box sortable-widget" id="widget2">
<div class="box-header with-border">
<h3 class="box-title">依赖关系</h3>
</div>
<div class="box-body">
<table class="table table-bordered table-striped">
<tbody>
<?php if(is_array($system_info['require_list']) || $system_info['require_list'] instanceof \think\Collection || $system_info['require_list'] instanceof \think\Paginator): if( count($system_info['require_list'])==0 ) : echo "" ;else: foreach($system_info['require_list'] as $key=>$item): ?>
<tr>
<th><?php echo htmlentities($key); ?></th>
<td><?php echo htmlentities($item); ?></td>
</tr>
<?php endforeach; endif; else: echo "" ;endif; if(is_array($system_info['require_dev_list']) || $system_info['require_dev_list'] instanceof \think\Collection || $system_info['require_dev_list'] instanceof \think\Paginator): if( count($system_info['require_dev_list'])==0 ) : echo "" ;else: foreach($system_info['require_dev_list'] as $key=>$item): ?>
<tr>
<th><?php echo htmlentities($key); ?></th>
<td><?php echo htmlentities($item); ?></td>
</tr>
<?php endforeach; endif; else: echo "" ;endif; ?>
</tbody>
</table>
</div>
</div>
</section>
</div>
</section>
<script>
var passwordDanger = <?php echo htmlentities($password_danger); ?>;
var sortableChanged = false;
var sortableIds = [];
$(function () {
$('.connectedSortable').sortable({
placeholder: 'sort-highlight',
connectWith: '.connectedSortable',
handle: '.box-header',
forcePlaceholderSize: true,
zIndex: 999999,
update: function (event, ui) {
sortableChanged = true;
let ids1 = $('#sortable1').sortable('toArray');
let ids2 = $('#sortable2').sortable('toArray');
$.each(ids2, function (index, item) {
ids1.push(item);
});
sortableIds = ids1;
console.log(sortableIds);
/* $.ajax({
type: "post",
url: "",
data: {image_ids},
dataType: "json",
success: function(result) {
window.location.reload(); //后台获取到数据刷新页面
}
});*/
}
});
$('.connectedSortable .box-header, .connectedSortable .nav-tabs-custom').css('cursor', 'move');
//密码修改检查
if (parseInt(passwordDanger) === 1) {
layer.confirm('系统检测到超级管理员默认密码未修改,是否马上去修改?', {title: '风险提示', closeBtn: 1, icon: 7}, function () {
$.pjax({
url: '/admin/admin_user/profile.html#privacy',
container: '#pjax-container'
});
layer.closeAll();
});
}
});
</script>
</div>
<!--页面底部-->
<?php if(!$admin['pjax']): ?>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> <?php echo htmlentities((isset($admin['version']) && ($admin['version'] !== '')?$admin['version']:'1.0')); ?>
</div>
<strong>Copyright &copy; <?php echo date('Y'); ?> <a href="<?php echo htmlentities((isset($admin['link']) && ($admin['link'] !== '')?$admin['link']:'#')); ?>">时尚集团</a>.</strong> All rights
reserved.
</footer>
<?php endif; ?>
<!--侧边栏-->
<?php if(!$admin['pjax']): ?>
<aside class="control-sidebar control-sidebar-dark">
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
</ul>
<div class="tab-content">
<div class="tab-pane" id="control-sidebar-home-tab">
</div>
</div>
</aside>
<div class="control-sidebar-bg"></div>
<?php endif; if(!$admin['pjax']): ?>
</div>
<?php endif; if(!$admin['pjax']): ?>
</body>
</html>
<?php endif; ?>
\ No newline at end of file
<?php /*a:9:{s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\manager\index.html";i:1588066599;s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\base.html";i:1588211322;s:82:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_css.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_js.html";i:1588830847;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\header.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\sidebar.html";i:1588038504;s:88:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\content_header.html";i:1588063433;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\footer.html";i:1588037872;s:89:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\control_sidebar.html";i:1587980045;}*/ ?>
<?php if(!$admin['pjax']): ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<?php endif; ?>
<title><?php echo htmlentities((isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin')); ?> | <?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Admin')); ?></title>
<?php if(!$admin['pjax']): ?>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!--头部css-->
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-switch/css/bootstrap-switch.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/iconpicker/css/iconpicker.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/select2/css/select2.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/fileinput/css/fileinput.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/AdminLTE.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/_all-skins.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/skins.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/viewer/viewer.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/nprogress/nprogress.css" />
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!--头部js-->
<?php if(!$admin['pjax']): ?>
<script type="text/javascript" src="/static/admin/plugins/js-cookie/js.cookie-2.2.0.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/layer/layer.js"></script>
<script type="text/javascript" src="/static/admin/plugins/laydate/laydate.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/localization/messages_zh.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-number/bootstrap-number.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fastclick/fastclick.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/select2/js/select2.full.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/nprogress/nprogress.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/iconpicker/js/iconpicker.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/plugins/piexif.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/fileinput.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/locales/zh.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/static/admin/plugins/clipboard/clipboard.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/viewer/viewer.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/viewer/jquery-viewer.min.js"></script>
<!--勿必把地图api key更换成自己的-->
<script type="text/javascript" src='//webapi.amap.com/maps?v=1.4.15&key=cccf8ea926e153be0a013d55edd47c11&plugin=AMap.ToolBar'></script>
<!-- UI组件库 1.0 -->
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
<script>
//是否为debug模式
var adminDebug = <?php echo htmlentities($debug); ?>;
//cookie前缀
var cookiePrefix = '<?php echo htmlentities($cookie_prefix); ?>';
//UEditor server地址
var UEServer = "<?php echo url('editor/server'); ?>";
//列表页当前选择的ID
// 实例化编辑器
var dataSelectIds = [];
</script>
<script type="text/javascript" src="/static/admin/js/adminlte.min.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.pjax.js"></script>
<script type="text/javascript" src="/static/admin/js/admin.js"></script>
<script type="text/javascript" src="/static/admin/js/demo.js"></script>
<script type="text/javascript" src="/static/admin/js/app.js"></script>
<?php endif; ?>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php endif; ?>
<!-- 顶部 -->
<!--网页头部-->
<?php if(!$admin['pjax']): ?>
<header class="main-header">
<a class="logo">
<span class="logo-mini"><?php echo htmlentities((isset($admin['short_name']) && ($admin['short_name'] !== '')?$admin['short_name']:'Backend')); ?></span>
<span class="logo-lg"><?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Backend')); ?></span>
</a>
<nav class="navbar navbar-static-top">
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle ReloadButton" title="刷新页面" data-toggle="dropdown">
<i class="fa fa-refresh"></i>
</a>
</li>
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="user-image" alt="用户头像">
<span class="hidden-xs"><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></span>
</a>
<ul class="dropdown-menu">
<li class="user-header">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="img-circle" alt="用户头像">
<p>
<?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?>
<small><?php echo htmlentities((isset($admin['user']['username']) && ($admin['user']['username'] !== '')?$admin['user']['username']:'')); ?></small>
</p>
</li>
<li class="user-footer">
<div class="pull-left">
<a href="<?php echo url('admin_user/profile'); ?>" class="btn btn-default btn-flat">个人资料</a>
</div>
<div class="pull-right">
<a href="<?php echo url('auth/logout'); ?>" class="btn btn-default btn-flat">退出</a>
</div>
</li>
</ul>
</li>
<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
</li>
</ul>
</div>
</nav>
</header>
<?php endif; ?>
<!-- 左侧 -->
<!--左侧菜单-->
<?php if(!$admin['pjax']): ?>
<aside class="main-sidebar">
<section class="sidebar">
<div class="user-panel">
<div class="pull-left image">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'__BACKEND_IMAGES__/avatar.png')); ?>" class="img-circle" alt="用户头像">
</div>
<div class="pull-left info">
<p><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></p>
<a><i class="fa fa-circle text-success"></i> 在线</a>
</div>
</div>
<form method="get" class="sidebar-form" id="sidebar-form">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="搜索菜单" id="search-input">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<ul class="sidebar-menu" data-widget="tree">
<li class="header">导航菜单</li>
<?php echo (isset($admin['menu']) && ($admin['menu'] !== '')?$admin['menu']:''); ?>
</ul>
</section>
</aside>
<?php endif; ?>
<!-- 内容 -->
<div class="content-wrapper" id="pjax-container">
<!--内容头部-->
<section class="content-header">
<h1>
<?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'admin'); ?>
</h1>
<ol class="breadcrumb">
<li><a href="<?php echo url('index/index'); ?>"><i class="fa fa-dashboard"></i> 主页</a></li>
<li class="active"><?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin'); ?></li>
</ol>
</section>
<?php if(app('session')->get('error_message')): ?>
<!--如果有错误或者成功的消息-->
<script>
layer.msg('<?php echo htmlentities(app('session')->get('error_message')); ?>',{icon:2});
$.pjax({
url: "<?php echo htmlentities(app('session')->get('url')); ?>",
container: '#pjax-container'
});
</script>
<?php endif; if(app('session')->get('success_message')): ?>
<script>
layer.msg('<?php echo htmlentities(app('session')->get('success_message')); ?>',{icon:1});
$.pjax({
url: '<?php echo htmlentities(app('session')->get('url')); ?>',
container: '#pjax-container'
});
</script>
<?php endif; ?>
<!--数据列表页面-->
<section class="content">
<!--顶部搜索筛选-->
<div class="row">
<div class="col-md-12">
<div class="box">
<div class="box-body">
<form class="form-inline searchForm" id="searchForm" action="<?php echo url('index'); ?>" method="GET">
<div class="form-group">
<input value="<?php echo !empty($_keywords) ? htmlentities($_keywords) : '' ;; ?>"
name="_keywords" id="_keywords" class="form-control input-sm"
placeholder="姓名">
</div>
<div class="form-group">
<select name="_by" id="_by" class="form-control input-sm index-order">
<option value="">排序方式</option>
<option value="desc" <?php if(isset($_by) && $_by=='desc'): ?>selected<?php endif; ?>>倒序</option>
<option value="asc" <?php if(isset($_by) && $_by=='asc'): ?>selected<?php endif; ?>>正序</option>
</select>
</div>
<script>
$('#_order').select2();
$('#_by').select2();
</script>
<div class="form-group">
<button class="btn btn-sm btn-primary" type="submit"><i class="fa fa-search"></i> 查询
</button>
</div>
<!--<div class="form-group">-->
<!--<button onclick="exportData()" class="btn btn-sm btn-warning exportData" type="button"><i-->
<!--class="fa fa-search"></i> 导出-->
<!--</button>-->
<!--</div>-->
<div class="form-group">
<button onclick="clearSearchForm()" class="btn btn-sm btn-default" type="button"><i
class="fa fa-eraser"></i> 清空查询
</button>
</div>
</form>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="box">
<!--数据列表顶部-->
<div class="box-header">
<div>
<a title="添加" data-toggle="tooltip" class="btn btn-primary btn-sm " href="<?php echo url('add'); ?>">
<i class="fa fa-plus"></i> 添加
</a>
<a class="btn btn-danger btn-sm AjaxButton" data-toggle="tooltip" title="删除选中数据"
data-confirm-title="删除确认" data-confirm-content="您确定要删除选中的数据吗?" data-id="checked"
data-url="<?php echo url('del'); ?>">
<i class="fa fa-trash"></i> 删除
</a>
<!--<a class="btn btn-success btn-sm AjaxButton" data-toggle="tooltip" title="启用选中数据"-->
<!--data-confirm-title="启用确认" data-confirm-content="您确定要启用选中的数据吗?" data-id="checked"-->
<!--data-url="<?php echo url('enable'); ?>">-->
<!--<i class="fa fa-circle"></i> 启用-->
<!--</a>-->
<!--<a class="btn btn-warning btn-sm AjaxButton" data-toggle="tooltip" title="禁用选中数据"-->
<!--data-confirm-title="禁用确认" data-confirm-content="您确定要禁用选中的数据吗?" data-id="checked"-->
<!--data-url="<?php echo url('disable'); ?>">-->
<!--<i class="fa fa-circle"></i> 禁用-->
<!--</a>-->
<a class="btn btn-success btn-sm ReloadButton" data-toggle="tooltip" title="刷新">
<i class="fa fa-refresh"></i> 刷新
</a>
</div>
</div>
<div class="box-body table-responsive">
<table class="table table-hover table-bordered datatable" width="100%">
<thead>
<tr>
<th>
<input id="dataCheckAll" type="checkbox" onclick="checkAll(this)" class="checkbox"
placeholder="全选/取消">
</th>
<th>ID</th>
<th>头像</th>
<th>姓名</th>
<th>公司</th>
<th>职位</th>
<th>语言</th>
<th>创建时间</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<?php if(is_array($data) || $data instanceof \think\Collection || $data instanceof \think\Paginator): if( count($data)==0 ) : echo "" ;else: foreach($data as $key=>$item): ?>
<tr>
<td>
<input type="checkbox" onclick="checkThis(this)" name="data-checkbox"
data-id="<?php echo htmlentities($item['id']); ?>" class="checkbox data-list-check" value="<?php echo htmlentities($item['id']); ?>"
placeholder="选择/取消">
</td>
<td><?php echo htmlentities($item['id']); ?></td>
<td><img style="max-width: 40px" src="<?php echo htmlentities($item['manager_img']); ?>"></td>
<td><?php echo htmlentities((isset($item['manager_name']) && ($item['manager_name'] !== '')?$item['manager_name']:'')); ?></td>
<td><?php echo htmlentities($item['manager_position']); ?></td>
<td><?php echo htmlentities($item['manager_company']); ?></td>
<td><?php echo htmlentities($item['language_type']); ?></td>
<td><?php echo htmlentities($item['created_at']); ?></td>
<td class="td-do">
<a href="<?php echo url('edit',['id'=>$item['id']]); ?>"
class="btn btn-primary btn-xs" title="修改" data-toggle="tooltip">
<i class="fa fa-pencil"></i>
</a>
<a class="btn btn-danger btn-xs AjaxButton" data-toggle="tooltip" title="删除"
data-id="<?php echo htmlentities($item['id']); ?>" data-confirm-title="删除确认"
data-confirm-content='您确定要删除ID为 <span class="text-red"><?php echo htmlentities($item['id']); ?></span> 的数据吗'
data-url="<?php echo url('del'); ?>">
<i class="fa fa-trash"></i>
</a>
<!--<?php if($item['status']==1): ?>-->
<!--<a class="btn btn-warning btn-xs AjaxButton" data-toggle="tooltip" title="禁用"-->
<!--data-id="<?php echo htmlentities($item['id']); ?>" data-confirm-title="禁用确认"-->
<!--data-confirm-content='您确定要禁用ID为 <span class="text-red"><?php echo htmlentities($item['id']); ?></span> 的数据吗'-->
<!--data-url="<?php echo url('disable'); ?>">-->
<!--<i class="fa fa-circle"></i>-->
<!--</a>-->
<!--<?php else: ?>-->
<!--<a class="btn btn-success btn-xs AjaxButton" data-toggle="tooltip" title="启用"-->
<!--data-id="<?php echo htmlentities($item['id']); ?>" data-confirm-title="启用确认"-->
<!--data-confirm-content='您确定要启用ID为 <span class="text-red"><?php echo htmlentities($item['id']); ?></span> 的数据吗'-->
<!--data-url="<?php echo url('enable'); ?>">-->
<!--<i class="fa fa-circle"></i>-->
<!--</a>-->
<!--<?php endif; ?>-->
</td>
</tr>
<?php endforeach; endif; else: echo "" ;endif; ?>
</tbody>
</table>
</div>
<!-- 数据列表底部 -->
<div class="box-footer">
<?php echo $page; ?>
<label class="control-label pull-right" style="margin-right: 10px; font-weight: 100;">
<small><?php echo htmlentities($total); ?>条记录</small>&nbsp;
<small>每页显示</small>
&nbsp;
<select class="input-sm" onchange="changePerPage(this)">
<option value="10" <?php if($admin['per_page']==10): ?>selected<?php endif; ?>>10</option>
<option value="20" <?php if($admin['per_page']==20): ?>selected<?php endif; ?>>20</option>
<option value="30" <?php if($admin['per_page']==30): ?>selected<?php endif; ?>>30</option>
<option value="50" <?php if($admin['per_page']==50): ?>selected<?php endif; ?>>50</option>
<option value="100" <?php if($admin['per_page']==100): ?>selected<?php endif; ?>>100</option>
</select>
&nbsp;
<small>条记录</small>
</label>
</div>
</div>
</div>
</div>
</section>
</div>
<!--页面底部-->
<?php if(!$admin['pjax']): ?>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> <?php echo htmlentities((isset($admin['version']) && ($admin['version'] !== '')?$admin['version']:'1.0')); ?>
</div>
<strong>Copyright &copy; <?php echo date('Y'); ?> <a href="<?php echo htmlentities((isset($admin['link']) && ($admin['link'] !== '')?$admin['link']:'#')); ?>">时尚集团</a>.</strong> All rights
reserved.
</footer>
<?php endif; ?>
<!--侧边栏-->
<?php if(!$admin['pjax']): ?>
<aside class="control-sidebar control-sidebar-dark">
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
</ul>
<div class="tab-content">
<div class="tab-pane" id="control-sidebar-home-tab">
</div>
</div>
</aside>
<div class="control-sidebar-bg"></div>
<?php endif; if(!$admin['pjax']): ?>
</div>
<?php endif; if(!$admin['pjax']): ?>
</body>
</html>
<?php endif; ?>
\ No newline at end of file
<?php /*a:9:{s:79:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\template\404.html";i:1587980045;s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\base.html";i:1588211322;s:82:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_css.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_js.html";i:1588830847;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\header.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\sidebar.html";i:1588038504;s:88:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\content_header.html";i:1588063433;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\footer.html";i:1588037872;s:89:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\control_sidebar.html";i:1587980045;}*/ ?>
<?php /*a:9:{s:79:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\template\404.html";i:1587980045;s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\base.html";i:1588989165;s:82:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_css.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_js.html";i:1588990223;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\header.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\sidebar.html";i:1588038504;s:88:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\content_header.html";i:1588063433;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\footer.html";i:1588037872;s:89:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\control_sidebar.html";i:1587980045;}*/ ?>
<?php if(!$admin['pjax']): ?>
<!DOCTYPE html>
<html lang="zh-CN">
......@@ -78,6 +78,25 @@
var dataSelectIds = [];
</script>
<Script>
function reurl(){
url = location.href;
var times = url.split("?");
if(times[1] != 1){
url += "?1";
self.location.replace(url);
}
}
onload=reurl
</script>
<script type="text/javascript" src="/static/admin/js/adminlte.min.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.pjax.js"></script>
<script type="text/javascript" src="/static/admin/js/admin.js"></script>
......
<?php /*a:9:{s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\manager\add.html";i:1588065380;s:78:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\base.html";i:1588211322;s:82:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_css.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\head_js.html";i:1588830847;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\header.html";i:1587980045;s:81:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\sidebar.html";i:1588038504;s:88:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\content_header.html";i:1588063433;s:80:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\footer.html";i:1588037872;s:89:"D:\PHPTutorial\WWW\fashion_group\admin\application\admin\view\public\control_sidebar.html";i:1587980045;}*/ ?>
<?php if(!$admin['pjax']): ?>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="renderer" content="webkit">
<?php endif; ?>
<title><?php echo htmlentities((isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin')); ?> | <?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Admin')); ?></title>
<?php if(!$admin['pjax']): ?>
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<!--头部css-->
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap/css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-switch/css/bootstrap-switch.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/font-awesome/css/font-awesome.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/iconpicker/css/iconpicker.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/select2/css/select2.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/fileinput/css/fileinput.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/bootstrap-colorpicker/css/bootstrap-colorpicker.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/AdminLTE.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/admin.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/_all-skins.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/css/skins.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/viewer/viewer.min.css" />
<link rel="stylesheet" type="text/css" href="/static/admin/plugins/nprogress/nprogress.css" />
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<!--头部js-->
<?php if(!$admin['pjax']): ?>
<script type="text/javascript" src="/static/admin/plugins/js-cookie/js.cookie-2.2.0.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery/jquery.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-ui/jquery-ui.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/layer/layer.js"></script>
<script type="text/javascript" src="/static/admin/plugins/laydate/laydate.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap/js/bootstrap.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/jquery.validate.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/jquery-validation/localization/messages_zh.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-switch/js/bootstrap-switch.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-number/bootstrap-number.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fastclick/fastclick.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/select2/js/select2.full.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/nprogress/nprogress.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/iconpicker/js/iconpicker.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/plugins/piexif.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/fileinput.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/fileinput/js/locales/zh.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/ueditor.config.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/ueditor.all.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/baiduueditor/lang/zh-cn/zh-cn.js"></script>
<script type="text/javascript" src="/static/admin/plugins/clipboard/clipboard.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/bootstrap-colorpicker/js/bootstrap-colorpicker.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/viewer/viewer.min.js"></script>
<script type="text/javascript" src="/static/admin/plugins/viewer/jquery-viewer.min.js"></script>
<!--勿必把地图api key更换成自己的-->
<script type="text/javascript" src='//webapi.amap.com/maps?v=1.4.15&key=cccf8ea926e153be0a013d55edd47c11&plugin=AMap.ToolBar'></script>
<!-- UI组件库 1.0 -->
<script src="//webapi.amap.com/ui/1.0/main.js?v=1.0.11"></script>
<script>
//是否为debug模式
var adminDebug = <?php echo htmlentities($debug); ?>;
//cookie前缀
var cookiePrefix = '<?php echo htmlentities($cookie_prefix); ?>';
//UEditor server地址
var UEServer = "<?php echo url('editor/server'); ?>";
//列表页当前选择的ID
// 实例化编辑器
var dataSelectIds = [];
</script>
<script type="text/javascript" src="/static/admin/js/adminlte.min.js"></script>
<script type="text/javascript" src="/static/admin/js/jquery.pjax.js"></script>
<script type="text/javascript" src="/static/admin/js/admin.js"></script>
<script type="text/javascript" src="/static/admin/js/demo.js"></script>
<script type="text/javascript" src="/static/admin/js/app.js"></script>
<?php endif; ?>
</head>
<body class="hold-transition skin-blue sidebar-mini">
<div class="wrapper">
<?php endif; ?>
<!-- 顶部 -->
<!--网页头部-->
<?php if(!$admin['pjax']): ?>
<header class="main-header">
<a class="logo">
<span class="logo-mini"><?php echo htmlentities((isset($admin['short_name']) && ($admin['short_name'] !== '')?$admin['short_name']:'Backend')); ?></span>
<span class="logo-lg"><?php echo htmlentities((isset($admin['name']) && ($admin['name'] !== '')?$admin['name']:'Backend')); ?></span>
</a>
<nav class="navbar navbar-static-top">
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<div class="navbar-custom-menu">
<ul class="nav navbar-nav">
<li class="dropdown messages-menu">
<a href="#" class="dropdown-toggle ReloadButton" title="刷新页面" data-toggle="dropdown">
<i class="fa fa-refresh"></i>
</a>
</li>
<li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="user-image" alt="用户头像">
<span class="hidden-xs"><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></span>
</a>
<ul class="dropdown-menu">
<li class="user-header">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'/static/admin/images/avatar.png')); ?>" class="img-circle" alt="用户头像">
<p>
<?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?>
<small><?php echo htmlentities((isset($admin['user']['username']) && ($admin['user']['username'] !== '')?$admin['user']['username']:'')); ?></small>
</p>
</li>
<li class="user-footer">
<div class="pull-left">
<a href="<?php echo url('admin_user/profile'); ?>" class="btn btn-default btn-flat">个人资料</a>
</div>
<div class="pull-right">
<a href="<?php echo url('auth/logout'); ?>" class="btn btn-default btn-flat">退出</a>
</div>
</li>
</ul>
</li>
<li>
<a href="#" data-toggle="control-sidebar"><i class="fa fa-gears"></i></a>
</li>
</ul>
</div>
</nav>
</header>
<?php endif; ?>
<!-- 左侧 -->
<!--左侧菜单-->
<?php if(!$admin['pjax']): ?>
<aside class="main-sidebar">
<section class="sidebar">
<div class="user-panel">
<div class="pull-left image">
<img src="<?php echo htmlentities((isset($admin['user']['avatar']) && ($admin['user']['avatar'] !== '')?$admin['user']['avatar']:'__BACKEND_IMAGES__/avatar.png')); ?>" class="img-circle" alt="用户头像">
</div>
<div class="pull-left info">
<p><?php echo htmlentities((isset($admin['user']['nickname']) && ($admin['user']['nickname'] !== '')?$admin['user']['nickname']:'')); ?></p>
<a><i class="fa fa-circle text-success"></i> 在线</a>
</div>
</div>
<form method="get" class="sidebar-form" id="sidebar-form">
<div class="input-group">
<input type="text" name="q" class="form-control" placeholder="搜索菜单" id="search-input">
<span class="input-group-btn">
<button type="submit" name="search" id="search-btn" class="btn btn-flat">
<i class="fa fa-search"></i>
</button>
</span>
</div>
</form>
<ul class="sidebar-menu" data-widget="tree">
<li class="header">导航菜单</li>
<?php echo (isset($admin['menu']) && ($admin['menu'] !== '')?$admin['menu']:''); ?>
</ul>
</section>
</aside>
<?php endif; ?>
<!-- 内容 -->
<div class="content-wrapper" id="pjax-container">
<!--内容头部-->
<section class="content-header">
<h1>
<?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'admin'); ?>
</h1>
<ol class="breadcrumb">
<li><a href="<?php echo url('index/index'); ?>"><i class="fa fa-dashboard"></i> 主页</a></li>
<li class="active"><?php echo (isset($admin['title']) && ($admin['title'] !== '')?$admin['title']:'Admin'); ?></li>
</ol>
</section>
<?php if(app('session')->get('error_message')): ?>
<!--如果有错误或者成功的消息-->
<script>
layer.msg('<?php echo htmlentities(app('session')->get('error_message')); ?>',{icon:2});
$.pjax({
url: "<?php echo htmlentities(app('session')->get('url')); ?>",
container: '#pjax-container'
});
</script>
<?php endif; if(app('session')->get('success_message')): ?>
<script>
layer.msg('<?php echo htmlentities(app('session')->get('success_message')); ?>',{icon:1});
$.pjax({
url: '<?php echo htmlentities(app('session')->get('url')); ?>',
container: '#pjax-container'
});
</script>
<?php endif; ?>
<section class="content">
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<!-- 表单头部 -->
<div class="box-header with-border">
<div class="btn-group">
<a class="btn flat btn-sm btn-default BackButton">
<i class="fa fa-arrow-left"></i>
返回
</a>
</div>
</div>
<!-- 表单 -->
<form id="dataForm" class="form-horizontal dataForm" action="" method="post"
enctype="multipart/form-data">
<!-- 表单字段区域 -->
<div class="box-body">
<div class="form-group">
<label for="language_type" class="col-sm-2 control-label">选择语言</label>
<div class="col-sm-10 col-md-4">
<select name="language_type" id="language_type" class="form-control select2">
<?php if(is_array($language_type) || $language_type instanceof \think\Collection || $language_type instanceof \think\Paginator): if( count($language_type)==0 ) : echo "" ;else: foreach($language_type as $key=>$item): ?>
<option value="<?php echo htmlentities($item); ?>" <?php if(isset($data) &&
$data['language_type']==$item): ?>selected<?php endif; ?>>
<?php echo htmlentities($item); ?>
</option>
<?php endforeach; endif; else: echo "" ;endif; ?>
</select>
</div>
</div>
<script>
$('#language_type').select2();
</script>
<div class="form-group">
<label for="avatar" class="col-sm-2 control-label">头像</label>
<div class="col-sm-10 col-md-4">
<input id="avatar" name="manager_img" placeholder="请上传头像" <?php if(isset($data['manager_img'])): ?>data-initial-preview="<?php echo htmlentities($data['manager_img']); ?>" <?php endif; ?> type="file"
class="form-control field-image" >
</div>
</div>
<script>
$('#avatar').fileinput({
language: 'zh',
overwriteInitial: true,
browseLabel: '浏览',
initialPreviewAsData: true,
dropZoneEnabled: false,
showUpload: false,
showRemove: false,
allowedFileTypes: ['image'],
maxFileSize: 10240,
});
</script>
<script>
$('#user_level_id').select2();
</script>
<div class="form-group">
<label for="username" class="col-sm-2 control-label">姓名</label>
<div class="col-sm-10 col-md-4">
<input id="username" name="manager_name" value="<?php echo htmlentities((isset($data['manager_name']) && ($data['manager_name'] !== '')?$data['manager_name']:'')); ?>"
placeholder="请输入姓名" type="text" class="form-control field-text">
</div>
</div>
<div class="form-group">
<label for="mobile" class="col-sm-2 control-label">职位</label>
<div class="col-sm-10 col-md-4">
<input id="mobile" name="manager_position" value="<?php echo htmlentities((isset($data['manager_position']) && ($data['manager_position'] !== '')?$data['manager_position']:'')); ?>" placeholder="请输入职位"
type="tel" maxlength="11" class="form-control field-mobile">
</div>
</div>
<div class="form-group">
<label for="nickname" class="col-sm-2 control-label">公司</label>
<div class="col-sm-10 col-md-4">
<input id="nickname" name="manager_company" value="<?php echo htmlentities((isset($data['manager_company']) && ($data['manager_company'] !== '')?$data['manager_company']:'')); ?>"
placeholder="请输入公司" type="text" class="form-control field-text">
</div>
</div>
</div>
<!-- 表单底部 -->
<div class="box-footer">
<?php echo token(); ?>
<div class="col-sm-2">
</div>
<div class="col-sm-10 col-md-4">
<?php if(!isset($data)): ?>
<div class="btn-group pull-right">
<label class="createContinue">
<input type="checkbox" value="1" id="_create" name="_create"
title="继续添加数据">继续添加</label>
</div>
<?php endif; ?>
<div class="btn-group">
<button type="submit" class="btn flat btn-info dataFormSubmit">
保存
</button>
</div>
<div class="btn-group">
<button type="reset" class="btn flat btn-default dataFormReset">
重置
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</section>
<script>
/** 表单验证 **/
$('#dataForm').validate({
rules: {
'user_level_id': {
required: true,
},
'username': {
required: true,
},
'mobile': {
required: true,
},
'nickname': {
required: true,
},
'password': {
required: true,
},
'status': {
required: true,
},
},
messages: {
'user_level_id': {
required: "用户等级不能为空",
},
'username': {
required: "用户名不能为空",
},
'mobile': {
required: "手机号不能为空",
},
'nickname': {
required: "昵称不能为空",
},
'password': {
required: "密码不能为空",
},
'status': {
required: "是否启用不能为空",
},
}
});
</script>
</div>
<!--页面底部-->
<?php if(!$admin['pjax']): ?>
<footer class="main-footer">
<div class="pull-right hidden-xs">
<b>Version</b> <?php echo htmlentities((isset($admin['version']) && ($admin['version'] !== '')?$admin['version']:'1.0')); ?>
</div>
<strong>Copyright &copy; <?php echo date('Y'); ?> <a href="<?php echo htmlentities((isset($admin['link']) && ($admin['link'] !== '')?$admin['link']:'#')); ?>">时尚集团</a>.</strong> All rights
reserved.
</footer>
<?php endif; ?>
<!--侧边栏-->
<?php if(!$admin['pjax']): ?>
<aside class="control-sidebar control-sidebar-dark">
<ul class="nav nav-tabs nav-justified control-sidebar-tabs">
</ul>
<div class="tab-content">
<div class="tab-pane" id="control-sidebar-home-tab">
</div>
</div>
</aside>
<div class="control-sidebar-bg"></div>
<?php endif; if(!$admin['pjax']): ?>
</div>
<?php endif; if(!$admin['pjax']): ?>
</body>
</html>
<?php endif; ?>
\ No newline at end of file
......@@ -25,7 +25,30 @@ class GoodsItemController extends Controller
$language_type = 0;
}
return view('index.goods_item.index');
$data5 = IndexBanner::query()
->where('language_type','=',$language_type)
->where('type','=',5)
->where('delete_time','=',0)
->limit(4)
->orderBy('id','desc')->get();
$data6 = IndexBanner::query()
->where('language_type','=',$language_type)
->where('type','=',6)
->where('delete_time','=',0)
->limit(4)
->orderBy('id','desc')->get();
$data7 = IndexBanner::query()
->where('language_type','=',$language_type)
->where('type','=',7)
->where('delete_time','=',0)
->limit(4)
->orderBy('id','desc')->get();
return view('index.goods_item.index')
->with(compact('data5'))
->with(compact('data6'))
->with(compact('data7'));
}
public function more(Request $request)
......@@ -42,20 +65,27 @@ class GoodsItemController extends Controller
}
$type= $request->get('type');
$data = IndexBanner::query()->where('type','=',$type)
->orderBy('id','asc')->get();
$data = IndexBanner::query()
->where('delete_time','=',0)
->where('language_type','=',$language_type)
->where('type','=',$type)
->orderBy('id','desc')->get();
$content5 = IndexBanner::query()->where('type', $type)->where('language_type','=',$language_type)->where('delete_time','=',0)->first();
$content6 = IndexBanner::query()->where('type', $type)->where('language_type','=',$language_type)->where('delete_time','=',0)->first();
$content7 = IndexBanner::query()->where('type', $type)->where('language_type','=',$language_type)->where('delete_time','=',0)->first();
switch ($type){
case 5:
$title = '空间景观';
$content = '多年来,时尚集团以艺术化的商铺设计与公共景观打造在业界独树一帜。公司的设计团队拥有多项专利,个性化艺术化的商场氛围,丰富多样的社群活动,为消费者带来耳目一新的体验,同时也推动了行业发展的标准。';
$content = $content5->content;
break;
case 6 :
$title = '活动运营';
$content = '明星活动、青年社团活动、艺术展览、音乐节、时尚公开课……每周时尚的商场都举办各种年轻人喜爱的潮流活动,让商场从艺术化的景观街区,成为年轻人聚集的社交空间。';
$content = $content6->content;
break;
case 7:
$title = '艺术街区';
$content = '多年来,时尚集团以艺术化的街区设计在业界独树一帜,公司拥有顶尖的设计团队,截至目前拥有近50项空间设计专利。';
$content = $content7->content;
}
return view('index.goods_item.more')
......@@ -66,13 +96,81 @@ class GoodsItemController extends Controller
public function maodian21()
{
$url = url()->full();
$pathinfo = parse_url($url);
$path = $pathinfo['path'];
$en = substr($path,1,2);
if($en == 'en'){
$language_type = 1;
}else{
$language_type = 0;
}
$data5 = IndexBanner::query()
->where('language_type','=',$language_type)
->where('type','=',5)
->where('delete_time','=',0)
->limit(4)
->orderBy('id','desc')->get();
$data6 = IndexBanner::query()
->where('language_type','=',$language_type)
->where('type','=',6)
->where('delete_time','=',0)
->limit(4)
->orderBy('id','desc')->get();
return view('index.goods_item.maodian21');
$data7 = IndexBanner::query()
->where('language_type','=',$language_type)
->where('type','=',7)
->where('delete_time','=',0)
->limit(4)
->orderBy('id','desc')->get();
return view('index.goods_item.maodian21')
->with(compact('data5'))
->with(compact('data6'))
->with(compact('data7'));
}
public function maodian22()
{
$url = url()->full();
$pathinfo = parse_url($url);
$path = $pathinfo['path'];
$en = substr($path,1,2);
if($en == 'en'){
$language_type = 1;
}else{
$language_type = 0;
}
$data5 = IndexBanner::query()
->where('language_type','=',$language_type)
->where('type','=',5)
->where('delete_time','=',0)
->limit(4)
->orderBy('id','desc')->get();
$data6 = IndexBanner::query()
->where('language_type','=',$language_type)
->where('type','=',6)
->where('delete_time','=',0)
->limit(4)
->orderBy('id','desc')->get();
$data7 = IndexBanner::query()
->where('language_type','=',$language_type)
->where('type','=',7)
->where('delete_time','=',0)
->limit(4)
->orderBy('id','desc')->get();
return view('index.goods_item.maodian22');
return view('index.goods_item.maodian22')
->with(compact('data5'))
->with(compact('data6'))
->with(compact('data7'));
}
}
......@@ -175,15 +175,13 @@
<div class="success-video">
<ul class="clearfix">
@if($language_type == 1)
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/d9805a7ad25f72c0655e13cd3bf8c899.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe Business Plaza 1</p></a></li>
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/0caf0bda3323abb4a9a0d9067bc3ad0b.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe Business Plaza 3</p></a></li>
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/8556c3e0ecaae89fd26a0937a2f6f358.jpg')}} "><p class="ell1">Shenyang fashion underground street-j Street interactive scenic area 1</p></a></li>
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/dea380bba83ee7bd6d1601cc29765f0d.jpg')}}"><p class="ell1">Shenyang fashion underground street-j Street interactive scenic area 2</p></a></li>
@foreach($data5 as $v)
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@else
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/d9805a7ad25f72c0655e13cd3bf8c899.jpg')}} "><p class="ell1">广州时尚天河商业广场1</p></a></li>
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/0caf0bda3323abb4a9a0d9067bc3ad0b.jpg')}} "><p class="ell1">广州时尚天河商业广场3</p></a></li>
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/8556c3e0ecaae89fd26a0937a2f6f358.jpg')}} "><p class="ell1">沈阳时尚地下街-J街互动景区1</p></a></li>
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/dea380bba83ee7bd6d1601cc29765f0d.jpg')}}"><p class="ell1">沈阳时尚地下街-J街互动景区2</p></a></li>
@foreach($data5 as $v)
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@endif
</ul>
</div>
......@@ -208,15 +206,13 @@
<div class="success-video">
<ul class="clearfix">
@if($language_type == 1)
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/3a2c5a357dc44fdc4ceb2e51d2720125.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe Business Plaza 1</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/9f1954b2188115dac7dd9cfa9d7188f8.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe business square 2</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/976c8d47b720c60e667d8837dcf0a7a7.jpg')}} "><p class="ell1">Shenyang fashion underground street - running man</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/591de0f834643f0647d93809038c879a.jpg')}} "><p class="ell1">Nanjing fashion Laidi business - shangwenjie signing meeting</p></a></li>
@foreach($data6 as $v)
<li ><a href="{{route('enmore',['type'=>6])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@else
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/3a2c5a357dc44fdc4ceb2e51d2720125.jpg')}} "><p class="ell1">广州时尚天河商业广场1</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/9f1954b2188115dac7dd9cfa9d7188f8.jpg')}} "><p class="ell1">广州时尚天河商业广场2</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/976c8d47b720c60e667d8837dcf0a7a7.jpg')}} "><p class="ell1">沈阳时尚地下街-跑男</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/591de0f834643f0647d93809038c879a.jpg')}} "><p class="ell1">南京时尚莱迪商业-尚雯婕签售会</p></a></li>
@foreach($data6 as $v)
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@endif
</ul>
</div>
......@@ -242,13 +238,13 @@
<div class="success-video">
<ul class="clearfix">
@if($language_type == 1)
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/00a098ff81f537d6a975f1035e899e41.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe art block 1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/f4c97b5d8ad1e1d8b712b0e54d470bad.jpg')}} "><p class="ell1">Shenyang fashion underground street 1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/8a5bb29cf7a0b37eb566d60c761d2a3b.jpg')}} "><p class="ell1">Nanjing fashion Laidi business-1D</p></a></li>
@else
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/00a098ff81f537d6a975f1035e899e41.jpg')}} "><p class="ell1">广州时尚天河艺术街区1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/f4c97b5d8ad1e1d8b712b0e54d470bad.jpg')}} "><p class="ell1">沈阳时尚地下街1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/8a5bb29cf7a0b37eb566d60c761d2a3b.jpg')}} "><p class="ell1">南京时尚莱迪商业-1D</p></a></li>
@foreach($data7 as $v)
<li ><a href="{{route('enmore',['type'=>7])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@else
@foreach($data7 as $v)
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@endif
</ul>
</div>
......
......@@ -112,15 +112,13 @@
<div class="success-video">
<ul class="clearfix">
@if($language_type == 1)
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/d9805a7ad25f72c0655e13cd3bf8c899.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe Business Plaza 1</p></a></li>
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/0caf0bda3323abb4a9a0d9067bc3ad0b.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe Business Plaza 3</p></a></li>
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/8556c3e0ecaae89fd26a0937a2f6f358.jpg')}} "><p class="ell1">Shenyang fashion underground street-j Street interactive scenic area 1</p></a></li>
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/dea380bba83ee7bd6d1601cc29765f0d.jpg')}}"><p class="ell1">Shenyang fashion underground street-j Street interactive scenic area 2</p></a></li>
@foreach($data5 as $v)
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@else
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/d9805a7ad25f72c0655e13cd3bf8c899.jpg')}} "><p class="ell1">广州时尚天河商业广场1</p></a></li>
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/0caf0bda3323abb4a9a0d9067bc3ad0b.jpg')}} "><p class="ell1">广州时尚天河商业广场3</p></a></li>
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/8556c3e0ecaae89fd26a0937a2f6f358.jpg')}} "><p class="ell1">沈阳时尚地下街-J街互动景区1</p></a></li>
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/dea380bba83ee7bd6d1601cc29765f0d.jpg')}}"><p class="ell1">沈阳时尚地下街-J街互动景区2</p></a></li>
@foreach($data5 as $v)
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@endif
</ul>
</div>
......@@ -146,15 +144,13 @@
<div class="success-video">
<ul class="clearfix">
@if($language_type == 1)
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/3a2c5a357dc44fdc4ceb2e51d2720125.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe Business Plaza 1</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/9f1954b2188115dac7dd9cfa9d7188f8.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe business square 2</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/976c8d47b720c60e667d8837dcf0a7a7.jpg')}} "><p class="ell1">Shenyang fashion underground street - running man</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/591de0f834643f0647d93809038c879a.jpg')}} "><p class="ell1">Nanjing fashion Laidi business - shangwenjie signing meeting</p></a></li>
@foreach($data6 as $v)
<li ><a href="{{route('enmore',['type'=>6])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@else
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/3a2c5a357dc44fdc4ceb2e51d2720125.jpg')}} "><p class="ell1">广州时尚天河商业广场1</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/9f1954b2188115dac7dd9cfa9d7188f8.jpg')}} "><p class="ell1">广州时尚天河商业广场2</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/976c8d47b720c60e667d8837dcf0a7a7.jpg')}} "><p class="ell1">沈阳时尚地下街-跑男</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/591de0f834643f0647d93809038c879a.jpg')}} "><p class="ell1">南京时尚莱迪商业-尚雯婕签售会</p></a></li>
@foreach($data6 as $v)
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@endif
</ul>
</div>
......@@ -180,13 +176,13 @@
<div class="success-video">
<ul class="clearfix">
@if($language_type == 1)
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/00a098ff81f537d6a975f1035e899e41.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe art block 1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/f4c97b5d8ad1e1d8b712b0e54d470bad.jpg')}} "><p class="ell1">Shenyang fashion underground street 1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/8a5bb29cf7a0b37eb566d60c761d2a3b.jpg')}} "><p class="ell1">Nanjing fashion Laidi business-1d</p></a></li>
@foreach($data7 as $v)
<li ><a href="{{route('enmore',['type'=>7])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@else
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/00a098ff81f537d6a975f1035e899e41.jpg')}} "><p class="ell1">广州时尚天河艺术街区1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/f4c97b5d8ad1e1d8b712b0e54d470bad.jpg')}} "><p class="ell1">沈阳时尚地下街1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/8a5bb29cf7a0b37eb566d60c761d2a3b.jpg')}} "><p class="ell1">南京时尚莱迪商业-1D</p></a></li>
@foreach($data7 as $v)
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@endif
</ul>
</div>
......
......@@ -111,15 +111,13 @@
<div class="success-video">
<ul class="clearfix">
@if($language_type == 1)
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/d9805a7ad25f72c0655e13cd3bf8c899.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe Business Plaza 1</p></a></li>
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/0caf0bda3323abb4a9a0d9067bc3ad0b.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe Business Plaza 3</p></a></li>
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/8556c3e0ecaae89fd26a0937a2f6f358.jpg')}} "><p class="ell1">Shenyang fashion underground street-j Street interactive scenic area 1</p></a></li>
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{asset('images/dea380bba83ee7bd6d1601cc29765f0d.jpg')}}"><p class="ell1">Shenyang fashion underground street-j Street interactive scenic area 2</p></a></li>
@foreach($data5 as $v)
<li ><a href="{{route('enmore',['type'=>5])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@else
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/d9805a7ad25f72c0655e13cd3bf8c899.jpg')}} "><p class="ell1">广州时尚天河商业广场1</p></a></li>
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/0caf0bda3323abb4a9a0d9067bc3ad0b.jpg')}} "><p class="ell1">广州时尚天河商业广场3</p></a></li>
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/8556c3e0ecaae89fd26a0937a2f6f358.jpg')}} "><p class="ell1">沈阳时尚地下街-J街互动景区1</p></a></li>
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{asset('images/dea380bba83ee7bd6d1601cc29765f0d.jpg')}}"><p class="ell1">沈阳时尚地下街-J街互动景区2</p></a></li>
@foreach($data5 as $v)
<li ><a href="{{route('more',['type'=>5])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@endif
</ul>
</div>
......@@ -145,15 +143,13 @@
<div class="success-video">
<ul class="clearfix">
@if($language_type == 1)
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/3a2c5a357dc44fdc4ceb2e51d2720125.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe Business Plaza 1</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/9f1954b2188115dac7dd9cfa9d7188f8.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe business square 2</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/976c8d47b720c60e667d8837dcf0a7a7.jpg')}} "><p class="ell1">Shenyang fashion underground street - running man</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/591de0f834643f0647d93809038c879a.jpg')}} "><p class="ell1">Nanjing fashion Laidi business - shangwenjie signing meeting</p></a></li>
@foreach($data6 as $v)
<li ><a href="{{route('enmore',['type'=>6])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@else
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/3a2c5a357dc44fdc4ceb2e51d2720125.jpg')}} "><p class="ell1">广州时尚天河商业广场1</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/9f1954b2188115dac7dd9cfa9d7188f8.jpg')}} "><p class="ell1">广州时尚天河商业广场2</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/976c8d47b720c60e667d8837dcf0a7a7.jpg')}} "><p class="ell1">沈阳时尚地下街-跑男</p></a></li>
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{asset('images/591de0f834643f0647d93809038c879a.jpg')}} "><p class="ell1">南京时尚莱迪商业-尚雯婕签售会</p></a></li>
@foreach($data6 as $v)
<li ><a href="{{route('more',['type'=>6])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@endif
</ul>
</div>
......@@ -179,15 +175,14 @@
<div class="success-video">
<ul class="clearfix">
@if($language_type == 1)
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/00a098ff81f537d6a975f1035e899e41.jpg')}} "><p class="ell1">Guangzhou fashion Tianhe art block 1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/f4c97b5d8ad1e1d8b712b0e54d470bad.jpg')}} "><p class="ell1">Shenyang fashion underground street 1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/8a5bb29cf7a0b37eb566d60c761d2a3b.jpg')}} "><p class="ell1">Nanjing fashion Laidi business-1d</p></a></li>
@foreach($data7 as $v)
<li ><a href="{{route('enmore',['type'=>7])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@else
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/00a098ff81f537d6a975f1035e899e41.jpg')}} "><p class="ell1">广州时尚天河艺术街区1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/f4c97b5d8ad1e1d8b712b0e54d470bad.jpg')}} "><p class="ell1">沈阳时尚地下街1</p></a></li>
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{asset('images/8a5bb29cf7a0b37eb566d60c761d2a3b.jpg')}} "><p class="ell1">南京时尚莱迪商业-1D</p></a></li>
@foreach($data7 as $v)
<li ><a href="{{route('more',['type'=>7])}}" target=""><img src="{{$v->url}}{{$v->path}}"><p class="ell1">{{$v->img_title}}</p></a></li>
@endforeach
@endif
</ul>
</div>
<div class="culture-more">
......
......@@ -25,9 +25,9 @@
<div class="pro-img">
<ul>
@foreach($data as $v)
<li name="{{ asset($v->path)}}" data-txt="{{ $v->img_title }}">
<li name="{{$v->url}}{{$v->path}}" data-txt="{{ $v->img_title }}">
<a href="javascript:;">
<img src="{{ asset($v->path) }}">
<img src="{{$v->url}}{{$v->path}}">
</a>
</li>
@endforeach
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment