
请问帝国cms 暂无相关链接调用当前栏目其它信息方法

- 函数代码:
function dp_GetKeyboard($num=100) { global $empire, $public_r, $class_r, $fun_r, $dbtbpre, $class_r, $navinfor; $keyid = $navinfor['keyid']; $classid = $navinfor['classid']; $id = $navinfor['id']; $link_num = $class_r[$classid]['link_num']; if (!$link_num) { return $fun_r['NotLinkNews']; } $tr = $empire->fetch1("select otherlinktemp,otherlinktempsub,otherlinktempdate from ".GetTemptb("enewspubtemp")." limit 1"); $temp_r = explode("[!--empirenews.listtemp--]", $tr[otherlinktemp]); if ($keyid) { $add = "id in (".$keyid.")"; } else { $e = $id + $num; $s = $id - $num; $add = " classid=".$classid." and id>".$s." and id<".$e; } $key_sql = $empire->query("select id, newstime, title, isurl, titleurl, classid, titlepic from {$dbtbpre}ecms_".$class_r[$classid][tbname]." where ".$add." order by newstime desc limit $link_num"); while ($link_r = $empire->fetch($key_sql)) { if ($link_r['id'] == $id) { continue; } $keyboardtext .= RepOtherTemp($temp_r[1], $link_r, $tr); } if (empty($keyboardtext)) { return $fun_r['NotLinkNews']; } $keyboardtext = $temp_r[0].$keyboardtext.$temp_r[2]; return $keyboardtext; }
- 调用方法:
<?=dp_GetKeyboard(200)?>
标签:帝国cms不更新了 帝国cms7.5 帝国cms8.0 帝国cms视频教程 帝国cms功能
更新日期:2025-03-09 00:50:07 来源:网络
下一篇:请问帝国CMS7.5使用PHP7.x环境登录后台报错的解决方法!

- 请问重置网站后台密码-云服务器问题
- 请问请问如何修改zblog的数据库连接信息?
- 请问高效管理公司网站,选择合适的网站修改工具
- 请问解决虚拟主机预装网站无法访问的问题
- 请问请问如何修改zblog的数据库连接信息以适应新的主机环境?
- 请问重置网站后台密码的正确途径
- 请问解决网站频繁出现 500 内部服务器错误的方法
- 请问移动端安全 - 正确修改移动端网站密码的方法与技巧
- 请问帝国CMS进阶 - 修改帝国管理网站模板的详细步骤与实用技巧
- 请问网站升级数据迁移之后无法访问
- 如何解决PbootCMS网站后台推送文章到百度时的“site error”错误?
- 网站admin密码忘记了怎么办
- 宝塔面板提示不是安全连接或私密连接,如何解决?
- 迅睿CMS网站用户投稿如何取消验证码
- {pboot:sql sql="语句"}[sql:字段]{/pboot:sql}万能循环标签使用介绍
- 网站提示429 Too Many Requests:用户发送了太多请求怎么办
- PbootCMS上传文件大小限制
- 如何优化网站站长信息 - 提升SEO表现与用户体验的最佳实践
- 易优cms搜索结果页如何统计关键词文章数量
- 网站源码安装后访问首页,页面错乱的处理方法
- 重置网站后台管理员账号密码
- 百度网址安全中心提醒您:该页面可能存在违法信息!如何处理?
- pbootcms模板如何做好防护
- pbootcms如何设置发布内容不自动提取缩略图(1)
- 网站提示422 Unprocessable Entity:请求格式正确但请求无法被处理怎么办
- 升级完后网站提示500错误怎么办
- Pbootcms留言“提交成功”的提示语修改(1)
- 易优cms数据表或视图不存在,请联系技术处理。
- Nginx 启动/停止 / 首页显示 / 安装 / 卸载
- PBOOTCMS中新增并开启手机端模板,以便为用户提供更好的移动设备浏览体验