Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Dfer.Site
df-php-root
提交
8059b80a
D
df-php-root
项目概览
Dfer.Site
/
df-php-root
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
D
df-php-root
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8059b80a
编写于
2月 29, 2024
作者:
Dfer.Site
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
1.3.9
上级
4957a2cf
变更
17
隐藏空白更改
内联
并排
Showing
17 changed file
with
218 addition
and
181 deletion
+218
-181
root/areas/admin/controller/ColumnController.php
root/areas/admin/controller/ColumnController.php
+19
-14
root/areas/admin/controller/HomeController.php
root/areas/admin/controller/HomeController.php
+6
-48
root/areas/admin/model/ConfigModel.php
root/areas/admin/model/ConfigModel.php
+2
-1
root/areas/admin/model/HomeLayoutModel.php
root/areas/admin/model/HomeLayoutModel.php
+0
-8
root/areas/homepage/controller/HomeController.php
root/areas/homepage/controller/HomeController.php
+3
-2
root/public/view/admin/column/column.htm
root/public/view/admin/column/column.htm
+49
-47
root/public/view/admin/column/column_add.htm
root/public/view/admin/column/column_add.htm
+68
-0
root/public/view/admin/column/home_layout.htm
root/public/view/admin/column/home_layout.htm
+6
-6
root/public/view/admin/column/home_music_add.htm
root/public/view/admin/column/home_music_add.htm
+1
-4
root/public/view/admin/column/readme.htm
root/public/view/admin/column/readme.htm
+17
-13
root/public/view/admin/home/index.htm
root/public/view/admin/home/index.htm
+1
-34
root/public/view/admin/home/info.htm
root/public/view/admin/home/info.htm
+39
-0
root/public/view/admin/home/user.htm
root/public/view/admin/home/user.htm
+0
-1
root/public/view/admin/home/user_add.htm
root/public/view/admin/home/user_add.htm
+1
-1
root/public/view/admin/public/icon_share.htm
root/public/view/admin/public/icon_share.htm
+4
-0
root/version
root/version
+1
-1
version
version
+1
-1
未找到文件。
root/areas/admin/controller/ColumnController.php
浏览文件 @
8059b80a
<?php
namespace
areas\admin\controller
;
use
areas\admin\model\
{
HomeLayout
Model
,
HomeLayoutImgModel
,
HomeColumnModel
,
HomeLinkModel
,
HomeMusicModel
,
MessageModel
,
NotepadModel
,
ColumnModel
};
use
areas\admin\model\
{
Config
Model
,
HomeLayoutImgModel
,
HomeColumnModel
,
HomeLinkModel
,
HomeMusicModel
,
MessageModel
,
NotepadModel
,
ColumnModel
};
use
Dfer\Tools\Statics\
{
Common
,
Files
};
class
ColumnController
extends
BaseController
{
...
...
@@ -149,8 +149,8 @@ class ColumnController extends BaseController{
// ********************** 布局 START **********************
function
homeLayout
(
$param
=
1
)
{
$output
=
HomeLayoutModel
::
where
(
$param
)
->
first
()
;
function
homeLayout
(
$param
)
{
$output
=
ConfigModel
::
where
([
'key'
=>
'home_layout'
])
->
find
()[
'val'
]
;
$img
=
HomeLayoutImgModel
::
select
();
$this
->
view
(
get_defined_vars
());
}
...
...
@@ -158,9 +158,8 @@ class ColumnController extends BaseController{
function
homeLayoutUpdate
()
{
$dt
=
post
(
'data'
);
$id
=
post
(
'id'
);
// var_dump($_SERVER['HTTP_REFERER']);die;
$ret
=
HomeLayoutModel
::
where
(
$id
)
->
update
(
$dt
);
$this
->
jumpPrompt
(
$ret
,
HomeLayoutModel
::
getName
());
$ret
=
ConfigModel
::
where
([
'key'
=>
'home_layout'
])
->
update
([
'val'
=>
$dt
]);
$this
->
jumpPrompt
(
$ret
,
"homeLayout"
);
}
/**
...
...
@@ -186,7 +185,7 @@ class ColumnController extends BaseController{
$id
=
param
(
'id'
);
$img
=
HomeLayoutImgModel
::
where
(
$id
)
->
first
();
$rt
=
HomeLayoutImgModel
::
where
(
$id
)
->
del
()
.
','
;
$rt
.
=
$files
->
delFile
(
$img
[
'img'
]);
$rt
.
=
Files
::
delFile
(
$img
[
'img'
]);
show_json
(
1
,
$rt
);
}
...
...
@@ -305,11 +304,15 @@ class ColumnController extends BaseController{
// ********************** 记事本 END **********************
// **********************
栏目
START **********************
// **********************
关于此站点
START **********************
public
function
column
(
$param
)
{
$output
=
ColumnModel
::
where
(
1
)
->
first
();
function
column
(
$param
)
{
$output
=
ColumnModel
::
order
(
'asc'
)
->
select
();
$this
->
view
(
get_defined_vars
());
}
function
columnAdd
(
$param
)
{
$output
=
ColumnModel
::
where
(
$param
)
->
find
();
$this
->
view
(
get_defined_vars
());
}
...
...
@@ -326,16 +329,18 @@ class ColumnController extends BaseController{
Common
::
showJsonBase
(
Files
::
uploadFile
(
Files
::
UPLOAD_UMEDITOR_EDITOR
));
}
// ********************** 栏目 END **********************
/**
* 使用说明
* @param {Object} $param
*/
public
function
readme
(
$param
)
{
$output
=
ColumnModel
::
where
(
1
)
->
firs
t
();
$output
=
ColumnModel
::
order
(
'asc'
)
->
selec
t
();
$this
->
view
(
get_defined_vars
());
}
// ********************** 关于此站点 END **********************
}
?>
root/areas/admin/controller/HomeController.php
浏览文件 @
8059b80a
...
...
@@ -2,8 +2,8 @@
namespace
areas\admin\controller
;
use
areas\admin\model\
{
UserModel
,
ConfigModel
,
MessageModel
,
RolesModel
,
HomeUserInfoModel
,
HtmlModel
,
MenuModel
,
CacheModel
,
LogsModel
};
use
Dfer\DfPhpCore\Modules\Statics\Mysql
;
use
Dfer\Tools\Statics\
{
Common
,
Files
};
use
Dfer\Tools\Static\
{
Common
,
Files
};
class
HomeController
extends
BaseController
{
/**
...
...
@@ -13,9 +13,7 @@ class HomeController extends BaseController{
public
function
index
(
$param
)
{
$id
=
$this
->
verifyLogin
(
1
);
if
(
!
empty
(
post
(
'top-search'
)))
{
show_json
(
true
,
null
,
post
(
'top-search'
));
}
//验证登录
$output
=
UserModel
::
where
([
'id'
=>
$id
])
->
first
();
$hits
=
ConfigModel
::
where
([
'key'
=>
'hits'
])
->
first
()[
'val'
];
...
...
@@ -139,8 +137,7 @@ EOT;
// ********************** 修改头像 END **********************
// ********************** 设置密码 START **********************
// ********************** 设置密码 START **********************
public
function
setPwd
(
$param
)
{
...
...
@@ -177,45 +174,7 @@ EOT;
*/
public
function
info
(
$param
)
{
$str
=
str
(
<<<EOT
<!-- ********************** layui START ********************** -->
<link href="//unpkg.com/layui@2.8.15/dist/css/layui.css" rel="stylesheet">
<script src="//unpkg.com/layui@2.8.15/dist/layui.js"></script>
<!-- ********************** layui END ********************** -->
<table class="layui-table" style="width: 50%;">
<colgroup>
<col width="35%">
<col width="65%">
</colgroup>
<thead>
<tr>
<th colspan="2">框架信息</th>
</tr>
</thead>
<tbody>
<tr>
<td>php 当前版本</td>
<td>{0}</td>
</tr>
<tr>
<td>php 需求版本</td>
<td>{1}</td>
</tr>
<tr>
<td>DfPHP 当前版本</td>
<td>{2}</td>
</tr>
<tr>
<td>php 环境</td>
<td>{3}</td>
</tr>
</tbody>
</table>
EOT
,[
PHP_VERSION
,
PHP_VERSION_MIN
,
VERSION
,
getenv
(
'SERVER_SOFTWARE'
)]);
die
(
$str
);
$this
->
view
(
get_defined_vars
(),
'pure_share'
);
}
// ********************** 用户 START **********************
...
...
@@ -492,9 +451,8 @@ EOT;
$list
=
HtmlModel
::
select
();
$str
=
''
;
foreach
(
$list
as
$i
)
{
//
$path = $i['file_n'] == 'index' ? '/' : $path
;
//
var_dump(split_url('homepage/home/'))
;
$file_n
=
str
(
"
{
0}/{1}/{2
}
.html"
,
[
WEB_ROOT
,
$path
,
$i
[
'file_n'
]]);
//echo $file_n;
$out
=
file_get_contents
(
split_url
(
$i
[
'src'
]));
Files
::
writeFile
(
$out
,
$file_n
);
$file
=
str
(
"/
{
0}/{1
}
.html"
,
[
$path
,
$i
[
'file_n'
]]);
...
...
@@ -502,7 +460,7 @@ EOT;
}
//根据主页内的文字生成html页面,用来制作字体
$body
=
file_get_contents
(
split_url
(
'homepage/home'
));
$body
=
file_get_contents
(
split_url
(
'homepage/home
/
'
));
$body
=
Common
::
getChinese
(
$body
);
$path
=
'/static_pages/font.html'
;
...
...
root/areas/admin/model/ConfigModel.php
浏览文件 @
8059b80a
...
...
@@ -4,5 +4,6 @@ use Dfer\DfPhpCore\Modules\Model;
class
ConfigModel
extends
Model
{
protected
$json
=
[
'val'
];
protected
$jsonAssoc
=
true
;
}
root/areas/admin/model/HomeLayoutModel.php
已删除
100644 → 0
浏览文件 @
4957a2cf
<?php
namespace
areas\admin\model
;
use
Dfer\DfPhpCore\Modules\Model
;
class
HomeLayoutModel
extends
Model
{
}
root/areas/homepage/controller/HomeController.php
浏览文件 @
8059b80a
<?php
namespace
areas\homepage\controller
;
use
areas\admin\model\
{
Home
LayoutModel
,
HomeColumnModel
,
HomeLinkModel
,
HomeMusicModel
,
Message
Model
};
use
areas\admin\model\
{
Home
ColumnModel
,
HomeLinkModel
,
HomeMusicModel
,
MessageModel
,
Config
Model
};
use
Dfer\DfPhpCore\Modules\Statics\
{
Mysql
,
Lang
};
class
HomeController
extends
BaseController
...
...
@@ -12,10 +12,11 @@ class HomeController extends BaseController
*/
function
index
(
$param
)
{
$home_layout
=
HomeLayoutModel
::
first
(
);
$home_layout
=
ConfigModel
::
where
([
'key'
=>
'home_layout'
])
->
value
(
'val'
);
$home_column
=
HomeColumnModel
::
order
([
"id"
=>
"asc"
])
->
select
();
$home_link
=
HomeLinkModel
::
select
();
$home_music
=
HomeMusicModel
::
select
();
// var_dump($home_column);
//访问量
Mysql
::
run
(
"update dt set val=val+1 where `key`='hits'"
);
$this
->
colUserInfo
();
...
...
root/public/view/admin/column/column.htm
浏览文件 @
8059b80a
<df-body>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5></h5>
<h5>
>>
</h5>
</div>
<div
class=
"ibox-content"
>
<form
method=
"post"
action=
"{:split_url(sprintf('admin/column/%s_update',areas\admin\model\ColumnModel::getName()))}"
>
<input
name=
"id"
value=
"{:$output[0]??'0'}"
hidden
/>
<div
class=
"form-horizontal m-t"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-1 control-label"
>
标题:
</label>
<div
class=
"col-sm-5"
>
<input
class=
"form-control"
name=
"data[title]"
size=
"10"
type=
"text"
value=
"{:$output['title']??''}"
/>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-1 control-label"
>
内容:
</label>
<div
class=
"col-sm-11"
>
<script
type=
"text/plain"
id=
"container"
name=
"data[content]"
>
{:
$output
[
'
content
'
]??
''
}
</script>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"col-sm-2 col-sm-offset-1"
>
<button
class=
"btn btn-primary"
onclick=
"return submit_form()"
>
保存
</button>
</div>
</div>
<div
class=
"row form-horizontal form-group"
>
<div
class=
"col-sm-1"
>
<a
href=
'{:split_url(str("%s_add",[areas\admin\model\ColumnModel::getName()]))}'
class=
"btn btn-primary btn-sm"
><i
class=
"fa fa-plus"
></i>
添加
</a>
</div>
<div
class=
"col-sm-1"
>
<a
href=
'{:split_url("readme")}'
class=
"btn btn-primary btn-sm"
target=
"_blank"
><i
class=
"fa fa-book"
></i>
使用说明
</a>
</div>
</form>
</div>
<table
class=
"table table-striped table-bordered table-hover datatable-one"
>
<thead>
<tr>
<th
width=
"50"
>
编号
</th>
<th
width=
"150"
>
标题
</th>
<th
width=
"150"
>
操作
</th>
</tr>
</thead>
<tbody>
<df-each
$
output
>
<tr>
<td>
{$index}
</td>
<td>
{::title}
</td>
<td
class=
'center'
>
<a
href=
'{:split_url(str("admin/column/%s_add/%s",[areas\admin\model\ColumnModel::getName(),$value[0]]))}'
>
[编辑]
</a>
<!--<a href='{:split_url("homepage/column/columndel/%s")}' onclick='return confirm("您确认要删除吗?")'>[删除]</a>-->
</td>
</tr>
</df-each>
</tbody>
</table>
</div>
</div>
</div>
</div>
</df-body>
<df-footer>
<!-- ********************** umeditor START ********************** -->
<link
type=
"text/css"
rel=
"stylesheet"
href=
"https://oss.dfer.site/umeditor/1.2.2/themes/default/css/umeditor.min.css"
>
<script
type=
"text/javascript"
src=
'{:VIEW_ASSETS}/umeditor/1.2.2/umeditor.config.js'
></script>
<script
type=
"text/javascript"
src=
"https://oss.dfer.site/umeditor/1.2.2/umeditor.js"
></script>
<script
type=
"text/javascript"
src=
"https://oss.dfer.site/umeditor/1.2.2/lang/zh-cn/zh-cn.js"
></script>
<!-- ********************** DATATABLE START ********************** -->
<link
href=
"https://oss.dfer.site/datatables/1.13.8/css/jquery.dataTables.min.css"
rel=
"stylesheet"
>
<script
src=
"https://oss.dfer.site/datatables/1.13.8/js/jquery.dataTables.min.js"
></script>
<script
src=
"https://oss.dfer.site/datatables/1.13.8/js/dataTables.bootstrap.min.js"
></script>
<script
type=
"text/javascript"
>
var
um
=
UM
.
getEditor
(
'
container
'
);
<script>
$
(
document
).
ready
(
function
()
{
$
(
'
.datatable-one
'
).
dataTable
({
language
:
{
url
:
'
https://oss.dfer.site/datatables/1.13.8/i18n/zh.json
'
},
aLengthMenu
:
[
10
,
50
,
100
],
//更改显示记录数选项
iDisplayLength
:
10
//默认显示的记录数
});
});
</script>
<!-- **********************
umeditor
END ********************** -->
<!-- **********************
DATATABLE
END ********************** -->
<script
type=
"text/javascript"
>
function
submit_form
()
{
if
(
$
.
formVerifyEmpty
(
'
data[title]
'
,
'
请输入标题
'
))
{
return
false
;
}
if
(
$
.
formVerifyEmpty
(
'
data[content]
'
,
'
请输入内容
'
))
{
return
false
;
}
return
true
;
}
</script>
</df-footer>
root/public/view/admin/column/column_add.htm
0 → 100644
浏览文件 @
8059b80a
<df-body>
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"ibox float-e-margins"
>
<div
class=
"ibox-title"
>
<h5></h5>
</div>
<div
class=
"ibox-content"
>
<form
method=
"post"
action=
"{:split_url(sprintf('admin/column/%s_update',areas\admin\model\ColumnModel::getName()))}"
>
<input
name=
"id"
value=
"{:$output[0]??'0'}"
hidden
/>
<div
class=
"form-horizontal m-t"
>
<div
class=
"form-group"
>
<label
class=
"col-sm-1 control-label"
>
标题:
</label>
<div
class=
"col-sm-5"
>
<input
class=
"form-control"
name=
"data[title]"
size=
"10"
type=
"text"
value=
"{:$output['title']??''}"
/>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-1 control-label"
>
内容:
</label>
<div
class=
"col-sm-11"
>
<script
type=
"text/plain"
id=
"container"
name=
"data[content]"
>
{:
$output
[
'
content
'
]??
''
}
</script>
</div>
</div>
<div
class=
"form-group"
>
<div
class=
"col-sm-2 col-sm-offset-1"
>
<button
class=
"btn btn-primary"
onclick=
"return submit_form()"
>
保存
</button>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</df-body>
<df-footer>
<!-- ********************** umeditor START ********************** -->
<link
type=
"text/css"
rel=
"stylesheet"
href=
"https://oss.dfer.site/umeditor/1.2.2/themes/default/css/umeditor.min.css"
>
<script
type=
"text/javascript"
src=
'{:VIEW_ASSETS}/umeditor/1.2.2/umeditor.config.js'
></script>
<script
type=
"text/javascript"
src=
"https://oss.dfer.site/umeditor/1.2.2/umeditor.js"
></script>
<script
type=
"text/javascript"
src=
"https://oss.dfer.site/umeditor/1.2.2/lang/zh-cn/zh-cn.js"
></script>
<script
type=
"text/javascript"
>
var
um
=
UM
.
getEditor
(
'
container
'
);
</script>
<!-- ********************** umeditor END ********************** -->
<script
type=
"text/javascript"
>
function
submit_form
()
{
if
(
$
.
formVerifyEmpty
(
'
data[title]
'
,
'
请输入标题
'
))
{
return
false
;
}
if
(
$
.
formVerifyEmpty
(
'
data[content]
'
,
'
请输入内容
'
))
{
return
false
;
}
return
true
;
}
</script>
</df-footer>
root/public/view/admin/column/home_layout.htm
浏览文件 @
8059b80a
...
...
@@ -8,7 +8,7 @@
</div>
<div
class=
"ibox-content"
>
<form
method=
"post"
action=
'{:split_url(str("admin/column/%s_update",[
areas\admin\model\HomeLayoutModel::getName()
]))}'
action=
'{:split_url(str("admin/column/%s_update",[
"homeLayout"
]))}'
class=
"layui-form"
>
<input
name=
"id"
value=
"{:$output[0]??'0'}"
hidden
/>
<input
name=
"data[bg_img]"
id=
"bg_img"
value=
"{:$output['bg_img']??''}"
...
...
@@ -105,11 +105,11 @@
<div
class=
"form-group"
>
<df-each
$
img
>
<div
class=
"img_{$id}"
style=
"float: left;margin-right: 15px;"
>
<a
href=
"javascript:sele_pic('{
$
img}')"
title=
"点击更换图片"
>
<img
style=
"width: 55px;height: 55px;"
src=
"
!`img`
"
>
<a
href=
"javascript:sele_pic('{
::
img}')"
title=
"点击更换图片"
>
<img
style=
"width: 55px;height: 55px;"
src=
"
{::img}
"
>
</a>
<div
style=
"text-align: center;"
>
<a
href=
"javascript:del_pic('{
$
id}')"
<a
href=
"javascript:del_pic('{
::
id}')"
onclick=
'return confirm("确认删除吗?")'
>
删除
</a>
</div>
</div>
...
...
@@ -137,7 +137,7 @@
<script>
$
(()
=>
{
upload
(
"
#uploadButton1
"
,
"
#uploadPreview1
"
,
"
#bg_img
"
,
`{:split_url(str("admin/column/%s_pic_up",[
areas\admin\model\HomeLayoutModel::getName()
]))}`
);
`{:split_url(str("admin/column/%s_pic_up",[
"homeLayout"
]))}`
);
upload
(
"
#uploadButton2
"
,
"
#uploadPreview2
"
,
null
,
UPLOAD_API
.
WEB_UPLOADER
);
})
</script>
...
...
@@ -187,7 +187,7 @@
}
function
del_pic
(
id
)
{
post
(
'
{:split_url(str("admin/column/%s_pic_del",[table_name("HomeLayoutModel")
]))}
'
,
{
df_tools
.
post
(
'
{:split_url(str("admin/column/%s_pic_del",["homeLayout"
]))}
'
,
{
id
:
id
},
function
(
x
)
{
$
(
'
.img_
'
+
id
).
remove
();
...
...
root/public/view/admin/column/home_music_add.htm
浏览文件 @
8059b80a
...
...
@@ -21,7 +21,7 @@
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-1 control-label"
>
音乐地址
</label>
<label
class=
"col-sm-1 control-label"
>
音乐地址
:
</label>
<div
class=
"col-sm-4"
>
<div
class=
"upload"
>
<div
id=
"uploadPreview1"
>
...
...
@@ -31,8 +31,6 @@
<df-else>
暂无音乐
</df-if>
</div>
<div
class=
"left"
>
<div
class=
"uploadProgressBar"
></div>
...
...
@@ -73,7 +71,6 @@
<!-- ********************** webuploader END ********************** -->
<script
type=
"text/javascript"
>
function
submit_form
()
{
function
submit_form
()
{
if
(
$
.
formVerifyEmpty
(
'
data[title]
'
,
'
请输入标题
'
))
{
...
...
root/public/view/admin/column/readme.htm
浏览文件 @
8059b80a
...
...
@@ -9,20 +9,24 @@
<legend>
说明
</legend>
</fieldset>
<div
class=
"layui-collapse"
lay-accordion=
""
>
<div
class=
"layui-colla-item"
>
<h2
class=
"layui-colla-title"
>
{$output['title']}
</h2>
<div
class=
"layui-colla-content layui-show"
>
<p>
{$output['content']}
</p>
</div>
</div>
<div
class=
"layui-colla-item"
>
<h2
class=
"layui-colla-title"
>
白日依山尽
</h2>
<div
class=
"layui-colla-content"
>
<p>
黄河入海流
</p>
</div>
</div>
<df-each
$
output
>
<div
class=
"layui-colla-item"
>
<h2
class=
"layui-colla-title"
>
{::title}
</h2>
<df-if
$
key=
=0
>
<div
class=
"layui-colla-content layui-show"
>
<p>
{::content}
</p>
</div>
<df-else>
<div
class=
"layui-colla-content"
>
<p>
{::content}
</p>
</div>
</df-if>
</div>
</df-each>
</div>
...
...
root/public/view/admin/home/index.htm
浏览文件 @
8059b80a
...
...
@@ -12,10 +12,7 @@
<link
href=
"{:VIEW_ASSETS}/admin/css/font-awesome.min.css?v=4.4.0"
rel=
"stylesheet"
>
<link
href=
"{:VIEW_ASSETS}/admin/css/style.css?v=4.1.0"
rel=
"stylesheet"
>
<script
src=
"{:VIEW_ASSETS}/DfTools.js"
></script>
<script>
var
df_tools
=
new
DfTools
();
$
(
function
()
{
refresh_data
=
function
()
{
layer
.
confirm
(
'
确定刷新服务器数据么?
'
,
{
...
...
@@ -31,30 +28,13 @@
icon
:
1
});
})
},
function
()
{})
}
changeSSL
=
function
()
{
location
.
href
=
"
{:SSL_STATE?str_replace('https','http',URL):str_replace('http','https',URL)}
"
location
.
href
=
"
{:SSL_STATE?str_replace('https','http',URL):str_replace('http','https',URL)}
"
;
}
$
(
'
#top-search
'
).
keypress
(
function
(
e
)
{
if
(
e
.
keyCode
==
13
)
{
post
(
''
,
{
'
top-search
'
:
$
(
this
).
val
()
},
function
(
x
)
{
if
(
x
.
status
)
{
layer
.
msg
(
'
搜索:{0}
'
.
format
(
x
.
msg
));
}
})
return
false
;
}
})
})
</script>
</df-header>
...
...
@@ -120,27 +100,14 @@
<div
class=
"navbar-header"
>
<a
class=
"navbar-minimalize minimalize-styl-2 btn btn-primary "
href=
"#"
><i
class=
"fa fa-bars"
></i>
</a>
<form
role=
"search"
class=
"navbar-form-custom"
>
<div
class=
"form-group"
>
<input
type=
"text"
placeholder=
"请输入您需要查找的内容 …"
class=
"form-control"
name=
"top-search"
id=
"top-search"
>
</div>
</form>
<ul
class=
"nav navbar-top-links navbar-right"
>
<li
class=
"hidden-xs"
>
<a
href=
"/"
target=
"_blank"
><i
class=
"fa fa fa-home"
></i>
站点首页
</a>
</li>
<li
class=
"hidden-xs"
>
<a
href=
"javascript:history.back(-1);"
data-index=
"0"
><i
class=
"fa fa fa-backward"
></i>
返回
</a>
</li>
<li
class=
"hidden-xs"
>
<a
href=
"javascript:window.location.reload();"
data-index=
"0"
><i
class=
"fa fa-refresh"
></i>
刷新
</a>
</li>
<li
class=
"dropdown m-l-xl"
>
<a
class=
"dropdown-toggle count-info J_menuItem"
href=
"{:split_url('admin/column/message/')}"
>
...
...
root/public/view/admin/home/info.htm
0 → 100644
浏览文件 @
8059b80a
<df-html>
<!-- ********************** layui START ********************** -->
<link
href=
"https://api.dfer.site/gitcode/github_dfer/layui/main/dist/css/layui.css"
rel=
"stylesheet"
>
<script
src=
"https://api.dfer.site/gitcode/github_dfer/layui/main/dist/layui.js"
></script>
<!-- ********************** layui END ********************** -->
<table
class=
"layui-table"
style=
"width: 50%;"
>
<colgroup>
<col
width=
"35%"
>
<col
width=
"65%"
>
</colgroup>
<thead>
<tr>
<th
colspan=
"2"
>
框架信息
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
php 当前版本
</td>
<td>
{:PHP_VERSION}
</td>
</tr>
<tr>
<td>
php 需求版本
</td>
<td>
{:PHP_VERSION_MIN}
</td>
</tr>
<tr>
<td>
DfPHP 当前版本
</td>
<td>
{:VERSION}
</td>
</tr>
<tr>
<td>
php 环境
</td>
<td>
{:getenv('SERVER_SOFTWARE')}
</td>
</tr>
</tbody>
</table>
</df-html>
root/public/view/admin/home/user.htm
浏览文件 @
8059b80a
...
...
@@ -17,7 +17,6 @@
<a
href=
'{:split_url(str("admin/home/%s_add/",[table_name("UserModel")]))}'
class=
"btn btn-primary btn-sm"
><i
class=
"fa fa-plus"
></i>
添加
</a>
</div>
</div>
<table
class=
"table table-striped table-bordered table-hover datatable-one"
>
<thead>
...
...
root/public/view/admin/home/user_add.htm
浏览文件 @
8059b80a
...
...
@@ -38,7 +38,7 @@
<div
class=
"col-sm-5"
>
<select
class=
"site-select-tem"
name=
"data[role]"
>
<df-each
$
type
>
<option
value=
"{::
I
d}"
{
:
$
v
['
id
'
]=
=($output['role']??null)?
'
selected
'
:
''
<option
value=
"{::
i
d}"
{
:
$
v
['
id
'
]=
=($output['role']??null)?
'
selected
'
:
''
}
>
{::nm}
</option>
</df-each>
...
...
root/public/view/admin/public/icon_share.htm
浏览文件 @
8059b80a
...
...
@@ -13,7 +13,11 @@
<!--作为独立的网页,进行全屏显示-->
<meta
name=
"apple-mobile-web-app-capable"
content=
"yes"
>
<script
src=
"{:VIEW_ASSETS}/jquery.min.js"
></script>
<script
src=
"{:VIEW_ASSETS}/js.ext.js"
></script>
<script
src=
"{:VIEW_ASSETS}/DfTools.js"
></script>
<script>
var
df_tools
=
new
DfTools
();
</script>
<df-header
/>
</head>
...
...
root/version
浏览文件 @
8059b80a
5.4.
0
5.4.
1
version
浏览文件 @
8059b80a
1.3.
8
1.3.
9
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录