<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                [TOC] # 友情鏈接管理模塊 > 作者:張偉、楊紅偉 ## 1、下載 http://git.oschina.net/hongweizhiyuan/newthink_module/ 這里面的 `Links` 模塊 ## 2、數據庫 |序號|數據表|注釋| | -- | -- | -- | |1|links|友情鏈接表| ## 3、文件結構 ``` ├─admin │ └─themes │ └─simplebootx │ ├─Admin │ │ ├─Link │ │ │ add.html │ │ │ edit.html │ │ │ index.html ├─application │ ├─Admin │ │ ├─Controller │ │ │ LinkController.class.php │ ├─Common │ │ └─Model │ │ Links.class.php │ ├─Common │ │ └─Common │ │ function.php(sp_getlinks) ``` ## 4、調用方法 ``` $links=sp_getlinks(); <foreach name="links" item="vo"> {$vo.link_name} <!--鏈接名稱--> {$vo.link_url} <!--鏈接地址--> {$vo.link_target} <!--打開方式--> {$vo.link_description} <!--描述--> /*常見用法*/ <a href="{$vo.link_url}"target="{$vo.link_target}"> {$vo.link_name} </a> </foreach> ``` ## 5、相關圖片 ![](https://box.kancloud.cn/2016-09-04_57cbe7606de28.png) 友情鏈接后臺列表頁 ![](https://box.kancloud.cn/2016-09-04_57cbe760990b2.png) 添加友情鏈接 ## 6、后臺菜單 ``` INSERT INTO `new_menu` (`id`, `parentid`, `app`, `model`, `action`, `data`, `type`, `status`, `name`, `icon`, `remark`, `listorder`) VALUES ('75','39','Admin','Link','index','','0','1','友情鏈接','','','3'), INSERT INTO `new_menu` (`id`, `parentid`, `app`, `model`, `action`, `data`, `type`, `status`, `name`, `icon`, `remark`, `listorder`) VALUES ('76','75','Admin','Link','listorders','','1','0','友情鏈接排序','','','0'), INSERT INTO `new_menu` (`id`, `parentid`, `app`, `model`, `action`, `data`, `type`, `status`, `name`, `icon`, `remark`, `listorder`) VALUES ('77','75','Admin','Link','toggle','','1','0','友鏈顯示切換','','','0'), INSERT INTO `new_menu` (`id`, `parentid`, `app`, `model`, `action`, `data`, `type`, `status`, `name`, `icon`, `remark`, `listorder`) VALUES ('78','75','Admin','Link','delete','','1','0','刪除友情鏈接','','','1000'), INSERT INTO `new_menu` (`id`, `parentid`, `app`, `model`, `action`, `data`, `type`, `status`, `name`, `icon`, `remark`, `listorder`) VALUES ('79','75','Admin','Link','edit','','1','0','編輯友情鏈接','','','1000'), INSERT INTO `new_menu` (`id`, `parentid`, `app`, `model`, `action`, `data`, `type`, `status`, `name`, `icon`, `remark`, `listorder`) VALUES ('80','79','Admin','Link','edit_post','','1','0','提交編輯','','','0'), INSERT INTO `new_menu` (`id`, `parentid`, `app`, `model`, `action`, `data`, `type`, `status`, `name`, `icon`, `remark`, `listorder`) VALUES ('81','75','Admin','Link','add','','1','0','添加友情鏈接','','','1000'), INSERT INTO `new_menu` (`id`, `parentid`, `app`, `model`, `action`, `data`, `type`, `status`, `name`, `icon`, `remark`, `listorder`) VALUES ('82','81','Admin','Link','add_post','','1','0','提交添加','','','0'), ``` ## 7、權限訪問 ``` INSERT INTO `cmf_auth_access` (`role_id`, `rule_name`, `type`) VALUES (2, 'admin/link/add_post', 'admin_url'), (2, 'admin/link/add', 'admin_url'), (2, 'admin/link/edit_post', 'admin_url'), (2, 'admin/link/edit', 'admin_url'), (2, 'admin/link/delete', 'admin_url'), (2, 'admin/link/toggle', 'admin_url'), (2, 'admin/link/listorders', 'admin_url'), (2, 'admin/link/index', 'admin_url'), (2, 'admin/extension/default', 'admin_url'); ```
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看