Mailer project rwritten:
[mailer.git] / templates / xml / admin / admin_list_network_query_api_config.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3 This template is for showing all configured networks with at least one type
4 handler set up.
5
6 @author         Roland Haeder <webmaster@mxchange.org>
7 @version        0.2.1-FINAL
8 @copyright      (c) 2003 - 2009 by Roland Haeder
9 @copyright      (c) 2009 - 2012 by Mailer Developer Team
10 @license        GNU GPL 2.0 or any newer version
11 @link           http://mxchange.org
12
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
26 MA 02110-1301 USA
27 //-->
28 <admin-list-data>
29         <!--
30         Call-back function, the extracted data from this XML will then be re-read
31         from that function. The most common function this XML uses is
32         doGenericListEntries() so mostly you can leave this alone unless you have JOINs.
33         Use doGenericJoinedListEntries for JOINs:
34         //-->
35         <callback-function type="string" value="doGenericJoinedListEntries" />
36         <!--
37         Now we need information which template should be loaded and which functions
38         shall be called back. So lets start with the main list template. This mostly
39         requires no call-back function.
40         //-->
41         <list-template type="string" value="admin_list_network_query_api" />
42         <!--
43         The template for all rows, mostly this name has a '_row' suffix and again,
44         no call-back function is usually required.
45         //-->
46         <list-row-template type="string" value="admin_list_network_query_api_row" />
47         <!--
48         Message id to display if no entry could be found
49         //-->
50         <no-entry-found-message type="string" value="ADMIN_NETWORK_QUERY_API_404" />
51         <!--
52         The table(s) we shall grab the data from, all as list.
53         //-->
54         <data-tables>
55                 <!--
56                 A single table entry, with alias and without the configurable
57                 _MYSQL_PREFIX. You can specify the table's name or alias later on.
58                 //-->
59                 <data-table type="string" alias="nac" value="network_api_config" />
60                 <!--
61                 A join condition to merge data from two or more tables, leave out
62                 if you want to do simple SELECTs.
63                 //-->
64                 <table-join-condition>
65                         <!--
66                         The joining type, can be any valid SQL statement. Here it is an
67                         INNER JOIN (from both tables the data must exist).
68                         //-->
69                         <table-join-type type="INNER JOIN" />
70                         <!--
71                         Name (and alias) of the table we want to join
72                         //-->
73                         <table-join-name name="network_handler_config" alias="ntc" />
74                         <!--
75                         On which condition these tables should join
76                         //-->
77                         <join-on>
78                                 <!--
79                                 The left table, name can also be an alias, column is the column
80                                 of the left table.
81                                 //-->
82                                 <join-on-left-table type="string" name="nac" column="network_id" />
83                                 <!--
84                                 Condition how these two tables should be joined.
85                                 //-->
86                                 <join-on-condition type="string" condition="EQUALS" />
87                                 <!--
88                                 And the corresponding right part.
89                                 //-->
90                                 <join-on-right-table type="string" name="ntc" column="network_id" />
91                         </join-on>
92                 </table-join-condition>
93                 <!--
94                 Columns to perform the SELECT statement on, with alias and name plus which table.
95                 //-->
96                 <select-data-from-list>
97                         <!--
98                         A single entry with table name (can be left empty), value (must
99                         always be set), alias (again can be left empty) and SQL function
100                         (can also be left empty) which shall be applied on the column.
101                         //-->
102                         <select-data-from-list-entry type="string" table="nac" value="network_id" alias="" function="" />
103                         <select-data-from-list-entry type="string" table="ntc" value="network_type_id" alias="" function="" />
104                 </select-data-from-list>
105                 <!--
106                 And the column list to perform the WHERE statement on.
107                 //-->
108                 <where-select-from-list>
109                         <!--
110                         A single entry to perform the WHERE statement on:
111                         - table     = table name (or alias)
112                         - value     = column name
113                         - condition = look-up condition
114                         - look-for  = What to look for
115                         //-->
116                         <where-select-from-list-entry type="string" table="nac" value="network_id" condition="EQUALS" look-for="$content[network_id]" />
117                 </where-select-from-list>
118                 <!--
119                 Columns to perform the ORDER BY statement (GROUP BY is not yet supported)
120                 //-->
121                 <order-by-list>
122                         <!--
123                         A single entry to perform the ORDER BY statement on, see above WHERE entry for details.
124                         //-->
125                         <order-by-list-entry type="string" table="nac" order="network_id" value="ASC" />
126                 </order-by-list>
127         </data-tables>
128         <!--
129         List all column names from the 'select-data-from-list' node here, but now
130         with call-back informations. The list must only contain those entries where
131         a call-back function shall be called for.
132         //-->
133         <column-callback-list>
134         </column-callback-list>
135         <!--
136         Extra parameters (2nd, 3rd, ...) for above call-back functions. If an array
137         is provided, we have more than two parameters to handle over to the
138         call-back function. See function handleExtraValues() for details.
139         //-->
140         <extra-parameter-list>
141         </extra-parameter-list>
142         <!--
143         How the named column shall be logical linked to the above.
144         //-->
145         <where-condition type="string" name="" condition="" />
146 </admin-list-data>