Code Duplication    Length = 10-14 lines in 4 locations

Themes/default/ManageSmileys.template.php 1 location

@@ 435-444 (lines=10) @@
432
						<select name="icon_board" id="icon_board_select">
433
							<option value="0"', empty($context['icon']['board_id']) ? ' selected' : '', '>', $txt['icons_edit_icons_all_boards'], '</option>';
434
435
	foreach ($context['categories'] as $category)
436
	{
437
		echo '
438
							<optgroup label="', $category['name'], '">';
439
		foreach ($category['boards'] as $board)
440
			echo '
441
								<option value="', $board['id'], '"', $board['selected'] ? ' selected' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level'] - 1) . '=&gt;' : '', ' ', $board['name'], '</option>';
442
		echo '
443
							</optgroup>';
444
	}
445
	echo '
446
						</select>
447
					</dd>

Themes/default/MoveTopic.template.php 1 location

@@ 200-213 (lines=14) @@
197
					<form action="' . $scripturl . '?action=mergetopics;from=' . $context['origin_topic'] . ';targetboard=' . $context['target_board'] . ';board=' . $context['current_board'] . '.0" method="post" accept-charset="', $context['character_set'], '" id="mergeSelectBoard">
198
						', $txt['target_below'], ' (', $txt['board'], ':&nbsp;
199
						<select name="targetboard" onchange="this.form.submit();">';
200
		foreach ($context['merge_categories'] as $cat)
201
		{
202
			echo '
203
							<optgroup label="', $cat['name'], '">';
204
205
			foreach ($cat['boards'] as $board)
206
			{
207
				echo '
208
								<option value="', $board['id'], '"', $board['selected'] ? ' selected' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level'] - 1) . '=&gt;' : '', ' ', $board['name'], '&nbsp;</option>';
209
			}
210
211
			echo '
212
							</optgroup>';
213
		}
214
		echo '
215
						</select>)
216
						<input type="hidden" name="from" value="' . $context['origin_topic'] . '">

Themes/default/Calendar.template.php 1 location

@@ 642-651 (lines=10) @@
639
							<span class="label">', $txt['calendar_post_in'], '</span>
640
							<input type="checkbox" style="vertical-align: middle;" class="input_check" name="link_to_board"', (!empty($context['event']['board']) ? ' checked' : ''), ' onclick="toggleLinked(this.form);">
641
							<select name="board"', empty($context['event']['board']) ? ' disabled' : '' , '>';
642
		foreach ($context['event']['categories'] as $category)
643
		{
644
			echo '
645
								<optgroup label="', $category['name'], '">';
646
			foreach ($category['boards'] as $board)
647
				echo '
648
									<option value="', $board['id'], '"', $board['selected'] ? ' selected' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level'] - 1) . '=&gt;' : '', ' ', $board['name'], '&nbsp;</option>';
649
			echo '
650
								</optgroup>';
651
		}
652
		echo '
653
							</select>
654
						</div>

Themes/default/Post.template.php 1 location

@@ 218-227 (lines=10) @@
215
								<div>
216
									<span class="label">', $txt['calendar_post_in'], '</span>
217
									<select name="board">';
218
				foreach ($context['event']['categories'] as $category)
219
				{
220
					echo '
221
										<optgroup label="', $category['name'], '">';
222
					foreach ($category['boards'] as $board)
223
						echo '
224
											<option value="', $board['id'], '"', $board['selected'] ? ' selected' : '', '>', $board['child_level'] > 0 ? str_repeat('==', $board['child_level'] - 1) . '=&gt;' : '', ' ', $board['name'], '&nbsp;</option>';
225
					echo '
226
										</optgroup>';
227
				}
228
				echo '
229
									</select>
230
								</div>