<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                [返回目錄](index.html)#### [高級應用與部署](gaoji_index.html "test") —— [萬能字段應用](gaoji_wannengziduan.html "test") V9中新增加了萬能字段,用戶可以通過萬能字段來實現一些常規字段無法實現的表單布局類型與功能 例如: 例如: ![](https://img.kancloud.cn/29/19/291984d03a9b4596acca9ba259bf2606_742x243.jpg)##### 一、如何添加萬能字段? 后臺->內容 -> 內容相關設置 -> 模型管理 ![](https://img.kancloud.cn/8b/e6/8be6864abf6c4aac3d99a1e1d53e089d_1256x294.png)選擇字段管理,添加/編輯字段,在字段類型中選擇萬能字段 ![](https://img.kancloud.cn/ff/18/ff1857d524281397faa1731c599a82f5_501x325.png)例如我有如下字段 ![](https://img.kancloud.cn/48/d6/48d606afc4d0ea37f4b34e6ccaa562f1_706x132.png) **這里還要設置這些字段為:萬能字段的附屬字段!** ![](https://img.kancloud.cn/f4/f0/f4f0e004a633305ffaa4c4381d31b802_511x229.jpg) 那么我可以這樣設置來實現,上面圖例的效果 ![](https://img.kancloud.cn/7f/c7/7fc7b2966efba1cc6028b76dd8d9c00d_765x431.png) ##### 二、高級使用 - 函數的支持 很多時候,雖然萬能字段支持了自定義的表單內容,但表單里面一些可變的內容沒法處理,例如:顯示當前時間,這就需要動態的支持函數功能 **使用方法:{FUNC(*函數名*~~參數)}** 注釋:*函數名*為可為php自帶的函數也可為自己定義的函數 參數只支持1個參數的傳遞,多個參數可用 *~*分開,然后交給函數來使用*~*分割參數 ,例如:參數1~參數2~參數3 自定義函數方法:在文件 *\\phpcms\\libs\\functions\\extention.func.php* 增加自定義函數 舉例1:表單處顯示當前日期 ,{FUNC(date~~Y-m-d H:i:s)},輸出格式為:2011-10-26 11:25:33 舉例2:顯示當前ip ,{FUNC(ip~~)},輸出格式為:114.250.58.215 舉例3:自定義上傳按鈕 ``` <pre class="brush:xml"><input class="input-text" id="down" name="info[down]" readonly="readonly" size="50" type="text" value="{FIELD_VALUE}"></input><input class="input-text" onclick="flashupload('swf_upload', '附件上傳','down',submit_attachment,'1,rar|zip|gz,0,,,0','content','89','{FUNC(upload_key~~1,rar|zip|gz,0,,,0)}')" type="button"></input> ``` 效果: ![](https://img.kancloud.cn/55/42/5542e952a239e2094fb25cede1d858f8_486x33.png) [返回目錄](index.html) 上海盛大網絡發展有限公司 c 2006 - 2011 B2-20040053. 問題和建議請反饋至:http://bbs.phpcms.cn
                  <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>

                              哎呀哎呀视频在线观看