Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 668 lines (635 sloc) 44.645 kb
a12f6d9 @tumba25 Offline MODX Creator updated for MODX 1.2.4
tumba25 authored
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en" xml:lang="en">
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <link rel="shortcut icon" href="favicon.ico" />
6 <link rel="stylesheet" href="creator.css" type="text/css" />
7 <title>MODX-creator</title>
457e592 @tumba25 Updated jQuery to 1.4.2.
tumba25 authored
8 <script type="text/javascript" src="jquery-1.4.2.min.js"></script>
a12f6d9 @tumba25 Offline MODX Creator updated for MODX 1.2.4
tumba25 authored
9 <script type="text/javascript" src="modx_functions.js"></script>
10 <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
11 </head>
12
13 <body class="mods modx-creator">
14
15 <div id="wrap">
16 <a id="top" name="top" accesskey="t"></a>
17 <form action="./index.php" method="post" id="modxform" enctype="multipart/form-data">
18 <div id="page-header">
19 <span class="side-left"></span>
20 <div class="header" style="position: relative;">
21 <h1>MODX Install File Creator and Text / MODX Convertor</h1>
22 <!-- IF S_ERRORS --><div id="error-div">There were errors. Recheck the fields marked with red.</div><!-- ENDIF -->
23 <!-- IF S_WARNINGS --><div id="warning-div">There were warnings. Recheck the fields marked with yellow.</div><!-- ENDIF -->
24 <div class="panel" style="background: none;">
25 <div>
26 <h3>Upload</h3>
27 <fieldset class="fields2">
28 <strong><label for="upload-file">You can import a MOD text or MODX file.</label></strong><br />
29 <input type="hidden" name="MAX_FILE_SIZE" value="307200" />
30 <input class="inputbox autowidth" type="file" name="upload-file" id="upload-file" accept="text/xml,text/plain" size="60" />
31 <input class="button1" type="submit" name="submit-file" value="Submit" onclick="this.form.target='_self';" />
32
33 <hr class="dashed" />
34 MODX files: <a href="file.php?file=modx.prosilver.en.xsl">Download modx.prosilver.en.xsl</a> &bull;
35 <a href="file.php?file=license.txt">Download GPLv2 license</a>
36 </fieldset>
37 </div>
38 </div>
39
40 </div>
41 <span class="side-right"></span>
42 </div>
43
44 <div id="page-body">
45
46 <div class="panel">
47 <div class="inner"><span class="corners-top"><span></span></span>
48 <h3>About the MOD</h3>
49 <fieldset class="fields2">
50 <!-- begin mod title -->
51 <dl id="title-field"<!-- IF S_ERROR_TITLE --> class="error-dl"<!-- ENDIF -->>
52 <dd id="help-title" class="modx-help" style="display: none;">One title in English is required, but you can use titles in other languages as well.</dd>
53 <dt>
54 <label for="title">Title:*</label>
55 <img class="action-image" src="./images/plus.png" alt="Add title" onclick="add_title();" title="Add title in some other language" />
56 <img class="sign" src="./images/info.png" alt="Info icon" title="One title in English is required, but you can add titles in other languages as well." />
57 </dt>
58 <!-- BEGIN title_row -->
59 <dd id="{title_row.FIELD_ID}">
60 <input class="inputbox medium" type="text" name="title[{title_row.FIELD_ID}][title]"<!-- IF title_row.S_ROW_COUNT == 0 --> id="title"<!-- ENDIF --> size="53" maxlength="255" value="{title_row.VALUE}" />
61 <select name="title[{title_row.FIELD_ID}][lang]">{title_row.LANG}</select>
62 <!-- IF title_row.S_ROW_COUNT > 0 --><img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{title_row.FIELD_ID}').remove()" /><!-- ENDIF -->
63 </dd>
64 <!-- BEGINELSE -->
65 <dd>
66 <input class="inputbox medium" type="text" name="title[title_pre][title]" id="title" size="53" maxlength="255" value="" />
67 <select name="title[title_pre][lang]">{LANG_SELECT}</select>
68 </dd>
69 <!-- END title_row -->
70 </dl>
71 <!-- end mod title -->
72
73 <!-- begin mod description -->
74 <dl id="desc-field"<!-- IF S_ERROR_DESC --> class="error-dl"<!-- ENDIF -->>
75 <dt>
76 <label for="desc">Description:*</label>
77 <img class="action-image" src="./images/plus.png" alt="Add a description" onclick="add_desc();" title="Add a description in another language." />
78 <img class="sign" src="./images/info.png" alt="Info icon" title="One description in English is required. You can add descriptions in other languages as well. This needs to be descriptive; &quot;Install instructions for my MOD&quot; is not enough." />
79 </dt>
80 <!-- BEGIN desc_row -->
81 <dd id="{desc_row.FIELD_ID}">
82 <!-- IF not desc_row.S_FIRST_ROW --><br /><!-- ENDIF -->
83 <textarea class="inputbox right-tools" name="desc[{desc_row.FIELD_ID}][desc]" id="desc_{desc_row.FIELD_ID}_desc" rows="{desc_row.ROWS}">{desc_row.VALUE}</textarea>
84 <div class="right-tools">
85 <!-- IF desc_row.S_ROW_COUNT > 0 -->
86 <img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{desc_row.FIELD_ID}').remove()" /><!-- ENDIF -->
87 <img class="action-image" src="./images/plus.png" alt="Add 4 rows" onclick="document.forms['modxform'].desc_{desc_row.FIELD_ID}_desc.rows+=4" title="Add 4 rows to the textfield" />
88 <img class="action-image" src="./images/del.png" alt="Remove 4 rows" onclick="if(document.forms['modxform'].desc_{desc_row.FIELD_ID}_desc.rows>7){document.forms['modxform'].desc_{desc_row.FIELD_ID}_desc.rows-=4}else{document.forms['modxform'].desc_{desc_row.FIELD_ID}_desc.rows-=(document.forms['modxform'].desc_{desc_row.FIELD_ID}_desc.rows-4)};" title="Remove 4 rows from the textfield" />
89 </div>
90 <select name="desc[{desc_row.FIELD_ID}][lang]">{desc_row.LANG}</select>
91 </dd>
92 <!-- BEGINELSE -->
93 <dd>
94 <textarea class="inputbox right-tools" name="desc[desc_pre][desc]" id="desc" cols="45" rows="5"></textarea>
95 <div class="right-tools">
96 <img class="action-image" src="./images/plus.png" alt="" onclick="document.forms['modxform'].desc.rows+=4" title="Add 4 rows to the textfield" />
97 <img class="action-image" src="./images/del.png" alt="" onclick="if(document.forms['modxform'].desc.rows>7){document.forms['modxform'].desc.rows-=4}else{document.forms['modxform'].desc.rows-=(document.forms['modxform'].desc.rows-4)};" title="Remove 4 rows from the textfield" />
98 </div>
99 <select name="desc[desc_pre][lang]">{LANG_SELECT}</select>
100 </dd>
101 <!-- END desc_row -->
102 </dl>
103 <!-- end mod description -->
104
105 <!-- begin mod version -->
106 <dl<!-- IF S_ERROR_VERSION --> class="error-dl"<!-- ENDIF -->>
107 <dt>
108 <label for="version">MOD version:*</label>
109 <img class="sign" src="./images/info.png" alt="Info icon" title="All versions less than 1.0.0 are development versions." />
110 </dt>
111 <dd><input class="inputbox autowidth" type="text" name="version" id="version" size="10" maxlength="25" value="{MOD_VERSION}" /></dd>
112 </dl>
113 <!-- end mod version -->
114
115 <!-- begin phpBB version -->
116 <dl<!-- IF S_ERROR_TARGET --> class="error-dl"<!-- ELSEIF S_WARNING_TARGET --> class="warning-dl"<!-- ENDIF -->>
117 <dt>
118 <label for="target">phpBB version:*</label>
119 <img class="sign" src="./images/info.png" alt="Info icon" title="Version of phpBB for which the MOD was developed. This should be an exact version, for example 3.0.5." />
120 </dt>
121 <dd>
122 <input class="inputbox autowidth" type="text" name="target" id="target" size="10" maxlength="25" value="{TARGET_VERSION}" />
123 The latest phpBB version is: {PHPBB_LATEST}
124 </dd>
125 </dl>
126 <!-- end phpBB version -->
127
128 <!-- begin Installation level -->
129 <dl<!-- IF S_ERROR_INSTALL_LEVEL --> class="error-dl"<!-- ENDIF -->>
130
131 <dt>
132 <label for="install-level">Installation level:*</label>
133 </dt>
134 <dd>
135 <select name="install-level" id="install-level">
136 <option value="easy"<!-- IF INSTALL_LEVEL == 'easy' --> selected="selected"<!-- ENDIF -->>Easy</option>
137 <option value="intermediate"<!-- IF INSTALL_LEVEL == 'intermediate' --> selected="selected"<!-- ENDIF -->>Intermediate</option>
138 <option value="advanced"<!-- IF INSTALL_LEVEL == 'advanced' --> selected="selected"<!-- ENDIF -->>Advanced</option>
139 </select>
140 </dd>
141 </dl>
142 <!-- end Installation level -->
143
144 <!-- begin Installation time -->
145 <dl<!-- IF S_ERROR_INSTALL_TIME --> class="error-dl"<!-- ENDIF -->>
146 <dt>
147 <label for="install-time">Installation time:*</label>
148 <img class="sign" src="./images/info.png" alt="Info icon" title="Estimated time needed to install this MOD by hand, in minutes." />
149 </dt>
150 <dd><input class="inputbox autowidth" type="text" name="install-time" id="install-time" size="2" maxlength="3" value="{INSTALL_TIME}" />Minutes</dd>
151 </dl>
152 <!-- end Installation time -->
153
154 <!-- begin License -->
155 <dl>
156 <dt>
157 <label for="license">License:*</label>
158 <img class="sign" src="./images/info.png" alt="Info icon" title="The name of the license the MOD is released under, along with a URL to the full text of that license. We recommend submitting under GPL v2. Submitting MODs under GPL v3 is not allowed because phpBB3 is released under GPL v2 only and GPL v3 is not compatible with v2. You are allowed to submit it under some other license under condition that it is compatible with GPL v2. Be sure to change the license within the textbox and include a copy of the license in license.txt." />
159 </dt>
160 <dd><input class="inputbox" id="license" type="text" name="license" size="70" maxlength="255" value="{LICENSE}" /></dd>
161 </dl>
162 <!-- end License -->
163
164 <!-- begin Author notes -->
165 <dl id="notes-field">
166 <dt id="notes">
167 <label for="notes">Author notes:</label>
168 <img class="action-image" src="./images/plus.png" alt="Add" onclick="add_notes();" title="Add author notes" />
169 <img class="sign" src="./images/info.png" alt="Info icon" title="Author notes are optional. You can add any notes in any language you want." />
170 </dt>
171 <!-- BEGIN notes_row -->
172 <dd id="{notes_row.FIELD_ID}">
173 <!-- IF not notes_row.S_FIRST_ROW --><br /><!-- ENDIF -->
174 <textarea class="inputbox right-tools" name="notes[{notes_row.FIELD_ID}][note]" id="notes_{notes_row.FIELD_ID}_note" rows="{notes_row.ROWS}">{notes_row.VALUE}</textarea>
175 <div class="right-tools">
176 <img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{notes_row.FIELD_ID}').remove()" />
177 <img class="action-image" src="./images/plus.png" alt="Enlarge" onclick="document.forms['modxform'].notes_{notes_row.FIELD_ID}_note.rows+=4" title="Add 4 rows to the textfield" />
178 <img class="action-image" src="./images/del.png" alt="Scale" onclick="if(document.forms['modxform'].notes_{notes_row.FIELD_ID}_note.rows>7){document.forms['modxform'].notes_{notes_row.FIELD_ID}_note.rows-=4}else{document.forms['modxform'].notes_{notes_row.FIELD_ID}_note.rows-=(document.forms['modxform'].notes_{notes_row.FIELD_ID}_note.rows-4)};" title="Remove 4 rows from the textfield" />
179 </div>
180 <select name="notes[{notes_row.FIELD_ID}][lang]">{notes_row.LANG}</select>
181 </dd>
182 <!-- BEGINELSE -->
183 <dd id="notes_pre">
184 <textarea class="inputbox right-tools" name="notes[desc_pre][note]" id="notes_desc_pre_note" cols="40" rows="5"></textarea>
185 <div class="right-tools">
186 <img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#notes_pre').remove()" />
187 <img class="action-image" src="./images/plus.png" alt="Enlarge" onclick="document.forms['modxform'].notes_desc_pre_note.rows+=4" title="Add 4 rows to the textfield" />
188 <img class="action-image" src="./images/del.png" alt="Scale" onclick="if(document.forms['modxform'].notes_desc_pre_note.rows>7){document.forms['modxform'].notes_desc_pre_note.rows-=4}else{document.forms['modxform'].notes_desc_pre_note.rows-=(document.forms['modxform'].notes_desc_pre_note.rows-4)};" title="Remove 4 rows from the textfield" />
189 </div>
190 <select name="notes[desc_pre][lang]">{LANG_SELECT}</select>
191 </dd>
192 <!-- END notes_row -->
193 </dl>
194 <!-- end Author notes -->
195 </fieldset>
196 <span class="corners-bottom"><span></span></span></div>
197 </div>
198
199 <div class="panel bg2">
200 <div class="inner"><span class="corners-top"><span></span></span>
201 <!-- begin Author fields -->
202 <h3>About the author(s)</h3>
203 <div id="authors">
204 <!-- BEGIN author_row -->
205 <fieldset class="modx-level1 fields2" id="{author_row.FIELD_ID}_a">
206 <dl>
207 <dt class="author-rows"><label for="author-{author_row.FIELD_ID}-username">Username:*</label></dt>
208 <dd class="author-rows">
209 <input class="inputbox autowidth" type="text" name="author[{author_row.FIELD_ID}][username]" id="author-{author_row.FIELD_ID}-username" size="40" maxlength="255" value="{author_row.USERNAME}" />
210 <!-- IF author_row.S_ROW_COUNT > 0 --><img class="action-image" src="./images/delete.png" alt="" onclick="$('#{author_row.FIELD_ID}_a').remove()" /><!-- ENDIF -->
211 </dd>
212 </dl>
213 <dl>
214 <dt class="author-rows"><label for="author-{author_row.FIELD_ID}-phpbbcom">Not phpBB.com:</label></dt>
215 <dd class="author-rows">
216 <label>
217 <input type="checkbox" name="author[{author_row.FIELD_ID}][phpbbcom]" id="author-{author_row.FIELD_ID}-phpbbcom"<!-- IF author_row.S_PHPBB_COM --> checked="checked"<!-- ENDIF --> />
218 <span style="font-size: 12px;">(Check here if this author is not registered at phpBB.com.)</span>
219 </label>
220 </dd>
221 </dl>
222 <dl>
223 <dt class="author-rows"><label for="author-{author_row.FIELD_ID}-realname">Real name:</label></dt>
224 <dd class="author-rows">
225 <input class="inputbox autowidth" type="text" name="author[{author_row.FIELD_ID}][realname]" id="author-{author_row.FIELD_ID}-realname" size="40" maxlength="255" value="{author_row.REALNAME}" />
226 </dd>
227 </dl>
228 <dl>
229 <dt class="author-rows"><label for="author-{author_row.FIELD_ID}-homepage">www:</label></dt>
230 <dd class="author-rows">
231 <input class="inputbox autowidth" type="text" name="author[{author_row.FIELD_ID}][homepage]" id="author-{author_row.FIELD_ID}-homepage" size="40" maxlength="255" value="{author_row.HOMEPAGE}" />
232 </dd>
233 </dl>
234 <dl>
235 <dt class="author-rows"><label for="author-{author_row.FIELD_ID}-email">E-mail:</label></dt>
236 <dd class="author-rows">
237 <input class="inputbox autowidth" type="text" name="author[{author_row.FIELD_ID}][email]" id="author-{author_row.FIELD_ID}-email" size="40" maxlength="255" value="{author_row.EMAIL}" />
238 </dd>
239 </dl>
240 <div id="{author_row.FIELD_ID}-pre">
241 <!-- BEGIN contrib -->
242 <fieldset class="modx-level1" id="{author_row.contrib.CONTRIB_ID}">
243 <dl>
244 <dt class="author-rows"><label for="author_row.contributor-{author_row.FIELD_ID}-{author_row.contrib.CONTRIB_ID}-status">Status:</label></dt>
245 <dd class="author-rows">
246 <select name="author[{author_row.FIELD_ID}][contributions][{author_row.contrib.CONTRIB_ID}][status]" id="author_row.contributor-{author_row.FIELD_ID}-{author_row.contrib.CONTRIB_ID}-status">
247 <option value="past"<!-- IF author_row.contrib.STATUS == 'past' --> selected="selected"<!-- ENDIF -->>Past</option>
248 <option value="current"<!-- IF author_row.contrib.STATUS != 'past' --> selected="selected"<!-- ENDIF -->>Current</option>
249 </select>
250 <img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{author_row.contrib.CONTRIB_ID}').remove()" />
251 </dd>
252 </dl>
253 <dl>
254 <dt class="author-rows"><label for="contributor-{author_row.FIELD_ID}-{author_row.contrib.CONTRIB_ID}-position">Position:</label></dt>
255 <dd class="author-rows">
256 <input type="text" name="author[{author_row.FIELD_ID}][contributions][{author_row.contrib.CONTRIB_ID}][position]" id="contributor-{author_row.FIELD_ID}-{author_row.contrib.CONTRIB_ID}-position" size="40" maxlength="255" value="{author_row.contrib.POSITION}" />
257 </dd>
258 </dl>
259 <dl>
260 <dt class="author-rows"><label for="contributor-{author_row.FIELD_ID}-{author_row.contrib.CONTRIB_ID}-from">From:</label></dt>
261 <dd class="author-rows">
262 <input type="text" name="author[{author_row.FIELD_ID}][contributions][{author_row.contrib.CONTRIB_ID}][from]" id="contributor-{author_row.FIELD_ID}-{author_row.contrib.CONTRIB_ID}-from" size="40" maxlength="255" value="{author_row.contrib.FROM}" />
263 </dd>
264 </dl>
265 <dl>
266 <dt class="author-rows"><label for="contributor-{author_row.FIELD_ID}-{author_row.contrib.CONTRIB_ID}-to">To:</label></dt>
267 <dd class="author-rows">
268 <input type="text" name="author[{author_row.FIELD_ID}][contributions][{author_row.contrib.CONTRIB_ID}][to]" id="contributor-{author_row.FIELD_ID}-{author_row.contrib.CONTRIB_ID}-to" size="40" maxlength="255" value="{author_row.contrib.TO}" />
269 </dd>
270 </dl>
271 </fieldset>
272 <!-- END contrib -->
273 </div>
274 <input class="button2" type="button" value="Add contribution" onclick="add_contributor('{author_row.FIELD_ID}');" />
275 <!-- IF author_row.S_ROW_COUNT > 0 --><img class="sign" src="./images/info.png" alt="Info icon" title="The contributor fields are optional and every author can have several contributor fields. If you choose to add contributor fields, the only field required is the status. The others are optional." /><!-- ENDIF -->
276 </fieldset>
277 <!-- BEGINELSE -->
278 <fieldset class="modx-level1 fields2">
279 <dl<!-- IF S_ERROR_AUTHOR --> class="error-dl"<!-- ENDIF -->>
280 <dt class="author-rows"><label for="author-afield-username">Username:*</label></dt>
281 <dd class="author-rows">
282 <input class="inputbox autowidth" type="text" name="author[afield][username]" id="author-afield-username" size="40" maxlength="255" value="" />
283 </dd>
284 </dl>
285 <dl>
286 <dt class="author-rows"><label for="author-afield-phpbbcom">Not phpBB.com:</label></dt>
287 <dd class="author-rows">
288 <label><input type="checkbox" name="author[afield][phpbbcom]" id="author-afield-phpbbcom" /><span style="font-size: 12px;">(Check here if this author is not registered at phpBB.com.)</span></label>
289 </dd>
290 </dl>
291 <dl>
292 <dt class="author-rows"><label for="author-afield-realname">Real name:</label></dt>
293 <dd class="author-rows"><input class="inputbox autowidth" type="text" name="author[afield][realname]" id="author-afield-realname" size="40" maxlength="255" value="" /></dd>
294 </dl>
295 <dl>
296 <dt class="author-rows"><label for="author-afield-homepage">Home page:</label></dt>
297 <dd class="author-rows"><input class="inputbox autowidth" type="text" name="author[afield][homepage]" id="author-afield-homepage" size="40" maxlength="255" value="" /></dd>
298 </dl>
299 <dl>
300 <dt class="author-rows"><label for="author-afield-email">E-mail:</label></dt>
301 <dd class="author-rows"><input class="inputbox autowidth" type="text" name="author[afield][email]" id="author-afield-email" size="40" maxlength="255" value="" /></dd>
302 </dl>
303 <div id="afield-pre"></div>
304 <input class="button2" type="button" value="Add contribution" onclick="add_contributor('afield');" />
305 <img class="sign" src="./images/info.png" alt="Info icon" title="The contributor fields are optional and every author can have several contributor fields. If you choose to add contributor fields, the only field required is the status. The others are optional." />
306 </fieldset>
307 <!-- END author_row -->
308 </div>
309 <input class="button2 adjusted-size" type="button" value="Add author" onclick="add_author();" />
310 <img class="sign" src="./images/info.png" alt="Info icon" title="One author is required. The username is required for each author." />
311 <!-- end Author fields -->
312 <span class="corners-bottom"><span></span></span></div>
313 </div>
314
315 <div class="panel">
316 <div class="inner"><span class="corners-top"><span></span></span>
317 <!-- begin History fields -->
318 <h3>History</h3>
319 <div id="history-fields">
320 <!-- BEGIN history_row -->
321 <fieldset class="modx-level1 fields2" id="d{history_row.FIELD_ID}">
322 <dl>
323 <dt class="history-rows"><label for="history-{history_row.FIELD_ID}-version">Version:*</label></dt>
324 <dd class="history-rows">
325 <input name="history[{history_row.FIELD_ID}][version]" id="history-{history_row.FIELD_ID}-version" size="10" maxlength="255" value="{history_row.VERSION}" type="text" />
326 <img class="action-image" src="./images/delete.png" alt="" onclick="$('#d{history_row.FIELD_ID}').remove()" />
327 </dd>
328 </dl>
329 <dl>
330 <dt class="history-rows"><label for="history-{history_row.FIELD_ID}-date">Date:*</label></dt>
331 <dd class="history-rows">
332 <input name="history[{history_row.FIELD_ID}][date]" id="history-{history_row.FIELD_ID}-date" size="20" maxlength="255" value="{history_row.DATE}" type="text" />
333 <span style="font-size: 12px;"> (The date format needs to be YYYY-MM-DD)</span>
334 </dd>
335 </dl>
336 <div id="{history_row.FIELD_ID}">
337
338 <!-- BEGIN changelog -->
339 <hr class="dashed" />
340 <dl id="{history_row.changelog.CHANGE_ID}">
341 <dt class="history-rows">
342 <label for="history-{history_row.FIELD_ID}-changelog-{history_row.changelog.CHANGE_ID}-data">Change:<!-- IF history_row.changelog.S_ROW_COUNT == 0 -->*<!-- ENDIF --></label>
343 </dt>
344 <dd class="history-rows">
345 <input class="inputbox medium" name="history[{history_row.FIELD_ID}][changelog][{history_row.changelog.CHANGE_ID}][change]" id="history-{history_row.FIELD_ID}-changelog-{history_row.changelog.CHANGE_ID}-data" size="80" maxlength="255" value="{history_row.changelog.CHANGE}" type="text" />
346 <span><select name="history[{history_row.FIELD_ID}][changelog][{history_row.changelog.CHANGE_ID}][lang]">{history_row.changelog.LANG}</select></span>
347 <!-- IF history_row.changelog.S_ROW_COUNT > 0 --><img class="action-image" src="./images/delete.png" alt="" onclick="$('#{history_row.changelog.CHANGE_ID}').remove()" /><!-- ENDIF -->
348 </dd>
349 </dl>
350 <!-- END changelog -->
351 </div>
352 <input value="Add change" onclick="add_history_change('{history_row.FIELD_ID}');" type="button" />
353 </fieldset>
354 <!-- END history_row -->
355 </div>
356 <input class="button2 adjusted-size" type="button" value="Add history" onclick="add_history();" />
357 <img class="sign" src="./images/info.png" alt="Info icon" title="You can have as many changelog fields as you want, or none. If you choose to have a changelog, all fields are required. You must have at least one change per changelog entry, but can have as many as you want. The versions will be ordered from oldest to newest or newest to oldest depending on if the checkbox is clicked or not." />
358 <label>Sort history newest version first <input type="checkbox" name="reverse_history" /></label>
359 <!-- end History fields -->
360 <span class="corners-bottom"><span></span></span></div>
361 </div>
362
363 <div class="panel bg2">
364 <div class="inner"><span class="corners-top"><span></span></span>
53ab7f5 @tumba25 The Creator updated for MODX 1.2.5
tumba25 authored
365 <h3>Links, File copy, Delete and SQL</h3>
a12f6d9 @tumba25 Offline MODX Creator updated for MODX 1.2.4
tumba25 authored
366
367 <!-- begin Link fields -->
368 <fieldset class="modx-level1 fields2">
369 <legend class="main-legend">Links</legend>
370 <div id="link-field">
371 <!-- BEGIN link_row -->
372 <fieldset class="modx-level2" id="{link_row.FIELD_ID}">
373 <dl>
374 <dt><label for="links-{link_row.FIELD_ID}-type">Type:*</label></dt>
375 <dd>
376 <select name="links[{link_row.FIELD_ID}][type]" id="links-{link_row.FIELD_ID}-type">
377 <option value="contrib"<!-- IF link_row.TYPE == 'contrib' --> selected="selected"<!-- ENDIF -->>Contrib</option>
378 <option value="dependency"<!-- IF link_row.TYPE == 'dependency' --> selected="selected"<!-- ENDIF -->>Dependency</option>
379 <option value="language"<!-- IF link_row.TYPE == 'language' --> selected="selected"<!-- ENDIF -->>Language</option>
380 <option value="parent"<!-- IF link_row.TYPE == 'parent' --> selected="selected"<!-- ENDIF -->>Parent</option>
381 <option value="template-lang"<!-- IF link_row.TYPE == 'template-lang' --> selected="selected"<!-- ENDIF -->>Template_lang</option>
382 <option value="template"<!-- IF link_row.TYPE == 'template' --> selected="selected"<!-- ENDIF -->>Template</option>
383 <option value="text"<!-- IF link_row.TYPE == 'text' --> selected="selected"<!-- ENDIF -->>Text file</option>
53ab7f5 @tumba25 The Creator updated for MODX 1.2.5
tumba25 authored
384 <option value="uninstall"<!-- IF link_row.TYPE == 'uninstall' --> selected="selected"<!-- ENDIF -->>Uninstall instructions</option>
a12f6d9 @tumba25 Offline MODX Creator updated for MODX 1.2.4
tumba25 authored
385 </select>
386 <img class="action-image" src="./images/delete.png" alt="" onclick="$('#{link_row.FIELD_ID}').remove()" />
387 </dd>
388 </dl>
389 <dl>
390 <dt><label for="links-{link_row.FIELD_ID}-title">Link title:*</label></dt>
391 <dd>
392 <input class="inputbox medium" name="links[{link_row.FIELD_ID}][title]" id="links-{link_row.FIELD_ID}-title" size="80" maxlength="255" value="{link_row.TITLE}" type="text" />
393 <select name="links[{link_row.FIELD_ID}][lang]">{link_row.LANG}</select>
394 </dd>
395 </dl>
396 <dl>
397 <dt><label for="links-{link_row.FIELD_ID}-href">href:*</label></dt>
398 <dd>
399 <input class="inputbox medium" name="links[{link_row.FIELD_ID}][href]" id="links-{link_row.FIELD_ID}-href" size="80" maxlength="255" value="{link_row.HREF}" type="text" />
400 <input name="links[{link_row.FIELD_ID}][realname]" value="{link_row.REALNAME}" type="hidden" />
401 </dd>
402 </dl>
403 </fieldset>
404 <!-- END link_row -->
405 </div>
406 <input class="button2" type="button" value="Add link" onclick="add_link();" />
407 <img class="sign" src="./images/info.png" alt="Info icon" title="Links are optional. You can have one or more of the following link types. Dependency – A MOD that is required before the current MOD can be installed. Parent – Link from a contrib, language, or template back to the parent MODX file. Template – Link to template-specific instructions. Language – Link to instructions for installing a non-English translation. Contrib – Link to a contribution, for example an additional feature or upgrade from an older version. Template-lang – Link to a template and language specific instruction. Text – A text file. PHP install file – A php install file that needs to be run in order to install the MOD. All fields are required." />
408 </fieldset>
409 <!-- end Link fields -->
410
411 <!-- begin File copy -->
412 <fieldset class="modx-level1">
413 <legend class="main-legend">File copy</legend>
414 <div id="copy-field">
415 <!-- IF S_IS_COPY -->
416 <fieldset class="modx-level2 fields2" id="dd-copy">
417 <dl id="dl-copy">
418 <!-- ENDIF -->
419 <!-- BEGIN copy_row -->
420 <!-- IF copy_row.S_ROW_COUNT == 0 -->
421 <dt class="copy-rows">
422 <label>Copy: (from &raquo; to)</label>
423 <img class="action-image" src="./images/plus.png" alt="Add file" title="Add file" onclick="add_file_copy();" title="Add file" /><img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#dd-copy').remove(); document.getElementById('addCopyField').style.display='';" />
424 </dt>
425 <!-- ENDIF -->
426 <dd class="copy-rows" id="{copy_row.FILE_ID}">
427 <input class="inputbox copy-to" name="copy[{copy_row.FILE_ID}][from]" id="copy-{copy_row.FILE_ID}-from" size="85" maxlength="255" value="{copy_row.FROM}" type="text" />
428 &raquo;
429 <input class="inputbox" name="copy[{copy_row.FILE_ID}][to]" size="85" maxlength="255" value="{copy_row.TO}" type="text" /><img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{copy_row.FILE_ID}').remove()" />
430 </dd>
431 <!-- END copy_row -->
432 <!-- IF S_IS_COPY -->
433 </dl>
434 </fieldset>
435 <!-- ENDIF -->
436 </div>
437 <input class="button2" id="addCopyField" type="button" value="Add copy field" onclick="add_copy(); document.getElementById('addCopyField').style.display='none';"<!-- IF S_IS_COPY --> style="display: none;"<!-- ENDIF --> />
438 <img class="sign" src="./images/info.png" alt="Info icon" title="Both from and to fields are required. You can have as many copy fields as you need. The from field must contain the relative path from the current MODX file to the source file. Example: root/survey.php. Can also be a wildcard match using *.* Example: root/*.*. The to field must contain the the relative path from the phpBB root to the destination of the file. Should be an exact filename if an exact file name was given in the from attribute, or a directory name if a wildcard was used." />
439 </fieldset>
440 <!-- end File copy -->
441
53ab7f5 @tumba25 The Creator updated for MODX 1.2.5
tumba25 authored
442 <!-- begin File delete -->
443 <fieldset class="modx-level1">
444 <legend class="main-legend">Delete</legend>
445 <div id="delete-field">
446 <!-- IF S_IS_DELETE -->
447 <fieldset class="modx-level2 fields2" id="dd-delete">
448 <dl id="dl-delete">
449 <!-- ENDIF -->
450 <!-- BEGIN delete_row -->
451 <!-- IF delete_row.S_ROW_COUNT == 0 -->
452 <dt class="copy-rows">
453 <label>Delete:</label>
454 <img class="action-image" src="./images/plus.png" alt="Add file" title="Add file" onclick="add_file_delete();" title="Add file" /><img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#dd-delete').remove(); document.getElementById('addDeleteField').style.display='';" />
455 </dt>
456 <!-- ENDIF -->
457 <dd class="copy-rows" id="{delete_row.FILE_ID}">
458 <input class="inputbox copy-to" name="delete[{delete_row.FILE_ID}]" id="delete-{delete_row.FILE_ID}" size="85" maxlength="255" value="{delete_row.FILE}" type="text" /><img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{delete_row.FILE_ID}').remove()" />
459 </dd>
460 <!-- END delete_row -->
461 <!-- IF S_IS_DELETE -->
462 </dl>
463 </fieldset>
464 <!-- ENDIF -->
465 </div>
466 <input class="button2" id="addDeleteField" type="button" value="Add Delete field" onclick="add_delete(); document.getElementById('addDeleteField').style.display='none';"<!-- IF S_IS_DELETE --> style="display: none;"<!-- ENDIF --> />
2d1de6b @tumba25 Bug #59785
tumba25 authored
467 <img class="sign" src="./images/info.png" alt="Info icon" title="This is aimed for uninstall and update. Both files and directories can be deleted, directories should end with a slash (/)." />
53ab7f5 @tumba25 The Creator updated for MODX 1.2.5
tumba25 authored
468 </fieldset>
469 <!-- end File delete -->
470
a12f6d9 @tumba25 Offline MODX Creator updated for MODX 1.2.4
tumba25 authored
471 <!-- begin SQL querys -->
472 <fieldset class="modx-level1">
473 <legend class="main-legend">SQL</legend>
474 <div id="sql-field">
475 <!-- BEGIN sql_row -->
476 <fieldset class="modx-level2 fields2" id="{sql_row.FIELD_ID}">
477 <dl>
478 <dt class="sql-rows"><label for="sql-{sql_row.FIELD_ID}-dbms">DBMS:</label></dt>
479 <dd class="sql-rows">
480 <select name="sql[{sql_row.FIELD_ID}][dbms]" id="sql-{sql_row.FIELD_ID}-dbms">
481 <option value="mysql_40"<!-- IF sql_row.DBMS == 'mysql_40' --> selected="selected"<!-- ENDIF -->>MySQL 4.0</option>
482 <option value="mysql_41"<!-- IF sql_row.DBMS == 'mysql_41' --> selected="selected"<!-- ENDIF -->>MySQL 4.1</option>
8f22096 @tumba25 Bug #62928 MSSQL has mssaccess as value in the DBMS drop down select.
tumba25 authored
483 <option value="mssql"<!-- IF sql_row.DBMS == 'mssql' --> selected="selected"<!-- ENDIF -->>MSSQL</option>
a12f6d9 @tumba25 Offline MODX Creator updated for MODX 1.2.4
tumba25 authored
484 <option value="oracle"<!-- IF sql_row.DBMS == 'oracle' --> selected="selected"<!-- ENDIF -->>Oracle</option>
485 <option value="postgres"<!-- IF sql_row.DBMS == 'postgres' --> selected="selected"<!-- ENDIF -->>PostgreSQL</option>
486 <option value="firebird"<!-- IF sql_row.DBMS == 'firebird' --> selected="selected"<!-- ENDIF -->>FireBird</option>
487 <option value="sqlite"<!-- IF sql_row.DBMS == 'sqlite' --> selected="selected"<!-- ENDIF -->>SQLite</option>
488 <option value="sql-parser"<!-- IF sql_row.DBMS == 'sql-parser' --> selected="selected"<!-- ENDIF -->>SQL Parser (Default)</option>
489 </select>
490 </dd>
491 </dl>
492 <dl>
493 <dt class="sql-rows"><label for="sql-{sql_row.FIELD_ID}-query">Query:*</label></dt>
494 <dd class="sql-rows">
495 <textarea class="inputbox right-tools" name="sql[{sql_row.FIELD_ID}][query]" id="sql_{sql_row.FIELD_ID}_query" rows="{sql_row.ROWS}">{sql_row.QUERY}</textarea>
496 <div class="right-tools">
497 <img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{sql_row.FIELD_ID}').remove()" />
498 <img class="action-image" src="./images/plus.png" alt="Add rows" onclick="document.forms['modxform'].sql_{sql_row.FIELD_ID}_query.rows+=4" title="Add 4 rows to the textfield" />
499 <img class="action-image" src="./images/del.png" alt="Remove rows" onclick="if(document.forms['modxform'].sql_{sql_row.FIELD_ID}_query.rows>7){document.forms['modxform'].sql_{sql_row.FIELD_ID}_query.rows-=4}else{document.forms['modxform'].sql_{sql_row.FIELD_ID}_query.rows-=(document.forms['modxform'].sql_{sql_row.FIELD_ID}_query.rows-4)};" title="Remove 4 rows from the textfield" />
500 </div>
501 </dd>
502 </dl>
503 </fieldset>
504 <!-- END sql_row -->
505 </div>
506 <input class="button2" type="button" value="Add SQL query" onclick="add_sql();" />
507 <img class="sign" src="./images/info.png" alt="Info icon" title="You can have as many SQL fields as you want. DBMS is the dialect of the query, it defaults to sql-parser and leave it at that if you are not sure it would be set to something else. You can have multiple queries in the same field separated by a line feed." />
508 <!-- end SQL querys -->
509
510 </fieldset>
511 <span class="corners-bottom"><span></span></span></div>
512 </div>
513
514 <div class="panel">
515 <div class="inner"><span class="corners-top"><span></span></span>
516 <h3>File edits</h3>
517 <div id="modx-field">
518 <!-- BEGIN file_row -->
519 <fieldset class="modx-level1 fields2 file-edit" id="{file_row.FILE_ID}">
520 <dl id="{file_row.DT_ID}">
521 <dt><label>File to open:</label><img class="sign" src="./images/info.png" alt="Info icon" title="Relative path from the phpBB root for the file to open. For example, viewforum.php or includes/functions.php" /></dt>
522 <dd>
523 <input class="inputbox medium" name="modx[{file_row.FILE_ID}][file]" size="88" value="{file_row.FILE}" type="text"><img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{file_row.FILE_ID}').remove()" title="Remove this file" />
524 </dd>
525 </dl>
526 <hr />
527 <br />
528 <!-- BEGIN edit -->
529 <fieldset class="modx-level2" id="{file_row.edit.EDIT_ID}">
530 <legend class="sub-legend">
531 Edit
532 <img class="sign" src="./images/info.png" alt="Info icon" title="Every discreet change to a file must be wrapped in its own edit tag, regardless of the number of children it contains. All finds within an edit tag should be processed before any action tag." />
533 <img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{file_row.edit.EDIT_ID}').remove()" />
534 <button type="button" class="button1" onclick="modx_add_field('modx[{file_row.FILE_ID}]', '{file_row.edit.EDIT_ID}', 'edit', 'above', 1)">Add edit above</button>
535 <button type="button" class="button1" onclick="modx_add_field('modx[{file_row.FILE_ID}]', '{file_row.edit.EDIT_ID}', 'edit', 'below', 1)">Add edit below</button>
536 <strong>Each FIND typically requires to start a new EDIT</strong>
537 </legend>
538 <p style="font-size: 1em;">NOTE: Each discreet change to a file must be wrapped in its own edit tag.</p>
539 <!-- BEGIN action -->
540 <dl id="{file_row.edit.action.DL_ID}">
541 <dt id="{file_row.edit.action.DT_ID}">
542 <label>Type: </label>
543 <select class="krav" name="modx[{file_row.FILE_ID}][{file_row.edit.EDIT_ID}][{file_row.edit.action.DL_ID}][type]" onchange="if(this.options[this.selectedIndex].value != '-'){ get_select_change(this.options[this.selectedIndex].value, '{file_row.edit.action.DT_ID}', '{file_row.edit.action.DD_ID}', 'modx[{file_row.FILE_ID}][{file_row.edit.EDIT_ID}][{file_row.edit.action.DL_ID}]', '{file_row.edit.action.DL_ID}') }">
457e592 @tumba25 Updated jQuery to 1.4.2.
tumba25 authored
544 <option value="-"<!-- IF file_row.edit.action.TYPE == '-' --> selected="selected"<!-- ENDIF -->>Select type</option>
a12f6d9 @tumba25 Offline MODX Creator updated for MODX 1.2.4
tumba25 authored
545 <option value="comment"<!-- IF file_row.edit.action.TYPE == 'comment' --> selected="selected"<!-- ENDIF -->>Comment</option>
546 <option value="find"<!-- IF file_row.edit.action.TYPE == 'find' --> selected="selected"<!-- ENDIF -->>Find</option>
547 <option value="after-add"<!-- IF file_row.edit.action.TYPE == 'after-add' --> selected="selected"<!-- ENDIF -->>After add</option>
548 <option value="before-add"<!-- IF file_row.edit.action.TYPE == 'before-add' --> selected="selected"<!-- ENDIF -->>Before add</option>
549 <option value="replace-with"<!-- IF file_row.edit.action.TYPE == 'replace-with' --> selected="selected"<!-- ENDIF -->>Replace with</option>
550 <option value="operation"<!-- IF file_row.edit.action.TYPE == 'operation' --> selected="selected"<!-- ENDIF -->>Operation</option>
53ab7f5 @tumba25 The Creator updated for MODX 1.2.5
tumba25 authored
551 <option value="remove"<!-- IF file_row.edit.action.TYPE == 'remove' --> selected="selected"<!-- ENDIF -->>Remove</option>
a12f6d9 @tumba25 Offline MODX Creator updated for MODX 1.2.4
tumba25 authored
552 <option value="inline-find"<!-- IF file_row.edit.action.TYPE == 'inline-find' --> selected="selected"<!-- ENDIF -->>Inline find</option>
553 <option value="inline-after-add"<!-- IF file_row.edit.action.TYPE == 'inline-after-add' --> selected="selected"<!-- ENDIF -->>Inline after add</option>
554 <option value="inline-before-add"<!-- IF file_row.edit.action.TYPE == 'inline-before-add' --> selected="selected"<!-- ENDIF -->>Inline before add</option>
555 <option value="inline-replace-with"<!-- IF file_row.edit.action.TYPE == 'inline-replace-with' --> selected="selected"<!-- ENDIF -->>Inline replace with</option>
556 <option value="inline-operation"<!-- IF file_row.edit.action.TYPE == 'inline-operation' --> selected="selected"<!-- ENDIF -->>Inline operation</option>
53ab7f5 @tumba25 The Creator updated for MODX 1.2.5
tumba25 authored
557 <option value="inline-remove"<!-- IF file_row.edit.action.TYPE == 'inline-remove' --> selected="selected"<!-- ENDIF -->>Inline remove</option>
a12f6d9 @tumba25 Offline MODX Creator updated for MODX 1.2.4
tumba25 authored
558 </select>
559
560 <div id="{file_row.edit.action.DT_ID}_options" style="margin-top: 5px;">
561 <img class="action-image" src="./images/plus_up.png" alt="Add field above" onclick="modx_add_field('modx[{file_row.FILE_ID}][{file_row.edit.EDIT_ID}]', '{file_row.edit.action.DL_ID}', 'dl', 'above')" title="Add an action field above this field" />
562 <img id="{file_row.edit.action.DT_ID}_plus" class="action-image" src="./images/plus_down.png" alt="Add field below" onclick="modx_add_field('modx[{file_row.FILE_ID}][{file_row.edit.EDIT_ID}]', '{file_row.edit.action.DL_ID}', 'dl', 'below')" title="Add an action field below this field" />
563 {file_row.edit.action.MODX_IMG}
564 </div>
565 </dt>
566 <dd id="{file_row.edit.action.DD_ID}">
567 {file_row.edit.action.MODX_INPUT}
568 <!-- IF file_row.edit.action.S_TEXTAREA -->
569 <div class="right-tools" id="{file_row.edit.action.DD_ID}_toolbox">
570 <img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{file_row.edit.action.DL_ID}').remove()" />
571 <img id="{file_row.edit.action.DD_ID}-plus" class="action-image" src="./images/plus.png" alt="Make larger" onclick="document.forms['modxform'].{file_row.edit.action.DD_ID}_data.rows+=4" title="Add 4 rows to the textfield" />
572 <img id="{file_row.edit.action.DD_ID}-minus" class="action-image" src="./images/del.png" alt="Make smaller" onclick="if(document.forms['modxform'].{file_row.edit.action.DD_ID}_data.rows>7){document.forms['modxform'].{file_row.edit.action.DD_ID}_data.rows-=4}else{document.forms['modxform'].{file_row.edit.action.DD_ID}_data.rows-=(document.forms['modxform'].{file_row.edit.action.DD_ID}_data.rows-4)};" title="Remove 4 rows from the textfield" />
573 </div>
574 <!-- ELSE --><img id="{file_row.edit.action.DD_ID}_delete_tool" class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{file_row.edit.action.DL_ID}').remove()" />
575 <!-- ENDIF -->
576 {file_row.edit.action.MODX_SELECT}
577 </dd>
578 </dl>
579 <!-- END action -->
580 </fieldset>
581 <br />
582 <!-- END edit -->
583 </fieldset>
584 <!-- END file_row -->
585 </div>
586 <input class="button2 adjusted-size" type="button" value="Add file" onclick="act_file();" />
587 <img class="sign" src="./images/info.png" alt="Info icon" title="Files will be ordered alphabetically within their directories (files first)." />
588
589 <!-- end the damage -->
590 <span class="corners-bottom"><span></span></span></div>
591 </div>
592
593 <div class="panel bg2">
594 <div class="inner"><span class="corners-top"><span></span></span>
53ab7f5 @tumba25 The Creator updated for MODX 1.2.5
tumba25 authored
595 <!-- begin PHP-installer -->
596 <h3>PHP install file</h3>
597 <fieldset class="fields2">
598 <dl>
599 <dt>
600 <label for="php-installer">A php file that needs to be run in order to complete the installation.</label>
601 <img class="sign" src="./images/info.png" alt="Info icon" title="This should be the path from the forum root." />
602 </dt>
603 <dd><input class="inputbox" id="php-installer" type="text" name="php-installer" size="70" maxlength="255" value="{PHP_INSTALLER}" /></dd>
604 </dl>
605 </fieldset>
606 <!-- end PHP-installer -->
607 <span class="corners-bottom"><span></span></span></div>
608 </div>
609
610 <div class="panel bg2">
611 <div class="inner"><span class="corners-top"><span></span></span>
a12f6d9 @tumba25 Offline MODX Creator updated for MODX 1.2.4
tumba25 authored
612 <!-- begin DIY -->
613 <h3>DIY instructions</h3>
614 <fieldset class="fields2">
615 <!-- Do It Yourseld -->
616 <dl id="diy-field">
617 <dt>
618 <img class="action-image" src="./images/plus.png" alt="Add DIY" onclick="add_diy();" title="Add DIY field" />
619 <img class="sign" src="./images/info.png" alt="Info icon" title="You can have multiple DIY fields or none Do It Yourself Instructions, or instructions that cannot be described accurately using the other MODX commands." />
620 </dt>
621 <!-- BEGIN diy_row -->
622 <dd id="{diy_row.FIELD_ID}">
623 <!-- IF not diy_row.S_FIRST_ROW --><br /><!-- ENDIF -->
624 <textarea class="inputbox right-tools" name="diy[{diy_row.FIELD_ID}][diy]" id="diy_{diy_row.FIELD_ID}_diy" rows="{diy_row.ROWS}">{diy_row.DIY}</textarea>
625 <div class="right-tools">
626 <img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#{diy_row.FIELD_ID}').remove()" />
627 <img id="{diy_row.FIELD_ID}-plus" class="action-image" src="./images/plus.png" alt="Make bigger" onclick="document.forms['modxform'].diy_{diy_row.FIELD_ID}_diy.rows+=4" title="Add 4 rows to the textfield" />
628 <img id="{diy_row.FIELD_ID}-minus" class="action-image" src="./images/del.png" alt="Make smaller" onclick="if(document.forms['modxform'].diy_{diy_row.FIELD_ID}_diy.rows>7){document.forms['modxform'].diy_{diy_row.FIELD_ID}_diy.rows-=4}else{document.forms['modxform'].diy_{diy_row.FIELD_ID}_diy.rows-=(document.forms['modxform'].diy_{diy_row.FIELD_ID}_diy.rows-4)};" title="Remove 4 rows from the textfield" />
629 </div>
630 <select name="diy[{diy_row.FIELD_ID}][lang]">{diy_row.LANG}</select>
631 </dd>
632 <!-- BEGINELSE -->
633 <dd id="diy_0">
634 <textarea class="inputbox right-tools" name="diy[desc_pre][diy]" id="diy_01" cols="20" rows="5"></textarea>
635 <div class="right-tools">
636 <img class="action-image" src="./images/delete.png" alt="Delete" onclick="$('#diy_0').remove()" />
637 <img id="diy0-plus" class="action-image" src="./images/plus.png" alt="Make bigger" onclick="document.forms['modxform'].diy_01.rows+=4" title="Add 4 rows to the textfield" />
638 <img id="diy0-minus" class="action-image" src="./images/del.png" alt="Make smaller" onclick="if(document.forms['modxform'].diy_01.rows>7){document.forms['modxform'].diy_01.rows-=4}else{document.forms['modxform'].diy_01.rows-=(document.forms['modxform'].diy_01.rows-4)};" title="Remove 4 rows from the textfield" />
639 </div>
640 <select name="diy[desc_pre][lang]">{LANG_SELECT}</select>
641 </dd>
642 <!-- END diy_row -->
643 </dl>
644 </fieldset>
645 <!-- end DIY -->
646 <span class="corners-bottom"><span></span></span></div>
647 </div>
648
649 </div>
650 <div id="page-footer">
651
652 <fieldset class="submit-buttons">
653
654 <!-- BEGIN meta_row -->
655 <input type="hidden" name="meta[{meta_row.FIELD_ID}][name]" value="{meta_row.NAME}" />
656 <input type="hidden" name="meta[{meta_row.FIELD_ID}][content]" value="{meta_row.CONTENT}" />
657 <!-- END meta_row -->
658
659 <input class="button1" type="submit" name="preview" value="View" onclick="this.form.target='_blank';" />&nbsp;
660 <input class="button1" type="submit" name="dload" value="Download" onclick="this.form.target='_self';" />
661 </fieldset>
662 </form>
663
664 <span class="fcorners-bottom"><span></span></span>
665 </div>
666 </div>
667 </body>
668 </html>
Something went wrong with that request. Please try again.