[wordpress插件] Dealers And Branches经销商和分行

wordpress 插件 文章 2020-04-13 21:01 454 0 全屏看文

AI助手支持GPT4.0

评分
0
描述

Dealers and Branches (DnB) coded for whom may need a list of own dealers or branches of any kind of bussiness.

为他们编码的经销商和分支机构(DnB)可能需要一份自己的经销商或任何类型的业务分支机构列表。

How to create shortcode?

如何创建简码?

Parts of ShortCode

ShortCode的一部分

Name: dnb_list (static name, not changable)

名称:dnb_list(静态名称,不可更改)

title: any title you want

标题:您想要的任何标题

tableCaptions: table captions (columns) and other properties of columns

tableCaptions:列的表标题(列)和其他属性

Sample ShortCode

样本简码

[    

  [    

dnb_list title="Title of Table"    

dnb_list title =“表格标题”    

tableCaptions="                

tableCaptions =“                

{'thWidthPercentage':20,'arrayNumbersOfFields':'1','columnCaption':'Caption of Column','isSortable':true,'sortTypeDefaultIs_Asc':true},                

{'thWidthPercentage':20,'arrayNumbersOfFields':'1','columnCaption':'Column Caption','isSortable':true,'sortTypeDefaultIs_Asc':true},                

{'thWidthPercentage':20,'arrayNumbersOfFields':'1','columnCaption':'Caption of Column','isSortable':true,'sortTypeDefaultIs_Asc':false},                

{'thWidthPercentage':20,'arrayNumbersOfFields':'1','columnCaption':'Column Caption','isSortable':true,'sortTypeDefaultIs_Asc':false},                

{'thWidthPercentage':10,'arrayNumbersOfFields':'2','columnCaption':'Caption of Column','isSortable':true,'sortTypeDefaultIs_Asc':true},                

{'thWidthPercentage':10,'arrayNumbersOfFields':'2','columnCaption':'Caption of Column','isSortable':true,'sortTypeDefaultIs_Asc':true},                

{'thWidthPercentage':50,'arrayNumbersOfFields':'9,1,3','columnCaption':'Caption of Column','isSortable':true,'sortTypeDefaultIs_Asc':true}                  

{'thWidthPercentage':50,'arrayNumbersOfFields':'9,1,3','columnCaption':'Column Caption','isSortable':true,'sortTypeDefaultIs_Asc':true}                  

"    

”    

jsVars="{'recordsPerpage':5, 'pagingPosition':'A'}" searchTitle="Search" searchOnlyIn="1,2,3,9" filteringTitle="Filtered By:" filteringArrayNumberOfField=10

jsVars =“ {'recordsPerpage':5,'pagingPosition':'A'}” searchTitle =“搜索” searchOnlyIn =“ 1,2,3,9” filteringTitle =“筛选条件:” filteringArrayNumberOfField = 10

]

Elements of a ShortCode

dnb_list: name of short code and you can not change it

]

简码的元素 dnb_list:简码的名称,您不能更改它

tableCaptions : every parameters and arguments setting in this element.

tableCaptions:此元素中的每个参数和参数设置。

Every object in tableCaptions are represents a column.

tableCaptions中的每个对象都代表一列。

Inside the column object you can adjust

在列对象内,您可以调整

* thWidthPercentage (width of solumn),

* thWidthPercentage (列宽),

