diff options
| author | Greg Roach <fisharebest@gmail.com> | 2015-01-19 10:17:29 +0000 |
|---|---|---|
| committer | Greg Roach <fisharebest@gmail.com> | 2015-01-19 10:17:29 +0000 |
| commit | 2533c395c454dc5cc367cafcaff986803af52f69 (patch) | |
| tree | d9629c9759419e30c780ed377a3ccf1a876222c1 /modules_v3 | |
| parent | f8cae3a24990cc76980ce84b0334fa73b7d366af (diff) | |
| download | webtrees-2533c395c454dc5cc367cafcaff986803af52f69.tar.gz webtrees-2533c395c454dc5cc367cafcaff986803af52f69.tar.bz2 webtrees-2533c395c454dc5cc367cafcaff986803af52f69.zip | |
HTML5
Diffstat (limited to 'modules_v3')
| -rw-r--r-- | modules_v3/GEDFact_assistant/_CENS/census_1_ctrl.php | 2 | ||||
| -rw-r--r-- | modules_v3/batch_update/plugins/search_replace.php | 2 | ||||
| -rw-r--r-- | modules_v3/clippings/module.php | 12 | ||||
| -rw-r--r-- | modules_v3/gedcom_favorites/module.php | 6 | ||||
| -rw-r--r-- | modules_v3/gedcom_stats/module.php | 194 | ||||
| -rw-r--r-- | modules_v3/googlemap/module.php | 21 | ||||
| -rw-r--r-- | modules_v3/notes/module.php | 2 | ||||
| -rw-r--r-- | modules_v3/personal_facts/module.php | 12 | ||||
| -rw-r--r-- | modules_v3/sitemap/module.php | 4 |
9 files changed, 150 insertions, 105 deletions
diff --git a/modules_v3/GEDFact_assistant/_CENS/census_1_ctrl.php b/modules_v3/GEDFact_assistant/_CENS/census_1_ctrl.php index 56ad801b97..b28d9a34af 100644 --- a/modules_v3/GEDFact_assistant/_CENS/census_1_ctrl.php +++ b/modules_v3/GEDFact_assistant/_CENS/census_1_ctrl.php @@ -97,7 +97,7 @@ echo '</div>'; </div> <div class="cens_textinput_right"> <?php echo WT_I18N::translate('Add'); ?> - <input type="radio" name="totallyrad" value="0" checked="checked"> + <input type="radio" name="totallyrad" value="0" checked> </div> <?php //-- Census Add Rows Area ========================================================= diff --git a/modules_v3/batch_update/plugins/search_replace.php b/modules_v3/batch_update/plugins/search_replace.php index d02296682f..72db2f79d1 100644 --- a/modules_v3/batch_update/plugins/search_replace.php +++ b/modules_v3/batch_update/plugins/search_replace.php @@ -144,7 +144,7 @@ class search_replace_bu_plugin extends base_plugin { '</select><br><em>' . $descriptions[$this->method] . '</em>' . $this->error . '</td></tr>' . '<tr><th>' . WT_I18N::translate('Case insensitive') . '</th>' . '<td>' . - '<input type="checkbox" name="case" value="i" ' . ($this->case == 'i' ? 'checked="checked"' : '') . '" onchange="this.form.submit();">' . + '<input type="checkbox" name="case" value="i" ' . ($this->case == 'i' ? 'checked' : '') . '" onchange="this.form.submit();">' . '<br><em>' . WT_I18N::translate('Tick this box to match both upper and lower case letters.') . '</em></td></tr>' . parent::getOptionsForm(); } diff --git a/modules_v3/clippings/module.php b/modules_v3/clippings/module.php index e944c645a1..04eb35682c 100644 --- a/modules_v3/clippings/module.php +++ b/modules_v3/clippings/module.php @@ -189,7 +189,7 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module <?php if (WT_USER_GEDCOM_ADMIN) { ?> <tr><td class="descriptionbox width50 wrap"><?php echo WT_I18N::translate('Apply privacy settings?'), help_link('apply_privacy'); ?></td> <td class="optionbox"> - <input type="radio" name="privatize_export" value="none" checked="checked"> <?php echo WT_I18N::translate('None'); ?><br> + <input type="radio" name="privatize_export" value="none" checked> <?php echo WT_I18N::translate('None'); ?><br> <input type="radio" name="privatize_export" value="gedadmin"> <?php echo WT_I18N::translate('Manager'); ?><br> <input type="radio" name="privatize_export" value="user"> <?php echo WT_I18N::translate('Member'); ?><br> <input type="radio" name="privatize_export" value="visitor"> <?php echo WT_I18N::translate('Visitor'); ?> @@ -197,7 +197,7 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module <?php } elseif (WT_USER_CAN_ACCESS) { ?> <tr><td class="descriptionbox width50 wrap"><?php echo WT_I18N::translate('Apply privacy settings?'), help_link('apply_privacy'); ?></td> <td class="optionbox"> - <input type="radio" name="privatize_export" value="user" checked="checked"> <?php echo WT_I18N::translate('Member'); ?><br> + <input type="radio" name="privatize_export" value="user" checked> <?php echo WT_I18N::translate('Member'); ?><br> <input type="radio" name="privatize_export" value="visitor"> <?php echo WT_I18N::translate('Visitor'); ?> </td></tr> <?php } ?> @@ -570,17 +570,17 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module <table> <tr><td colspan="2" class="topbottombar"><h2>'.WT_I18N::translate('Download') . '</h2></td></tr> <tr><td class="descriptionbox width50 wrap">'.WT_I18N::translate('Zip file(s)') . help_link('zip') . '</td> - <td class="optionbox"><input type="checkbox" name="Zip" value="yes" checked="checked"></td></tr> + <td class="optionbox"><input type="checkbox" name="Zip" value="yes" checked></td></tr> <tr><td class="descriptionbox width50 wrap">'.WT_I18N::translate('Include media (automatically zips files)') . help_link('include_media') . '</td> - <td class="optionbox"><input type="checkbox" name="IncludeMedia" value="yes" checked="checked"></td></tr> + <td class="optionbox"><input type="checkbox" name="IncludeMedia" value="yes" checked></td></tr> '; if (WT_USER_GEDCOM_ADMIN) { $out .= '<tr><td class="descriptionbox width50 wrap">' . WT_I18N::translate('Apply privacy settings?') . help_link('apply_privacy') . '</td>' . '<td class="optionbox">' . - ' <input type="radio" name="privatize_export" value="none" checked="checked"> ' . WT_I18N::translate('None') . '<br>' . + ' <input type="radio" name="privatize_export" value="none" checked> ' . WT_I18N::translate('None') . '<br>' . ' <input type="radio" name="privatize_export" value="gedadmin"> ' . WT_I18N::translate('Manager') . '<br>' . ' <input type="radio" name="privatize_export" value="user"> ' . WT_I18N::translate('Member') . '<br>' . ' <input type="radio" name="privatize_export" value="visitor"> ' . WT_I18N::translate('Visitor') . @@ -589,7 +589,7 @@ class clippings_WT_Module extends WT_Module implements WT_Module_Menu, WT_Module $out .= '<tr><td class="descriptionbox width50 wrap">' . WT_I18N::translate('Apply privacy settings?') . help_link('apply_privacy') . '</td>' . '<td class="list_value">' . - ' <input type="radio" name="privatize_export" value="user" checked="checked"> ' . WT_I18N::translate('Member') . '<br>' . + ' <input type="radio" name="privatize_export" value="user" checked> ' . WT_I18N::translate('Member') . '<br>' . ' <input type="radio" name="privatize_export" value="visitor"> ' . WT_I18N::translate('Visitor') . '</td></tr>'; } diff --git a/modules_v3/gedcom_favorites/module.php b/modules_v3/gedcom_favorites/module.php index d26879cd7b..b556809995 100644 --- a/modules_v3/gedcom_favorites/module.php +++ b/modules_v3/gedcom_favorites/module.php @@ -180,7 +180,7 @@ class gedcom_favorites_WT_Module extends WT_Module implements WT_Module_Block { $content .= '<input type="hidden" name="ctype" value="' . $ctype . '">'; $content .= '<input type="hidden" name="ged" value="' . WT_GEDCOM . '">'; $content .= '<div class="add_fav_ref">'; - $content .= '<input type="radio" name="fav_category" value="record" checked="checked" onclick="jQuery(\'#gid' . $uniqueID . '\').removeAttr(\'disabled\'); jQuery(\'#url, #favtitle\').attr(\'disabled\',\'disabled\').val(\'\');">'; + $content .= '<input type="radio" name="fav_category" value="record" checked onclick="jQuery(\'#gid' . $uniqueID . '\').removeAttr(\'disabled\'); jQuery(\'#url, #favtitle\').attr(\'disabled\',\'disabled\').val(\'\');">'; $content .= '<label for="gid' . $uniqueID . '">' . WT_I18N::translate('Enter an individual, family, or source ID') . '</label>'; $content .= '<input class="pedigree_form" data-autocomplete-type="IFSRO" type="text" name="gid" id="gid' . $uniqueID . '" size="5" value="">'; $content .= ' ' . print_findindi_link('gid' . $uniqueID); @@ -192,8 +192,8 @@ class gedcom_favorites_WT_Module extends WT_Module implements WT_Module_Block { $content .= '</div>'; $content .= '<div class="add_fav_url">'; $content .= '<input type="radio" name="fav_category" value="url" onclick="jQuery(\'#url, #favtitle\').removeAttr(\'disabled\'); jQuery(\'#gid' . $uniqueID . '\').attr(\'disabled\',\'disabled\').val(\'\');">'; - $content .= '<input type="text" name="url" id="url" size="20" value="" placeholder="' . WT_Gedcom_Tag::getLabel('URL') . '" disabled="disabled"> '; - $content .= '<input type="text" name="favtitle" id="favtitle" size="20" value="" placeholder="' . WT_I18N::translate('Title') . '" disabled="disabled">'; + $content .= '<input type="text" name="url" id="url" size="20" value="" placeholder="' . WT_Gedcom_Tag::getLabel('URL') . '" disabled> '; + $content .= '<input type="text" name="favtitle" id="favtitle" size="20" value="" placeholder="' . WT_I18N::translate('Title') . '" disabled>'; $content .= '<p>' . WT_I18N::translate('Enter an optional note about this favorite') . '</p>'; $content .= '<textarea name="favnote" rows="6" cols="50"></textarea>'; $content .= '</div>'; diff --git a/modules_v3/gedcom_stats/module.php b/modules_v3/gedcom_stats/module.php index a615fb56fa..13db65aff8 100644 --- a/modules_v3/gedcom_stats/module.php +++ b/modules_v3/gedcom_stats/module.php @@ -289,76 +289,130 @@ class gedcom_stats_WT_Module extends WT_Module implements WT_Module_Block { <td class="descriptionbox wrap width33"><?php echo WT_I18N::translate('Select the stats to show in this block'); ?></td> <td class="optionbox"> <table> - <tr> - <td><input type="checkbox" value="yes" name="stat_indi" - <?php if ($stat_indi) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Individuals'); ?></td> - <td><input type="checkbox" value="yes" name="stat_first_birth" - <?php if ($stat_first_birth) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Earliest birth year'); ?></td> - </tr> - <tr> - <td><input type="checkbox" value="yes" name="stat_surname" - <?php if ($stat_surname) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Total surnames'); ?></td> - <td><input type="checkbox" value="yes" name="stat_last_birth" - <?php if ($stat_last_birth) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Latest birth year'); ?></td> - </tr> - <tr> - <td><input type="checkbox" value="yes" name="stat_fam" - <?php if ($stat_fam) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Families'); ?></td> - <td><input type="checkbox" value="yes" name="stat_first_death" - <?php if ($stat_first_death) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Earliest death year'); ?></td> - </tr> - <tr> - <td><input type="checkbox" value="yes" name="stat_sour" - <?php if ($stat_sour) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Sources'); ?></td> - <td><input type="checkbox" value="yes" name="stat_last_death" - <?php if ($stat_last_death) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Latest death year'); ?></td> - </tr> - <tr> - <td><input type="checkbox" value="yes" name="stat_media" - <?php if ($stat_media) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Media objects'); ?></td> - <td><input type="checkbox" value="yes" name="stat_long_life" - <?php if ($stat_long_life) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Individual who lived the longest'); ?></td> - </tr> - <tr> - <td><input type="checkbox" value="yes" name="stat_repo" - <?php if ($stat_repo) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Repositories'); ?></td> - <td><input type="checkbox" value="yes" name="stat_avg_life" - <?php if ($stat_avg_life) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Average age at death'); ?></td> - </tr> - <tr> - <td><input type="checkbox" value="yes" name="stat_other" - <?php if ($stat_other) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Other records'); ?></td> - <td><input type="checkbox" value="yes" name="stat_most_chil" - <?php if ($stat_most_chil) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Family with the most children'); ?></td> - </tr> - <tr> - <td><input type="checkbox" value="yes" name="stat_events" - <?php if ($stat_events) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Total events'); ?></td> - <td><input type="checkbox" value="yes" name="stat_avg_chil" - <?php if ($stat_avg_chil) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Average number of children per family'); ?></td> - </tr> - <tr> - <td><input type="checkbox" value="yes" name="stat_users" - <?php if ($stat_users) echo ' checked="checked"'; ?>> - <?php echo WT_I18N::translate('Total users'); ?></td> - <td></td> - </tr> + <tbody> + <tr> + <td> + <label> + <input type="checkbox" value="yes" name="stat_indi" <?php echo $stat_indi ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Individuals'); ?> + </label> + </td> + <td> + <label> + <input type="checkbox" value="yes" name="stat_first_birth" <?php echo $stat_first_birth ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Earliest birth year'); ?> + </label> + </td> + </tr> + <tr> + <td> + <label> + <input type="checkbox" value="yes" name="stat_surname" <?php echo $stat_surname ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Total surnames'); ?> + </label> + </td> + <td> + <label> + <input type="checkbox" value="yes" name="stat_last_birth" <?php echo $stat_last_birth ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Latest birth year'); ?> + </label> + </td> + </tr> + <tr> + <td> + <label> + <input type="checkbox" value="yes" name="stat_fam" <?php echo $stat_fam ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Families'); ?> + </label> + </td> + <td> + <label> + <input type="checkbox" value="yes" name="stat_first_death" <?php echo $stat_first_death ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Earliest death year'); ?> + </label> + </td> + </tr> + <tr> + <td> + <label> + <input type="checkbox" value="yes" name="stat_sour" <?php echo $stat_sour ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Sources'); ?> + </label> + </td> + <td> + <label> + <input type="checkbox" value="yes" name="stat_last_death" <?php echo $stat_last_death ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Latest death year'); ?> + </label> + </td> + </tr> + <tr> + <td> + <label> + <input type="checkbox" value="yes" name="stat_media" <?php echo $stat_media ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Media objects'); ?> + </label> + </td> + <td> + <label> + <input type="checkbox" value="yes" name="stat_long_life" <?php echo $stat_long_life ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Individual who lived the longest'); ?> + </label> + </td> + </tr> + <tr> + <td> + <label> + <input type="checkbox" value="yes" name="stat_repo" <?php echo $stat_repo ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Repositories'); ?> + </label> + </td> + <td> + <label> + <input type="checkbox" value="yes" name="stat_avg_life" <?php echo $stat_avg_life ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Average age at death'); ?> + </label> + </td> + </tr> + <tr> + <td> + <label> + <input type="checkbox" value="yes" name="stat_other" <?php echo $stat_other ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Other records'); ?> + </label> + </td> + <td> + <label> + <input type="checkbox" value="yes" name="stat_most_chil" <?php echo $stat_most_chil ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Family with the most children'); ?> + </label> + </td> + </tr> + <tr> + <td> + <label> + <input type="checkbox" value="yes" name="stat_events" <?php echo $stat_events ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Total events'); ?> + </label> + </td> + <td> + <label> + <input type="checkbox" value="yes" name="stat_avg_chil" <?php echo $stat_avg_chil ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Average number of children per family'); ?> + </label> + </td> + </tr> + <tr> + <td> + <label> + <input type="checkbox" value="yes" name="stat_users" <?php echo $stat_users ? 'checked' : ''; ?>> + <?php echo WT_I18N::translate('Total users'); ?> + </label> + </td> + <td> + </td> + </tr> + </tbody> </table> </td> </tr> diff --git a/modules_v3/googlemap/module.php b/modules_v3/googlemap/module.php index a047e1bc60..738a0445d7 100644 --- a/modules_v3/googlemap/module.php +++ b/modules_v3/googlemap/module.php @@ -753,19 +753,15 @@ class googlemap_WT_Module extends WT_Module implements WT_Module_Config, WT_Modu </td> <td class="optionbox"> <?php - echo '<input name="hideflags" type="checkbox" value="1"'; - if ($hideflags) { - echo ' checked="checked"'; - } + echo '<input name="hideflags" type="checkbox" value="1" '; + echo $hideflags ? 'checked' : ''; echo '>'; ?> </td> <td class="optionbox"> <?php - echo '<input name="hidelines" type="checkbox" value="1"'; - if ($hidelines) { - echo ' checked="checked"'; - } + echo '<input name="hidelines" type="checkbox" value="1" '; + echo $hidelines ? 'checked' : ''; echo '>'; ?> </td> @@ -1563,9 +1559,8 @@ class googlemap_WT_Module extends WT_Module implements WT_Module_Config, WT_Modu echo '</select>'; } echo '<label>', WT_I18N::translate('Include fully matched places: '), '</label>'; - echo '<input type="checkbox" name="matching" value="1" onchange="this.form.submit();"'; - if ($matching) { - echo ' checked="checked"'; + echo '<input type="checkbox" name="matching" value="1" onchange="this.form.submit();" '; + echo $matching ? 'checked' : ''; } echo '>'; echo '</div>'; // close div gm_check @@ -4509,8 +4504,8 @@ class googlemap_WT_Module extends WT_Module implements WT_Module_Config, WT_Modu echo '<a href="module.php?mod=googlemap&mod_action=admin_places&parent=0&inactive=', $inactive, '">', WT_I18N::translate('Top level'), '</a></div>'; echo '<form name="active" method="post" action="module.php?mod=googlemap&mod_action=admin_places&parent=', $parent, '&inactive=', $inactive, '"><div id="gm_active">'; echo '<label for="inactive">', WT_I18N::translate('Show inactive places'), '</label>'; - echo '<input type="checkbox" name="inactive" id="inactive"'; - if ($inactive) echo ' checked="checked"'; + echo '<input type="checkbox" name="inactive" id="inactive" '; + echo $inactive ? 'checked' : ''; echo ' onclick="updateList(this.checked)"'; echo '>', help_link('PLE_ACTIVE', 'googlemap'), '</div></form>'; diff --git a/modules_v3/notes/module.php b/modules_v3/notes/module.php index df8744bde6..fd461a77d7 100644 --- a/modules_v3/notes/module.php +++ b/modules_v3/notes/module.php @@ -59,7 +59,7 @@ class notes_WT_Module extends WT_Module implements WT_Module_Tab { ?> <tr> <td colspan="2" class="descriptionbox rela"> - <input id="checkbox_note2" type="checkbox" <?php if ($SHOW_LEVEL2_NOTES) echo ' checked="checked"'; ?> onclick="jQuery('tr.row_note2').toggle();"> + <input id="checkbox_note2" type="checkbox" <?php echo $SHOW_LEVEL2_NOTES ? 'checked' : ''; ?> onclick="jQuery('tr.row_note2').toggle();"> <label for="checkbox_note2"><?php echo WT_I18N::translate('Show all notes'); ?></label> <?php echo help_link('show_fact_sources'); ?> </td> diff --git a/modules_v3/personal_facts/module.php b/modules_v3/personal_facts/module.php index 28eaebad6a..00575d0d5f 100644 --- a/modules_v3/personal_facts/module.php +++ b/modules_v3/personal_facts/module.php @@ -118,16 +118,12 @@ class personal_facts_WT_Module extends WT_Module implements WT_Module_Tab { echo '<tr><td colspan="2" class="facts_value">', WT_I18N::translate('There are no facts for this individual.'), '</td></tr>'; } - echo '<tr><td colspan="2" class="descriptionbox rela"><form action="?"><input id="checkbox_rela_facts" type="checkbox"'; - if ($EXPAND_RELATIVES_EVENTS) { - echo ' checked="checked"'; - } + echo '<tr><td colspan="2" class="descriptionbox rela"><form action="?"><input id="checkbox_rela_facts" type="checkbox" '; + echo $EXPAND_RELATIVES_EVENTS ? 'checked' : ''; echo ' onclick="jQuery(\'tr.rela\').toggle();"><label for="checkbox_rela_facts">', WT_I18N::translate('Events of close relatives'), '</label>'; if (file_exists(WT_Site::getPreference('INDEX_DIRECTORY') . 'histo.' . WT_LOCALE . '.php')) { - echo ' <input id="checkbox_histo" type="checkbox"'; - if ($EXPAND_HISTO_EVENTS) { - echo ' checked="checked"'; - } + echo ' <input id="checkbox_histo" type="checkbox" '; + echo $EXPAND_HISTO_EVENTS ? 'checked' : ''; echo ' onclick="jQuery(\'tr.histo\').toggle();"><label for="checkbox_histo">', WT_I18N::translate('Historical facts'), '</label>'; } echo '</form></td></tr>'; diff --git a/modules_v3/sitemap/module.php b/modules_v3/sitemap/module.php index 8d52b21af5..1c09c1f0ef 100644 --- a/modules_v3/sitemap/module.php +++ b/modules_v3/sitemap/module.php @@ -285,9 +285,9 @@ class sitemap_WT_Module extends WT_Module implements WT_Module_Config { '<form method="post" action="module.php?mod=' . $this->getName() . '&mod_action=admin">', '<input type="hidden" name="action" value="save">'; foreach (WT_Tree::getAll() as $tree) { - echo '<p><input type="checkbox" name="include', $tree->tree_id, '"'; + echo '<p><input type="checkbox" name="include', $tree->tree_id, '" '; if ($tree->getPreference('include_in_sitemap')) { - echo ' checked="checked"'; + echo 'checked'; $include_any = true; } echo '>', $tree->tree_title_html, '</p>'; |
