Esempio n. 1
0
					<input tabindex="1" class="pedigree_form" data-autocomplete-type="INDI" type="text" name="pid1" id="pid1" size="3" value="<?php 
echo $pid1;
?>
">
					<?php 
echo print_findindi_link('pid1');
?>
				</td>
				<td class="descriptionbox">
					<?php 
echo WT_I18N::translate('Show details');
?>
				</td>
				<td class="optionbox vmiddle">
					<?php 
echo two_state_checkbox('show_full', $show_full);
?>
				</td>
			</tr>
			<tr>
				<td class="descriptionbox">
					<?php 
echo WT_I18N::translate('Individual 2');
?>
				</td>
				<td class="optionbox vmiddle">
					<input tabindex="2" class="pedigree_form" data-autocomplete-type="INDI" type="text" name="pid2" id="pid2" size="3" value="<?php 
echo $pid2;
?>
">
					<?php 
Esempio n. 2
0
					<th><?php 
echo WT_I18N::translate('Report');
?>
</th>
					<th><?php 
echo WT_I18N::translate('Theme');
?>
</th>
					</tr>
				</thead>
				<tbody>
					<?php 
foreach ($module_status as $module_name => $status) {
    if (array_key_exists($module_name, $modules)) {
        $module = $modules[$module_name];
        echo '<tr><td>', two_state_checkbox('status-' . $module_name, $status == 'enabled'), '</td>', '<td>', $module->getTitle(), '</td>', '<td>', $module->getDescription(), '</td>', '<td>', $module instanceof WT_Module_Menu ? WT_I18N::translate('Menu') : '-', '</td>', '<td>', $module instanceof WT_Module_Tab ? WT_I18N::translate('Tab') : '-', '</td>', '<td>', $module instanceof WT_Module_Sidebar ? WT_I18N::translate('Sidebar') : '-', '</td>', '<td>', $module instanceof WT_Module_Block ? ($module->isUserBlock() ? '<div>' . WT_I18N::translate('My page') . '</div>' : '') . ($module->isGedcomBlock() ? '<div>' . WT_I18N::translate('Home page') . '</div>' : '') : '-', '</td>', '<td>', $module instanceof WT_Module_Chart ? WT_I18N::translate('Chart') : '-', '</td>', '<td>', $module instanceof WT_Module_Report ? WT_I18N::translate('Report') : '-', '</td>', '<td>', $module instanceof WT_Module_Theme ? WT_I18N::translate('Theme') : '-', '</td>', '</tr>';
    } else {
        // Module can’t be found on disk?
        // Don't delete it automatically.  It may be temporarily missing, after a re-installation, etc.
        echo '<tr class="error"><td>&nbsp;</td><td>', $module_name, '</td><td>', '<a href="' . WT_SCRIPT_NAME . '?action=delete_module&amp;module_name=' . $module_name . '">', WT_I18N::translate('This module cannot be found.  Delete its configuration settings.'), '</a></td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td><td>&nbsp;</td></tr>';
    }
}
?>
				</tbody>
			</table>
			<input type="submit" value="<?php 
echo WT_I18N::translate('save');
?>
">
		</form>
	</div>