Code Duplication    Length = 23-24 lines in 2 locations

edit_interface.php 2 locations

@@ 2118-2140 (lines=23) @@
2115
			<?= Filter::getCsrf() ?>
2116
			<table>
2117
				<tr>
2118
					<?php if ($father) { ?>
2119
						<td class="descriptionbox">
2120
							<b>
2121
								<?php
2122
								switch ($father->getSex()) {
2123
									case 'M':
2124
										echo I18N::translate('husband');
2125
										break;
2126
									case 'F':
2127
										echo I18N::translate('wife');
2128
										break;
2129
									default:
2130
										echo I18N::translate('spouse');
2131
										break;
2132
								}
2133
								?>
2134
							</b>
2135
							<input type="hidden" name="HUSB" value="<?= $father->getXref() ?>">
2136
						</td>
2137
						<td id="HUSBName" class="optionbox"><?= $father->getFullName() ?>
2138
						</td>
2139
					<?php } else { ?>
2140
						<td class="descriptionbox">
2141
							<b><?= I18N::translate('spouse') ?></b>
2142
							<input type="hidden" name="HUSB" value="">
2143
						</td>
@@ 2157-2180 (lines=24) @@
2154
					</td>
2155
				</tr>
2156
				<tr>
2157
					<?php if ($mother) { ?>
2158
						<td class="descriptionbox">
2159
							<b>
2160
								<?php
2161
								switch ($mother->getSex()) {
2162
									case 'M':
2163
										echo I18N::translate('husband');
2164
										break;
2165
									case 'F':
2166
										echo I18N::translate('wife');
2167
										break;
2168
									default:
2169
										echo I18N::translate('spouse');
2170
										break;
2171
								}
2172
								?>
2173
							</b>
2174
							<input type="hidden" name="WIFE" value="<?= $mother->getXref() ?>">
2175
						</td>
2176
						<td id="WIFEName" class="optionbox">
2177
							<?= $mother->getFullName() ?>
2178
						</td>
2179
					<?php } else { ?>
2180
						<td class="descriptionbox">
2181
							<b><?= I18N::translate('spouse') ?></b>
2182
							<input type="hidden" name="WIFE" value="">
2183
						</td>