diff options
| author | fisharebest <fisharebest@gmail.com> | 2010-12-26 15:44:07 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2010-12-26 15:44:07 +0000 |
| commit | 4797a8c4300ce5209a7910561684ca2fc0977a42 (patch) | |
| tree | 00eb2aeef49b6f770e199c6fe49bf37141b24149 /index_edit.php | |
| parent | 4db05917cf365d065f1ef4360cc1055b8716f12b (diff) | |
| download | webtrees-4797a8c4300ce5209a7910561684ca2fc0977a42.tar.gz webtrees-4797a8c4300ce5209a7910561684ca2fc0977a42.tar.bz2 webtrees-4797a8c4300ce5209a7910561684ca2fc0977a42.zip | |
Remove some old / unreachable code
Diffstat (limited to 'index_edit.php')
| -rw-r--r-- | index_edit.php | 63 |
1 files changed, 23 insertions, 40 deletions
diff --git a/index_edit.php b/index_edit.php index 821636d98c..8a4e22e3b4 100644 --- a/index_edit.php +++ b/index_edit.php @@ -164,8 +164,8 @@ if ($action=="configure") { //--> </script> <?php - echo "\n<form name=\"block\" method=\"post\" action=\"index_edit.php?action=configure&ctype={$ctype}&block_id=", $block_id, "\">\n"; - echo "<input type=\"hidden\" name=\"save\" value=\"1\" />\n"; + echo "<form name=\"block\" method=\"post\" action=\"index_edit.php?action=configure&ctype={$ctype}&block_id=", $block_id, "\">"; + echo "<input type=\"hidden\" name=\"save\" value=\"1\" />"; echo "<table border=\"0\" class=\"facts_table ".$TEXT_DIRECTION."\">"; $block->configureBlock($block_id); echo "<tr><td colspan=\"2\" class=\"topbottombar\">"; @@ -262,11 +262,11 @@ if ($action=="configure") { * Load Block Description array for use by jscript */ <?php - echo "var block_descr = new Array();\n"; + echo "var block_descr = new Array();"; foreach ($all_blocks as $block_name=>$block) { - echo "block_descr['$block_name'] = '".str_replace("'", "\\'", $block->getDescription())."';\n"; + echo "block_descr['$block_name'] = '".str_replace("'", "\\'", $block->getDescription())."';"; } - echo "block_descr['advice1'] = '".str_replace("'", "\\'", i18n::translate('Highlight a block name and then click on one of the arrow icons to move that highlighted block in the indicated direction.'))."';\n"; + echo "block_descr['advice1'] = '".str_replace("'", "\\'", i18n::translate('Highlight a block name and then click on one of the arrow icons to move that highlighted block in the indicated direction.'))."';"; ?> @@ -304,11 +304,6 @@ if ($action=="configure") { } //--> </script> - <?php - //--------------------------------Start 1st tab Configuration page - ?> - <div id="configure" class="tab_page center" style="position: absolute; display: block; top: auto; left: auto; z-index: 1; "> - <br /> <form name="config_setup" method="post" action="index_edit.php"> <input type="hidden" name="ctype" value="<?php echo $ctype; ?>" /> <input type="hidden" name="action" value="update" /> @@ -322,16 +317,16 @@ if ($action=="configure") { echo "</td></tr>"; // NOTE: Row 1: Column legends echo "<tr>"; - echo "<td class=\"descriptionbox center vmiddle\" colspan=\"2\">\n"; + echo "<td class=\"descriptionbox center vmiddle\" colspan=\"2\">"; echo "<b>".i18n::translate('Main Section Blocks')."</b>"; - echo "</td>\n"; + echo "</td>"; echo "<td class=\"descriptionbox center vmiddle\" colspan=\"3\">"; echo "<b>".i18n::translate('Available Blocks')."</b>"; - echo "</td>\n"; + echo "</td>"; echo "<td class=\"descriptionbox center vmiddle\" colspan=\"2\">"; echo "<b>".i18n::translate('Right Section Blocks')."</b>"; echo "</td>"; - echo "</tr>\n"; + echo "</tr>"; echo "<tr>"; // NOTE: Row 2 column 1: Up/Down buttons for left (main) block list echo "<td class=\"optionbox width20px center vmiddle\">"; @@ -343,12 +338,12 @@ if ($action=="configure") { echo "</td>"; // NOTE: Row 2 column 2: Left (Main) block list - echo "<td class=\"optionbox\" dir=\"".$TEXT_DIRECTION."\">\n"; - echo "<select multiple=\"multiple\" id=\"main_select\" name=\"main[]\" size=\"10\" onchange=\"show_description('main_select');\">\n"; + echo "<td class=\"optionbox\" dir=\"".$TEXT_DIRECTION."\">"; + echo "<select multiple=\"multiple\" id=\"main_select\" name=\"main[]\" size=\"10\" onchange=\"show_description('main_select');\">"; foreach ($blocks['main'] as $block_id=>$block_name) { - echo "<option value=\"$block_id\">".$all_blocks[$block_name]->getTitle()."</option>\n"; + echo "<option value=\"$block_id\">".$all_blocks[$block_name]->getTitle()."</option>"; } - echo "</select>\n"; + echo "</select>"; echo "</td>"; // NOTE: Row 2 column 3: Left/Right buttons for left (main) block list echo "<td class=\"optionbox width20 vmiddle\">"; @@ -363,11 +358,11 @@ if ($action=="configure") { echo "</td>"; // Row 2 column 4: Middle (Available) block list echo "<td class=\"optionbox\" dir=\"".$TEXT_DIRECTION."\">"; - echo "<select id=\"available_select\" name=\"available[]\" size=\"10\" onchange=\"show_description('available_select');\">\n"; + echo "<select id=\"available_select\" name=\"available[]\" size=\"10\" onchange=\"show_description('available_select');\">"; foreach ($all_blocks as $block_name=>$block) { - echo "<option value=\"$block_name\">".$block->getTitle()."</option>\n"; + echo "<option value=\"$block_name\">".$block->getTitle()."</option>"; } - echo "</select>\n"; + echo "</select>"; echo "</td>"; // NOTE: Row 2 column 5: Left/Right buttons for right block list echo "<td class=\"optionbox width20 vmiddle\">"; @@ -381,11 +376,11 @@ if ($action=="configure") { echo "</td>"; // NOTE: Row 2 column 6: Right block list echo "<td class=\"optionbox\" dir=\"".$TEXT_DIRECTION."\">"; - echo "<select multiple=\"multiple\" id=\"right_select\" name=\"right[]\" size=\"10\" onchange=\"show_description('right_select');\">\n"; + echo "<select multiple=\"multiple\" id=\"right_select\" name=\"right[]\" size=\"10\" onchange=\"show_description('right_select');\">"; foreach ($blocks['side'] as $block_id=>$block_name) { - echo "<option value=\"$block_id\">".$all_blocks[$block_name]->getTitle()."</option>\n"; + echo "<option value=\"$block_id\">".$all_blocks[$block_name]->getTitle()."</option>"; } - echo "</select>\n"; + echo "</select>"; echo "</td>"; // NOTE: Row 2 column 7: Up/Down buttons for right block list echo "<td class=\"optionbox width20 vmiddle\">"; @@ -403,33 +398,21 @@ if ($action=="configure") { echo "<tr><td class=\"topbottombar\" colspan=\"7\">"; if (WT_USER_IS_ADMIN && $ctype=='user') { - echo i18n::translate('Use these blocks as the default block configuration for all users?')."<input type=\"checkbox\" name=\"setdefault\" value=\"1\" /><br /><br />\n"; + echo i18n::translate('Use these blocks as the default block configuration for all users?')."<input type=\"checkbox\" name=\"setdefault\" value=\"1\" /><br /><br />"; } - echo "<input type=\"button\" value=\"".i18n::translate('Reset to Default Blocks')."\" onclick=\"window.location='index_edit.php?ctype=$ctype&action=reset&name=".str_replace("'", "\'", $name)."';\" />\n"; + echo "<input type=\"button\" value=\"".i18n::translate('Reset to Default Blocks')."\" onclick=\"window.location='index_edit.php?ctype=$ctype&action=reset&name=".str_replace("'", "\'", $name)."';\" />"; if ($ctype=='user') { echo help_link('block_default_portal'); } else { echo help_link('block_default_index'); } echo " "; - echo "<input type=\"button\" value=\"".i18n::translate('Save')."\" onclick=\"select_options(); save_form();\" />\n"; + echo "<input type=\"button\" value=\"".i18n::translate('Save')."\" onclick=\"select_options(); save_form();\" />"; echo " "; echo "<input type =\"button\" value=\"".i18n::translate('Cancel')."\" onclick=\"window.close()\" />"; echo "</td></tr></table>"; - echo "</form>\n"; - - // end of 1st tab - echo "</div>\n"; - - //--------------------------------Start 2nd tab Help page - echo "\n\t<div id=\"help\" class=\"tab_page\" style=\"position: absolute; display: none; top: auto; left: auto; z-index: 2; \">\n\t"; - - echo "<br /><center><input type=\"button\" value=\"".i18n::translate('Click here to continue')."\" onclick=\"expand_layer('configure', true); expand_layer('help', false);\" /></center><br /><br />\n"; - echo i18n::translate("Here is a short description of each of the blocks you can place on the Welcome or My Page.<br /><table border='1' align='center'><tr><td class='list_value'><b>Name</b></td><td class='list_value'><b>Description</b></td></tr></table>"); - - // end of 2nd tab - echo "</div>\n"; + echo "</form>"; } echo "</body></html>"; // Yes! Absolutely NOTHING at page bottom, please. |
