Dealers and Branches (DnB) coded for whom may need a list of own dealers or branches of any kind of bussiness.
为他们编码的经销商和分支机构(DnB)可能需要一份自己的经销商或任何类型的业务分支机构列表。 p>
How to create shortcode?
如何创建简码? h3>
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:列的表标题(列)和其他属性 p>
Sample ShortCode
样本简码 h3>
[ [ 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]
简码的元素 h3> dnb_list:简码的名称,您不能更改它
code> pre>
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 code>(列宽),
* arrayNumbersOfFields
(choose the related database tables column from the list of $arrayOfFields
section below,
* arrayNumbersOfFields code>(从下面的 $ arrayOfFields code>部分列表中选择相关的数据库表列,
* columnCaption
(caption of the column of table,
* columnCaption code>(表列的标题,
* isSortable
(if column captions click sorts fields ascendens or descendens),
* isSortable code>(如果列标题单击,则对字段进行升序或降序排序),
* sortTypeDefaultIs_Asc
(if first click sorting asc or desc, true and default is ASC)
* sortTypeDefaultIs_Asc code>(如果先单击排序asc或desc,则为true,默认为ASC) p>jsVars: At this object properties are adjusting some javascript variables by default.
jsVars:默认情况下,此对象的属性会调整一些JavaScript变量。
* recordsPerpage
(count of records per page)
* recordsPerpage code>(每页记录数)
* pagingPosition
(adjusting the position of paging navigation buttons)
* pagingPosition code>(调整分页导航按钮的位置) p>searchOnlyIn: Choosing searchable fields numbers from the list of $arrayOfFields
section below, this is comma separated list.
searchOnlyIn:从下面的 $ arrayOfFields code>部分的列表中选择可搜索的字段编号,这是逗号分隔的列表。 p>filteringTitle: Tell user to use filter on which field of data.
filteringTitle:告诉用户在数据的哪个字段上使用过滤器。 p>
filteringArrayNumberOfField: Choose a field to make a select filter from the list of $arrayOfFields
section below.
filteringArrayNumberOfField:从下面的 $ arrayOfFields code>部分的列表中选择一个字段以进行选择过滤。 p>Array Numbers of Fields Array
字段数数组的数组 h3>
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”
);
); p>