mailer project continued:
[mailer.git] / templates / xml / admin / admin_edit_show_forced_campaigns.xml
1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!--
3 This template provides meta data for editing forced campaigns.
4
5 @author         Roland Haeder <webmaster@mxchange.org>
6 @version        0.2.1-FINAL
7 @copyright      (c) 2003 - 2009 by Roland Haeder
8 @copyright      (c) 2009 - 2012 by Mailer Developer Team
9 @license        GNU GPL 2.0 or any newer version
10 @link           http://mxchange.org
11
12 This program is free software; you can redistribute it and/or modify
13 it under the terms of the GNU General Public License as published by
14 the Free Software Foundation; either version 2 of the License, or
15 (at your option) any later version.
16
17 This program is distributed in the hope that it will be useful,
18 but WITHOUT ANY WARRANTY; without even the implied warranty of
19 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20 GNU General Public License for more details.
21
22 You should have received a copy of the GNU General Public License
23 along with this program; if not, write to the Free Software
24 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
25 MA  02110-1301  USA
26 //-->
27 <admin-entry-meta-data>
28         <!--
29         Call-back function which should all following parameter handled over
30         to. This will always be type of string but we like homogene XMLs.
31         //-->
32         <callback-function type="string" value="adminEditEntriesConfirm" />
33         <!--
34         Name of the database table where the entries should be read/write from/to.
35         //-->
36         <database-table name="" type="string" value="forced_campaigns" />
37         <!--
38         The following three lists must have the same count of list entries, else an
39         error may occur.
40         //-->
41         <!--
42         And all column names to read/write, leave this list tag empty for all (*).
43         //-->
44         <database-column-list>
45                 <!--
46                 A column name list entry. The type is always string, or do you have
47                 numerical column names?
48                 //-->
49                 <database-column-list-entry name="" type="string" table="" value="forced_campaign_id" alias="" function="" />
50                 <database-column-list-entry name="created_list" type="string" table="" value="forced_campaign_created" alias="forced_campaign_created" function="UNIX_TIMESTAMP" />
51                 <database-column-list-entry name="" type="string" table="" value="forced_campaign_ordered_clicks" alias="" function="" />
52                 <database-column-list-entry name="" type="string" table="" value="forced_campaign_payment_api" alias="" function="" />
53                 <database-column-list-entry name="reload_list" type="string" table="" value="forced_campaign_reload_lock" alias="" function="" />
54                 <database-column-list-entry name="" type="string" table="" value="forced_campaign_minimum_stay" alias="" function="" />
55                 <database-column-list-entry name="" type="string" table="" value="forced_ads_id" alias="" function="" />
56                 <database-column-list-entry name="member_list" type="string" table="" value="forced_campaign_userid" alias="" function="" />
57                 <database-column-list-entry name="" type="string" table="" value="forced_costs_id" alias="" function="" />
58         </database-column-list>
59         <!--
60         "Filter" call-back functions to call back for piping the fetched data
61         through (can be left empty, no call-back function will be called)
62         //-->
63         <callback-function-list>
64                 <!--
65                 A call-back function list entry
66                 //-->
67                 <callback-function-list-entry name="" type="string" value="bigintval" />
68                 <callback-function-list-entry name="created_list" type="string" value="generateDateTime" />
69                 <callback-function-list-entry name="" type="string" value="bigintval" />
70                 <callback-function-list-entry name="" type="string" value="bigintval" />
71                 <callback-function-list-entry name="reload_list" type="string" value="createTimeSelections" />
72                 <callback-function-list-entry name="" type="string" value="bigintval" />
73                 <callback-function-list-entry name="" type="string" value="bigintval" />
74                 <callback-function-list-entry name="member_list" type="string" value="doTemplateForcedCampaignUseridSelectionBox" />
75         </callback-function-list>
76         <!--
77         Extra parameters (2nd, 3rd, ...) for above call-back functions. If an array
78         is provided, we have more than two parameters to handle over to the
79         call-back function. See function handleExtraValues() for details.
80         //-->
81         <extra-parameter-list>
82                 <!--
83                 A one-dimensional array with some entries
84                 //-->
85                 <extra-parameter-list-entry name="" type="array" value="reload">
86                         <!--
87                         Our 'reload' array
88                         //-->
89                         <extra-parameter-reload-list>
90                                 <!--
91                                 A bool entry in the 'reload' array, all other types are added in a
92                                 similar way.
93                                 //-->
94                                 <extra-parameter-reload-list-entry name="" type="string" value="forced_campaign_reload_lock" />
95                                 <extra-parameter-reload-list-entry name="" type="string" value="Dhms" />
96                         </extra-parameter-reload-list>
97                 </extra-parameter-list-entry>
98                 <extra-parameter-list-entry name="" type="array" value="member">
99                         <!--
100                         Our 'member' array
101                         //-->
102                         <extra-parameter-member-list>
103                                 <!--
104                                 A bool entry in the 'member' array, all other types are added in a
105                                 similar way.
106                                 //-->
107                                 <extra-parameter-member-list-entry name="" type="bool" value="false" />
108                                 <extra-parameter-member-list-entry name="" type="bool" value="true" />
109                                 <extra-parameter-member-list-entry name="" type="bool" value="true" />
110                                 <!--
111                                 The brackets [] are required for addMemberSelectionBox(),
112                                 please read there for details.
113                                 //-->
114                                 <extra-parameter-member-list-entry name="" type="string" value="forced_campaign_userid[]" />
115                         </extra-parameter-member-list>
116                 </extra-parameter-list-entry>
117                 <!--
118                 A one-dimensional array with some entries
119                 //-->
120                 <extra-parameter-list-entry name="" type="array" value="created">
121                         <!--
122                         Our 'created' array
123                         //-->
124                         <extra-parameter-created-list>
125                                 <!--
126                                 A bool entry in the 'created' array, all other types are created in a
127                                 similar way.
128                                 //-->
129                                 <extra-parameter-created-list-entry name="" type="int" value="2" />
130                         </extra-parameter-created-list>
131                 </extra-parameter-list-entry>
132         </extra-parameter-list>
133         <!--
134         Columns for converting single time selections into a timestamp
135         //-->
136         <time-columns-list>
137         </time-columns-list>
138         <!--
139         Wether to 'edit/delete/change' (change) the entries (true) or just read them for displaying (false)
140         //-->
141         <enable-modify-entries name="" type="bool" value="false" />
142         <!--
143         The table column which should be taken for the ids (see first parameter).
144         This' type can again only be 'string' (remember why?).
145         //-->
146         <table-id-column name="" type="string" value="forced_campaign_id" />
147         <!--
148         The table column which should be taken for user ids
149         This' type can again only be 'string' (remember why?).
150         //-->
151         <table-userid-column name="" type="string" value="forced_campaign_userid" />
152         <!--
153         Raw userid column ($key) to skip which is always an invalid (?) entry
154         This' type can again only be 'string' (remember why?).
155         //-->
156         <raw-userid-column-key name="" type="string" value="forced_campaign_userid" />
157 </admin-entry-meta-data>