@@ -289,7 +289,7 @@ else if ($dopost == 'moveArchives') { | |||||
<td width="90" class="admin-td">文档id:</td> | <td width="90" class="admin-td">文档id:</td> | ||||
<td class="admin-td"> | <td class="admin-td"> | ||||
<input type="text" name="tmpids" class="admin-input-md" value="<?php echo $qstr;?>"><br> | <input type="text" name="tmpids" class="admin-input-md" value="<?php echo $qstr;?>"><br> | ||||
移动到目标栏目必须和选定文档栏目类型一致,否则程序会自动勿略不符合文档 | |||||
移动栏目必须和选定文档栏目类型一致,否则自动过滤不相关文档 | |||||
</td> | </td> | ||||
</tr> | </tr> | ||||
<tr> | <tr> | ||||
@@ -301,7 +301,7 @@ else if ($dopost == 'moveArchives') { | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<?php | <?php | ||||
//AJAX窗体结束 | |||||
//Ajax窗体结束 | |||||
} else { | } else { | ||||
$totype = preg_replace("#[^0-9]#", '', $totype); | $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' "); | $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> | </table> | ||||
</form> | </form> | ||||
<?php | <?php | ||||
//AJAX窗体结束 | |||||
//Ajax窗体结束 | |||||
} | } | ||||
/*----------------------------- | /*----------------------------- | ||||
//保存快速修改文档 | //保存快速修改文档 | ||||
@@ -840,7 +840,7 @@ else if ($dopost == 'attsDlg') { | |||||
</table> | </table> | ||||
</form> | </form> | ||||
<?php | <?php | ||||
//AJAX窗体结束 | |||||
//Ajax窗体结束 | |||||
} | } | ||||
/*------------------------ | /*------------------------ | ||||
function getCatMap() { } | function getCatMap() { } | ||||
@@ -861,6 +861,6 @@ else if ($dopost == 'getCatMap') { | |||||
</div> | </div> | ||||
</form> | </form> | ||||
<?php | <?php | ||||
//AJAX窗体结束 | |||||
//Ajax窗体结束 | |||||
} | } | ||||
?> | ?> |
@@ -18,7 +18,7 @@ function noselAll() | |||||
//批量删除搜多关键字 | //批量删除搜多关键字 | ||||
function delall() | function delall() | ||||
{ | { | ||||
DedeConfirm("您确定要删除选定的关键字吗?").then((v)=>{ | |||||
DedeConfirm("您确定要删除选定的关键字吗").then((v)=>{ | |||||
document.form3.dopost.value = 'delall'; | document.form3.dopost.value = 'delall'; | ||||
document.form3.submit(); | document.form3.submit(); | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
@@ -61,7 +61,7 @@ | |||||
ShowMsg("您没选中任何文档"); | ShowMsg("您没选中任何文档"); | ||||
return | return | ||||
}; | }; | ||||
DedeConfirm("您确定要删除这些评论吗?").then((v)=>{ | |||||
DedeConfirm("您确定要删除这些评论吗").then((v)=>{ | |||||
location.href = "feedback_main.php?job=del&fid=" + qstr | location.href = "feedback_main.php?job=del&fid=" + qstr | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
console.log(e) | console.log(e) | ||||
@@ -73,7 +73,7 @@ | |||||
ShowMsg("您没选中任何文档"); | ShowMsg("您没选中任何文档"); | ||||
return; | return; | ||||
}; | }; | ||||
DedeConfirm("您确定要删除这些评论吗?").then((v)=>{ | |||||
DedeConfirm("您确定要删除这些评论吗").then((v)=>{ | |||||
location.href = "feedback_main.php?job=delall&fid=" + qstr; | location.href = "feedback_main.php?job=delall&fid=" + qstr; | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
console.log(e) | console.log(e) | ||||
@@ -85,7 +85,7 @@ | |||||
ShowMsg("您没选中任何文档"); | ShowMsg("您没选中任何文档"); | ||||
return; | return; | ||||
}; | }; | ||||
DedeConfirm("您确定要删除这些评论吗?").then((v)=>{ | |||||
DedeConfirm("您确定要删除这些评论吗").then((v)=>{ | |||||
location.href = "feedback_main.php?job=check&fid=" + qstr; | location.href = "feedback_main.php?job=check&fid=" + qstr; | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
console.log(e) | console.log(e) | ||||
@@ -97,7 +97,7 @@ | |||||
ShowMsg("您没选中任何文档"); | ShowMsg("您没选中任何文档"); | ||||
return; | return; | ||||
} | } | ||||
DedeConfirm("您确定要删除这些评论吗?").then((v)=>{ | |||||
DedeConfirm("您确定要删除这些评论吗").then((v)=>{ | |||||
location.href = "feedback_edit.php?job=edit&fid=" + qstr; | location.href = "feedback_edit.php?job=edit&fid=" + qstr; | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
console.log(e) | console.log(e) | ||||
@@ -43,7 +43,7 @@ | |||||
} | } | ||||
//删除 | //删除 | ||||
function DelNote(nid) { | function DelNote(nid) { | ||||
DedeConfirm("您确认要删除这条记录吗?").then((v)=>{ | |||||
DedeConfirm("您确认要删除这条记录吗").then((v)=>{ | |||||
var listArea = $Obj('rslist'); | var listArea = $Obj('rslist'); | ||||
totalrow = totalrow - 1; | totalrow = totalrow - 1; | ||||
var pagenum = Math.ceil(totalrow / pagesize); | var pagenum = Math.ceil(totalrow / pagesize); | ||||
@@ -300,7 +300,7 @@ | |||||
} | } | ||||
//删除 | //删除 | ||||
function DelNote(gourl) { | function DelNote(gourl) { | ||||
DedeConfirm("您确认要删除这个字段吗?").then((v)=>{ | |||||
DedeConfirm("您确认要删除这个字段吗").then((v)=>{ | |||||
location.href = gourl; | location.href = gourl; | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
console.log(e) | console.log(e) | ||||
@@ -94,7 +94,7 @@ | |||||
}); | }); | ||||
} | } | ||||
function DelType() { | function DelType() { | ||||
DedeConfirm("您确实要删除这个分类吗?").then((v)=>{ | |||||
DedeConfirm("您确实要删除这个分类吗").then((v)=>{ | |||||
var id = GetSelType(); | var id = GetSelType(); | ||||
if (id == 0) { | if (id == 0) { | ||||
ShowMsg("必须选择一个类别"); | ShowMsg("必须选择一个类别"); | ||||
@@ -126,7 +126,7 @@ | |||||
} | } | ||||
} | } | ||||
function DelSel() { | function DelSel() { | ||||
DedeConfirm("您确实要删除这些分类吗?").then((v)=>{ | |||||
DedeConfirm("您确实要删除这些分类吗").then((v)=>{ | |||||
document.form1.submit(); | document.form1.submit(); | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
console.log(e) | console.log(e) | ||||
@@ -9,7 +9,7 @@ | |||||
<link rel="stylesheet" href="../static/web/css/admin.css"> | <link rel="stylesheet" href="../static/web/css/admin.css"> | ||||
<script> | <script> | ||||
function DelTpl(filename) { | function DelTpl(filename) { | ||||
DedeConfirm("您确实要删除这个模板吗?").then((v)=>{ | |||||
DedeConfirm("您确实要删除这个模板吗").then((v)=>{ | |||||
location = 'tpl.php?action=del&acdir=<?php echo $acdir;?>&filename=' + | location = 'tpl.php?action=del&acdir=<?php echo $acdir;?>&filename=' + | ||||
filename; | filename; | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
@@ -545,7 +545,8 @@ function face($mid) | |||||
} | } | ||||
//标签调用标签[field:id function='GetMyTags(@me,2)'/]2表示输出2个文档 | //标签调用标签[field:id function='GetMyTags(@me,2)'/]2表示输出2个文档 | ||||
if (!function_exists('GetMyTags')) { | if (!function_exists('GetMyTags')) { | ||||
function GetMyTags($aid, $num=3) { | |||||
function GetMyTags($aid, $num=3) | |||||
{ | |||||
global $dsql,$cfg_cmspath; | global $dsql,$cfg_cmspath; | ||||
$tags = ''; | $tags = ''; | ||||
$query = "SELECT * FROM `#@__taglist` WHERE aid='$aid' LIMIT $num"; | $query = "SELECT * FROM `#@__taglist` WHERE aid='$aid' LIMIT $num"; | ||||
@@ -559,7 +560,8 @@ if (!function_exists('GetMyTags')) { | |||||
} | } | ||||
/*用户中心调用默认模板<?php pasterTempletDiy('head.htm');?>*/ | /*用户中心调用默认模板<?php pasterTempletDiy('head.htm');?>*/ | ||||
if (!function_exists('pasterTempletDiy')) { | if (!function_exists('pasterTempletDiy')) { | ||||
function pasterTempletDiy($path) { | |||||
function pasterTempletDiy($path) | |||||
{ | |||||
global $cfg_basedir,$cfg_templets_dir,$cfg_df_style; | global $cfg_basedir,$cfg_templets_dir,$cfg_df_style; | ||||
$tmpfile = $cfg_basedir.$cfg_templets_dir.'/'.$cfg_df_style.'/'.$path; | $tmpfile = $cfg_basedir.$cfg_templets_dir.'/'.$cfg_df_style.'/'.$path; | ||||
$dtp = new PartView(); | $dtp = new PartView(); | ||||
@@ -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 $ | * @version $id:arclist.lib.php 3 9:19 2010年7月13日 tianya $ | ||||
* @package DedeBIZ.Taglib | * @package DedeBIZ.Taglib | ||||
* @copyright Copyright (c) 2022 DedeBIZ.COM | * @copyright Copyright (c) 2022 DedeBIZ.COM | ||||
@@ -74,7 +72,7 @@ function lib_arclist(&$ctag, &$refObj) | |||||
} else { | } else { | ||||
$flag = $ctag->GetAtt('att'); | $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排序 | * @param string $isweight 是否需要对检索出来的文档按照weight排序 | ||||
* @return string | * @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; | global $dsql, $PubFields, $cfg_keyword_like, $cfg_index_cache, $_arclistEnv, $envs, $cfg_cache_type, $cfg_digg_update; | ||||
$row = AttDef($row, 10); | $row = AttDef($row, 10); | ||||
@@ -227,8 +225,8 @@ function lib_arclistDone (&$refObj, &$ctag, $typeid=0, $row=10, $col=1, $titlele | |||||
} | } | ||||
} | } | ||||
$orwheres[] = 'arc.arcrank > -1'; | $orwheres[] = 'arc.arcrank > -1'; | ||||
if (!empty($notypeid)) | |||||
{ | |||||
//否定指定栏目 | |||||
if (!empty($notypeid)) { | |||||
$orwheres[] = "and arc.typeid NOT IN (".GetSonIds($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#is", '', $orwhere); | ||||
$orwhere = preg_replace("#And[ ]{1,}And#is", 'And ', $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')); | $addfield = trim($ctag->GetAtt('addfields')); | ||||
$addfieldsSql = ''; | $addfieldsSql = ''; | ||||
@@ -17,7 +17,7 @@ | |||||
location = "archives_do.php?dopost=edit&channelid=" + channelid + "&aid=" + aid; | location = "archives_do.php?dopost=edit&channelid=" + channelid + "&aid=" + aid; | ||||
} | } | ||||
function delArc(aid) { | function delArc(aid) { | ||||
DedeConfirm("您确定要删除这篇文档吗?").then((v)=>{ | |||||
DedeConfirm("您确定要删除这篇文档吗").then((v)=>{ | |||||
location = "archives_do.php?aid=" + aid + "&dopost=delArc"; | location = "archives_do.php?aid=" + aid + "&dopost=delArc"; | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
console.log(e) | console.log(e) | ||||
@@ -17,7 +17,7 @@ | |||||
location = "archives_do.php?dopost=edit&channelid=" + channelid + "&aid=" + aid; | location = "archives_do.php?dopost=edit&channelid=" + channelid + "&aid=" + aid; | ||||
} | } | ||||
function delArc(aid) { | function delArc(aid) { | ||||
DedeConfirm("您确定要删除这篇文档吗?").then((v)=>{ | |||||
DedeConfirm("您确定要删除这篇文档吗").then((v)=>{ | |||||
location = "archives_do.php?aid=" + aid + "&dopost=delArc"; | location = "archives_do.php?aid=" + aid + "&dopost=delArc"; | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
console.log(e) | console.log(e) | ||||
@@ -88,7 +88,7 @@ | |||||
ShowMsg("您没选中任何信息"); | ShowMsg("您没选中任何信息"); | ||||
return false; | return false; | ||||
} | } | ||||
DedeConfirm("您确定要删除这些消息吗?").then((v)=>{ | |||||
DedeConfirm("您确定要删除这些消息吗").then((v)=>{ | |||||
location = "mypay.php?dopost=del&ids=" + selid; | location = "mypay.php?dopost=del&ids=" + selid; | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
console.log(e) | console.log(e) | ||||
@@ -82,7 +82,7 @@ | |||||
ShowMsg("您没选中任何信息"); | ShowMsg("您没选中任何信息"); | ||||
return false; | return false; | ||||
} | } | ||||
DedeConfirm("您确定要删除这些消息吗?").then((v)=>{ | |||||
DedeConfirm("您确定要删除这些消息吗").then((v)=>{ | |||||
location = "operation.php?dopost=del&ids=" + selid; | location = "operation.php?dopost=del&ids=" + selid; | ||||
}).catch((e)=>{ | }).catch((e)=>{ | ||||
console.log(e) | console.log(e) | ||||
@@ -51,7 +51,7 @@ | |||||
ShowMsg("您没选中任何信息"); | ShowMsg("您没选中任何信息"); | ||||
return false; | return false; | ||||
} | } | ||||
DedeConfirm("您确定要删除这些消息吗?").then((v)=>{ | |||||
DedeConfirm("您确定要删除这些消息吗").then((v)=>{ | |||||
$.get("pm.php?dopost=remove&ids=" + selid + "&folder=" + myfolder,function (data) { | $.get("pm.php?dopost=remove&ids=" + selid + "&folder=" + myfolder,function (data) { | ||||
let result = JSON.parse(data); | let result = JSON.parse(data); | ||||
if (result.code === 200) { | if (result.code === 200) { | ||||