official_website/data/runtime/admin/temp/6803435a00add186be7451d40b2...

877 lines
44 KiB
PHP
Raw Normal View History

2024-12-02 13:57:08 +08:00
<?php if (!defined("RUNTIME")) exit(); /*a:5:{s:63:"C:\lewis\phpstudy_pro\WWW\foxcms\app\admin\view\index\home.html";i:1732932220;s:64:"C:\lewis\phpstudy_pro\WWW\foxcms\app\admin\view\foxcms_home.html";i:1732932220;s:56:"C:\lewis\phpstudy_pro\WWW\foxcms\app\admin\view\css.html";i:1732932220;s:64:"C:\lewis\phpstudy_pro\WWW\foxcms\app\admin\view\footed-copy.html";i:1732932220;s:59:"C:\lewis\phpstudy_pro\WWW\foxcms\app\admin\view\script.html";i:1732932220;}*/ ?>
<!DOCTYPE html>
<html lang="cn">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title><?php echo xn_cfg('base.sys_name'); ?></title>
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/foxui-1.32.min.css" />
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/common.min.css" />
<link rel="stylesheet" href="<?php echo htmlentities($staticPath); ?>css/admin_common.css" />
<style>
.column-5{
flex: 1 0 auto;
width: 0;
cursor: pointer;
}
.update-log .info a:link{
color: #909399;
}
.update-log .info a:visited{
color: #909399;
}
.update-log .info a:active{
color: #909399;
}
.update-log .info a:hover{
color: #2879fe;
}
</style>
</head>
<body>
<div class="foxcms-container company-introduction-page-container">
<div class="foxcms-header">
<div class="foxcms-logo">
<img style="width: 100px;" src="/static/images/foxcms_logo.svg">
</div>
<div class="foxcms-bar">
<div class="foxcms-bar-left">
<span class="foxui-text-primary"><?php echo htmlentities($dateTimeText); ?></span>
<span class="foxui-text-dark">欢迎登录</span>
<span class="foxui-text-dark"><?php echo htmlentities($basic['name']); ?>管理后台</span>
</div>
<div class="foxcms-bar-right">
<div class="foxui-dropdown lang-select">
<?php if(sizeof($otherLangs) > 0): ?>
<button class="foxui-dropdown-handle foxui-dropdown-icon lang-btn" data-trigger="hover" data-lang="<?php echo htmlentities($curlang['lang']); ?>"><?php echo htmlentities($curlang['name']); ?></button>
<div class="foxui-dropdown-menu">
<ul class="foxui-dropdown-slide">
<?php foreach($otherLangs as $key=>$vo): ?>
<li class="foxui-dropdown-item" data-id="<?php echo htmlentities($vo['id']); ?>" data-lang="<?php echo htmlentities($vo['lang']); ?>" onclick="langHandover(this)"><?php echo htmlentities($vo['name']); ?></li>
<?php endforeach; ?>
</ul>
</div>
<?php else: ?>
<button class="foxui-dropdown-handle foxui-dropdown-icon lang-btn display-none" data-trigger="hover" data-lang="<?php echo htmlentities($curlang['lang']); ?>"><?php echo htmlentities($curlang['name']); ?></button>
<?php endif; ?>
</div>
<div class="item icon index">
<i class="foxui-icon-shouye-o"></i>
</div>
<div class="item role">
<div class="foxui-dropdown">
<button class="foxui-text foxui-dropdown-handle foxui-dropdown-icon" data-trigger="hover" id="barService">
<i class="foxui-icon-kefu-o"></i>
</button>
</div>
<div class="foxui-dropdown dropdown">
<button class="foxui-text foxui-dropdown-handle foxui-dropdown-icon" data-trigger="hover"><?php echo session("admin_auth.nickname"); ?></button>
<div class="foxui-dropdown-menu">
<ul class="foxui-dropdown-slide">
<li class="foxui-dropdown-item" data-id="1">个人中心</li>
<li class="foxui-dropdown-item" data-id="2">修改密码</li>
<li class="foxui-dropdown-item" data-id="3">更新缓存</li>
<li class="foxui-divided" data-id="4"></li>
<li class="foxui-dropdown-item" data-id="5">退出系统</li>
</ul>
</div>
</div>
</div>
<div class="item icon logout">
<a onclick="logout()"><i class="foxui-icon-tuichu-o"></i></a>
</div>
</div>
</div>
</div>
<div class="foxcms-main">
<!--左侧第一栏菜单-->
<div class="foxcms-nav">
<ul>
<?php if(is_array($menu) || $menu instanceof \think\Collection || $menu instanceof \think\Paginator): if( count($menu)==0 ) : echo "" ;else: foreach($menu as $key=>$vo): ?>
<li>
<a class="<?php if($pid == $vo['id']): ?>active<?php endif; ?>" href="<?php echo htmlentities($vo['name']); ?>">
<i class="foxui-<?php echo htmlentities($vo['icon']); ?>"></i>
<span><?php echo htmlentities($vo['title']); ?></span>
</a>
</li>
<?php endforeach; endif; else: echo "" ;endif; ?>
</ul>
</div>
<div class="foxcms-article foxui-scroll-container">
<div class="foxcms-content">
<!-- page content -->
<div class="foxcms-content-inner">
<!-- page content -->
<div class="index-content">
<div class="foxui-row">
<div class="foxui-col-xs-17 foxui-col-sm-17 foxui-col-xxl-18">
<div class="section section-panel">
<div class="foxui-row">
<div class="foxui-col-xs-10 foxui-col-sm-10">
<!-- banner尺寸970px * 340px -->
<div class="foxui-carousel carousel ad" data-autoplay="3000">
<div class="foxui-carousel-wrapper slide">
<?php foreach($adList as $key=>$vo): ?>
<div class="foxui-carousel-slide">
<div class="carousel-img-box">
<a href="<?php echo htmlentities($vo->link); ?>" target="_blank">
<img src="<?php echo htmlentities($vo->img_url); ?>" alt="<?php echo htmlentities($vo->title); ?>" />
</a>
</div>
</div>
<?php endforeach; ?>
</div>
<div class="foxui-carousel-button-prev"></div>
<div class="foxui-carousel-button-next"></div>
<div class="foxui-carousel-pagination is-dots"></div>
</div>
</div>
<div class="foxui-col-xs-14 foxui-col-sm-14">
<div class="serve-info">
<div class="title">
<h2>
<span><?php echo htmlentities($basic['name']); ?></span>
<a href="<?php echo url('Config/base'); ?>?columnId=23">
<i class="foxui-icon-bianji-o"></i>
</a>
</h2>
<p><?php echo htmlentities($basic['url_prefix']); ?><?php echo htmlentities($basic['url']); ?></p>
</div>
<ul class="content">
<li class="item">
<span>服务器系统:</span>
<strong><?php echo htmlentities($serverInfo['os']); ?></strong>
</li>
<li class="item">
<span>文件上传限制:</span>
<strong><?php echo htmlentities($serverInfo['fileUpload']); ?></strong>
</li>
<li class="item">
<span>服务器环境:</span>
<strong><?php echo htmlentities($serverInfo['webServer']); ?></strong>
</li>
<li class="item">
<span>POST</span>
<strong><?php echo htmlentities((isset($serverInfo['postSize']) && ($serverInfo['postSize'] !== '')?$serverInfo['postSize']:'unknown')); ?></strong>
</li>
<li class="item">
<span>服务器IP</span>
<strong><?php echo htmlentities($serverInfo['ip']); ?></strong>
</li>
<li class="item">
<span>最大执行时间:</span>
<strong><?php echo htmlentities($serverInfo['maxExTime']); ?></strong>
</li>
<li class="item">
<span>PHP版本</span>
<strong><?php echo htmlentities($serverInfo['phpVersion']); ?></strong>
</li>
<li class="item">
<span>MYSQL版本</span>
<strong><?php echo htmlentities($serverInfo['mysqlVersion']); ?></strong>
</li>
</ul>
</div>
</div>
</div>
<div class="foxui-row action-list">
<div class="foxui-col-xs-3 foxui-col-sm-3">
<a class="foxui-link action" href="<?php echo htmlentities($links['siteSet']); ?>">
<div class="icon">
<i class="foxui-icon-quanju-f"></i>
</div>
<span>网站设置</span>
</a>
</div>
<div class="foxui-col-xs-3 foxui-col-sm-3">
<a class="foxui-link action" href="<?php echo htmlentities($links['column']); ?>">
<div class="icon">
<i class="foxui-icon-neirong-f"></i>
</div>
<span>栏目管理</span>
</a>
</div>
<div class="foxui-col-xs-3 foxui-col-sm-3">
<a class="foxui-link action" href="<?php echo htmlentities($links['sitemapUrl']); ?>">
<div class="icon">
<i class="foxui-icon-ditu-f"></i>
</div>
<span>网站地图</span>
</a>
</div>
<div class="foxui-col-xs-3 foxui-col-sm-3">
<a class="foxui-link action" href="<?php echo htmlentities($links['countPath']); ?>">
<div class="icon">
<i class="foxui-icon-diqiu-f"></i>
</div>
<span>访客统计</span>
</a>
</div>
<div class="foxui-col-xs-3 foxui-col-sm-3">
<a class="foxui-link action" href="<?php echo htmlentities($links['baiduRecord']); ?>" target="_blank">
<div class="icon">
<i class="foxui-icon-baidu-f"></i>
</div>
<span>百度收录</span>
</a>
</div>
<div class="foxui-col-xs-3 foxui-col-sm-3">
<a class="foxui-link action" href="<?php echo htmlentities($links['htmlStatic']); ?>">
<div class="icon">
<i class="foxui-icon-kanban-f"></i>
</div>
<span>SEO设置</span>
</a>
</div>
<div class="foxui-col-xs-3 foxui-col-sm-3">
<a class="foxui-link action form-manage" href="<?php echo htmlentities($links['formList']); ?>">
<div class="icon">
<i class="foxui-icon-biaodan-f"></i>
</div>
<span>表单管理</span>
</a>
</div>
</div>
</div>
<div class="section section-panel content-total margin-top-24">
<div class="panel-title">
<h3>
<i class="foxui-icon-tongji-o"></i>
<span>内容统计</span>
</h3>
</div>
<div class="content">
<div class="display-flex">
<div class="column-5" id="articleUrl">
<div class="column-inner">
<div>
<i class="foxui-icon-xinwen-o"></i>
</div>
<div>
<h1><?php echo htmlentities($helpCenters['articleCount']); ?></h1>
<p>文章内容</p>
</div>
</div>
</div>
<div class="column-5" id="imagesUrl">
<div class="column-inner">
<div>
<i class="foxui-icon-tupian-o"></i>
</div>
<div>
<h1><?php echo htmlentities($helpCenters['imagesCount']); ?></h1>
<p>图集内容</p>
</div>
</div>
</div>
<div class="column-5" id="productUrl">
<div class="column-inner">
<div>
<i class="foxui-icon-tupian-o"></i>
</div>
<div>
<h1><?php echo htmlentities($helpCenters['productCount']); ?></h1>
<p>产品内容</p>
</div>
</div>
</div>
<div class="column-5" id="videoUrl">
<div class="column-inner">
<div>
<i class="foxui-icon-tupian-o"></i>
</div>
<div>
<h1><?php echo htmlentities($helpCenters['videoCount']); ?></h1>
<p>视频内容</p>
</div>
</div>
</div>
<div class="column-5" id="linkUrl">
<div class="column-inner">
<div>
<i class="foxui-icon-youlian-o"></i>
</div>
<div>
<h1><?php echo htmlentities($helpCenters['linkCount']); ?></h1>
<p>友情链接</p>
</div>
</div>
</div>
<div class="column-5" id="adUrl">
<div class="column-inner">
<div>
<i class="foxui-icon-guanggao-o"></i>
</div>
<div>
<h1><?php echo htmlentities($helpCenters['adCount']); ?></h1>
<p>广告数量</p>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="section section-panel visit-profile margin-top-24">
<div class="panel-title">
<h3>
<i class="foxui-icon-fangke-o"></i>
<span>访问概况</span>
</h3>
</div>
<div class="content">
<div class="foxui-tabs foxui-type-line foxui-position-right" id="viewTabs">
<div class="foxui-tabs-header">
<div class="foxui-tabs-item is-active">今日</div>
<div class="foxui-tabs-item">昨日</div>
<div class="foxui-tabs-item">近7日</div>
<div class="foxui-tabs-item">近30日</div>
</div>
<div class="foxui-tabs-content">
<div class="foxui-tabs-pane todayChart">
<div class="foxui-row foxui-align-items-center">
<div class="foxui-col-xs-6 foxui-col-sm-6">
<div class="pv">
<p>
<span>总浏览量(PV)</span>
<i class="foxui-icon-wenti-f pv-tip"></i>
</p>
<h1></h1>
</div>
<div class="uv">
<p>
<span>总访客量(UV)</span>
<i class="foxui-icon-wenti-f uv-tip"></i>
</p>
<h1></h1>
</div>
</div>
<div class="foxui-col-xs-18 foxui-col-sm-18">
<div class="echart-box" id="todayChart"></div>
</div>
</div>
</div>
<div class="foxui-tabs-pane yesterdayChart">
<div class="foxui-row foxui-align-items-center">
<div class="foxui-col-xs-6 foxui-col-sm-6">
<div class="pv">
<p>
<span>总浏览量(PV)</span>
<i class="foxui-icon-wenti-f pv-tip"></i>
</p>
<h1></h1>
</div>
<div class="uv">
<p>
<span>总访客量(UV)</span>
<i class="foxui-icon-wenti-f uv-tip"></i>
</p>
<h1></h1>
</div>
</div>
<div class="foxui-col-xs-18 foxui-col-sm-18">
<div class="echart-box" id="yesterdayChart"></div>
</div>
</div>
</div>
<div class="foxui-tabs-pane weekChart">
<div class="foxui-row foxui-align-items-center">
<div class="foxui-col-xs-6 foxui-col-sm-6">
<div class="pv">
<p>
<span>总浏览量(PV)</span>
<i class="foxui-icon-wenti-f pv-tip"></i>
</p>
<h1></h1>
</div>
<div class="uv">
<p>
<span>总访客量(UV)</span>
<i class="foxui-icon-wenti-f uv-tip"></i>
</p>
<h1></h1>
</div>
</div>
<div class="foxui-col-xs-18 foxui-col-sm-18">
<div class="echart-box" id="weekChart"></div>
</div>
</div>
</div>
<div class="foxui-tabs-pane monthChart">
<div class="foxui-row foxui-align-items-center">
<div class="foxui-col-xs-6 foxui-col-sm-6">
<div class="pv">
<p>
<span>总浏览量(PV)</span>
<i class="foxui-icon-wenti-f pv-tip"></i>
</p>
<h1></h1>
</div>
<div class="uv">
<p>
<span>总访客量(UV)</span>
<i class="foxui-icon-wenti-f uv-tip"></i>
</p>
<h1></h1>
</div>
</div>
<div class="foxui-col-xs-18 foxui-col-sm-18">
<div class="echart-box" id="monthChart"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="foxui-col-xs-7 foxui-col-sm-7 foxui-col-xxl-6">
<div class="section section-panel update">
<div class="update-header auth">
<h1>
<i class="foxui-icon-zhengban-o"></i>
<span class="software_version_name"><?php echo htmlentities((isset($authorize->software_version_name) && ($authorize->software_version_name !== '')?$authorize->software_version_name:"基础授权版")); ?></span>
</h1>
<p>
<i class="foxui-icon-guanli-o"></i>
<span class="code">授权密钥:<?php echo htmlentities((isset($authorize->code) && ($authorize->code !== '')?$authorize->code:"")); ?></span>
</p>
<p>
<i class="foxui-icon-shijian-o"></i>
<span class="end_time_text">授权到期:<?php echo htmlentities((isset($authorize->end_time_text) && ($authorize->end_time_text !== '')?$authorize->end_time_text:"")); ?></span>
</p>
<p>
<i class="foxui-icon-banben-o"></i>
<span class="version">当前版本:<?php echo htmlentities((isset($authorize->version) && ($authorize->version !== '')?$authorize->version:"")); ?></span>
</p>
<a class="foxui-link">
<span>授权证书</span>
<i class="foxui-icon-xiangyou-o"></i>
</a>
</div>
<div class="update-main update-log">
<div class="panel-title">
<h3>
<i class="foxui-icon-gengxin-o"></i>
<span>更新日志</span>
</h3>
<a class="foxui-link link-secondary" href="<?php echo htmlentities($links['adminLog']); ?>" target="_blank">
<span>查看更多</span>
<i class="foxui-icon-xiangyou-o"></i>
</a>
</div>
<ul class="content">
<?php foreach($updateLogList as $key=>$vo): ?>
<li class="item">
<div class="date-time">
<strong>
<?php echo htmlentities($vo->brief_title); if($key < 1): ?>
<i class="foxui-icon-zuixin-f"></i>
<?php endif; ?>
</strong>
<span><?php echo htmlentities($vo->release_time); ?></span>
</div>
<p class="info foxui-ellipsis"><a target="_blank" href="<?php echo htmlentities($vo->link_url); ?>"><?php echo htmlentities($vo->title); ?></a></p>
</li>
<?php endforeach; ?>
</ul>
</div>
<div class="update-footer">
<a class="foxui-link link-secondary" href="//www.qianfox.com/contact/#plans" target="_blank">
<span>我想要定制功能</span>
<i class="foxui-icon-xiangyou-o"></i>
</a>
</div>
</div>
<div class="section section-panel system margin-top-24">
<div class="left">
<div class="icon">
<i class="foxui-icon-tongbu-f"></i>
</div>
<div class="text-box">
<h3>系统更新</h3>
<p class="version">最新系统版本: <?php echo htmlentities((isset($latestVersion->v) && ($latestVersion->v !== '')?$latestVersion->v:"")); ?></p>
</div>
</div>
<div class="right">
<a class="foxui-link foxui-link-primary" href="<?php echo htmlentities($latestVersion->url); ?>">
<span>前往更新</span>
<i class="foxui-icon-xiangyou-o"></i>
</a>
</div>
</div>
<div class="section section-panel help margin-top-24">
<div class="panel-title">
<h3>
<i class="foxui-icon-yuedu-o"></i>
<span>帮助中心</span>
</h3>
<a class="foxui-link link-secondary" href="<?php echo htmlentities($links['helpCenter']); ?>" target="_blank">
<span>查看更多</span>
<i class="foxui-icon-xiangyou-o"></i>
</a>
</div>
<div class="content" style="padding-top: 0">
<!-- <div class="foxui-input-group">
<div class="foxui-input-prefix">
<i class="foxui-icon-sousuo-o foxui-prefix-icon"></i>
<input name="search_key" class="foxui-size-medium" placeholder="输入你想了解的问题" value="" />
</div>
</div> -->
<div class="hot-help">
<h3>你可以快速了解</h3>
<div class="foxui-row foxui-gutter-3">
<?php foreach($helpCenterList as $key=>$vo): ?>
<div class="foxui-col-xxl-8 foxui-col-sm-10 foxui-col-xs-10">
<a href="<?php echo htmlentities($vo->link); ?>" class="foxui-tag foxui-plain-info foxui-ellipsis" target="_blank"><?php echo htmlentities($vo->brief_title); ?></a>
</div>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
<div class="section section-panel serve margin-top-24">
<div class="panel-title">
<h3>
<i class="foxui-icon-zuanshi-o"></i>
<span>服务支持</span>
</h3>
</div>
<div class="content service_support">
<div class="foxui-row">
<div class="foxui-col-xs-10 foxui-col-sm-10">
<?php foreach($serviceSupport->slideList as $key=>$vo): if(!empty($vo->img_url)): ?>
<div class="img-box img_url foxui-margin-bottom-8">
<img src="<?php echo htmlentities($vo->img_url); ?>" alt="" />
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
<div class="foxui-col-xs-14 foxui-col-sm-14">
<div class="text-box">
<h3 class="foxui-ellipsis title"><?php echo htmlentities($serviceSupport->name); ?></h3>
<?php foreach($serviceSupport->slideList as $key=>$vo): if(!empty($vo->title)): ?>
<p class="foxui-ellipsis">
<i class="<?php echo htmlentities($vo->title_icon); ?>"></i>
<span class="rn"><?php echo htmlentities($vo->title); ?></span>
</p>
<?php endif; ?>
<?php endforeach; ?>
</div>
<div class="foxui-row foxui-gutter-4">
<?php foreach($serviceSupport->slideList as $key=>$vo): if(!empty($vo->jump_title)): ?>
<div class="foxui-col-xs-12 foxui-col-sm-12">
<a class="foxui-link" href="<?php echo htmlentities($vo->jump_link); ?>" target="_blank">
<span><?php echo htmlentities($vo->jump_title); ?></span>
<i class="foxui-icon-xiangyou-o"></i>
</a>
</div>
<?php endif; ?>
<?php endforeach; ?>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="foxcms-content-copy">
<p>
<span>Copyright © 2021-<?php echo isset($nowtime) ? htmlentities($nowtime) : '现在'; ?></span>
<strong>FOXCMS</strong>
<span>版权所有</span>
</p>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="<?php echo htmlentities($staticPath); ?>js/jquery-3.6.0.min.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/tinymce/tinymce.min.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/echarts.min.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/foxui-1.32.min.js"></script>
<script>
//全局上传文件端口
var UPLOAD_FILE_URL = "<?php echo url('upload_files/upload'); ?>";
//图片粘贴下载
var UPIMG_URL = "<?php echo url('upload_files/upimg'); ?>";
var SERVER_URL = "/";
//配置的后台路径
var ADMIN_PATH = "/" + "<?php echo config('adminconfig.admin_path'); ?>";
//静态文件路径
var STATIC_PATH ="<?php echo config('adminconfig.static_path'); ?>";
//退出地址
var LOGOUT_PATH = "<?php echo logout_url(); ?>";
//栏目模型地址
var GETCOLUMMODELS_PATH = "<?php echo getColumModels_url(); ?>";
//个人中心
var ADMINEDIT_PATH = "<?php echo adminEdit_url(); ?>";
//更新缓存
var LOGINCLEARCACHE_PATH = "<?php echo loginClearCache_url(); ?>";
//修改密码
var ADMINUPDATEPASSWORD_PATH = "<?php echo adminUpdatePassword_url(); ?>";
//循环生成静态html
var SEOALLSITE_PATH = "<?php echo seoAllSite_url(); ?>";
//单独静态生成
var SEOADDDATABUILDDETAIL_PATH = "<?php echo seoAddDataBuildDetail_url(); ?>";
//单独静态栏目生成
var SINGLEALLSITE_PATH = "<?php echo singleAllSite_url(); ?>";
//删除幻灯片
var SLIDEDELETE_PATH = "<?php echo slideDelete_url(); ?>";
//编辑幻灯片
var SLIDEEDIT_PATH = "<?php echo slideEdit_url(); ?>";
//后台首页地址
var HOME_PATH = "<?php echo url('Index/index'); ?>";
//切换语言
var HANDOVER_LANG_PATH = "<?php echo url('handoverLang'); ?>";
</script>
<script src="<?php echo htmlentities($staticPath); ?>js/rich_text.js"></script>
<script>
foxui.imagesManager.init({
paginationOption: {
type: 'solid',
size: 'small',
pageSize: 10,
pageNum: 7,
pageSizeList: [10, 20, 30, 50],
isShowJump: true,
isShowTotal: true,
isShowSize: true
},
url: "<?php echo url('PicManager/picManager'); ?>",
});
foxui.videoManager.init({
paginationOption: {
type: 'solid',
size: 'small',
pageSize: 10,
pageNum: 7,
pageSizeList: [10, 20, 30, 50],
isShowJump: true,
isShowTotal: true,
isShowSize: true,
},
url: "<?php echo url('VideoManager/videoManager'); ?>",
});
</script>
<script src="<?php echo htmlentities($staticPath); ?>js/common.js"></script>
<script src="<?php echo htmlentities($staticPath); ?>js/admin_common.js"></script>
<script>
$("#linkUrl").click(function () {
window.location.href = "<?php echo htmlentities($helpCenters['linkUrl']); ?>";
})
$("#adUrl").click(function () {
window.location.href = "<?php echo htmlentities($helpCenters['adUrl']); ?>";
})
$("#articleUrl").click(function () {
window.location.href = "<?php echo htmlentities($helpCenters['similarArticleUrl']); ?>?model=article&type=1";
})
$("#productUrl").click(function () {
window.location.href = "<?php echo htmlentities($helpCenters['similarArticleUrl']); ?>?model=product&type=1";
})
$("#imagesUrl").click(function () {
window.location.href = "<?php echo htmlentities($helpCenters['similarArticleUrl']); ?>?model=images&type=1";
})
$("#videoUrl").click(function () {
window.location.href = "<?php echo htmlentities($helpCenters['similarArticleUrl']); ?>?model=video&type=1";
})
</script>
<script src="<?php echo htmlentities($staticPath); ?>js/index.js"></script>
<script>
//检查版本
function checkVersion() {
let curOnly = "<?php echo htmlentities($versionInfo['only']); ?>";
let title = "当前版本<?php echo htmlentities($versionInfo['version']); ?>";
let today = "<?php echo htmlentities($today); ?>";
let todayV = sessionStorage.getItem(today+"_v");
if(todayV){
return;
}
$.ajax({
type: 'post',
url: "<?php echo url('checkVersion'); ?>",
dataType: 'json',
async: false,
data: {"only":curOnly},
success: function (res) {
let content = '';
let id = '';
let isUpdate = false;
if (res.code == 1) {
let data = res.data;
if(data != null && data != ''){
if(data['flag'] == "last"){
}else{
isUpdate = true;
content += `<h3>${res.data.describe}</h3>`;
content += `<p>${res.data.content}</p>`;
id = res.data.id;
}
}else{
content += `<p>${res.msg}</p>`;
title = `${res.msg}`;
}
}else{
content += `<p>${res.msg}</p>`;
title = `${res.msg}`;
}
if(isUpdate){
foxui.dialog({
title: title,
content: content,
confirmText: '升级',
cancelText: '不再提醒',
width: '620px',
confirm: function (callback) {
if(id != ''){
window.location.href = `updateVersion?id=${id}`;
callback();
}else{
foxui.message({
text: content,
type: 'danger',
});
}
},
cancel: function () {
sessionStorage.setItem(today + "_v", content);
},
});
}
}
});
}
//访问概况
function accessProfile(type) {
let data;
$.ajax({
type: 'post',
url: "<?php echo url('accessProfile'); ?>",
dataType: 'json',
async: false,
data: { type: type },
success: function (res) {
if (res.code == 1) {
data = res.data;
}
},
error: function (res) {},
});
return data;
}
function todayChart() {
let data = accessProfile(1);
let pvList = data.pvList;
let uvList = data.uvList;
let labelList = data.labelList;
let pvTotal = data.pvTotal;
let uvTotal = data.uvTotal;
$('.todayChart .pv h1').html(pvTotal);
$('.todayChart .uv h1').html(uvTotal);
// 今日
let todayChart = echarts.init(document.getElementById('todayChart'));
todayChart.setOption(chartOption({ pvList, uvList, labelList }));
window.onresize = () => {
todayChart.resize();
};
}
</script>
<!--授权-->
<script>
$('.auth .foxui-link').click(function () {
let url = "<?php echo url('AuthorizeManage/index'); ?>?columnId=61&&keyword=" + document.domain;
window.location.href = url;
});
</script>
<script>
let is_auth = "<?php echo htmlentities($authorize->is_auth); ?>";
//检查版本
checkVersion();
//初始化当日(默认)
todayChart();
foxui.tabs.$on(function ({ index, id }) {
if (id === 'viewTabs') {
if (index === 0) {
//当日
todayChart();
} else if (index === 1) {
let data = accessProfile(2);
let pvList = data.pvList;
let uvList = data.uvList;
let labelList = data.labelList;
let pvTotal = data.pvTotal;
let uvTotal = data.uvTotal;
$('.yesterdayChart .pv h1').html(pvTotal);
$('.yesterdayChart .uv h1').html(uvTotal);
// 昨日
let yesterdayChart = echarts.init(document.getElementById('yesterdayChart'));
yesterdayChart.setOption(chartOption({ pvList, uvList, labelList }));
window.onresize = () => {
yesterdayChart.resize();
};
} else if (index === 2) {
let data = accessProfile(3);
let pvList = data.pvList;
let uvList = data.uvList;
let labelList = data.labelList;
let pvTotal = data.pvTotal;
let uvTotal = data.uvTotal;
$('.weekChart .pv h1').html(pvTotal);
$('.weekChart .uv h1').html(uvTotal);
// 近7日
let weekChart = echarts.init(document.getElementById('weekChart'));
weekChart.setOption(chartOption({ pvList, uvList, labelList }));
window.onresize = () => {
weekChart.resize();
};
} else if (index === 3) {
let data = accessProfile(4);
let pvList = data.pvList;
let uvList = data.uvList;
let labelList = data.labelList;
let pvTotal = data.pvTotal;
let uvTotal = data.uvTotal;
$('.monthChart .pv h1').html(pvTotal);
$('.monthChart .uv h1').html(uvTotal);
// 近30日
let monthChart = echarts.init(document.getElementById('monthChart'));
monthChart.setOption(chartOption({ pvList, uvList, labelList }));
window.onresize = () => {
monthChart.resize();
};
}
}
});
</script>
</html>