站内通知模板循环问题

迅睿框架 更新 2026-02-06 13:18:45 小鬼28

     <nav class="nav nav-style-1 nav-pills mb-3" role="tablist">
      {loop $type $i $t}
      <a class="nav-link {if $param.tid==$i}active{/if}" data-bs-toggle="tab" role="tab" href="#{dr_text2py($t.name)}" aria-selected="true">{$t.name}</a>
      {/loop}
     </nav>
     <div class="tab-content">
      
      {loop $type $i $t}
      {print_r($t)} 
      <div class="tab-pane text-muted {if $param.tid==$i} show active {/if}" id="{dr_text2py($t.name)}" role="tabpanel">
       {loop $list $t}
       {print_r($t)} 
       <div class="toast fade show" role="alert" aria-live="assertive"
        aria-atomic="true">
        <div class="toast-header text-default">
         {dr_notice_icon($t.type)}
         <strong class="me-auto">Ynex</strong>
         <small class="text-muted">{dr_fdate($t.inputtime)}</small>
        </div>
        <div class="toast-body">
         {if $t.url}
         <a href="{$t.url}" target="_blank">
          {$t.content}
          <i class="fa fa-link"></i>
         </a>
         {else}
         {$t.content}
         {/if}
        </div>
       </div>
       {/loop}
      </div>
      {/loop}
      
     </div>

用的bootstrap,就是上面标题下现在没啥问题就是下面内容无法确定哪个标题请教下这个怎么解决?

方案

  • 小波工作室 #1 · 2025-01-06 16:56:42
    满意答案
    应该是有个序号什么的吧
  • 小鬼28 #2 · 2026-02-06 13:18:45
    @小波工作室:已解决问题

迅睿系统漏洞

GeoSeo收录宝
GeoSeo收录宝(2026-09-01)
升级 ai智能发布功能 升级 支持8国语言后端设置和前端输出功能 ...
Word发布批量上传
Word发布批量上传(2026-08-31)
版本覆盖问题重发
多语言翻译Seolang
多语言翻译Seolang(2026-08-31)
新增 LLM 大模型对话翻译模块 配置层强类型化重构 URL 模...
自定义存储
自定义存储(2026-08-30)
同步服务器端通用版实现,统一管理端、CMS 端和浏览器直传的提示与错...
GeoSeo工具箱
GeoSeo工具箱(2026-08-29)
新增 bing推送 新增 IndexNow推送 新增 baidu...
外贸多语言建站
外贸多语言建站(2026-08-27)
新增阿里云专业版入口 新增阿里云自动识别字符格式
Querylist渐进式采集
Querylist渐进式采集(2026-08-26)
增加范围截取规则
实时任务
实时任务(2026-08-26)
补充并整理完整使用说明、历史版本更新日志,统一帮助页样式。