@@ -1,14 +1,17 @@ | |||||
# 更新记录 | # 更新记录 | ||||
通过访问 https://www.dedebiz.com/git 获取完整更新记录 | 通过访问 https://www.dedebiz.com/git 获取完整更新记录 | ||||
# V6.2.13 | |||||
# V6.3 | |||||
- 再次优化后台部分代码面向对象,提高性能正确引导,致力于打造高效、简约CMS系统; | - 再次优化后台部分代码面向对象,提高性能正确引导,致力于打造高效、简约CMS系统; | ||||
- 优化提示类说明注释文字及页面元素; | - 优化提示类说明注释文字及页面元素; | ||||
- 优化默认模板标签,新加元素; | |||||
- 优化IE浏览器过渡提示使用; | - 优化IE浏览器过渡提示使用; | ||||
- 修正谷歌浏览器错误提示; | - 修正谷歌浏览器错误提示; | ||||
- 修正ck富文本的错误问题; | - 修正ck富文本的错误问题; | ||||
- 调整后台和前台资源整理一起方便维护; | - 调整后台和前台资源整理一起方便维护; | ||||
- 简化会员中心资料修改繁琐问题; | - 简化会员中心资料修改繁琐问题; | ||||
- 移除安装目录功能; | |||||
- 其他常规问题修复; | |||||
# V6.2.12 | # V6.2.12 | ||||
- 增加管理员密码修改工具; | - 增加管理员密码修改工具; | ||||
@@ -23,11 +23,12 @@ input[type=file]{padding:0;height:auto;border:0} | |||||
.item-admin{padding:75px 1rem} | .item-admin{padding:75px 1rem} | ||||
.item-theme{margin-bottom:2rem} | .item-theme{margin-bottom:2rem} | ||||
.item-theme-box{padding:1.5rem} | .item-theme-box{padding:1.5rem} | ||||
.item-theme .title a,.item-news .title a{color:#343a40} | |||||
.item-theme-img img{width:100%;height:250px} | .item-theme-img img{width:100%;height:250px} | ||||
.item-theme p,.item-news p{margin-bottom:0;color:#999;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical} | .item-theme p,.item-news p{margin-bottom:0;color:#999;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical} | ||||
.item-news{margin-bottom:2rem;padding:1.5rem} | .item-news{margin-bottom:2rem;padding:1.5rem} | ||||
.item-theme:hover,.item-news:hover{box-shadow:0 14px 30px -16px rgba(0,36,100,.25);transform:translateY(-6px);transition:all 0.5s} | |||||
.item-news h4{margin:20px 0 15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} | |||||
.item-theme:hover,.item-news:hover{box-shadow:0 14px 30px -16px rgba(0,36,100,.25);transform:translateY(-5px);transition:all 0.5s} | |||||
.item-news .title{margin:20px 0 15px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} | |||||
.item-news-img img{width:100%;height:200px} | .item-news-img img{width:100%;height:200px} | ||||
.item-news i,.item-news span{color:#999} | .item-news i,.item-news span{color:#999} | ||||
.item-info a{color:#1eb867} | .item-info a{color:#1eb867} | ||||
@@ -44,8 +45,9 @@ input[type=file]{padding:0;height:auto;border:0} | |||||
.article-hot-box{padding:1rem 1.5rem;background:#fff} | .article-hot-box{padding:1rem 1.5rem;background:#fff} | ||||
.article-hot-box h4{font-size:14px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} | .article-hot-box h4{font-size:14px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} | ||||
.article-hot-box i,.article-hot-box span,.article-meta span,.item-theme-box .text-left i,.item-theme-box .text-right span,.list-article-body i,.list-article-body span{color:#999} | .article-hot-box i,.article-hot-box span,.article-meta span,.item-theme-box .text-left i,.item-theme-box .text-right span,.list-article-body i,.list-article-body span{color:#999} | ||||
.article-main h1,.article-main h2,.article-main h3,.article-main h4,.article-main h5,.article-main h6{margin:20px 0;padding:0 10px;font-size:18px!important;border-left:3px solid #20c997} | |||||
.article-meta span{margin-right:1rem} | |||||
.article-main .title h1{font-size:24px} | |||||
.article-main .body h1,.article-main .body h2,.article-main .body h3,.article-main .body h4,.article-main .body h5,.article-main .body h6{margin:20px 0;padding:0 10px;font-size:18px!important;border-left:3px solid #20c997} | |||||
.article-main .meta span{margin-right:1rem} | |||||
.likes .comment-container{width:200px;padding:10px 20px;border:1px solid #f5f5f5;border-radius:30px;margin:0 6px;cursor:pointer} | .likes .comment-container{width:200px;padding:10px 20px;border:1px solid #f5f5f5;border-radius:30px;margin:0 6px;cursor:pointer} | ||||
.likes .comment-container:hover{background:#fffce0} | .likes .comment-container:hover{background:#fffce0} | ||||
.likes .comment-top{display:flex;flex-direction:row;align-items:center;margin-bottom:10px} | .likes .comment-top{display:flex;flex-direction:row;align-items:center;margin-bottom:10px} | ||||
@@ -65,8 +67,6 @@ input[type=file]{padding:0;height:auto;border:0} | |||||
.feedbacks .feedback-basic{display:inline-block} | .feedbacks .feedback-basic{display:inline-block} | ||||
.feedbacks .feedback-action{float:right} | .feedbacks .feedback-action{float:right} | ||||
.feedbacks ._feedback_reply .alert{margin-bottom:0} | .feedbacks ._feedback_reply .alert{margin-bottom:0} | ||||
.nav-item .active{color:#ff8400} | |||||
.logo img{height:40px} | |||||
.login-from{margin:5rem auto;width:500px} | .login-from{margin:5rem auto;width:500px} | ||||
.login-box{padding:1.25rem;background:#fff} | .login-box{padding:1.25rem;background:#fff} | ||||
.user-login,.user-actions{line-height:40px} | .user-login,.user-actions{line-height:40px} | ||||
@@ -80,6 +80,8 @@ input[type=file]{padding:0;height:auto;border:0} | |||||
.user-img-xs{width:30px;height:30px;border-radius:50%;border:1px solid #eee} | .user-img-xs{width:30px;height:30px;border-radius:50%;border:1px solid #eee} | ||||
.user-meter i{font-size:24px!important;color:#1eb867} | .user-meter i{font-size:24px!important;color:#1eb867} | ||||
.userspace .info{font-size:14px;font-weight:300;color:#6c757d} | .userspace .info{font-size:14px;font-weight:300;color:#6c757d} | ||||
.logo img{height:40px} | |||||
.nav-item .active{color:#ff8400} | |||||
.nav-link{padding:0 10px;height:36px;line-height:36px} | .nav-link{padding:0 10px;height:36px;line-height:36px} | ||||
.navbar-dark .navbar-nav .nav-link{color:#eee} | .navbar-dark .navbar-nav .nav-link{color:#eee} | ||||
.list-group-item.active a{color:#fff} | .list-group-item.active a{color:#fff} | ||||
@@ -28,21 +28,23 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-9"> | <div class="col-md-9"> | ||||
<article class="article-main bg-white shadow-sm rounded p-3"> | <article class="article-main bg-white shadow-sm rounded p-3"> | ||||
<h2>{dede:field.title/}</h2> | |||||
<div class="article-meta"> | |||||
<div class="title"> | |||||
<h1>{dede:field.title/}</h1> | |||||
</div> | |||||
<div class="meta py-3"> | |||||
<a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | <a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | ||||
<span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | <span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | ||||
<span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | <span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | ||||
<span><i class="fa fa-user mr-1"></i>{dede:field.writer/}</span> | <span><i class="fa fa-user mr-1"></i>{dede:field.writer/}</span> | ||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:global.cfg_phpurl/}/count.php?view=yes&aid={dede:field.id/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
</div> | </div> | ||||
<div class="py-3">{dede:pagetitle/}</div> | |||||
<div class="py-3">{dede:field.body/}</div> | |||||
<div class="py-3">责任编辑:{dede:adminname/}</div> | |||||
<nav class="py-3"> | |||||
<div class="column py-3">{dede:pagetitle/}</div> | |||||
<div class="body py-3">{dede:field.body/}</div> | |||||
<div class="edit py-3">责任编辑:{dede:adminname/}</div> | |||||
<nav class="column-page py-3"> | |||||
<ul class="pagination justify-content-center">{dede:pagebreak/}</ul> | <ul class="pagination justify-content-center">{dede:pagebreak/}</ul> | ||||
</nav> | </nav> | ||||
<div class="py-3 row"> | |||||
<div class="page py-3 row"> | |||||
<div class="col-md-4 prenext"> | <div class="col-md-4 prenext"> | ||||
<div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | <div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | ||||
<div class="pagination-next">{dede:prenext get='next'/}</div> | <div class="pagination-next">{dede:prenext get='next'/}</div> | ||||
@@ -50,9 +52,9 @@ | |||||
<div class="col-md-8"> | <div class="col-md-8"> | ||||
<div class="row actbox"> | <div class="row actbox"> | ||||
<ul> | <ul> | ||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:global.cfg_phpurl/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | <li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | ||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:global.cfg_phpurl/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | <li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
@@ -69,7 +71,7 @@ | |||||
</aside> | </aside> | ||||
</div> | </div> | ||||
</main> | </main> | ||||
<script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
<script>const PHPURL = '{dede:global.cfg_phpurl/}';</script> | |||||
{dede:include filename='foot.htm'/} | {dede:include filename='foot.htm'/} | ||||
<script src="/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script> | <script src="/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script> | ||||
<script>hljs.initHighlightingOnLoad();</script> | <script>hljs.initHighlightingOnLoad();</script> | ||||
@@ -104,7 +106,7 @@ | |||||
if (j == 19 && !hasid) break; | if (j == 19 && !hasid) break; | ||||
} | } | ||||
} | } | ||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖 "); return; } | |||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||||
else saveid += ',' + aid; | else saveid += ',' + aid; | ||||
SetCookie('diggid', saveid, 1); | SetCookie('diggid', saveid, 1); | ||||
} | } | ||||
@@ -128,23 +130,23 @@ | |||||
let feedback = { | let feedback = { | ||||
action: "send", | action: "send", | ||||
comtype: "comments", | comtype: "comments", | ||||
aid: "{dede:field name='id'/}", | |||||
aid: "{dede:field.id/}", | |||||
msg: $("#iptMsg").val(), | msg: $("#iptMsg").val(), | ||||
username: $("#iptUsername").val(), | username: $("#iptUsername").val(), | ||||
validate: $("#iptValidate").val(), | validate: $("#iptValidate").val(), | ||||
notuser: $("#iptAny").is(":checked") ? "1" : "", | notuser: $("#iptAny").is(":checked") ? "1" : "", | ||||
}; | }; | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", feedback, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert("#feedback-alert", result.msg, "success"); | ShowAlert("#feedback-alert", result.msg, "success"); | ||||
$("#iptMsg").val(""); | $("#iptMsg").val(""); | ||||
$("#iptValidate").val(""); | $("#iptValidate").val(""); | ||||
($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} else { | } else { | ||||
ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -155,10 +157,10 @@ | |||||
action : "send", | action : "send", | ||||
comtype : "reply", | comtype : "reply", | ||||
fid : fid, | fid : fid, | ||||
aid : "{dede:field name='id'/}", | |||||
aid : "{dede:field.id/}", | |||||
msg : content, | msg : content, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", reply, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ||||
@@ -190,8 +192,8 @@ | |||||
//加载回复评论 | //加载回复评论 | ||||
function LoadReplyFeedbacks(fid) { | function LoadReplyFeedbacks(fid) { | ||||
$(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | $(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | ||||
$.get("{dede:field name='phpurl'/}/feedback.php", { | |||||
"aid" : "{dede:field name='id'/}", | |||||
$.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||||
"aid" : "{dede:field.id/}", | |||||
"fid" : fid, | "fid" : fid, | ||||
}, function (data) { | }, function (data) { | ||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
@@ -236,7 +238,7 @@ | |||||
good : g, | good : g, | ||||
fid : fid, | fid : fid, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", good, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
$(`#feedbackGood${fid}`).html(result.data); | $(`#feedbackGood${fid}`).html(result.data); | ||||
}) | }) | ||||
@@ -27,19 +27,17 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-9"> | <div class="col-md-9"> | ||||
<article class="article-main bg-white shadow-sm rounded p-3"> | <article class="article-main bg-white shadow-sm rounded p-3"> | ||||
<h2>{dede:field.title/}</h2> | |||||
<div class="article-meta"> | |||||
<div class="title"> | |||||
<h1>{dede:field.title/}</h1> | |||||
</div> | |||||
<div class="meta py-3"> | |||||
<a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | <a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | ||||
<span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | <span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | ||||
<span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | <span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | ||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
<span><i class="fa fa-user mr-1"></i>{dede:field.writer/}</span> | |||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:global.cfg_phpurl/}/count.php?view=yes&aid={dede:field.id/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
</div> | </div> | ||||
<div class="py-3">{dede:field.body/}</div> | |||||
<div class="py-3">责任编辑:{dede:adminname/}</div> | |||||
<nav class="py-3"> | |||||
<ul class="pagination justify-content-center">{dede:pagebreak/}</ul> | |||||
</nav> | |||||
<div class="alert alert-warning">您会看到这个提示,因为系统无法识别某栏目的模型信息或者您新建模型后,没为模型设计单独的模板,不同模型的文档浏览页的模板为:article_模型名字标识.htm更多的信息您可以在栏目模型管理的地方查看</div> | |||||
<div class="alert alert-warning my-3">您会看到这个提示,因为系统无法识别某栏目的模型信息或者您新建模型后,没为模型设计单独的模板,不同模型的文档浏览页的模板为:article_模型名字标识.htm更多的信息您可以在栏目模型管理的地方查看</div> | |||||
{dede:fieldlist} | {dede:fieldlist} | ||||
<table class="table"> | <table class="table"> | ||||
<tr> | <tr> | ||||
@@ -52,7 +50,9 @@ | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
{/dede:fieldlist} | {/dede:fieldlist} | ||||
<div class="py-3 row"> | |||||
<div class="body py-3">{dede:field.body/}</div> | |||||
<div class="edit py-3">责任编辑:{dede:adminname/}</div> | |||||
<div class="page py-3 row"> | |||||
<div class="col-md-4 prenext"> | <div class="col-md-4 prenext"> | ||||
<div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | <div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | ||||
<div class="pagination-next">{dede:prenext get='next'/}</div> | <div class="pagination-next">{dede:prenext get='next'/}</div> | ||||
@@ -60,9 +60,9 @@ | |||||
<div class="col-md-8"> | <div class="col-md-8"> | ||||
<div class="row actbox"> | <div class="row actbox"> | ||||
<ul> | <ul> | ||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:global.cfg_phpurl/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | <li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | ||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:global.cfg_phpurl/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | <li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
@@ -79,7 +79,7 @@ | |||||
</aside> | </aside> | ||||
</div> | </div> | ||||
</main> | </main> | ||||
<script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
<script>const PHPURL = '{dede:global.cfg_phpurl/}';</script> | |||||
{dede:include filename='foot.htm'/} | {dede:include filename='foot.htm'/} | ||||
<script> | <script> | ||||
//获取顶踩数据 | //获取顶踩数据 | ||||
@@ -112,7 +112,7 @@ | |||||
if (j == 19 && !hasid) break; | if (j == 19 && !hasid) break; | ||||
} | } | ||||
} | } | ||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖 "); return; } | |||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||||
else saveid += ',' + aid; | else saveid += ',' + aid; | ||||
SetCookie('diggid', saveid, 1); | SetCookie('diggid', saveid, 1); | ||||
} | } | ||||
@@ -136,23 +136,23 @@ | |||||
let feedback = { | let feedback = { | ||||
action: "send", | action: "send", | ||||
comtype: "comments", | comtype: "comments", | ||||
aid: "{dede:field name='id'/}", | |||||
aid: "{dede:field.id/}", | |||||
msg: $("#iptMsg").val(), | msg: $("#iptMsg").val(), | ||||
username: $("#iptUsername").val(), | username: $("#iptUsername").val(), | ||||
validate: $("#iptValidate").val(), | validate: $("#iptValidate").val(), | ||||
notuser: $("#iptAny").is(":checked") ? "1" : "", | notuser: $("#iptAny").is(":checked") ? "1" : "", | ||||
}; | }; | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", feedback, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert("#feedback-alert", result.msg, "success"); | ShowAlert("#feedback-alert", result.msg, "success"); | ||||
$("#iptMsg").val(""); | $("#iptMsg").val(""); | ||||
$("#iptValidate").val(""); | $("#iptValidate").val(""); | ||||
($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} else { | } else { | ||||
ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -163,10 +163,10 @@ | |||||
action : "send", | action : "send", | ||||
comtype : "reply", | comtype : "reply", | ||||
fid : fid, | fid : fid, | ||||
aid : "{dede:field name='id'/}", | |||||
aid : "{dede:field.id/}", | |||||
msg : content, | msg : content, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", reply, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ||||
@@ -198,8 +198,8 @@ | |||||
//加载回复评论 | //加载回复评论 | ||||
function LoadReplyFeedbacks(fid) { | function LoadReplyFeedbacks(fid) { | ||||
$(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | $(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | ||||
$.get("{dede:field name='phpurl'/}/feedback.php", { | |||||
"aid" : "{dede:field name='id'/}", | |||||
$.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||||
"aid" : "{dede:field.id/}", | |||||
"fid" : fid, | "fid" : fid, | ||||
}, function (data) { | }, function (data) { | ||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
@@ -244,7 +244,7 @@ | |||||
good : g, | good : g, | ||||
fid : fid, | fid : fid, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", good, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
$(`#feedbackGood${fid}`).html(result.data); | $(`#feedbackGood${fid}`).html(result.data); | ||||
}) | }) | ||||
@@ -28,19 +28,17 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-9"> | <div class="col-md-9"> | ||||
<article class="article-main bg-white shadow-sm rounded p-3"> | <article class="article-main bg-white shadow-sm rounded p-3"> | ||||
<h2>{dede:field.title/}</h2> | |||||
<div class="article-meta"> | |||||
<div class="title"> | |||||
<h1>{dede:field.title/}</h1> | |||||
</div> | |||||
<div class="meta py-3"> | |||||
<a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | <a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | ||||
<span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | <span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | ||||
<span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | <span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | ||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}&cid={dede:field name='channel'/}"></script>次</span> | |||||
<span><i class="fa fa-user mr-1"></i>{dede:field.writer/}</span> | |||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:global.cfg_phpurl/}/count.php?view=yes&aid={dede:field.id/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
</div> | </div> | ||||
<div class="py-3">{dede:field.body/}</div> | |||||
<div class="py-3">责任编辑:{dede:adminname/}</div> | |||||
<nav class="py-3"> | |||||
<ul class="pagination justify-content-center">{dede:pagebreak/}</ul> | |||||
</nav> | |||||
<div class="alert alert-info mt-3">您会看到这个提示,因为系统无法识别某栏目的模型信息或者您新建模型后,没为模型设计单独的模板,不同模型的文档浏览页的模板为:article_模型名字标识.htm更多的信息您可以在栏目模型管理的地方查看</div> | |||||
<div class="alert alert-info my-3">您会看到这个提示,因为系统无法识别某栏目的模型信息或者您新建模型后,没为模型设计单独的模板,不同模型的文档浏览页的模板为:article_模型名字标识.htm更多的信息您可以在栏目模型管理的地方查看</div> | |||||
{dede:fieldlist} | {dede:fieldlist} | ||||
<table class="table"> | <table class="table"> | ||||
<tr> | <tr> | ||||
@@ -53,7 +51,9 @@ | |||||
</tr> | </tr> | ||||
</table> | </table> | ||||
{/dede:fieldlist} | {/dede:fieldlist} | ||||
<div class="py-3 row"> | |||||
<div class="body py-3">{dede:field.body/}</div> | |||||
<div class="edit py-3">责任编辑:{dede:adminname/}</div> | |||||
<div class="page py-3 row"> | |||||
<div class="col-md-4 prenext"> | <div class="col-md-4 prenext"> | ||||
<div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | <div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | ||||
<div class="pagination-next">{dede:prenext get='next'/}</div> | <div class="pagination-next">{dede:prenext get='next'/}</div> | ||||
@@ -61,9 +61,9 @@ | |||||
<div class="col-md-8"> | <div class="col-md-8"> | ||||
<div class="row actbox"> | <div class="row actbox"> | ||||
<ul> | <ul> | ||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:global.cfg_phpurl/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | <li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | ||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:global.cfg_phpurl/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | <li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
@@ -80,7 +80,7 @@ | |||||
</aside> | </aside> | ||||
</div> | </div> | ||||
</main> | </main> | ||||
<script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
<script>const PHPURL = '{dede:global.cfg_phpurl/}';</script> | |||||
{dede:include filename='foot.htm'/} | {dede:include filename='foot.htm'/} | ||||
<script src="/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script> | <script src="/static/ckeditor/plugins/codesnippet/lib/highlight/highlight.pack.js"></script> | ||||
<script>hljs.initHighlightingOnLoad();</script> | <script>hljs.initHighlightingOnLoad();</script> | ||||
@@ -115,7 +115,7 @@ | |||||
if (j == 19 && !hasid) break; | if (j == 19 && !hasid) break; | ||||
} | } | ||||
} | } | ||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖 "); return; } | |||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||||
else saveid += ',' + aid; | else saveid += ',' + aid; | ||||
SetCookie('diggid', saveid, 1); | SetCookie('diggid', saveid, 1); | ||||
} | } | ||||
@@ -139,23 +139,23 @@ | |||||
let feedback = { | let feedback = { | ||||
action: "send", | action: "send", | ||||
comtype: "comments", | comtype: "comments", | ||||
aid: "{dede:field name='id'/}", | |||||
aid: "{dede:field.id/}", | |||||
msg: $("#iptMsg").val(), | msg: $("#iptMsg").val(), | ||||
username: $("#iptUsername").val(), | username: $("#iptUsername").val(), | ||||
validate: $("#iptValidate").val(), | validate: $("#iptValidate").val(), | ||||
notuser: $("#iptAny").is(":checked") ? "1" : "", | notuser: $("#iptAny").is(":checked") ? "1" : "", | ||||
}; | }; | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", feedback, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert("#feedback-alert", result.msg, "success"); | ShowAlert("#feedback-alert", result.msg, "success"); | ||||
$("#iptMsg").val(""); | $("#iptMsg").val(""); | ||||
$("#iptValidate").val(""); | $("#iptValidate").val(""); | ||||
($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} else { | } else { | ||||
ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -166,10 +166,10 @@ | |||||
action : "send", | action : "send", | ||||
comtype : "reply", | comtype : "reply", | ||||
fid : fid, | fid : fid, | ||||
aid : "{dede:field name='id'/}", | |||||
aid : "{dede:field.id/}", | |||||
msg : content, | msg : content, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", reply, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ||||
@@ -201,8 +201,8 @@ | |||||
//加载回复评论 | //加载回复评论 | ||||
function LoadReplyFeedbacks(fid) { | function LoadReplyFeedbacks(fid) { | ||||
$(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | $(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | ||||
$.get("{dede:field name='phpurl'/}/feedback.php", { | |||||
"aid" : "{dede:field name='id'/}", | |||||
$.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||||
"aid" : "{dede:field.id/}", | |||||
"fid" : fid, | "fid" : fid, | ||||
}, function (data) { | }, function (data) { | ||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
@@ -247,7 +247,7 @@ | |||||
good : g, | good : g, | ||||
fid : fid, | fid : fid, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", good, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
$(`#feedbackGood${fid}`).html(result.data); | $(`#feedbackGood${fid}`).html(result.data); | ||||
}) | }) | ||||
@@ -41,11 +41,11 @@ | |||||
} else { | } else { | ||||
if (npage == 2) { | if (npage == 2) { | ||||
if (namehand != '') location.href = namehand + shortname; | if (namehand != '') location.href = namehand + shortname; | ||||
else location.href = "/apps/view.php?aid={dede:field name='id'/}"; | |||||
else location.href = "{dede:global.cfg_phpurl/}/view.php?aid={dede:field.id/}"; | |||||
} else if (displaytype == 'st' && namehand != '') { | } else if (displaytype == 'st' && namehand != '') { | ||||
location.href = namehand + "-" + (npage - 1) + shortname; | location.href = namehand + "-" + (npage - 1) + shortname; | ||||
} else { | } else { | ||||
location.href = "/apps/view.php?aid={dede:field name='id'/}&pageno=" + (npage - 1); | |||||
location.href = "{dede:global.cfg_phpurl/}/view.php?aid={dede:field.id/}&pageno=" + (npage - 1); | |||||
} | } | ||||
} | } | ||||
} | } | ||||
@@ -55,7 +55,7 @@ | |||||
ShowMsg("没有了哦"); | ShowMsg("没有了哦"); | ||||
} else { | } else { | ||||
if (displaytype == 'st' && namehand != '') location.href = namehand + "-" + (npage + 1) + shortname; | if (displaytype == 'st' && namehand != '') location.href = namehand + "-" + (npage + 1) + shortname; | ||||
else location.href = "/apps/view.php?aid={dede:field name='id'/}&pageno=" + (npage + 1); | |||||
else location.href = "{dede:global.cfg_phpurl/}/view.php?aid={dede:field.id/}&pageno=" + (npage + 1); | |||||
} | } | ||||
} | } | ||||
</script> | </script> | ||||
@@ -75,12 +75,15 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-9"> | <div class="col-md-9"> | ||||
<article class="article-main bg-white shadow-sm rounded p-3"> | <article class="article-main bg-white shadow-sm rounded p-3"> | ||||
<h2>{dede:field.title/}</h2> | |||||
<div class="article-meta"> | |||||
<div class="title"> | |||||
<h1>{dede:field.title/}</h1> | |||||
</div> | |||||
<div class="meta py-3"> | |||||
<a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | <a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | ||||
<span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | <span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | ||||
<span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | <span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | ||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:field name='phpurl'/}/count.php?/apps/view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
<span><i class="fa fa-user mr-1"></i>{dede:field.writer/}</span> | |||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:global.cfg_phpurl/}/count.php?view=yes&aid={dede:field.id/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
</div> | </div> | ||||
<div class="picbox py-3"> | <div class="picbox py-3"> | ||||
{dede:field name='pagestyle' alt='输出不同的图片头信息' runphp='yes'} | {dede:field name='pagestyle' alt='输出不同的图片头信息' runphp='yes'} | ||||
@@ -114,9 +117,9 @@ | |||||
} | } | ||||
{/dede:field} | {/dede:field} | ||||
</div> | </div> | ||||
<div class="py-3">{dede:field.body/}</div> | |||||
<div class="py-3">责任编辑:{dede:adminname/}</div> | |||||
<div class="py-3 row"> | |||||
<div class="body py-3">{dede:field.body/}</div> | |||||
<div class="edit py-3">责任编辑:{dede:adminname/}</div> | |||||
<div class="page py-3 row"> | |||||
<div class="col-md-4 prenext"> | <div class="col-md-4 prenext"> | ||||
<div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | <div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | ||||
<div class="pagination-next">{dede:prenext get='next'/}</div> | <div class="pagination-next">{dede:prenext get='next'/}</div> | ||||
@@ -124,9 +127,9 @@ | |||||
<div class="col-md-8"> | <div class="col-md-8"> | ||||
<div class="row actbox"> | <div class="row actbox"> | ||||
<ul> | <ul> | ||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:global.cfg_phpurl/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | <li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | ||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:global.cfg_phpurl/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | <li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
@@ -143,7 +146,7 @@ | |||||
</aside> | </aside> | ||||
</div> | </div> | ||||
</main> | </main> | ||||
<script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
<script>const PHPURL = '{dede:global.cfg_phpurl/}';</script> | |||||
{dede:include filename='foot.htm'/} | {dede:include filename='foot.htm'/} | ||||
<script> | <script> | ||||
//获取顶踩数据 | //获取顶踩数据 | ||||
@@ -176,7 +179,7 @@ | |||||
if (j == 19 && !hasid) break; | if (j == 19 && !hasid) break; | ||||
} | } | ||||
} | } | ||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖 "); return; } | |||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||||
else saveid += ',' + aid; | else saveid += ',' + aid; | ||||
SetCookie('diggid', saveid, 1); | SetCookie('diggid', saveid, 1); | ||||
} | } | ||||
@@ -200,23 +203,23 @@ | |||||
let feedback = { | let feedback = { | ||||
action: "send", | action: "send", | ||||
comtype: "comments", | comtype: "comments", | ||||
aid: "{dede:field name='id'/}", | |||||
aid: "{dede:field.id/}", | |||||
msg: $("#iptMsg").val(), | msg: $("#iptMsg").val(), | ||||
username: $("#iptUsername").val(), | username: $("#iptUsername").val(), | ||||
validate: $("#iptValidate").val(), | validate: $("#iptValidate").val(), | ||||
notuser: $("#iptAny").is(":checked") ? "1" : "", | notuser: $("#iptAny").is(":checked") ? "1" : "", | ||||
}; | }; | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", feedback, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert("#feedback-alert", result.msg, "success"); | ShowAlert("#feedback-alert", result.msg, "success"); | ||||
$("#iptMsg").val(""); | $("#iptMsg").val(""); | ||||
$("#iptValidate").val(""); | $("#iptValidate").val(""); | ||||
($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} else { | } else { | ||||
ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -227,10 +230,10 @@ | |||||
action : "send", | action : "send", | ||||
comtype : "reply", | comtype : "reply", | ||||
fid : fid, | fid : fid, | ||||
aid : "{dede:field name='id'/}", | |||||
aid : "{dede:field.id/}", | |||||
msg : content, | msg : content, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", reply, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ||||
@@ -262,8 +265,8 @@ | |||||
//加载回复评论 | //加载回复评论 | ||||
function LoadReplyFeedbacks(fid) { | function LoadReplyFeedbacks(fid) { | ||||
$(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | $(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | ||||
$.get("{dede:field name='phpurl'/}/feedback.php", { | |||||
"aid" : "{dede:field name='id'/}", | |||||
$.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||||
"aid" : "{dede:field.id/}", | |||||
"fid" : fid, | "fid" : fid, | ||||
}, function (data) { | }, function (data) { | ||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
@@ -308,7 +311,7 @@ | |||||
good : g, | good : g, | ||||
fid : fid, | fid : fid, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", good, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
$(`#feedbackGood${fid}`).html(result.data); | $(`#feedbackGood${fid}`).html(result.data); | ||||
}) | }) | ||||
@@ -27,15 +27,18 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-9"> | <div class="col-md-9"> | ||||
<article class="article-main bg-white shadow-sm rounded p-3"> | <article class="article-main bg-white shadow-sm rounded p-3"> | ||||
<h2>{dede:field.title/}</h2> | |||||
<div class="article-meta"> | |||||
<div class="title"> | |||||
<h1>{dede:field.title/}</h1> | |||||
</div> | |||||
<div class="meta py-3"> | |||||
<a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | <a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | ||||
<span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | <span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | ||||
<span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | <span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | ||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}&cid={dede:field name='channel'/}"></script>次</span> | |||||
<span><i class="fa fa-user mr-1"></i>{dede:field.writer/}</span> | |||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:global.cfg_phpurl/}/count.php?view=yes&aid={dede:field.id/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
</div> | </div> | ||||
<div class="py-3">{dede:field name='image'/}</div> | |||||
<div class="py-3"> | |||||
<div class="img py-3">{dede:field name='image'/}</div> | |||||
<div class="info py-3"> | |||||
<p>所属区域:{dede:field.nativeplace/}</p> | <p>所属区域:{dede:field.nativeplace/}</p> | ||||
<p>信息类型:{dede:field.infotype/}</p> | <p>信息类型:{dede:field.infotype/}</p> | ||||
<p>发布时间:{dede:field.pubdate function="MyDate('Y-m-d H:i:s',@me)"/}</p> | <p>发布时间:{dede:field.pubdate function="MyDate('Y-m-d H:i:s',@me)"/}</p> | ||||
@@ -45,10 +48,12 @@ | |||||
<p>邮箱:{dede:field.email/}</p> | <p>邮箱:{dede:field.email/}</p> | ||||
<p>地址:{dede:field.address/}</p> | <p>地址:{dede:field.address/}</p> | ||||
</div> | </div> | ||||
<div class="py-3">{dede:field.body/}</div> | |||||
<div class="py-3">责任编辑:{dede:adminname/}</div> | |||||
<div class="clearfix"></div> | |||||
<div class="row"> | |||||
<div class="body py-3">{dede:field.body/}</div> | |||||
<div class="edit py-3">责任编辑:{dede:adminname/}</div> | |||||
<nav class="column-page py-3"> | |||||
<ul class="pagination justify-content-center">{dede:pagebreak/}</ul> | |||||
</nav> | |||||
<div class="page py-3 row"> | |||||
<div class="col-md-4 prenext"> | <div class="col-md-4 prenext"> | ||||
<div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | <div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | ||||
<div class="pagination-next">{dede:prenext get='next'/}</div> | <div class="pagination-next">{dede:prenext get='next'/}</div> | ||||
@@ -56,9 +61,9 @@ | |||||
<div class="col-md-8"> | <div class="col-md-8"> | ||||
<div class="row actbox"> | <div class="row actbox"> | ||||
<ul> | <ul> | ||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:global.cfg_phpurl/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | <li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | ||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:global.cfg_phpurl/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | <li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
@@ -75,7 +80,7 @@ | |||||
</aside> | </aside> | ||||
</div> | </div> | ||||
</main> | </main> | ||||
<script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
<script>const PHPURL = '{dede:global.cfg_phpurl/}';</script> | |||||
{dede:include filename='foot.htm'/} | {dede:include filename='foot.htm'/} | ||||
<script> | <script> | ||||
//获取顶踩数据 | //获取顶踩数据 | ||||
@@ -108,7 +113,7 @@ | |||||
if (j == 19 && !hasid) break; | if (j == 19 && !hasid) break; | ||||
} | } | ||||
} | } | ||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖 "); return; } | |||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||||
else saveid += ',' + aid; | else saveid += ',' + aid; | ||||
SetCookie('diggid', saveid, 1); | SetCookie('diggid', saveid, 1); | ||||
} | } | ||||
@@ -132,23 +137,23 @@ | |||||
let feedback = { | let feedback = { | ||||
action: "send", | action: "send", | ||||
comtype: "comments", | comtype: "comments", | ||||
aid: "{dede:field name='id'/}", | |||||
aid: "{dede:field.id/}", | |||||
msg: $("#iptMsg").val(), | msg: $("#iptMsg").val(), | ||||
username: $("#iptUsername").val(), | username: $("#iptUsername").val(), | ||||
validate: $("#iptValidate").val(), | validate: $("#iptValidate").val(), | ||||
notuser: $("#iptAny").is(":checked") ? "1" : "", | notuser: $("#iptAny").is(":checked") ? "1" : "", | ||||
}; | }; | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", feedback, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert("#feedback-alert", result.msg, "success"); | ShowAlert("#feedback-alert", result.msg, "success"); | ||||
$("#iptMsg").val(""); | $("#iptMsg").val(""); | ||||
$("#iptValidate").val(""); | $("#iptValidate").val(""); | ||||
($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} else { | } else { | ||||
ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -159,10 +164,10 @@ | |||||
action : "send", | action : "send", | ||||
comtype : "reply", | comtype : "reply", | ||||
fid : fid, | fid : fid, | ||||
aid : "{dede:field name='id'/}", | |||||
aid : "{dede:field.id/}", | |||||
msg : content, | msg : content, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", reply, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ||||
@@ -194,8 +199,8 @@ | |||||
//加载回复评论 | //加载回复评论 | ||||
function LoadReplyFeedbacks(fid) { | function LoadReplyFeedbacks(fid) { | ||||
$(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | $(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | ||||
$.get("{dede:field name='phpurl'/}/feedback.php", { | |||||
"aid" : "{dede:field name='id'/}", | |||||
$.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||||
"aid" : "{dede:field.id/}", | |||||
"fid" : fid, | "fid" : fid, | ||||
}, function (data) { | }, function (data) { | ||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
@@ -240,7 +245,7 @@ | |||||
good : g, | good : g, | ||||
fid : fid, | fid : fid, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", good, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
$(`#feedbackGood${fid}`).html(result.data); | $(`#feedbackGood${fid}`).html(result.data); | ||||
}) | }) | ||||
@@ -27,15 +27,18 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-9"> | <div class="col-md-9"> | ||||
<article class="article-main bg-white shadow-sm rounded p-3"> | <article class="article-main bg-white shadow-sm rounded p-3"> | ||||
<h2>{dede:field.title/}</h2> | |||||
<div class="article-meta"> | |||||
<div class="title"> | |||||
<h1>{dede:field.title/}</h1> | |||||
</div> | |||||
<div class="meta py-3"> | |||||
<a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | <a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | ||||
<span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | <span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | ||||
<span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | <span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | ||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
<span><i class="fa fa-user mr-1"></i>{dede:field.writer/}</span> | |||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:global.cfg_phpurl/}/count.php?view=yes&aid={dede:field.id/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
</div> | </div> | ||||
<div class="py-3">{dede:field name='image'/}</div> | |||||
<div class="py-3"> | |||||
<div class="img py-3">{dede:field name='image'/}</div> | |||||
<div class="info py-3"> | |||||
<p>软件类型:{dede:field.softtype/}</p> | <p>软件类型:{dede:field.softtype/}</p> | ||||
<p>授权方式:{dede:field.accredit/}</p> | <p>授权方式:{dede:field.accredit/}</p> | ||||
<p>界面语言:{dede:field.language/}</p> | <p>界面语言:{dede:field.language/}</p> | ||||
@@ -48,15 +51,17 @@ | |||||
<p>演示网址:{dede:field.officialdemo/}</p> | <p>演示网址:{dede:field.officialdemo/}</p> | ||||
<p>下载次数:<script src="{dede:field.phpurl/}/disdls.php?aid={dede:field.id/}"></script></p> | <p>下载次数:<script src="{dede:field.phpurl/}/disdls.php?aid={dede:field.id/}"></script></p> | ||||
</div> | </div> | ||||
<div class="py-3">{dede:field name='introduce'/}</div> | |||||
<div class="py-3"> | |||||
<div class="tips py-3">{dede:field name='introduce'/}</div> | |||||
<div class="download py-3"> | |||||
<h4>下载地址</h4> | <h4>下载地址</h4> | ||||
<ul class="downurllist"> | <ul class="downurllist"> | ||||
{dede:field name='softlinks'/} | {dede:field name='softlinks'/} | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
<div class="alert alert-success my-3">{dede:softmsg/}</div> | <div class="alert alert-success my-3">{dede:softmsg/}</div> | ||||
<div class="py-3 row"> | |||||
<div class="body py-3">{dede:field.body/}</div> | |||||
<div class="edit py-3">责任编辑:{dede:adminname/}</div> | |||||
<div class="page py-3 row"> | |||||
<div class="col-md-4 prenext"> | <div class="col-md-4 prenext"> | ||||
<div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | <div class="pagination-previous mb-3">{dede:prenext get='pre'/}</div> | ||||
<div class="pagination-next">{dede:prenext get='next'/}</div> | <div class="pagination-next">{dede:prenext get='next'/}</div> | ||||
@@ -64,9 +69,9 @@ | |||||
<div class="col-md-8"> | <div class="col-md-8"> | ||||
<div class="row actbox"> | <div class="row actbox"> | ||||
<ul> | <ul> | ||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:field name='phpurl'/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-star-o mr-2"></i><a href="{dede:global.cfg_phpurl/}/stow.php?aid={dede:field.id/}" target="_blank">收藏</a></li> | |||||
<li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | <li><i class="fa fa-bug mr-2"></i><a href="javascript:ErrorAddSave({dede:field.id/}, '{dede:field.title/}');">挑错</a></li> | ||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:field name='phpurl'/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-thumbs-o-up mr-2"></i><a href="{dede:global.cfg_phpurl/}/recommend.php?aid={dede:field.id/}" target="_blank">推荐</a></li> | |||||
<li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | <li><i class="fa fa-print mr-2"></i><a href="javascript:;" onclick="window.print();">打印</a></li> | ||||
</ul> | </ul> | ||||
</div> | </div> | ||||
@@ -83,7 +88,7 @@ | |||||
</aside> | </aside> | ||||
</div> | </div> | ||||
</main> | </main> | ||||
<script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
<script>const PHPURL = '{dede:global.cfg_phpurl/}';</script> | |||||
{dede:include filename='foot.htm'/} | {dede:include filename='foot.htm'/} | ||||
<script> | <script> | ||||
//获取顶踩数据 | //获取顶踩数据 | ||||
@@ -116,7 +121,7 @@ | |||||
if (j == 19 && !hasid) break; | if (j == 19 && !hasid) break; | ||||
} | } | ||||
} | } | ||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖 "); return; } | |||||
if (hasid) { ShowMsg("您已经顶过该帖,请不要重复顶帖"); return; } | |||||
else saveid += ',' + aid; | else saveid += ',' + aid; | ||||
SetCookie('diggid', saveid, 1); | SetCookie('diggid', saveid, 1); | ||||
} | } | ||||
@@ -140,23 +145,23 @@ | |||||
let feedback = { | let feedback = { | ||||
action: "send", | action: "send", | ||||
comtype: "comments", | comtype: "comments", | ||||
aid: "{dede:field name='id'/}", | |||||
aid: "{dede:field.id/}", | |||||
msg: $("#iptMsg").val(), | msg: $("#iptMsg").val(), | ||||
username: $("#iptUsername").val(), | username: $("#iptUsername").val(), | ||||
validate: $("#iptValidate").val(), | validate: $("#iptValidate").val(), | ||||
notuser: $("#iptAny").is(":checked") ? "1" : "", | notuser: $("#iptAny").is(":checked") ? "1" : "", | ||||
}; | }; | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", feedback, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", feedback, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert("#feedback-alert", result.msg, "success"); | ShowAlert("#feedback-alert", result.msg, "success"); | ||||
$("#iptMsg").val(""); | $("#iptMsg").val(""); | ||||
$("#iptValidate").val(""); | $("#iptValidate").val(""); | ||||
($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ($("#iptUsername").attr("disabled") !== "disabled") && $("#iptUsername").val(""); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} else { | } else { | ||||
ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ShowAlert("#feedback-alert", `评论失败:${result.msg}`, "danger"); | ||||
$("#validateimg").attr("src", '/apps/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
$("#validateimg").attr("src", '{dede:global.cfg_phpurl/}/vdimgck.php?' + new Date().getTime() + Math.round(Math.random() * 10000)); | |||||
} | } | ||||
}); | }); | ||||
} | } | ||||
@@ -167,10 +172,10 @@ | |||||
action : "send", | action : "send", | ||||
comtype : "reply", | comtype : "reply", | ||||
fid : fid, | fid : fid, | ||||
aid : "{dede:field name='id'/}", | |||||
aid : "{dede:field.id/}", | |||||
msg : content, | msg : content, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", reply, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", reply, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||
ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ShowAlert(`._feedback_reply[for="${fid}"]`, result.msg, "success"); | ||||
@@ -202,8 +207,8 @@ | |||||
//加载回复评论 | //加载回复评论 | ||||
function LoadReplyFeedbacks(fid) { | function LoadReplyFeedbacks(fid) { | ||||
$(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | $(`.feedback_replies[for="${fid}"]`).html('<i class="fa fa-spinner"></i>'); | ||||
$.get("{dede:field name='phpurl'/}/feedback.php", { | |||||
"aid" : "{dede:field name='id'/}", | |||||
$.get("{dede:global.cfg_phpurl/}/feedback.php", { | |||||
"aid" : "{dede:field.id/}", | |||||
"fid" : fid, | "fid" : fid, | ||||
}, function (data) { | }, function (data) { | ||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
@@ -248,7 +253,7 @@ | |||||
good : g, | good : g, | ||||
fid : fid, | fid : fid, | ||||
} | } | ||||
$.post("{dede:field name='phpurl'/}/feedback.php", good, function (data) { | |||||
$.post("{dede:global.cfg_phpurl/}/feedback.php", good, function (data) { | |||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
$(`#feedbackGood${fid}`).html(result.data); | $(`#feedbackGood${fid}`).html(result.data); | ||||
}) | }) | ||||
@@ -27,16 +27,19 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-9"> | <div class="col-md-9"> | ||||
<article class="article-main bg-white shadow-sm rounded p-3"> | <article class="article-main bg-white shadow-sm rounded p-3"> | ||||
<h2>{dede:field.title/}</h2> | |||||
<div class="article-meta"> | |||||
<div class="title"> | |||||
<h1>{dede:field.title/}</h1> | |||||
</div> | |||||
<div class="meta py-3"> | |||||
<a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | <a href="{dede:field.userurl/}" target="_blank"><span><img src="{dede:field.face/}" class="user-img-xs mr-1">{dede:field.uname/}</span></a> | ||||
<span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | <span><i class="fa fa-calendar mr-1"></i>{dede:field.pubdate function="MyDate('Y-m-d',@me)"/}</span> | ||||
<span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | <span><i class="fa fa-globe mr-1"></i>{dede:field.source/}</span> | ||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:field name='phpurl'/}/count.php?view=yes&aid={dede:field name='id'/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
<span><i class="fa fa-user mr-1"></i>{dede:field.writer/}</span> | |||||
<span><i class="fa fa-eye mr-1"></i><script src="{dede:global.cfg_phpurl/}/count.php?view=yes&aid={dede:field.id/}&mid={dede:field name='mid'/}"></script>次</span> | |||||
</div> | </div> | ||||
<div class="speciallist row py-3">{dede:field.note/}</div> | <div class="speciallist row py-3">{dede:field.note/}</div> | ||||
<div class="py-3">{dede:field.body/}</div> | |||||
<div class="py-3">责任编辑:{dede:adminname/}</div> | |||||
<div class="body py-3">{dede:field.body/}</div> | |||||
<div class="edit py-3">责任编辑:{dede:adminname/}</div> | |||||
<div class="alert alert-success my-3">{dede:softmsg/}</div> | <div class="alert alert-success my-3">{dede:softmsg/}</div> | ||||
</article> | </article> | ||||
</div> | </div> | ||||
@@ -47,7 +50,7 @@ | |||||
</aside> | </aside> | ||||
</div> | </div> | ||||
</main> | </main> | ||||
<script>const PHPURL = '{dede:field name="phpurl"/}';</script> | |||||
<script>const PHPURL = '{dede:global.cfg_phpurl/}';</script> | |||||
{dede:include filename='foot.htm'/} | {dede:include filename='foot.htm'/} | ||||
</body> | </body> | ||||
</html> | </html> |
@@ -17,7 +17,7 @@ | |||||
{dede:include filename='head.htm'/} | {dede:include filename='head.htm'/} | ||||
<section class="container py-3"> | <section class="container py-3"> | ||||
<div class="row"> | <div class="row"> | ||||
<div class="col-md-3 m-pb-2">{dede:include comment='推荐文档' filename='widget_recommend.htm'/}</div> | |||||
<div class="col-md-3 m-pb-2">{dede:include filename='widget_recommend.htm'/}</div> | |||||
<div class="col-md-6 m-pb-2"> | <div class="col-md-6 m-pb-2"> | ||||
<div class="row"> | <div class="row"> | ||||
<div id="carouselIndex" class="col-12 carousel slide" data-ride="carousel"> | <div id="carouselIndex" class="col-12 carousel slide" data-ride="carousel"> | ||||
@@ -71,11 +71,11 @@ | |||||
<article class="item-theme bg-white shadow-sm rounded"> | <article class="item-theme bg-white shadow-sm rounded"> | ||||
<div class="item-theme-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | <div class="item-theme-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | ||||
<div class="item-theme-box"> | <div class="item-theme-box"> | ||||
<h4 class="mb-3"><a href="[field:arcurl/]" target="_blank">[field:flag runphp='yes']if (stristr(@me,"h")) @me="<span class='btn btn-success btn-sm mr-2'>头条</span>";else if(stristr(@me,"c")) @me="<span class='btn btn-success btn-sm mr-2'>推荐</span>";else @me="";[/field:flag][field:title/]</a></h4> | |||||
<h5 class="title mb-3"><a href="[field:arcurl/]" target="_blank">[field:flag runphp='yes']if (stristr(@me,"h")) @me="<span class='btn btn-success btn-sm mr-2'>头条</span>";else if(stristr(@me,"c")) @me="<span class='btn btn-success btn-sm mr-2'>推荐</span>";else @me="";[/field:flag][field:title/]</a></h5> | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-4 text-left text-danger"> | <div class="col-4 text-left text-danger"> | ||||
<i class="fa fa-download mr-1"></i> | <i class="fa fa-download mr-1"></i> | ||||
<span><script src="/apps/disdls.php?aid=[field:id/]"></script></span> | |||||
<span><script src="{dede:global.cfg_phpurl/}/disdls.php?aid=[field:id/]"></script></span> | |||||
</div> | </div> | ||||
<div class="col-8 text-right"> | <div class="col-8 text-right"> | ||||
<a href="[field:userurl/]" target="_blank"><img src="[field:face/]" class="user-img-xs mr-1"></a> | <a href="[field:userurl/]" target="_blank"><img src="[field:face/]" class="user-img-xs mr-1"></a> | ||||
@@ -97,8 +97,8 @@ | |||||
<div class="col-md-4"> | <div class="col-md-4"> | ||||
<article class="item-news bg-white shadow-sm rounded"> | <article class="item-news bg-white shadow-sm rounded"> | ||||
<div class="item-news-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | <div class="item-news-img">[field:array runphp='yes']@me=(strpos(@me['litpic'],'thumbnail')?"":"<a href='{@me['arcurl']}'><img src='{@me['litpic']}' alt='{@me['title']}' title='{@me['title']}'></a>");[/field:array]</div> | ||||
<h4><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h4> | |||||
<div class="mb-3"> | |||||
<div class="title"><h5><a href="[field:arcurl/]" target="_blank">[field:title/]</a></h5></div> | |||||
<div class="meta mb-3"> | |||||
<a href="[field:userurl/]" target="_blank"><img src="[field:face/]" class="user-img-xs mr-1"></a> | <a href="[field:userurl/]" target="_blank"><img src="[field:face/]" class="user-img-xs mr-1"></a> | ||||
<a href="[field:userurl/]" target="_blank"><span class="mr-1">[field:uname/]</span></a> | <a href="[field:userurl/]" target="_blank"><span class="mr-1">[field:uname/]</span></a> | ||||
<i class="fa fa-calendar mr-1"></i> | <i class="fa fa-calendar mr-1"></i> | ||||
@@ -42,7 +42,7 @@ | |||||
</div> | </div> | ||||
<p class="mb-3">[field:description function="cn_substr(@me,120)"/]...</p> | <p class="mb-3">[field:description function="cn_substr(@me,120)"/]...</p> | ||||
<div> | <div> | ||||
<span class="mr-2">下载次数:<script src="/apps/disdls.php?aid=[field:id/]"></script></span> | |||||
<span class="mr-2">下载次数:<script src="{dede:global.cfg_phpurl/}/disdls.php?aid=[field:id/]"></script></span> | |||||
</div> | </div> | ||||
</article> | </article> | ||||
</div>{/dede:arclist}{/dede:channelartlist} | </div>{/dede:arclist}{/dede:channelartlist} | ||||
@@ -58,7 +58,7 @@ | |||||
<div class="list-info-search bg-white shadow-sm rounded p-3"> | <div class="list-info-search bg-white shadow-sm rounded p-3"> | ||||
<h2 class="mb-3">信息搜索</h2> | <h2 class="mb-3">信息搜索</h2> | ||||
{dede:infoguide} | {dede:infoguide} | ||||
<form name="infoguide" method="get" action="/apps/list.php"> | |||||
<form name="infoguide" method="get" action="{dede:global.cfg_phpurl/}/list.php"> | |||||
<input type="hidden" name="tid" value="[field:typeid/]"> | <input type="hidden" name="tid" value="[field:typeid/]"> | ||||
<input type="hidden" name="channelid" value="-8"> | <input type="hidden" name="channelid" value="-8"> | ||||
<div class="form-group">[field:nativeplace/]</div> | <div class="form-group">[field:nativeplace/]</div> | ||||
@@ -38,7 +38,7 @@ | |||||
</div> | </div> | ||||
<p class="mb-3">[field:description function="cn_substr(@me,120)"/]...</p> | <p class="mb-3">[field:description function="cn_substr(@me,120)"/]...</p> | ||||
<div> | <div> | ||||
<span class="mr-2">下载次数:<script src="/apps/disdls.php?aid=[field:id/]"></script></span> | |||||
<span class="mr-2">下载次数:<script src="{dede:global.cfg_phpurl/}/disdls.php?aid=[field:id/]"></script></span> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</article> | </article> | ||||
@@ -44,19 +44,9 @@ | |||||
<ul class="pagination">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | <ul class="pagination">{dede:pagelist listitem='info,index,end,pre,next,pageno' listsize='1'/}</ul> | ||||
</div> | </div> | ||||
<aside class="col-md-3"> | <aside class="col-md-3"> | ||||
<div class="pb-3"> | |||||
<div class="item-hot bg-white shadow-sm rounded p-3"> | |||||
<form class="search" name="formsearch" action="/apps/search.php"> | |||||
<input type="hidden" name="kwtype" value="0"> | |||||
<div class="input-group"> | |||||
<input name="q" type="text" class="form-control" placeholder="请输入..."> | |||||
<button type="submit" id="validateimg" class="btn btn-success"><i class="fa fa-search"></i></button> | |||||
</div> | |||||
</form> | |||||
</div> | |||||
</div> | |||||
<div class="pb-3">{dede:include comment='热点文档' filename='widget_hot.htm'/}</div> | |||||
<div class="pb-3">{dede:include comment='推荐文档' filename='widget_recommend.htm'/}</div> | |||||
<div class="pb-3">{dede:include filename='widget_search.htm'/}</div> | |||||
<div class="pb-3">{dede:include filename='widget_hot.htm'/}</div> | |||||
<div class="pb-3">{dede:include filename='widget_recommend.htm'/}</div> | |||||
</aside> | </aside> | ||||
</div> | </div> | ||||
</main> | </main> | ||||
@@ -3,7 +3,7 @@ | |||||
<div class="row"> | <div class="row"> | ||||
<div class="col-4 col-md-6 logo"><a href="/"><img src="/static/web/img/logo.png" alt="{dede:global.cfg_webname/}"></a></div> | <div class="col-4 col-md-6 logo"><a href="/"><img src="/static/web/img/logo.png" alt="{dede:global.cfg_webname/}"></a></div> | ||||
<div id="loginTop" class="col-8 col-md-6 text-right user-login"> | <div id="loginTop" class="col-8 col-md-6 text-right user-login"> | ||||
<a href="/apps/search.php" class="btn btn-outline-success btn-sm rounded-circle"><i class="fa fa-search"></i></a> | |||||
<a href="{dede:global.cfg_phpurl/}/search.php" class="btn btn-outline-success btn-sm rounded-circle"><i class="fa fa-search"></i></a> | |||||
<a href="{dede:global.cfg_memberurl/}/login.php" class="btn btn-success btn-sm rounded-circle"><i class="fa fa-user-circle"></i></a> | <a href="{dede:global.cfg_memberurl/}/login.php" class="btn btn-success btn-sm rounded-circle"><i class="fa fa-user-circle"></i></a> | ||||
<a href="{dede:global.cfg_memberurl/}/index_do.php?fmdo=user&dopost=regnew" class="btn btn-success btn-sm rounded-circle"><i class="fa fa-plus-circle"></i></a> | <a href="{dede:global.cfg_memberurl/}/index_do.php?fmdo=user&dopost=regnew" class="btn btn-success btn-sm rounded-circle"><i class="fa fa-plus-circle"></i></a> | ||||
</div> | </div> | ||||
@@ -1,7 +1,6 @@ | |||||
<div class="comment pt-3"> | <div class="comment pt-3"> | ||||
<h4>发表评论</h4> | |||||
<div id="feedback-alert"></div> | <div id="feedback-alert"></div> | ||||
<div class="content pb-3"><textarea id="iptMsg" name="msg" class="form-control" placeholder="请输入..."></textarea></div> | |||||
<div class="content pb-3"><textarea id="iptMsg" name="msg" class="form-control" placeholder="请输入评论"></textarea></div> | |||||
<div class="post pb-3"> | <div class="post pb-3"> | ||||
<div class="dcmp-userinfo" id="_ajax_feedback"> | <div class="dcmp-userinfo" id="_ajax_feedback"> | ||||
<div class="form-group"> | <div class="form-group"> | ||||
@@ -14,7 +13,7 @@ | |||||
<label for="iptValidate">验证码</label> | <label for="iptValidate">验证码</label> | ||||
<div class="input-group"> | <div class="input-group"> | ||||
<input type="text" class="form-control text-uppercase" id="iptValidate"> | <input type="text" class="form-control text-uppercase" id="iptValidate"> | ||||
<img src="/apps/vdimgck.php" id="validateimg" onclick="this.src='/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
<img src="{dede:global.cfg_phpurl/}/vdimgck.php" id="validateimg" onclick="this.src='{dede:global.cfg_phpurl/}/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
</div> | </div> | ||||
@@ -1,8 +1,8 @@ | |||||
<div class="item-hot bg-white shadow-sm rounded p-3"> | <div class="item-hot bg-white shadow-sm rounded p-3"> | ||||
<form class="search" name="formsearch" action="/apps/search.php"> | |||||
<form class="search" name="formsearch" action="{dede:global.cfg_phpurl/}/search.php"> | |||||
<input type="hidden" name="kwtype" value="0"> | <input type="hidden" name="kwtype" value="0"> | ||||
<div class="input-group"> | <div class="input-group"> | ||||
<input name="q" type="text" class="form-control" placeholder="请输入搜索关键词..."> | |||||
<input name="q" type="text" class="form-control" placeholder="请输入关键词"> | |||||
<button type="submit" id="validateimg" class="btn btn-success btn-sm"><i class="fa fa-search"></i></button> | <button type="submit" id="validateimg" class="btn btn-success btn-sm"><i class="fa fa-search"></i></button> | ||||
</div> | </div> | ||||
</form> | </form> |
@@ -58,7 +58,7 @@ | |||||
<td>验证码</td> | <td>验证码</td> | ||||
<td> | <td> | ||||
<input type="text" name="vdcode" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | <input type="text" name="vdcode" id="vdcode" class="form-control text-uppercase d-inline-block w-25"> | ||||
<img src="/apps/vdimgck.php" onclick="this.src='/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
<img src="<?php echo $cfg_phpurl;?>/vdimgck.php" onclick="this.src='<?php echo $cfg_phpurl;?>/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -32,7 +32,7 @@ | |||||
<label for="iptValidate">验证码</label> | <label for="iptValidate">验证码</label> | ||||
<div class="input-group"> | <div class="input-group"> | ||||
<input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码"> | <input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码"> | ||||
<img src="/apps/vdimgck.php" id="validateimg" onclick="this.src='/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
<img src="<?php echo $cfg_phpurl;?>/vdimgck.php" id="validateimg" onclick="this.src='<?php echo $cfg_phpurl;?>/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="form-group"><a href="<?php echo $cfg_memberurl;?>/resetpassword.php">忘记密码?</a></div> | <div class="form-group"><a href="<?php echo $cfg_memberurl;?>/resetpassword.php">忘记密码?</a></div> | ||||
@@ -38,7 +38,7 @@ | |||||
<tr> | <tr> | ||||
<td><input type="checkbox" name="deleteid" value="{dede:field.aid/}" /></td> | <td><input type="checkbox" name="deleteid" value="{dede:field.aid/}" /></td> | ||||
<td><?php echo $fields['aid'];?></td> | <td><?php echo $fields['aid'];?></td> | ||||
<td><?php echo '<a href="/apps/view.php?aid='.str_replace('ARCHIVE', '', $fields['buyid']).'" target="_blank">'.$fields['oldinfo'].'</a>';?></td> | |||||
<td><?php echo '<a href="<?php echo $cfg_phpurl;?>/view.php?aid='.str_replace('ARCHIVE', '', $fields['buyid']).'" target="_blank">'.$fields['oldinfo'].'</a>';?></td> | |||||
<td><?php echo $fields['money'];?></td> | <td><?php echo $fields['money'];?></td> | ||||
<td><?php echo GetDateTimeMk($fields['mtime']);?></td> | <td><?php echo GetDateTimeMk($fields['mtime']);?></td> | ||||
</tr> | </tr> | ||||
@@ -39,7 +39,7 @@ | |||||
<td><a href="archives_do.php?dopost=viewArchives&aid={dede:field.aid/}" target="_blank">{dede:field.title/}</a></td> | <td><a href="archives_do.php?dopost=viewArchives&aid={dede:field.aid/}" target="_blank">{dede:field.title/}</a></td> | ||||
<td><?php echo MyDate('Y-m-d H:i:s', $fields['addtime']);?></td> | <td><?php echo MyDate('Y-m-d H:i:s', $fields['addtime']);?></td> | ||||
<td> | <td> | ||||
<a href="/apps/recommend.php?type={dede:field.type/}&aid={dede:field.aid/}" target="_blank" class="btn btn-success btn-sm">推荐</a> | |||||
<a href="<?php echo $cfg_phpurl;?>/recommend.php?type={dede:field.type/}&aid={dede:field.aid/}" target="_blank" class="btn btn-success btn-sm">推荐</a> | |||||
<a href="archives_do.php?dopost=delStow&type={dede:field.type/}&aid={dede:field.aid/}" class="btn btn-danger btn-sm">删除</a> | <a href="archives_do.php?dopost=delStow&type={dede:field.type/}&aid={dede:field.aid/}" class="btn btn-danger btn-sm">删除</a> | ||||
</td> | </td> | ||||
</tr> | </tr> | ||||
@@ -36,7 +36,7 @@ | |||||
<label for="iptValidate">验证码</label> | <label for="iptValidate">验证码</label> | ||||
<div class="input-group"> | <div class="input-group"> | ||||
<input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码" required="required"> | <input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码" required="required"> | ||||
<img src="/apps/vdimgck.php" id="validateimg" onclick="this.src='/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
<img src="<?php echo $cfg_phpurl;?>/vdimgck.php" id="validateimg" onclick="this.src='<?php echo $cfg_phpurl;?>/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div class="form-group form-check"> | <div class="form-group form-check"> | ||||
@@ -38,7 +38,7 @@ | |||||
<label for="iptValidate">验证码</label> | <label for="iptValidate">验证码</label> | ||||
<div class="input-group"> | <div class="input-group"> | ||||
<input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码" required="required"> | <input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码" required="required"> | ||||
<img src="/apps/vdimgck.php" id="validateimg" onclick="this.src='/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
<img src="<?php echo $cfg_phpurl;?>/vdimgck.php" id="validateimg" onclick="this.src='<?php echo $cfg_phpurl;?>/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div><button type="submit" class="btn btn-success btn-md btn-block">下一步</button></div> | <div><button type="submit" class="btn btn-success btn-md btn-block">下一步</button></div> | ||||
@@ -29,7 +29,7 @@ | |||||
<label for="iptValidate">验证码</label> | <label for="iptValidate">验证码</label> | ||||
<div class="input-group"> | <div class="input-group"> | ||||
<input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码"> | <input type="text" name="vdcode" id="iptValidate" class="form-control text-uppercase" placeholder="请输入验证码"> | ||||
<img src="/apps/vdimgck.php" id="validateimg" onclick="this.src='/apps/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
<img src="<?php echo $cfg_phpurl;?>/vdimgck.php" id="validateimg" onclick="this.src='<?php echo $cfg_phpurl;?>/vdimgck.php?'+new Date().getTime()+Math.round(Math.random() * 10000)" title="验证码"> | |||||
</div> | </div> | ||||
</div> | </div> | ||||
<div><button type="submit" class="btn btn-success btn-md btn-block">下一步</button></div> | <div><button type="submit" class="btn btn-success btn-md btn-block">下一步</button></div> | ||||