Tons of changes made to the CORE. All scripts has more a less been modified. Primaril...
[Packages/TYPO3.CMS.git] / typo3 / wizard_table.php
1 <?php
2 /***************************************************************
3 * Copyright notice
4 *
5 * (c) 1999-2003 Kasper Skaarhoj (kasper@typo3.com)
6 * All rights reserved
7 *
8 * This script is part of the TYPO3 project. The TYPO3 project is
9 * free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License as published by
11 * the Free Software Foundation; either version 2 of the License, or
12 * (at your option) any later version.
13 *
14 * The GNU General Public License can be found at
15 * http://www.gnu.org/copyleft/gpl.html.
16 * A copy is found in the textfile GPL.txt and important notices to the license
17 * from the author is found in LICENSE.txt distributed with these scripts.
18 *
19 *
20 * This script is distributed in the hope that it will be useful,
21 * but WITHOUT ANY WARRANTY; without even the implied warranty of
22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
23 * GNU General Public License for more details.
24 *
25 * This copyright notice MUST APPEAR in all copies of the script!
26 ***************************************************************/
27 /**
28 * Wizard to help make tables (eg. for tt_content elements) of type "table".
29 * Each line is a table row, each cell divided by a |
30 *
31 * $Id$
32 * Revised for TYPO3 3.6 November/2003 by Kasper Skaarhoj
33 * XHTML compliant
34 *
35 * @author Kasper Skaarhoj <kasper@typo3.com>
36 */
37 /**
38 * [CLASS/FUNCTION INDEX of SCRIPT]
39 *
40 *
41 *
42 * 84: class SC_wizard_table
43 * 112: function init()
44 * 150: function main()
45 * 166: function printContent()
46 * 175: function tableWizard()
47 *
48 * SECTION: Helper functions
49 * 214: function getConfigCode($row)
50 * 280: function getTableHTML($cfgArr,$row)
51 * 429: function changeFunc()
52 * 545: function cfgArray2CfgString($cfgArr)
53 * 576: function cfgString2CfgArray($cfgStr,$cols)
54 *
55 * TOTAL FUNCTIONS: 9
56 * (This index is automatically created/updated by the extension "extdeveval")
57 *
58 */
59
60
61
62 $BACK_PATH='';
63 require ('init.php');
64 require ('template.php');
65 include ('sysext/lang/locallang_wizards.php');
66
67
68
69
70
71
72
73
74
75
76
77 /**
78 * Script Class for rendering the Table Wizard
79 *
80 * @author Kasper Skaarhoj <kasper@typo3.com>
81 * @package TYPO3
82 * @subpackage core
83 */
84 class SC_wizard_table {
85
86 // Internal, dynamic:
87 var $doc; // Document template object
88 var $content; // Content accumulation for the module.
89 var $include_once=array(); // List of files to include.
90 var $inputStyle=0; // True, then <input> fields are shown, not textareas.
91
92
93 // Internal, static:
94 var $xmlStorage=0; // If set, the string version of the content is interpreted/written as XML instead of the original linebased kind. This variable still needs binding to the wizard parameters - but support is ready!
95 var $colsFieldName='cols'; // Name of field in parent record which MAY contain the number of columns for the table - here hardcoded to the value of tt_content. Should be set by TCEform parameters (from P)
96
97
98 // Internal, static: GPvars
99 var $P; // Wizard parameters, coming from TCEforms linking to the wizard.
100 var $TABLECFG; // The array which is constantly submitted by the multidimensional form of this wizard.
101
102
103
104
105
106
107 /**
108 * Initialization of the class
109 *
110 * @return void
111 */
112 function init() {
113 global $BACK_PATH,$HTTP_POST_VARS;
114
115 // GPvars:
116 $this->P = t3lib_div::GPvar('P',1);
117 $this->TABLECFG = t3lib_div::GPvar('TABLE',1);
118
119 // Textareas or input fields:
120 $this->inputStyle=isset($this->TABLECFG['textFields']) ? $this->TABLECFG['textFields'] : 1;
121
122 // Document template object:
123 $this->doc = t3lib_div::makeInstance('mediumDoc');
124 $this->doc->docType = 'xhtml_trans';
125 $this->doc->backPath = $BACK_PATH;
126 $this->doc->JScode=$this->doc->wrapScriptTags('
127 function jumpToUrl(URL,formEl) { //
128 document.location = URL;
129 }
130 ');
131
132 // Setting form tag:
133 list($rUri) = explode('#',t3lib_div::getIndpEnv('REQUEST_URI'));
134 $this->doc->form ='<form action="'.htmlspecialchars($rUri).'" method="post" name="wizardForm">';
135
136 // Start page:
137 $this->content.=$this->doc->startPage('Table');
138
139 // If save command found, include tcemain:
140 if ($HTTP_POST_VARS['savedok_x'] || $HTTP_POST_VARS['saveandclosedok_x']) {
141 $this->include_once[]=PATH_t3lib.'class.t3lib_tcemain.php';
142 }
143 }
144
145 /**
146 * Main function, rendering the table wizard
147 *
148 * @return void
149 */
150 function main() {
151 global $LANG;
152
153 if ($this->P['table'] && $this->P['field'] && $this->P['uid']) {
154 $this->content.=$this->doc->section($LANG->getLL('table_title'),$this->tableWizard(),0,1);
155 } else {
156 $this->content.=$this->doc->section($LANG->getLL('table_title'),'<span class="typo3-red">'.$LANG->getLL('table_noData',1).'</span>',0,1);
157 }
158 $this->content.=$this->doc->endPage();
159 }
160
161 /**
162 * Outputting the accumulated content to screen
163 *
164 * @return void
165 */
166 function printContent() {
167 echo $this->content;
168 }
169
170 /**
171 * Draws the table wizard content
172 *
173 * @return string HTML content for the form.
174 */
175 function tableWizard() {
176
177 // First, check the references by selecting the record:
178 $row=t3lib_BEfunc::getRecord($this->P['table'],$this->P['uid']);
179 if (!is_array($row)) {
180 t3lib_BEfunc::typo3PrintError ('Wizard Error','No reference to record',0);
181 exit;
182 }
183
184 // This will get the content of the form configuration code field to us - possibly cleaned up, saved to database etc. if the form has been submitted in the meantime.
185 $tableCfgArray = $this->getConfigCode($row);
186
187 // Generation of the Table Wizards HTML code:
188 $content = $this->getTableHTML($tableCfgArray,$row);
189
190 // Return content:
191 return $content;
192 }
193
194
195
196
197
198
199
200 /***************************
201 *
202 * Helper functions
203 *
204 ***************************/
205
206 /**
207 * Will get and return the configuration code string
208 * Will also save (and possibly redirect/exit) the content if a save button has been pressed
209 *
210 * @param array Current parent record row
211 * @return array Table config code in an array
212 * @access private
213 */
214 function getConfigCode($row) {
215 global $HTTP_POST_VARS;
216
217 // If some data has been submitted, then construct
218 if (isset($this->TABLECFG['c'])) {
219
220 // Process incoming:
221 $this->changeFunc();
222
223
224 // Convert to string (either line based or XML):
225 if ($this->xmlStorage) {
226 // Convert the input array to XML:
227 $bodyText = t3lib_div::array2xml($this->TABLECFG['c'],'',0,'T3TableWizard');
228
229 // Setting cfgArr directly from the input:
230 $cfgArr = $this->TABLECFG['c'];
231 } else {
232 // Convert the input array to a string of configuration code:
233 $bodyText = $this->cfgArray2CfgString($this->TABLECFG['c']);
234
235 // Create cfgArr from the string based configuration - that way it is cleaned up and any incompatibilities will be removed!
236 $cfgArr = $this->cfgString2CfgArray($bodyText,$row[$this->colsFieldName]);
237 }
238
239 // If a save button has been pressed, then save the new field content:
240 if ($HTTP_POST_VARS['savedok_x'] || $HTTP_POST_VARS['saveandclosedok_x']) {
241
242 // Make TCEmain object:
243 $tce = t3lib_div::makeInstance('t3lib_TCEmain');
244 $tce->stripslashes_values=0;
245
246 // Put content into the data array:
247 $data=array();
248 $data[$this->P['table']][$this->P['uid']][$this->P['field']]=$bodyText;
249
250 // Perform the update:
251 $tce->start($data,array());
252 $tce->process_datamap();
253
254 // If the save/close button was pressed, then redirect the screen:
255 if ($HTTP_POST_VARS['saveandclosedok_x']) {
256 header('Location: '.t3lib_div::locationHeaderUrl($this->P['returnUrl']));
257 exit;
258 }
259 }
260 } else { // If nothing has been submitted, load the $bodyText variable from the selected database row:
261 if ($this->xmlStorage) {
262 $cfgArr = t3lib_div::xml2array($row[$this->P['field']]);
263 } else { // Regular linebased table configuration:
264 $cfgArr = $this->cfgString2CfgArray($row[$this->P['field']],$row[$this->colsFieldName]);
265 }
266 $cfgArr = is_array($cfgArr) ? $cfgArr : array();
267 }
268
269 return $cfgArr;
270 }
271
272 /**
273 * Creates the HTML for the Table Wizard:
274 *
275 * @param array Table config array
276 * @param array Current parent record array
277 * @return string HTML for the table wizard
278 * @access private
279 */
280 function getTableHTML($cfgArr,$row) {
281 global $LANG;
282
283 // Traverse the rows:
284 $tRows=array();
285 $k=0;
286 foreach($cfgArr as $cellArr) {
287 if (is_array($cellArr)) {
288 // Initialize:
289 $cells=array();
290 $a=0;
291
292 // Traverse the columns:
293 foreach($cellArr as $cellContent) {
294 if ($this->inputStyle) {
295 $cells[]='<input type="text"'.$this->doc->formWidth(20).' name="TABLE[c]['.(($k+1)*2).']['.(($a+1)*2).']" value="'.htmlspecialchars($cellContent).'" />';
296 } else {
297 $cellContent=eregi_replace('<br[ ]?[\/]?>',chr(10),$cellContent);
298 $cells[]='<textarea '.$this->doc->formWidth(20).' rows="5" name="TABLE[c]['.(($k+1)*2).']['.(($a+1)*2).']">'.t3lib_div::formatForTextarea($cellContent).'</textarea>';
299 }
300
301 // Increment counter:
302 $a++;
303 }
304
305 // CTRL panel for a table row (move up/down/around):
306 $onClick="document.wizardForm.action+='#ANC_".(($k+1)*2-2)."';";
307 $onClick=' onclick="'.htmlspecialchars($onClick).'"';
308 $ctrl='';
309
310 $brTag=$this->inputStyle?'':'<br />';
311 if ($k!=0) {
312 $ctrl.='<input type="image" name="TABLE[row_up]['.(($k+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/pil2up.gif','').$onClick.' title="'.$LANG->getLL('table_up',1).'" />'.$brTag;
313 } else {
314 $ctrl.='<input type="image" name="TABLE[row_bottom]['.(($k+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/turn_up.gif','').$onClick.' title="'.$LANG->getLL('table_bottom',1).'" />'.$brTag;
315 }
316 $ctrl.='<input type="image" name="TABLE[row_remove]['.(($k+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/garbage.gif','').$onClick.' title="'.$LANG->getLL('table_removeRow',1).'" />'.$brTag;
317
318 if (($k+1)!=count($tLines)) {
319 $ctrl.='<input type="image" name="TABLE[row_down]['.(($k+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/pil2down.gif','').$onClick.' title="'.$LANG->getLL('table_down',1).'" />'.$brTag;
320 } else {
321 $ctrl.='<input type="image" name="TABLE[row_top]['.(($k+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/turn_down.gif','').$onClick.' title="'.$LANG->getLL('table_top',1).'" />'.$brTag;
322 }
323 $ctrl.='<input type="image" name="TABLE[row_add]['.(($k+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/add.gif','').$onClick.' title="'.$LANG->getLL('table_addRow',1).'" />'.$brTag;
324
325 $tRows[]='
326 <tr class="bgColor4">
327 <td class="bgColor5"><a name="ANC_'.(($k+1)*2).'"></a><span class="c-wizButtonsV">'.$ctrl.'</span></td>
328 <td>'.implode('</td>
329 <td>',$cells).'</td>
330 </tr>';
331
332 // Increment counter:
333 $k++;
334 }
335 }
336
337 // CTRL panel for a table column (move left/right/around/delete)
338 $cells=array();
339 $cells[]='';
340 // Finding first row:
341 reset($cfgArr);
342 $firstRow=current($cfgArr);
343 if (is_array($firstRow)) {
344
345 // Init:
346 $a=0;
347 $cols=count($firstRow);
348
349 // Traverse first row:
350 foreach($firstRow as $temp) {
351 $ctrl='';
352 if ($a!=0) {
353 $ctrl.='<input type="image" name="TABLE[col_left]['.(($a+1)*2).']"'.t3lib_iconWorks::skinImg('','gfx/pil2left.gif','').' title="'.$LANG->getLL('table_left',1).'" />';
354 } else {
355 $ctrl.='<input type="image" name="TABLE[col_end]['.(($a+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/turn_left.gif','').' title="'.$LANG->getLL('table_end',1).'" />';
356 }
357 $ctrl.='<input type="image" name="TABLE[col_remove]['.(($a+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/garbage.gif','').' title="'.$LANG->getLL('table_removeColumn',1).'" />';
358 if (($a+1)!=$cols) {
359 $ctrl.='<input type="image" name="TABLE[col_right]['.(($a+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/pil2right.gif','').' title="'.$LANG->getLL('table_right',1).'" />';
360 } else {
361 $ctrl.='<input type="image" name="TABLE[col_start]['.(($a+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/turn_right.gif','').' title="'.$LANG->getLL('table_start',1).'" />';
362 }
363 $ctrl.='<input type="image" name="TABLE[col_add]['.(($a+1)*2).']"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/add.gif','').' title="'.$LANG->getLL('table_addColumn',1).'" />';
364 $cells[]='<span class="c-wizButtonsH">'.$ctrl.'</span>';
365
366 // Incr. counter:
367 $a++;
368 }
369 $tRows[]='
370 <tr class="bgColor5">
371 <td align="center">'.implode('</td>
372 <td align="center">',$cells).'</td>
373 </tr>';
374 }
375
376 // Implode all table rows into a string, wrapped in table tags.
377 $content = '
378
379
380 <!--
381 Table wizard
382 -->
383 <table border="0" cellpadding="0" cellspacing="1" id="typo3-tablewizard">
384 '.implode('',$tRows).'
385 </table>';
386
387 // Add saving buttons in the bottom:
388 $content.= '
389
390 <!--
391 Save buttons:
392 -->
393 <div id="c-saveButtonPanel">';
394 $content.= '<input type="image" class="c-inputButton" name="savedok"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/savedok.gif','').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:rm.saveDoc',1).'" />';
395 $content.= '<input type="image" class="c-inputButton" name="saveandclosedok"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/saveandclosedok.gif','').' title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:rm.saveCloseDoc',1).'" />';
396 $content.= '<a href="#" onclick="'.htmlspecialchars('jumpToUrl(unescape(\''.rawurlencode($this->P['returnUrl']).'\')); return false;').'">'.
397 '<img'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/closedok.gif','width="21" height="16"').' class="c-inputButton" title="'.$LANG->sL('LLL:EXT:lang/locallang_core.php:rm.closeDoc',1).'" alt="" />'.
398 '</a>';
399 $content.= '<input type="image" class="c-inputButton" name="_refresh"'.t3lib_iconWorks::skinImg($this->doc->backPath,'gfx/refresh_n.gif','').' title="'.$LANG->getLL('forms_refresh',1).'" />
400 </div>
401 ';
402
403 // Input type checkbox:
404 $content.= '
405
406 <!--
407 Input mode check box:
408 -->
409 <div id="c-inputMode">
410 '.
411 '<input type="hidden" name="TABLE[textFields]" value="0" />'.
412 '<input type="checkbox" name="TABLE[textFields]" value="1"'.($this->inputStyle?' checked="checked"':'').' /> '.
413 $LANG->getLL('table_smallFields').'
414 </div>
415
416 <br /><br />
417 ';
418
419 // Return content:
420 return $content;
421 }
422
423 /**
424 * Detects if a control button (up/down/around/delete) has been pressed for an item and accordingly it will manipulate the internal TABLECFG array
425 *
426 * @return void
427 * @access private
428 */
429 function changeFunc() {
430 if ($this->TABLECFG['col_remove']) {
431 $kk = key($this->TABLECFG['col_remove']);
432 $cmd='col_remove';
433 } elseif ($this->TABLECFG['col_add']) {
434 $kk = key($this->TABLECFG['col_add']);
435 $cmd='col_add';
436 } elseif ($this->TABLECFG['col_start']) {
437 $kk = key($this->TABLECFG['col_start']);
438 $cmd='col_start';
439 } elseif ($this->TABLECFG['col_end']) {
440 $kk = key($this->TABLECFG['col_end']);
441 $cmd='col_end';
442 } elseif ($this->TABLECFG['col_left']) {
443 $kk = key($this->TABLECFG['col_left']);
444 $cmd='col_left';
445 } elseif ($this->TABLECFG['col_right']) {
446 $kk = key($this->TABLECFG['col_right']);
447 $cmd='col_right';
448 } elseif ($this->TABLECFG['row_remove']) {
449 $kk = key($this->TABLECFG['row_remove']);
450 $cmd='row_remove';
451 } elseif ($this->TABLECFG['row_add']) {
452 $kk = key($this->TABLECFG['row_add']);
453 $cmd='row_add';
454 } elseif ($this->TABLECFG['row_top']) {
455 $kk = key($this->TABLECFG['row_top']);
456 $cmd='row_top';
457 } elseif ($this->TABLECFG['row_bottom']) {
458 $kk = key($this->TABLECFG['row_bottom']);
459 $cmd='row_bottom';
460 } elseif ($this->TABLECFG['row_up']) {
461 $kk = key($this->TABLECFG['row_up']);
462 $cmd='row_up';
463 } elseif ($this->TABLECFG['row_down']) {
464 $kk = key($this->TABLECFG['row_down']);
465 $cmd='row_down';
466 }
467
468 if ($cmd && t3lib_div::testInt($kk)) {
469 if (substr($cmd,0,4)=='row_') {
470 switch($cmd) {
471 case 'row_remove':
472 unset($this->TABLECFG['c'][$kk]);
473 break;
474 case 'row_add':
475 $this->TABLECFG['c'][$kk+1]=array();
476 break;
477 case 'row_top':
478 $this->TABLECFG['c'][1]=$this->TABLECFG['c'][$kk];
479 unset($this->TABLECFG['c'][$kk]);
480 break;
481 case 'row_bottom':
482 $this->TABLECFG['c'][10000000]=$this->TABLECFG['c'][$kk];
483 unset($this->TABLECFG['c'][$kk]);
484 break;
485 case 'row_up':
486 $this->TABLECFG['c'][$kk-3]=$this->TABLECFG['c'][$kk];
487 unset($this->TABLECFG['c'][$kk]);
488 break;
489 case 'row_down':
490 $this->TABLECFG['c'][$kk+3]=$this->TABLECFG['c'][$kk];
491 unset($this->TABLECFG['c'][$kk]);
492 break;
493 }
494 ksort($this->TABLECFG['c']);
495 }
496 if (substr($cmd,0,4)=='col_') {
497 reset($this->TABLECFG['c']);
498 while(list($cAK)=each($this->TABLECFG['c'])) {
499 switch($cmd) {
500 case 'col_remove':
501 unset($this->TABLECFG['c'][$cAK][$kk]);
502 break;
503 case 'col_add':
504 $this->TABLECFG['c'][$cAK][$kk+1]='';
505 break;
506 case 'col_start':
507 $this->TABLECFG['c'][$cAK][1]=$this->TABLECFG['c'][$cAK][$kk];
508 unset($this->TABLECFG['c'][$cAK][$kk]);
509 break;
510 case 'col_end':
511 $this->TABLECFG['c'][$cAK][1000000]=$this->TABLECFG['c'][$cAK][$kk];
512 unset($this->TABLECFG['c'][$cAK][$kk]);
513 break;
514 case 'col_left':
515 $this->TABLECFG['c'][$cAK][$kk-3]=$this->TABLECFG['c'][$cAK][$kk];
516 unset($this->TABLECFG['c'][$cAK][$kk]);
517 break;
518 case 'col_right':
519 $this->TABLECFG['c'][$cAK][$kk+3]=$this->TABLECFG['c'][$cAK][$kk];
520 unset($this->TABLECFG['c'][$cAK][$kk]);
521 break;
522 }
523 ksort($this->TABLECFG['c'][$cAK]);
524 }
525 }
526 }
527
528 // Convert line breaks to <br /> tags:
529 reset($this->TABLECFG['c']);
530 while(list($a)=each($this->TABLECFG['c'])) {
531 reset($this->TABLECFG['c'][$a]);
532 while(list($b)=each($this->TABLECFG['c'][$a])) {
533 $this->TABLECFG['c'][$a][$b] = str_replace(chr(10),'<br />',str_replace(chr(13),'',$this->TABLECFG['c'][$a][$b]));
534 }
535 }
536 }
537
538 /**
539 * Converts the input array to a configuration code string
540 *
541 * @param array Array of table configuration (follows the input structure from the table wizard POST form)
542 * @return string The array converted into a string with line-based configuration.
543 * @see cfgString2CfgArray()
544 */
545 function cfgArray2CfgString($cfgArr) {
546
547 // Initialize:
548 $inLines=array();
549
550 // Traverse the elements of the table wizard and transform the settings into configuration code.
551 reset($this->TABLECFG['c']);
552 while(list($a)=each($this->TABLECFG['c'])) {
553 $thisLine=array();
554 reset($this->TABLECFG['c'][$a]);
555 while(list($b)=each($this->TABLECFG['c'][$a])) {
556 $thisLine[]=str_replace('|','',$this->TABLECFG['c'][$a][$b]);
557 }
558 $inLines[]=implode('|',$thisLine);
559 }
560
561 // Finally, implode the lines into a string:
562 $bodyText = implode(chr(10),$inLines);
563
564 // Return the configuration code:
565 return $bodyText;
566 }
567
568 /**
569 * Converts the input configuration code string into an array
570 *
571 * @param string Configuration code
572 * @param integer Default number of columns
573 * @return array Configuration array
574 * @see cfgArray2CfgString()
575 */
576 function cfgString2CfgArray($cfgStr,$cols) {
577
578 // Explode lines in the configuration code - each line is a table row.
579 $tLines=explode(chr(10),$cfgStr);
580
581 // Setting number of columns
582 if (!$cols && trim($tLines[0])) { // auto...
583 $cols = count(explode('|',$tLines[0]));
584 }
585 $cols=$cols?$cols:4;
586
587 // Traverse the number of table elements:
588 $cfgArr=array();
589 foreach($tLines as $k => $v) {
590
591 // Initialize:
592 $vParts = explode('|',$v);
593
594 // Traverse columns:
595 for ($a=0;$a<$cols;$a++) {
596 $cfgArr[$k][$a]=$vParts[$a];
597 }
598 }
599
600 // Return configuration array:
601 return $cfgArr;
602 }
603 }
604
605 // Include extension?
606 if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/wizard_table.php']) {
607 include_once($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['typo3/wizard_table.php']);
608 }
609
610
611
612
613
614
615
616
617
618
619
620
621 // Make instance:
622 $SOBE = t3lib_div::makeInstance('SC_wizard_table');
623 $SOBE->init();
624
625 // Include files?
626 reset($SOBE->include_once);
627 while(list(,$INC_FILE)=each($SOBE->include_once)) {include_once($INC_FILE);}
628
629 $SOBE->main();
630 $SOBE->printContent();
631 ?>