From 0506bb97fc2dd486c36f123f0a48f5748f5911b3 Mon Sep 17 00:00:00 2001
From: 1099438829 <1099438829@qq.com>
Date: Mon, 5 Apr 2021 23:35:46 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E5=A4=A7=E6=B3=A2?=
=?UTF-8?q?=E9=94=99=E8=AF=AF?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
app/admin/view/system_config/base.html | 2 +-
app/common/taglib/Zz.php | 2 +-
app/index/common.php | 28 +-
public/template/blog/1.html | 1194 ++++++++++++++++++
public/template/blog/index.html | 1267 ++++++++++++++++++++
public/template/default/index/index.html | 4 +-
public/template/default/public/head.html | 84 +-
public/template/default/public/header.html | 145 +--
8 files changed, 2514 insertions(+), 212 deletions(-)
create mode 100644 public/template/blog/1.html
create mode 100644 public/template/blog/index.html
diff --git a/app/admin/view/system_config/base.html b/app/admin/view/system_config/base.html
index a7b3e16..b431941 100644
--- a/app/admin/view/system_config/base.html
+++ b/app/admin/view/system_config/base.html
@@ -118,7 +118,7 @@
formData.append("storage",1);
$.ajax({
type:'POST',
- url:'/admin/files/file',
+ url:'/admin/files/upload',
data: formData,
cache: false,
processData: false,
diff --git a/app/common/taglib/Zz.php b/app/common/taglib/Zz.php
index 15bd4be..cf8172a 100644
--- a/app/common/taglib/Zz.php
+++ b/app/common/taglib/Zz.php
@@ -39,7 +39,7 @@ class Zz extends TagLib{
$row=isset($tag['row'])?$tag['row']:100;
$void=isset($tag['void'])?$tag['void']:'field';
$where=isset($tag['where'])?$tag['where']:'';
- $orderby=isset($tag['orderby'])?$tag['orderby']:'sort asc';
+ $orderby=isset($tag['orderby'])?$tag['orderby']:'sort desc';
$display=isset($tag['display'])?$tag['display']:1;
$display=$display==1?1:0;
diff --git a/app/index/common.php b/app/index/common.php
index dd95417..731f61d 100644
--- a/app/index/common.php
+++ b/app/index/common.php
@@ -49,7 +49,7 @@ function get_document_category_list(){
//缓存文章菜单
$docuemtCategory=cache('DATA_DOCUMENT_CATEGORY_LIST');
if($docuemtCategory===null){
- $docuemtCategoryList=Db::name('document_category')->where('status',1)->order('sort asc')->select();
+ $docuemtCategoryList=Db::name('document_category')->order('sort desc')->select();
//转换,让id作为数组的键
$docuemtCategory=[];
foreach ($docuemtCategoryList as $key=>$item){
@@ -148,7 +148,7 @@ function tpl_get_channel($type,$typeid,$row,$where='',$orderby='',$display=1){
if(!$dc){
throw new Exception('分类不存在或已删除!');
}
- $tempArr=Db::name('document_category')->where('id','in',$dc['child'])->where('status',1)->select();
+ $tempArr=Db::name('document_category')->where('id','in',$dc['child'])->select();
if($display){
$tempArr=$tempArr->where('display',1);
}
@@ -179,8 +179,8 @@ function tpl_get_channel($type,$typeid,$row,$where='',$orderby='',$display=1){
$dc=get_document_category($typeid);
if($dc['pid']!=0){
//获取根分类,此操作读取数据库,非缓存!
- $dc=Db::name('document_category')->where('pid',0)->where('status',1)
- -> where("CONCAT(',',child,',') like '%,$typeid,%'");
+ $dc=Db::name('document_category')->where('pid',0)
+ ->where("CONCAT(',',child,',') like '%,$typeid,%'");
if($display){
$dc=$dc->where('display',1);
}
@@ -196,7 +196,7 @@ function tpl_get_channel($type,$typeid,$row,$where='',$orderby='',$display=1){
break;
case 'where':
//根据自定义条件获取分类(where语句),此操作读取数据库,非缓存!
- $tempArr=Db::name('document_category')->where('status',1)-> where($where)->order($orderby);
+ $tempArr=Db::name('document_category')-> where($where)->order($orderby);
if($display){
$tempArr=$tempArr->where('display',1);
}
@@ -210,7 +210,7 @@ function tpl_get_channel($type,$typeid,$row,$where='',$orderby='',$display=1){
break;
case 'ids':
//根据多个栏目id,逗号隔开的那种,获得栏目列表
- $tempArr=Db::name('document_category')->where('status',1)-> where('id','in',$typeid)->order($orderby);
+ $tempArr=Db::name('document_category')-> where('id','in',$typeid)->order($orderby);
if($display){
$tempArr=$tempArr->where('display',1);
}
@@ -243,7 +243,11 @@ function get_document_category_by_parent($pid,$row,$display=1){
}
if($item['pid']==$pid&&($display?$item['display']==1:true)){
$x=$x+1;
- array_push($tempArr,$item);
+ $tempArr[$item['id']] = $item;
+ }
+ //判断是否有子元素,子元素则为其父元素的child字段设置为1
+ if ($item['pid'] > 0 && !empty($tempArr[$item['pid']])){
+ $tempArr[$item['pid']]['child'] = 1;
}
}
return $tempArr;
@@ -297,7 +301,7 @@ function tpl_get_list($orderby,$pagesize,$cid,$type,$table='article',$where=fals
->join(config('database.prefix').'document_category b','a.category_id=b.id','LEFT')
->join(config('database.prefix')."document_$table c",'a.id=c.id','RIGHT')
->where("a.type='$table'")
- ->where('a.status',1)->where('b.status',1)
+ ->where('a.status',1)
->field('a.*,b.title as category_title,c.*');
if($display){
@@ -439,7 +443,7 @@ function tpl_get_article_list($cid,$row,$orderby,$table='article',$type='son',$w
->join(config('database.prefix').'document_category b','a.category_id=b.id','LEFT')
->join(config('database.prefix')."document_$table c",'a.id=c.id','RIGHT')
->where("a.type='$table'")
- ->where('a.status',1)->where('b.status',1)
+ ->where('a.status',1)
->limit($row)
->field('a.*,b.title as category_title,c.*');
@@ -535,10 +539,10 @@ if (!function_exists('web_config'))
*/
function web_config(string $formName): string
{
- $webConfig = cache('webConfig');
+ $webConfig = cache('systemConfig');
if (empty($webConfig)){
- $webConfig = Db::name('system_config')->where("status",1)->fetchSql(true)->column('value', 'form_name');
- cache('webConfig',$webConfig);
+ $webConfig = Db::name('system_config')->where("status",1)->column('value', 'form_name');
+ cache('systemConfig',$webConfig);
}
return $webConfig[$formName]??'';
}
diff --git a/public/template/blog/1.html b/public/template/blog/1.html
new file mode 100644
index 0000000..3c1df6e
--- /dev/null
+++ b/public/template/blog/1.html
@@ -0,0 +1,1194 @@
+
+
+
+ -猿博
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 最近偶然听说以前就职过的装修公司居然申请破产了,不禁有些惊讶。据说是因为管理层的战略投资失误,加上公司快速扩张,导致资金链断裂,引发连锁反应……
+
+
+
+
+
+ 轻烟随风
+
2021-03-24
+
+
+ 7 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OA办公审批流工作流实现层级审批、签核的探讨
+ 最近在翻新公司的vb到c#的项目,研究了下工作流签核系统这块,可以逐级审批,退回到指定层,产生审批流列表也是……
+
+
+
+
+
+ 轻烟随风
+
2021-02-28
+
+
+ 73 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ oracle-EBS-采购单创建接收检验入库(采购到入库全过程)经历主要表(多图)
+
+ 一、创建请购单
+ 1.可以从外部系统导入:
+ PO_REQUISITION_HEADERS_ALL
+ --外部系统接口……
+
+
+
+
+
+ 轻烟随风
+
2020-12-13
+
+
+ 161 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 本文主要讲解 oracle-EBS-销售订单下单、发放、挑库、发运(销售到出仓全过程)的主要相关表,搞清楚下面流程图和常用的几个数据表,基本对EBS OM
+ 模块就有了大……
+
+
+
+
+
+ 轻烟随风
+
2020-12-09
+
+
+ 333 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ oracle-EBS-PL/sql 财务 AR AP 子分类账未过入总账GL的语句
+ 再月结之前,除了跑ar ap的请求 子分类账区间例外报表外, 我们可以用下面sql语句,去捞取哪些数据……
+
+
+
+
+
+ 轻烟随风
+
今天
+
+
+ 0 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Veeam日常运维恢复数据操作(从外接硬盘恢复)
+ 基本的备份数据可以是nas存储柜,磁带,外接硬盘, Veeam 功能很强大,可以备份整个Vmare虚拟机。本文以硬盘为例……
+
+
+
+
+
+ 轻烟随风
+
今天
+
+
+ 0 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ oracle-EBS-OM价目表未设置导致确认出货后状态位没有变成已连接/interface
+ 物流或仓库在做确认出货后,发现系统的行状态不是已连接/interface, 而是已发运,……
+
+
+
+
+
+ 轻烟随风
+
昨天
+
+
+ 1 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ wordpress统计网站日访问量总访问量代码
+ 效果如下,转载了网络上常用的方法,不用安装第三方插件,纯粹是代码实现,感兴趣的朋友一起试试吧
+
+ 1.function.PHP ……
+
+
+
+
+
+ 轻烟随风
+
昨天
+
+
+ 0 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 阿里云服务器的简单管理快照备份和远程访问设置
+ 购买阿里云后,主要做好服务器的3点运维即可:
+ 1.设置实例
+ 2.设置好快照(前提是购买了云盘空间)
+ 3.设置远程i……
+
+
+
+
+
+ 轻烟随风
+
2021-03-29
+
+
+ 3 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 用chrome谷歌浏览器截取网站某个页面保存为图片
+ 在做测试的时候,有时候需要把整个网页保存为图片,但是网页内容多,用传统的键盘 prtscr 键,只能截取实际看……
+
+
+
+
+
+ 轻烟随风
+
2021-03-28
+
+
+ 4 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WordPress手动升级教程,因为发现后台点自动更新总是提示错误
+ 1、备份Wordpress资料及数据库,强烈建议,为安全起见。用宝塔或其他工具自行备份做快照。
+ 2、下……
+
+
+
+
+
+ 轻烟随风
+
2021-03-25
+
+
+ 8 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sonicwall内网访问某些特殊网站端口-常用的开端口运维操作
+ 有时候内网同事用访问一些特殊端口的网址,需要在防火墙上设置,
+ 如下以sonicwall 为例子,比如开放……
+
+
+
+
+
+ 轻烟随风
+
2021-03-24
+
+
+ 10 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ oracle-EBS-PL/sql 库存-查看产品现有量实时状态
+ 关键就是这个通用表,这个表记录当前oracle数据库内的产品的当前的实际库存: mtl_onhand_quantities
+ 只要发……
+
+
+
+
+
+ 轻烟随风
+
2021-03-21
+
+
+ 6 0
+
+
+
+
+
+
+
+
+
+
+ 加载更多
+
+
+
+
+
+
+
+
+
+
+
+
友情链接 欢迎添加友情链接
+
+
申请友链
+
+
+
+
+
+
+
+
diff --git a/public/template/blog/index.html b/public/template/blog/index.html
new file mode 100644
index 0000000..000cca3
--- /dev/null
+++ b/public/template/blog/index.html
@@ -0,0 +1,1267 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 轻烟随风的博客blog
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 最近偶然听说以前就职过的装修公司居然申请破产了,不禁有些惊讶。据说是因为管理层的战略投资失误,加上公司快速扩张,导致资金链断裂,引发连锁反应……
+
+
+
+
+
+ 轻烟随风
+
2021-03-24
+
+
+ 7 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ OA办公审批流工作流实现层级审批、签核的探讨
+ 最近在翻新公司的vb到c#的项目,研究了下工作流签核系统这块,可以逐级审批,退回到指定层,产生审批流列表也是……
+
+
+
+
+
+ 轻烟随风
+
2021-02-28
+
+
+ 73 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ oracle-EBS-采购单创建接收检验入库(采购到入库全过程)经历主要表(多图)
+
+ 一、创建请购单
+ 1.可以从外部系统导入:
+ PO_REQUISITION_HEADERS_ALL
+ --外部系统接口……
+
+
+
+
+
+ 轻烟随风
+
2020-12-13
+
+
+ 161 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 本文主要讲解 oracle-EBS-销售订单下单、发放、挑库、发运(销售到出仓全过程)的主要相关表,搞清楚下面流程图和常用的几个数据表,基本对EBS OM
+ 模块就有了大……
+
+
+
+
+
+ 轻烟随风
+
2020-12-09
+
+
+ 333 1
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ oracle-EBS-PL/sql 财务 AR AP 子分类账未过入总账GL的语句
+ 再月结之前,除了跑ar ap的请求 子分类账区间例外报表外, 我们可以用下面sql语句,去捞取哪些数据……
+
+
+
+
+
+ 轻烟随风
+
今天
+
+
+ 0 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Veeam日常运维恢复数据操作(从外接硬盘恢复)
+ 基本的备份数据可以是nas存储柜,磁带,外接硬盘, Veeam 功能很强大,可以备份整个Vmare虚拟机。本文以硬盘为例……
+
+
+
+
+
+ 轻烟随风
+
今天
+
+
+ 0 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ oracle-EBS-OM价目表未设置导致确认出货后状态位没有变成已连接/interface
+ 物流或仓库在做确认出货后,发现系统的行状态不是已连接/interface, 而是已发运,……
+
+
+
+
+
+ 轻烟随风
+
昨天
+
+
+ 1 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ wordpress统计网站日访问量总访问量代码
+ 效果如下,转载了网络上常用的方法,不用安装第三方插件,纯粹是代码实现,感兴趣的朋友一起试试吧
+
+ 1.function.PHP ……
+
+
+
+
+
+ 轻烟随风
+
昨天
+
+
+ 0 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 阿里云服务器的简单管理快照备份和远程访问设置
+ 购买阿里云后,主要做好服务器的3点运维即可:
+ 1.设置实例
+ 2.设置好快照(前提是购买了云盘空间)
+ 3.设置远程i……
+
+
+
+
+
+ 轻烟随风
+
2021-03-29
+
+
+ 3 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 用chrome谷歌浏览器截取网站某个页面保存为图片
+ 在做测试的时候,有时候需要把整个网页保存为图片,但是网页内容多,用传统的键盘 prtscr 键,只能截取实际看……
+
+
+
+
+
+ 轻烟随风
+
2021-03-28
+
+
+ 4 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ WordPress手动升级教程,因为发现后台点自动更新总是提示错误
+ 1、备份Wordpress资料及数据库,强烈建议,为安全起见。用宝塔或其他工具自行备份做快照。
+ 2、下……
+
+
+
+
+
+ 轻烟随风
+
2021-03-25
+
+
+ 8 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ sonicwall内网访问某些特殊网站端口-常用的开端口运维操作
+ 有时候内网同事用访问一些特殊端口的网址,需要在防火墙上设置,
+ 如下以sonicwall 为例子,比如开放……
+
+
+
+
+
+ 轻烟随风
+
2021-03-24
+
+
+ 10 0
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ oracle-EBS-PL/sql 库存-查看产品现有量实时状态
+ 关键就是这个通用表,这个表记录当前oracle数据库内的产品的当前的实际库存: mtl_onhand_quantities
+ 只要发……
+
+
+
+
+
+ 轻烟随风
+
2021-03-21
+
+
+ 6 0
+
+
+
+
+
+
+
+
+
+
+ 加载更多
+
+
+
+
+
+
+
+
+
+
+
+
友情链接 欢迎添加友情链接
+
+
申请友链
+
+
+
+
+
+
+
+
+
diff --git a/public/template/default/index/index.html b/public/template/default/index/index.html
index e56d3c5..8df924a 100644
--- a/public/template/default/index/index.html
+++ b/public/template/default/index/index.html
@@ -1,11 +1,9 @@
- 行业字典管理 - {:web_config("title")}
- 轻烟随风的博客blog
+ -{:web_config("title")}
-
{include file="public/head" /}
diff --git a/public/template/default/public/head.html b/public/template/default/public/head.html
index 944116d..4c9fa6b 100644
--- a/public/template/default/public/head.html
+++ b/public/template/default/public/head.html
@@ -1,35 +1,31 @@
-
+
-
-
-
-
-
+
@@ -43,52 +39,4 @@
}
-
-
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/public/template/default/public/header.html b/public/template/default/public/header.html
index 6a79cfd..f73b6eb 100644
--- a/public/template/default/public/header.html
+++ b/public/template/default/public/header.html
@@ -1,53 +1,3 @@
-
-
-
-
@@ -59,9 +9,7 @@
$(".user-menu-plane").appendTo($(".drawer-menu-list"));
$(".menu-item-has-children").append('
')
$(".user-menu-main").append('
')
-
}
-
function closeMenu() {
$('body').css('overflow', 'auto');
$(".drawer-menu-plane").removeClass("drawer-menu-plane-show");
@@ -69,11 +17,9 @@
$(".menu-plane").prependTo($(".header-menu"));
$(".m-dropdown").remove();
}
-
function openSearch() {
$(".dialog-search-plane").addClass("dialog-search-plane-show");
}
-
function closeSearch() {
//$('body').css('overflow', 'auto');
$(".dialog-search-plane").removeClass("dialog-search-plane-show");
@@ -90,7 +36,7 @@