|
@@ 381-407 (lines=27) @@
|
| 378 |
|
$this->coalesceArr($_REQUEST, 'typcomment', ''); |
| 379 |
|
|
| 380 |
|
switch ($_REQUEST['stage']) { |
| 381 |
|
case 1: |
| 382 |
|
$this->printTrail('type'); |
| 383 |
|
$this->printTitle($this->lang['strcreatecomptype'], 'pg.type.create'); |
| 384 |
|
$this->printMsg($msg); |
| 385 |
|
|
| 386 |
|
echo '<form action="'.\SUBFOLDER.'/src/views/types" method="post">'.PHP_EOL; |
| 387 |
|
echo '<table>'.PHP_EOL; |
| 388 |
|
echo "\t<tr>\n\t\t<th class=\"data left required\">{$this->lang['strname']}</th>".PHP_EOL; |
| 389 |
|
echo "\t\t<td class=\"data\"><input name=\"name\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
| 390 |
|
htmlspecialchars($_REQUEST['name']), "\" /></td>\n\t</tr>".PHP_EOL; |
| 391 |
|
echo "\t<tr>\n\t\t<th class=\"data left required\">{$this->lang['strnumfields']}</th>".PHP_EOL; |
| 392 |
|
echo "\t\t<td class=\"data\"><input name=\"fields\" size=\"5\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
| 393 |
|
htmlspecialchars($_REQUEST['fields']), "\" /></td>\n\t</tr>".PHP_EOL; |
| 394 |
|
|
| 395 |
|
echo "\t<tr>\n\t\t<th class=\"data left\">{$this->lang['strcomment']}</th>".PHP_EOL; |
| 396 |
|
echo "\t\t<td><textarea name=\"typcomment\" rows=\"3\" cols=\"32\">", |
| 397 |
|
htmlspecialchars($_REQUEST['typcomment']), "</textarea></td>\n\t</tr>".PHP_EOL; |
| 398 |
|
|
| 399 |
|
echo '</table>'.PHP_EOL; |
| 400 |
|
echo '<p><input type="hidden" name="action" value="create_comp" />'.PHP_EOL; |
| 401 |
|
echo '<input type="hidden" name="stage" value="2" />'.PHP_EOL; |
| 402 |
|
echo $this->misc->form; |
| 403 |
|
echo "<input type=\"submit\" value=\"{$this->lang['strnext']}\" />".PHP_EOL; |
| 404 |
|
echo "<input type=\"submit\" name=\"cancel\" value=\"{$this->lang['strcancel']}\" /></p>".PHP_EOL; |
| 405 |
|
echo '</form>'.PHP_EOL; |
| 406 |
|
|
| 407 |
|
break; |
| 408 |
|
case 2: |
| 409 |
|
|
| 410 |
|
// Check inputs |
|
@@ 554-580 (lines=27) @@
|
| 551 |
|
$this->coalesceArr($_REQUEST, 'typcomment', ''); |
| 552 |
|
|
| 553 |
|
switch ($_REQUEST['stage']) { |
| 554 |
|
case 1: |
| 555 |
|
$this->printTrail('type'); |
| 556 |
|
$this->printTitle($this->lang['strcreateenumtype'], 'pg.type.create'); |
| 557 |
|
$this->printMsg($msg); |
| 558 |
|
|
| 559 |
|
echo '<form action="'.\SUBFOLDER.'/src/views/types" method="post">'.PHP_EOL; |
| 560 |
|
echo '<table>'.PHP_EOL; |
| 561 |
|
echo "\t<tr>\n\t\t<th class=\"data left required\">{$this->lang['strname']}</th>".PHP_EOL; |
| 562 |
|
echo "\t\t<td class=\"data\"><input name=\"name\" size=\"32\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
| 563 |
|
htmlspecialchars($_REQUEST['name']), "\" /></td>\n\t</tr>".PHP_EOL; |
| 564 |
|
echo "\t<tr>\n\t\t<th class=\"data left required\">{$this->lang['strnumvalues']}</th>".PHP_EOL; |
| 565 |
|
echo "\t\t<td class=\"data\"><input name=\"values\" size=\"5\" maxlength=\"{$data->_maxNameLen}\" value=\"", |
| 566 |
|
htmlspecialchars($_REQUEST['values']), "\" /></td>\n\t</tr>".PHP_EOL; |
| 567 |
|
|
| 568 |
|
echo "\t<tr>\n\t\t<th class=\"data left\">{$this->lang['strcomment']}</th>".PHP_EOL; |
| 569 |
|
echo "\t\t<td><textarea name=\"typcomment\" rows=\"3\" cols=\"32\">", |
| 570 |
|
htmlspecialchars($_REQUEST['typcomment']), "</textarea></td>\n\t</tr>".PHP_EOL; |
| 571 |
|
|
| 572 |
|
echo '</table>'.PHP_EOL; |
| 573 |
|
echo '<p><input type="hidden" name="action" value="create_enum" />'.PHP_EOL; |
| 574 |
|
echo '<input type="hidden" name="stage" value="2" />'.PHP_EOL; |
| 575 |
|
echo $this->misc->form; |
| 576 |
|
echo "<input type=\"submit\" value=\"{$this->lang['strnext']}\" />".PHP_EOL; |
| 577 |
|
echo "<input type=\"submit\" name=\"cancel\" value=\"{$this->lang['strcancel']}\" /></p>".PHP_EOL; |
| 578 |
|
echo '</form>'.PHP_EOL; |
| 579 |
|
|
| 580 |
|
break; |
| 581 |
|
case 2: |
| 582 |
|
|
| 583 |
|
// Check inputs |