浏览代码

否定指定栏目优化,隐藏的栏目优化

tags/6.2.5
叙述、别离 2 年前
父节点
当前提交
d96aad109d
共有 14 个文件被更改,包括 29 次插入29 次删除
  1. +5
    -5
      src/admin/archives_do.php
  2. +1
    -1
      src/admin/js/key.js
  3. +4
    -4
      src/admin/templets/feedback_main.htm
  4. +1
    -1
      src/admin/templets/freelist_main.htm
  5. +1
    -1
      src/admin/templets/mychannel_edit.htm
  6. +2
    -2
      src/admin/templets/stepselect_main.htm
  7. +1
    -1
      src/admin/templets/templets_default.htm
  8. +4
    -2
      src/system/common.func.php
  9. +5
    -7
      src/system/taglib/arclist.lib.php
  10. +1
    -1
      src/user/templets/content_list.htm
  11. +1
    -1
      src/user/templets/content_sg_list.htm
  12. +1
    -1
      src/user/templets/mypay.htm
  13. +1
    -1
      src/user/templets/operation.htm
  14. +1
    -1
      src/user/templets/pm-main.htm

+ 5
- 5
src/admin/archives_do.php 查看文件

@@ -289,7 +289,7 @@ else if ($dopost == 'moveArchives') {
<td width="90" class="admin-td">文档id:</td>
<td class="admin-td">
<input type="text" name="tmpids" class="admin-input-md" value="<?php echo $qstr;?>"><br>
移动到目标栏目必须和选定文档栏目类型一致,否则程序会自动勿略不符合文档
移动栏目必须和选定文档栏目类型一致,否则自动过滤不相关文档
</td>
</tr>
<tr>
@@ -301,7 +301,7 @@ else if ($dopost == 'moveArchives') {
</table>
</form>
<?php
//AJAX窗体结束
//Ajax窗体结束
} else {
$totype = preg_replace("#[^0-9]#", '', $totype);
$typeInfos = $dsql->GetOne("SELECT tp.channeltype,tp.ispart,tp.channeltype,ch.maintable,ch.addtable,ch.issystem FROM `#@__arctype` tp LEFT JOIN `#@__channeltype` ch on ch.id=tp.channeltype WHERE tp.id='$totype' ");
@@ -588,7 +588,7 @@ else if ($dopost == 'quickEdit') {
</table>
</form>
<?php
//AJAX窗体结束
//Ajax窗体结束
}
/*-----------------------------
//保存快速修改文档
@@ -840,7 +840,7 @@ else if ($dopost == 'attsDlg') {
</table>
</form>
<?php
//AJAX窗体结束
//Ajax窗体结束
}
/*------------------------
function getCatMap() { }
@@ -861,6 +861,6 @@ else if ($dopost == 'getCatMap') {
</div>
</form>
<?php
//AJAX窗体结束
//Ajax窗体结束
}
?>

+ 1
- 1
src/admin/js/key.js 查看文件

@@ -18,7 +18,7 @@ function noselAll()
//批量删除搜多关键字
function delall()
{
DedeConfirm("您确定要删除选定的关键字吗").then((v)=>{
DedeConfirm("您确定要删除选定的关键字吗").then((v)=>{
document.form3.dopost.value = 'delall';
document.form3.submit();
}).catch((e)=>{


+ 4
- 4
src/admin/templets/feedback_main.htm 查看文件

@@ -61,7 +61,7 @@
ShowMsg("您没选中任何文档");
return
};
DedeConfirm("您确定要删除这些评论吗").then((v)=>{
DedeConfirm("您确定要删除这些评论吗").then((v)=>{
location.href = "feedback_main.php?job=del&fid=" + qstr
}).catch((e)=>{
console.log(e)
@@ -73,7 +73,7 @@
ShowMsg("您没选中任何文档");
return;
};
DedeConfirm("您确定要删除这些评论吗").then((v)=>{
DedeConfirm("您确定要删除这些评论吗").then((v)=>{
location.href = "feedback_main.php?job=delall&fid=" + qstr;
}).catch((e)=>{
console.log(e)
@@ -85,7 +85,7 @@
ShowMsg("您没选中任何文档");
return;
};
DedeConfirm("您确定要删除这些评论吗").then((v)=>{
DedeConfirm("您确定要删除这些评论吗").then((v)=>{
location.href = "feedback_main.php?job=check&fid=" + qstr;
}).catch((e)=>{
console.log(e)
@@ -97,7 +97,7 @@
ShowMsg("您没选中任何文档");
return;
}
DedeConfirm("您确定要删除这些评论吗").then((v)=>{
DedeConfirm("您确定要删除这些评论吗").then((v)=>{
location.href = "feedback_edit.php?job=edit&fid=" + qstr;
}).catch((e)=>{
console.log(e)


+ 1
- 1
src/admin/templets/freelist_main.htm 查看文件

@@ -43,7 +43,7 @@
}
//删除
function DelNote(nid) {
DedeConfirm("您确认要删除这条记录吗").then((v)=>{
DedeConfirm("您确认要删除这条记录吗").then((v)=>{
var listArea = $Obj('rslist');
totalrow = totalrow - 1;
var pagenum = Math.ceil(totalrow / pagesize);


+ 1
- 1
src/admin/templets/mychannel_edit.htm 查看文件

@@ -300,7 +300,7 @@
}
//删除
function DelNote(gourl) {
DedeConfirm("您确认要删除这个字段吗").then((v)=>{
DedeConfirm("您确认要删除这个字段吗").then((v)=>{
location.href = gourl;
}).catch((e)=>{
console.log(e)


+ 2
- 2
src/admin/templets/stepselect_main.htm 查看文件

@@ -94,7 +94,7 @@
});
}
function DelType() {
DedeConfirm("您确实要删除这个分类吗").then((v)=>{
DedeConfirm("您确实要删除这个分类吗").then((v)=>{
var id = GetSelType();
if (id == 0) {
ShowMsg("必须选择一个类别");
@@ -126,7 +126,7 @@
}
}
function DelSel() {
DedeConfirm("您确实要删除这些分类吗").then((v)=>{
DedeConfirm("您确实要删除这些分类吗").then((v)=>{
document.form1.submit();
}).catch((e)=>{
console.log(e)


+ 1
- 1
src/admin/templets/templets_default.htm 查看文件

@@ -9,7 +9,7 @@
<link rel="stylesheet" href="../static/web/css/admin.css">
<script>
function DelTpl(filename) {
DedeConfirm("您确实要删除这个模板吗").then((v)=>{
DedeConfirm("您确实要删除这个模板吗").then((v)=>{
location = 'tpl.php?action=del&acdir=<?php echo $acdir;?>&filename=' +
filename;
}).catch((e)=>{


+ 4
- 2
src/system/common.func.php 查看文件

@@ -545,7 +545,8 @@ function face($mid)
}
//标签调用标签[field:id function='GetMyTags(@me,2)'/]2表示输出2个文档
if (!function_exists('GetMyTags')) {
function GetMyTags($aid, $num=3) {
function GetMyTags($aid, $num=3)
{
global $dsql,$cfg_cmspath;
$tags = '';
$query = "SELECT * FROM `#@__taglist` WHERE aid='$aid' LIMIT $num";
@@ -559,7 +560,8 @@ if (!function_exists('GetMyTags')) {
}
/*用户中心调用默认模板<?php pasterTempletDiy('head.htm');?>*/
if (!function_exists('pasterTempletDiy')) {
function pasterTempletDiy($path) {
function pasterTempletDiy($path)
{
global $cfg_basedir,$cfg_templets_dir,$cfg_df_style;
$tmpfile = $cfg_basedir.$cfg_templets_dir.'/'.$cfg_df_style.'/'.$path;
$dtp = new PartView();


+ 5
- 7
src/system/taglib/arclist.lib.php 查看文件

@@ -3,8 +3,6 @@ if (!defined('DEDEINC')) exit('dedebiz');
/**
* 文档列表调用标记
*
* 9:19 2010年7月13日:修正对isweight属性的支持
*
* @version $id:arclist.lib.php 3 9:19 2010年7月13日 tianya $
* @package DedeBIZ.Taglib
* @copyright Copyright (c) 2022 DedeBIZ.COM
@@ -74,7 +72,7 @@ function lib_arclist(&$ctag, &$refObj)
} else {
$flag = $ctag->GetAtt('att');
}
return lib_arclistDone ($refObj, $ctag, $typeid, $ctag->GetAtt('row'), $ctag->GetAtt('col'), $titlelen, $infolen, $ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), $listtype, $orderby, $ctag->GetAtt('keyword'), $innertext, $envs['aid'], $ctag->GetAtt('idlist'), $channelid, $ctag->GetAtt('limit'), $flag,$ctag->GetAtt('orderway'), $ctag->GetAtt('subday'), $ctag->GetAtt('noflag'), $tagid,$pagesize,$isweight,$ctag->GetAtt('notypeid')
return lib_arclistDone ($refObj, $ctag, $typeid, $ctag->GetAtt('row'), $ctag->GetAtt('col'), $titlelen, $infolen, $ctag->GetAtt('imgwidth'), $ctag->GetAtt('imgheight'), $listtype, $orderby, $ctag->GetAtt('keyword'), $innertext, $envs['aid'], $ctag->GetAtt('idlist'), $channelid, $ctag->GetAtt('limit'), $flag,$ctag->GetAtt('orderway'), $ctag->GetAtt('subday'), $ctag->GetAtt('noflag'), $tagid, $pagesize,$isweight, $ctag->GetAtt('notypeid')
);
}
/**
@@ -106,7 +104,7 @@ function lib_arclist(&$ctag, &$refObj)
* @param string $isweight 是否需要对检索出来的文档按照weight排序
* @return string
*/
function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlelen=30, $infolen=160, $imgwidth=120, $imgheight=90, $listtype='all', $orderby='default', $keyword='', $innertext='', $arcid=0, $idlist='', $channelid=0, $limit='', $att='', $order='desc', $subday=0, $noflag='',$tagid='', $pagesize=0, $isweight='N',$notypeid=0)
function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlelen=30, $infolen=160, $imgwidth=120, $imgheight=90, $listtype='all', $orderby='default', $keyword='', $innertext='', $arcid=0, $idlist='', $channelid=0, $limit='', $att='', $order='desc', $subday=0, $noflag='',$tagid='', $pagesize=0, $isweight='N', $notypeid=0)
{
global $dsql, $PubFields, $cfg_keyword_like, $cfg_index_cache, $_arclistEnv, $envs, $cfg_cache_type, $cfg_digg_update;
$row = AttDef($row, 10);
@@ -227,8 +225,8 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele
}
}
$orwheres[] = 'arc.arcrank > -1';
if (!empty($notypeid))
{
//否定指定栏目
if (!empty($notypeid)) {
$orwheres[] = "and arc.typeid NOT IN (".GetSonIds($notypeid).")";
}
//由于这个条件会导致缓存功能失去意义,因此取消
@@ -260,7 +258,7 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele
$orwhere = preg_replace("#^ And#is", '', $orwhere);
$orwhere = preg_replace("#And[ ]{1,}And#is", 'And ', $orwhere);
}
if ($orwhere != '') $orwhere = " WHERE $orwhere ";
if ($orwhere != '') $orwhere = " WHERE $orwhere and tp.ishidden != 1 ";
//获取附加表信息
$addfield = trim($ctag->GetAtt('addfields'));
$addfieldsSql = '';


+ 1
- 1
src/user/templets/content_list.htm 查看文件

@@ -17,7 +17,7 @@
location = "archives_do.php?dopost=edit&channelid=" + channelid + "&aid=" + aid;
}
function delArc(aid) {
DedeConfirm("您确定要删除这篇文档吗").then((v)=>{
DedeConfirm("您确定要删除这篇文档吗").then((v)=>{
location = "archives_do.php?aid=" + aid + "&dopost=delArc";
}).catch((e)=>{
console.log(e)


+ 1
- 1
src/user/templets/content_sg_list.htm 查看文件

@@ -17,7 +17,7 @@
location = "archives_do.php?dopost=edit&channelid=" + channelid + "&aid=" + aid;
}
function delArc(aid) {
DedeConfirm("您确定要删除这篇文档吗").then((v)=>{
DedeConfirm("您确定要删除这篇文档吗").then((v)=>{
location = "archives_do.php?aid=" + aid + "&dopost=delArc";
}).catch((e)=>{
console.log(e)


+ 1
- 1
src/user/templets/mypay.htm 查看文件

@@ -88,7 +88,7 @@
ShowMsg("您没选中任何信息");
return false;
}
DedeConfirm("您确定要删除这些消息吗").then((v)=>{
DedeConfirm("您确定要删除这些消息吗").then((v)=>{
location = "mypay.php?dopost=del&ids=" + selid;
}).catch((e)=>{
console.log(e)


+ 1
- 1
src/user/templets/operation.htm 查看文件

@@ -82,7 +82,7 @@
ShowMsg("您没选中任何信息");
return false;
}
DedeConfirm("您确定要删除这些消息吗").then((v)=>{
DedeConfirm("您确定要删除这些消息吗").then((v)=>{
location = "operation.php?dopost=del&ids=" + selid;
}).catch((e)=>{
console.log(e)


+ 1
- 1
src/user/templets/pm-main.htm 查看文件

@@ -51,7 +51,7 @@
ShowMsg("您没选中任何信息");
return false;
}
DedeConfirm("您确定要删除这些消息吗").then((v)=>{
DedeConfirm("您确定要删除这些消息吗").then((v)=>{
$.get("pm.php?dopost=remove&ids=" + selid + "&folder=" + myfolder,function (data) {
let result = JSON.parse(data);
if (result.code === 200) {


正在加载...
取消
保存