Project continued with rewrites:
[mailer.git] / templates / xml / admin / admin_list_surfbar_urls.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3 This template provides meta data for listing URLs of the surfbar in the admin
4 area.
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         //-->
34         <callback-function type="string" value="doGenericListEntries" />
35         <!--
36         Now we need information which template should be loaded and which functions
37         shall be called back. So lets start with the main list template. This mostly
38         requires no call-back function.
39         //-->
40         <list-template type="string" value="admin_list_surfbar_urls" />
41         <!--
42         The template for all rows, mostly this name has a '_row' suffix and again,
43         no call-back function is usually required.
44         //-->
45         <list-row-template type="string" value="admin_list_surfbar_urls_row" />
46         <!--
47         Message id to display if no entry could be found
48         //-->
49         <no-entry-found-message type="string" value="ADMIN_SURFBAR_URLS_404" />
50         <!--
51         The table(s) we shall grab the data from, all as list.
52         //-->
53         <data-tables>
54                 <!--
55                 A single table entry, with alias and without the configurable
56                 _MYSQL_PREFIX. You can specify the table's name or alias later on.
57                 //-->
58                 <data-table type="string" alias="" value="surfbar_urls" />
59                 <!--
60                 Columns to perform the SELECT statement on, with alias and name plus which table.
61                 //-->
62                 <select-data-from-list>
63                         <!--
64                         A single entry with table name (can be left empty), value (must
65                         always be set), alias (again can be left empty) and SQL function
66                         (can also be left empty) which shall be applied on the column.
67                         //-->
68                         <select-data-from-list-entry type="string" table="" value="url_id" alias="" function="" />
69                         <select-data-from-list-entry type="string" table="" value="url_userid" alias="" function="" />
70                         <select-data-from-list-entry type="string" table="" value="url" alias="" function="" />
71                         <select-data-from-list-entry type="string" table="" value="url_views_total" alias="" function="" />
72                         <select-data-from-list-entry type="string" table="" value="url_status" alias="" function="" />
73                         <select-data-from-list-entry type="string" table="" value="url_registered" alias="url_registered" function="UNIX_TIMESTAMP" />
74                         <select-data-from-list-entry type="string" table="" value="url_fixed_reload" alias="" function="" />
75                         <select-data-from-list-entry type="string" table="" value="url_fixed_waiting" alias="" function="" />
76                         <select-data-from-list-entry type="string" table="" value="url_last_locked" alias="url_last_locked" function="UNIX_TIMESTAMP" />
77                         <select-data-from-list-entry type="string" table="" value="url_lock_reason" alias="" function="" />
78                 </select-data-from-list>
79                 <!--
80                 And the column list to perform the WHERE statement on.
81                 //-->
82                 <where-select-from-list>
83                 </where-select-from-list>
84                 <!--
85                 Columns to perform the ORDER BY statement (GROUP BY is not yet supported)
86                 //-->
87                 <order-by-list>
88                         <!--
89                         A single entry to perform the ORDER BY statement on, see above WHERE entry for details.
90                         //-->
91                         <order-by-list-entry type="string" table="" order="url_id" value="ASC" />
92                 </order-by-list>
93         </data-tables>
94         <!--
95         List all column names from the 'select-data-from-list' node here, but now
96         with call-back informations. The list must only contain those entries where
97         a call-back function shall be called for.
98         //-->
99         <column-callback-list>
100                 <!--
101                 Another column, now we need a second parameter here because
102                 generateDateTime() expects two parameters (first is always the data
103                 from column).
104                 //-->
105                 <column-callback-list-entry>
106                         <!--
107                         The actual data, again.
108                         //-->
109                         <column-callback-data type="string" value="url_registered" callback="generateDateTime" />
110                         <!--
111                         More parameters, remember that the first parameter is always given
112                         and that it is the data from column.
113                         //-->
114                         <callback-extra-parameter-list>
115                                 <!--
116                                 A single parameter, 'type' can be one of 'float', 'int',
117                                 'bool', 'string'. 'array' is not yet supported.
118                                 //-->
119                                 <callback-extra-parameter-list-entry type="int" column="url_registered" value="2" />
120                         </callback-extra-parameter-list>
121                 </column-callback-list-entry>
122                 <!--
123                 Second column to "translate".
124                 //-->
125                 <column-callback-list-entry>
126                         <column-callback-data type="string" value="url_last_locked" callback="generateDateTime" />
127                         <callback-extra-parameter-list>
128                                 <callback-extra-parameter-list-entry type="int" column="url_last_locked" value="2" />
129                         </callback-extra-parameter-list>
130                 </column-callback-list-entry>
131         </column-callback-list>
132 </admin-list-data>