diff options
| author | fisharebest <fisharebest@gmail.com> | 2013-01-22 08:56:56 +0000 |
|---|---|---|
| committer | fisharebest <fisharebest@gmail.com> | 2013-01-22 08:56:56 +0000 |
| commit | 0e55a1b9400ef4667731e3a21150368f664f7fae (patch) | |
| tree | 5442ad6c62579d9bb6d15c3060ba5f5e44c98561 /ancestry.php | |
| parent | cd69abdf50b3007195dd4543cdac2627e7716073 (diff) | |
| download | webtrees-0e55a1b9400ef4667731e3a21150368f664f7fae.tar.gz webtrees-0e55a1b9400ef4667731e3a21150368f664f7fae.tar.bz2 webtrees-0e55a1b9400ef4667731e3a21150368f664f7fae.zip | |
Remove the lightbox plugin from the "album" module. Add the colorbox module (temporarily) in its place.
Diffstat (limited to 'ancestry.php')
| -rw-r--r-- | ancestry.php | 229 |
1 files changed, 109 insertions, 120 deletions
diff --git a/ancestry.php b/ancestry.php index 503c67e786..fdf111cf0e 100644 --- a/ancestry.php +++ b/ancestry.php @@ -35,128 +35,117 @@ $controller ->addExternalJavascript(WT_STATIC_URL.'js/autocomplete.js') ->addInlineJavascript('var pastefield; function paste_id(value) { pastefield.value=value; }'); // For the 'find indi' link -// LightBox -if (WT_USE_LIGHTBOX) { - $album = new lightbox_WT_Module(); - $album->getPreLoadContent(); -} -echo '<div id="ancestry-page">'; -echo '<table><tr><td valign="middle">'; -echo '<h2>', $controller->getPageTitle(), '</h2>'; -?> -</td><td width="50px"> </td><td><form name="people" id="people" method="get" action="?"> -<input type="hidden" name="ged" value="<?php echo WT_GEDCOM; ?>"> -<input type="hidden" name="show_full" value="<?php echo $controller->show_full; ?>"> -<input type="hidden" name="show_cousins" value="<?php echo $controller->show_cousins; ?>"> -<table class="list_table"> - - <!-- // NOTE: Root ID --> -<tr> - <td class="descriptionbox"><?php echo WT_I18N::translate('Individual'); ?></td> -<td class="optionbox"> -<input class="pedigree_form" type="text" name="rootid" id="rootid" size="3" value="<?php echo $controller->rootid; ?>"> -<?php echo print_findindi_link('rootid'); ?> -</td> - -<!-- // NOTE: Box width --> -<td class="descriptionbox"><?php echo WT_I18N::translate('Box width'); ?></td> -<td class="optionbox"><input type="text" size="3" name="box_width" value="<?php echo htmlspecialchars($box_width); ?>"> <b>%</b> -</td> - -<!-- // NOTE: chart style --> -<td rowspan="2" class="descriptionbox"><?php echo WT_I18N::translate('Layout'); ?></td> -<td rowspan="2" class="optionbox"> -<input type="radio" name="chart_style" value="0" -<?php -if ($controller->chart_style==0) { - echo ' checked="checked"'; -} -echo ' onclick="statusDisable(\'cousins\');'; -echo '">', WT_I18N::translate('List'); -echo '<br><input type="radio" name="chart_style" value="1"'; -if ($controller->chart_style==1) { - echo ' checked="checked"'; -} -echo ' onclick="statusEnable(\'cousins\');'; -echo '">', WT_I18N::translate('Booklet'); -?> - -<!-- // NOTE: show cousins --> -<br> -<?php -echo '<input '; -if ($controller->chart_style==0) { - echo 'disabled="disabled" '; -} -echo 'id="cousins" type="checkbox" value="'; -if ($controller->show_cousins) { - echo '1" checked="checked" onclick="document.people.show_cousins.value=\'0\';"'; -} else { - echo '0" onclick="document.people.show_cousins.value=\'1\';"'; -} -echo '>'; -echo WT_I18N::translate('Show cousins'); - -echo '<br><input type="radio" name="chart_style" value="2"'; -if ($controller->chart_style==2) { - echo ' checked="checked" '; -} -echo ' onclick="statusDisable(\'cousins\');"'; -echo '>', WT_I18N::translate('Individuals'); -echo '<br><input type="radio" name="chart_style" value="3"'; -echo ' onclick="statusDisable(\'cousins\');"'; -if ($controller->chart_style==3) { - echo ' checked="checked" '; -} -echo '>', WT_I18N::translate('Families'); -?> -</td> - -<!-- // NOTE: submit --> -<td rowspan="2" class="facts_label03"> -<input type="submit" value="<?php echo WT_I18N::translate('View'); ?>"> -</td></tr> - -<!-- // NOTE: generations --> -<tr><td class="descriptionbox"> -<?php -echo WT_I18N::translate('Generations'); ?></td> - -<td class="optionbox"> -<select name="PEDIGREE_GENERATIONS"> -<?php -for ($i=2; $i<=$MAX_PEDIGREE_GENERATIONS; $i++) { -echo '<option value="', $i, '"'; -if ($i==$OLD_PGENS) { - echo ' selected="selected"'; -} - echo '>', WT_I18N::number($i), '</option>'; -} ?> -</select> -</td> -<!-- // NOTE: show full --> -<td class="descriptionbox"> -<?php -echo WT_I18N::translate('Show Details'); -?> -</td> -<td class="optionbox"> -<input type="checkbox" value="<?php -if ($controller->show_full) { - echo '1" checked="checked" onclick="document.people.show_full.value=\'0\';'; -} else { - echo '0" onclick="document.people.show_full.value=\'1\';'; -} -?>" -> -</td></tr> -</table> -</form> -</td></tr></table> +<div id="ancestry-page"> + <table> + <tr> + <td valign="middle"> + <h2><?php echo $controller->getPageTitle(); ?></h2> + </td> + <td width="50px"> + + </td> + <td> + <form name="people" id="people" method="get" action="?"> + <input type="hidden" name="ged" value="<?php echo WT_GEDCOM; ?>"> + <input type="hidden" name="show_full" value="<?php echo $controller->show_full; ?>"> + <input type="hidden" name="show_cousins" value="<?php echo $controller->show_cousins; ?>"> + <table class="list_table"> + <tr> + <td class="descriptionbox"> + <?php echo WT_I18N::translate('Individual'); ?> + </td> + <td class="optionbox"> + <input class="pedigree_form" type="text" name="rootid" id="rootid" size="3" value="<?php echo $controller->rootid; ?>"> + <?php echo print_findindi_link('rootid'); ?> + </td> + <td class="descriptionbox"> + <?php echo WT_I18N::translate('Box width'); ?> + </td> + <td class="optionbox"> + <input type="text" size="3" name="box_width" value="<?php echo htmlspecialchars($box_width); ?>"> <b>%</b> + </td> + <td rowspan="2" class="descriptionbox"> + <?php echo WT_I18N::translate('Layout'); ?> + </td> + <td rowspan="2" class="optionbox"> + <input type="radio" name="chart_style" value="0" + <?php + if ($controller->chart_style==0) { + echo ' checked="checked"'; + } + echo ' onclick="statusDisable(\'cousins\');'; + echo '">', WT_I18N::translate('List'); + echo '<br><input type="radio" name="chart_style" value="1"'; + if ($controller->chart_style==1) { + echo ' checked="checked"'; + } + echo ' onclick="statusEnable(\'cousins\');'; + echo '">', WT_I18N::translate('Booklet'); + ?> + <br> + <?php + echo '<input '; + if ($controller->chart_style==0) { + echo 'disabled="disabled" '; + } + echo 'id="cousins" type="checkbox" value="'; + if ($controller->show_cousins) { + echo '1" checked="checked" onclick="document.people.show_cousins.value=\'0\';"'; + } else { + echo '0" onclick="document.people.show_cousins.value=\'1\';"'; + } + echo '>'; + echo WT_I18N::translate('Show cousins'); + echo '<br><input type="radio" name="chart_style" value="2"'; + if ($controller->chart_style==2) { + echo ' checked="checked" '; + } + echo ' onclick="statusDisable(\'cousins\');"'; + echo '>', WT_I18N::translate('Individuals'); + echo '<br><input type="radio" name="chart_style" value="3"'; + echo ' onclick="statusDisable(\'cousins\');"'; + if ($controller->chart_style==3) { + echo ' checked="checked" '; + } + echo '>', WT_I18N::translate('Families'); + ?> + </td> + <td rowspan="2" class="facts_label03"> + <input type="submit" value="<?php echo WT_I18N::translate('View'); ?>"> + </td> + </tr> + <tr> + <td class="descriptionbox"> + <?php echo WT_I18N::translate('Generations'); ?> + </td> + <td class="optionbox"> + <select name="PEDIGREE_GENERATIONS"> + <?php + for ($i=2; $i<=$MAX_PEDIGREE_GENERATIONS; $i++) { + echo '<option value="', $i, '"'; + if ($i==$OLD_PGENS) { + echo ' selected="selected"'; + } + echo '>', WT_I18N::number($i), '</option>'; + } + ?> + </select> + </td> + <td class="descriptionbox"> + <?php echo WT_I18N::translate('Show Details'); ?> + </td> + <td class="optionbox"> + <input type="checkbox" value="<?php if ($controller->show_full) { echo '1" checked="checked" onclick="document.people.show_full.value=\'0\';'; } else { echo '0" onclick="document.people.show_full.value=\'1\';'; } ?>"> + </td> + </tr> + </table> + </form> + </td> + </tr> + </table> <?php - if ($controller->error_message) { echo '<p class="ui-state-error">', $controller->error_message, '</p>'; exit; @@ -219,4 +208,4 @@ case 3: echo '</div>'; break; } -echo '</div>'; // close div ancestry-page
\ No newline at end of file +echo '</div>'; // close div ancestry-page |
