[wordpress插件] Unofficial CForms II table display非官方的CForms II表显示

wordpress 插件 文章 2020-03-21 07:50 467 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Replaces a shortcode such as [cformstable form='nameofyourform'] with a table of data or a count of information collected via the excellent CForms II.

plugins / cforms2 /“> CForms II 。

Examples would be:

示例为:

    • [cformstable form='nameofyourform'] to display how many entries have been collected by your form
    • [cformstable form ='nameofyourform'] 以显示您的表单收集了多少条目

    • [cformstable form='nameofyourform' display='table' vars='Name,Date,Comment'] to display a table of entries collected by your form
    • [cformstable form ='nameofyourform'display ='table'vars ='Name,Date,Comment'] 以显示表格收集的条目表

    Possible variables for your shortcode include:

    您的简码可能的变量包括:

    General Variables

    常规变量

      • display = 'number' or 'table' – (the default is 'number')
      • display ='number''table' –(默认值为'number'

      • form = 'the name of your form' – if you don't know the names of possible forms, just use [cformstable] to get a list of options

      • form ='表单名称' –如果您不知道可能的表单名称,只需使用 [cformstable] 即可获得选项列表

      • from = DATETIME string (format: Y-m-d H:i:s).

      • from = DATETIME字符串(格式: Y-m-d H:i:s )。

        Date & time defining the start of a target period, e.g.

        定义目标时间段开始的日期和时间,例如

        2008-09-17 15:00:00 (optional)

      • 2008-09-17 15:00:00 (可选)

      • to =DATETIME string (format:Y-m-d H:i:s).

      • to = DATETIME字符串(格式: Y-m-d H:i:s )。

        Date & time defining the end of a target period, e.g.2014-09-17 15:00:00` (optional)

      • 定义目标时间段结束的日期和时间,例如 2014-09-17 15:00:00` (可选)

      • limit = ‘the maximum lines to show in the table or count’ (optional)
      • limit = “表或计数中显示的最大行数” (可选)

      Table Variables

      表变量

      Either

      任一

        • vars = list of variable names to use as column headers separated by commas e.g.

        • vars = 变量名称列表,用作以逗号分隔的列标题,例如

          'Name,Date,Comment'.

          “名称,日期,注释”

          To change the way the name is displayed, add your revised text after |, e.g.

          要更改名称的显示方式,请在 | 之后添加修改后的文本,例如

          vars='Name|Your Name,Date,Comment'

        • vars ='名称|您的姓名,日期,注释'

        Or

          • cols = list of variable numbers to use as column headers separated by commas e.g.

          • cols = 变量编号列表,用作以逗号分隔的列标题,例如

            '1,2,3'.

            '1,2,3'

            You can get variable numbers by posting [cformstable display='table' form='Name of your form'].

            您可以通过发布 [cformstable display ='table'form ='您的表单的名称'] 获得变量号。

            As with the vars setting, to change the way the name is displayed, add your revised text after |, e.g.

            与vars设置一样,要更改名称的显示方式,请在 | 之后添加修改后的文本,例如

            cols='1|Your Name,2,3'.

          • cols ='1 |您的名字,2,3'

          Optional Variables

          可选变量

            • limit = 'the maximum lines to show in the table' (optional)
            • limit ='表中显示的最大行数' (可选)

            • sortdir = 'asc' or 'desc' (optional)
            • sortdir ='asc''desc' (可选)

            • sort = 'form', 'id', 'date', 'ip' or 'email' or any other form input field, e.g.

            • sort ='form','id','date','ip''email'或任何其他表单输入字段,例如

              'Your Name' (optional)

            • “您的姓名” (可选)

            Count Variables

            计数变量

              • deduped = TRUE or FALSE – remove duplicate IP/email addresses from count (optional)
              • deduped = TRUE FALSE –从计数(可选) 中删除重复的IP /电子邮件地址

              • adjust = 'n' where n is a numerical value (+10, -20 etc.) to adjust the count displayed up or down (optional

              • adjust ='n',其中 n 是一个数值(+ 10,-20等),用于向上或向下调整显示的计数(可选

                )

安装步骤

    1. Upload cformstable.php to the /wp-content/plugins/ directory
    2. cformstable.php 上载到 / wp-content / plugins / 目录

    3. Activate the plugin through the ‘Plugins’ menu in WordPress
    4. 通过WordPress中的“插件”菜单激活插件

    5. Place a shortcode such [cformstable display='table'] in your post or page
    6. 在您的帖子或页面中放置一个简短代码,例如 [cformstable display ='table']

下载地址
https://downloads.wordpress.org/plugin/cformstable.1.1.3.zip
-EOF-

AI助手支持GPT4.0