<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、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                自定義方法修改文件:include/extend.func.php ## 一、欄目增加自定義字段 ### 1.增加欄目縮略圖、欄目英文名 ~~~ //字段名:arcpic,english ~~~ **a. 文件:catalog_add.htm** ~~~ <tr> <td class='bline' height="26" style="padding-left:10px;">欄目圖片:</td> <td class='bline'> <input name="arcpic" type="text" value="<?php echo $arcpic?>" class="pubinputs" style="width:300px" /> <input type="button" name="set3" value="瀏覽... " class="coolbg np" style="width:60px" onClick="SelectImage('form1.arcpic','small');" /> </td> </tr> <tr> <td class='bline' height="26" style="padding-left:10px;"><font>英文名:</font></td> <td class='bline'><input name="english" type="text" id="english" size="30" class="iptxt" /></td> </tr> ~~~ **b. 文件:catalog_edit.htm** ~~~ <tr> <td height="26">欄目圖片:</td> <td> <input name="arcpic" type="text" value="<?php echo $myrow['arcpic']?>" class="pubinputs" style="width:300px" /> <input type="button" name="set3" value="瀏覽... "class="coolbg np" style="width:60px" onClick="SelectImage('form1.arcpic','small');" /> </td> </tr> <tr> <td class='bline' height="26"><font color='red'>英文名:</font></td> <td class='bline'><input name="english" type="text" id="english" size="30" value="<?php echo $myrow['english']?>" class="iptxt" /></td> </tr> ~~~ **c.以上2個文件需要增加js文件** ~~~ <script language="javascript" src="../include/dedeajax2.js"></script> <script language='javascript' src='js/main.js'></script> ~~~ **e. mysql運行字段添加到數據庫** ~~~ ALTER TABLE `dede_arctype` ADD `arcpic` VARCHAR(128); ALTER TABLE `dede_arctype` ADD `english` VARCHAR(64); ~~~ ## 二、自定義方法 ### 1、獲取頂級欄目名稱 ~~~ function GetTopTypename($id) { global $dsql; $row = $dsql->GetOne("SELECT typename,topid FROM `#@__arctype` WHERE id= $id"); if ($row['topid'] == '0') { return $row['typename']; } else { $row1 = $dsql->GetOne("SELECT typename FROM `#@__arctype` WHERE id= $row[topid]"); return $row1['typename']; } } ~~~ 調用方式 ~~~ {dede:field name='typeid' function="GetTopTypename(@me)" /} ~~~ ### 2、獲取頂級欄目英文名稱 ~~~ function GetTopEnname($id) { global $dsql; $row = $dsql->GetOne("SELECT english,topid FROM `#@__arctype` WHERE id= $id"); if ($row['topid'] == '0') { return $row['english']; } else { $row1 = $dsql->GetOne("SELECT english FROM `#@__arctype` WHERE id= $row[topid]"); return $row1['english']; } } ~~~ 調用方式 ~~~ {dede:field name='typeid' function="GetTopEnname(@me)" /} ~~~
                  <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>

                              哎呀哎呀视频在线观看