* arrayNumbersOfFields (choose the related database tables column from the list of $arrayOfFields section below,

* arrayNumbersOfFields (从下面的 $ arrayOfFields 部分列表中选择相关的数据库表列,

* columnCaption (caption of the column of table,

* columnCaption (表列的标题,

* isSortable (if column captions click sorts fields ascendens or descendens),

* isSortable (如果列标题单击,则对字段进行升序或降序排序),

* sortTypeDefaultIs_Asc (if first click sorting asc or desc, true and default is ASC)

* sortTypeDefaultIs_Asc (如果先单击排序asc或desc,则为true,默认为ASC)

jsVars: At this object properties are adjusting some javascript variables by default.

jsVars:默认情况下,此对象的属性会调整一些JavaScript变量。

* recordsPerpage (count of records per page)

* recordsPerpage (每页记录数)

* pagingPosition (adjusting the position of paging navigation buttons)

* pagingPosition (调整分页导航按钮的位置)

searchOnlyIn: Choosing searchable fields numbers from the list of $arrayOfFields section below, this is comma separated list.

searchOnlyIn:从下面的 $ arrayOfFields 部分的列表中选择可搜索的字段编号,这是逗号分隔的列表。

filteringTitle: Tell user to use filter on which field of data.

filteringTitle:告诉用户在数据的哪个字段上使用过滤器。

filteringArrayNumberOfField: Choose a field to make a select filter from the list of $arrayOfFields section below.

filteringArrayNumberOfField:从下面的 $ arrayOfFields 部分的列表中选择一个字段以进行选择过滤。

Array Numbers of Fields Array

字段数数组的数组

List of fields from database table.

数据库表中的字段列表。

Read only list can be use in every corner of shortcode.

只读列表可用于简码的每个角落。

$arrayOfFields=array(
    

$ arrayOfFields = array(
    

0=>’dnb.id’,
    

0 =>“ dnb.id”,
    

1=>’dnb.dnb_name’,
    

1 =>“ dnb.dnb_name”,
    

2=>’dnb.dnb_parent_id’,
    

2 =>“ dnb.dnb_parent_id”,
    

3=>’dnb.dnb_type’,
    

3 =>“ dnb.dnb_type”,
    

4=>’dnb.dnb_phone’,
    

4 =>“ dnb.dnb_phone”,
    

5=>’dnb.dnb_fax’,
    

5 =>“ dnb.dnb_fax”,
    

7=>’dnb.dnb_email’,
    

7 =>“ dnb.dnb_email”,
    

8=>’dnb.dnb_webpage_url’,
    

8 =>“ dnb.dnb_webpage_url”,
    

9=>’dnb.dnb_street_name’,
    

9 =>“ dnb.dnb_street_name”,
    

10=>’dnb.dnb_city_name’,
    

10 =>“ dnb.dnb_city_name”,
    

11=>’dnb.dnb_county_name’,
    

11 =>“ dnb.dnb_county_name”,
    

12=>’dnb.dnb_district_name’,
    

12 =>“ dnb.dnb_district_name”,
    

13=>’dnb.dnb_province_name’,
    

13 =>“ dnb.dnb_province_name”,
    

14=>’dnb.dnb_state_name’,
    

14 =>“ dnb.dnb_state_name”,
    

15=>’dnb.dnb_apartment_name’,
    

15 =>“ dnb.dnb_apartment_name”,
    

16=>’dnb.dnb_country_name’,
    

16 =>“ dnb.dnb_country_name”,
    

17=>’dnb.dnb_postal_code’,
    

17 =>“ dnb.dnb_postal_code”,
    

18=>’dnb.dnb_door_no’,
    

18 =>“ dnb.dnb_door_no”,
    

19=>’dnb.dnb_note’,
    

19 =>“ dnb.dnb_note”,
    

20=>’dnb2.dnb_name’

20 =>“ dnb2.dnb_name”

);

);

安装步骤

How to install Dealers and Branches Plugin and make it work.

如何安装经销商和分支机构插件并使其正常工作。

    1. Upload the plugin files to the /wp-content/plugins/dealers-and-branches directory, or install the plugin through the WordPress plugins screen directly.
    2. 将插件文件上传到 / wp-content / plugins / dealers-and-branches 目录,或直接通过WordPress插件屏幕安装插件。

    3. Activate the plugin through the ‘Plugins’ screen in WordPress
    4. 通过WordPress中的“插件”屏幕激活插件

    5. Find “DnB” menu option in the main WP Admin menu at left side on the screen.
    6. 在屏幕左侧的WP Admin主菜单中找到“ DnB”菜单选项。

    7. Fill the form to add a dealer or a branch to the database.

    8. 填写表格以向数据库添加经销商或分支机构。

      Or you can use the plugin for any purpose about any list which includes hierarchical realtions between its items.

    9. 或者,您可以将插件用于任何列表的任何目的,其中包括列表项之间的层次结构。

    10. Every new list item will be shown on the users screen (client side) as a table row on the top of the list.
    11. 每个新列表项都将在用户屏幕(客户端)上显示为列表顶部的表格行。

下载地址
https://downloads.wordpress.org/plugin/dealers-and-branches.zip
-EOF-

AI助手支持GPT4.0