| @@ 413-434 (lines=22) @@ | ||
| 410 | $middle = ceil(count($context['categories']) / 2); |
|
| 411 | ||
| 412 | $i = 0; |
|
| 413 | foreach ($context['categories'] as $category) |
|
| 414 | { |
|
| 415 | echo ' |
|
| 416 | <fieldset> |
|
| 417 | <legend>', $category['name'], '</legend> |
|
| 418 | <ul>'; |
|
| 419 | ||
| 420 | // Display a checkbox with every board. |
|
| 421 | foreach ($category['boards'] as $board) |
|
| 422 | echo ' |
|
| 423 | <li style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'] * 1.5, 'em;"><label for="boards_', $board['id'], '"><input type="checkbox" name="boards[', $board['id'], ']" id="boards_', $board['id'], '" checked class="input_check">', $board['name'], '</label></li>'; |
|
| 424 | ||
| 425 | echo ' |
|
| 426 | </ul> |
|
| 427 | </fieldset>'; |
|
| 428 | ||
| 429 | // Increase $i, and check if we're at the middle yet. |
|
| 430 | if (++$i == $middle) |
|
| 431 | echo ' |
|
| 432 | </div> |
|
| 433 | <div class="floatright" style="width: 49%;">'; |
|
| 434 | } |
|
| 435 | ||
| 436 | echo ' |
|
| 437 | </div> |
|
| @@ 151-170 (lines=20) @@ | ||
| 148 | <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \'searchform\'); return false;">', $category['name'], '</a> |
|
| 149 | <ul>'; |
|
| 150 | ||
| 151 | foreach ($category['boards'] as $board) |
|
| 152 | { |
|
| 153 | if ($i == $limit) |
|
| 154 | echo ' |
|
| 155 | </ul> |
|
| 156 | </li> |
|
| 157 | </ul> |
|
| 158 | <ul class="ignoreboards floatright"> |
|
| 159 | <li class="category"> |
|
| 160 | <ul>'; |
|
| 161 | ||
| 162 | echo ' |
|
| 163 | <li class="board"> |
|
| 164 | <label for="brd', $board['id'], '" style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'], 'em;"> |
|
| 165 | <input type="checkbox" id="brd', $board['id'], '" name="brd[', $board['id'], ']" value="', $board['id'], '"', $board['selected'] ? ' checked' : '', ' class="input_check"> ', $board['name'], ' |
|
| 166 | </label> |
|
| 167 | </li>'; |
|
| 168 | ||
| 169 | $i++; |
|
| 170 | } |
|
| 171 | ||
| 172 | echo ' |
|
| 173 | </ul> |
|
| @@ 2129-2146 (lines=18) @@ | ||
| 2126 | <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \'creator\'); return false;">', $category['name'], '</a> |
|
| 2127 | <ul>'; |
|
| 2128 | ||
| 2129 | foreach ($category['boards'] as $board) |
|
| 2130 | { |
|
| 2131 | if ($i == $limit) |
|
| 2132 | echo ' |
|
| 2133 | </ul> |
|
| 2134 | </li> |
|
| 2135 | </ul> |
|
| 2136 | <ul class="ignoreboards floatright"> |
|
| 2137 | <li class="category"> |
|
| 2138 | <ul>'; |
|
| 2139 | ||
| 2140 | echo ' |
|
| 2141 | <li class="board" style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'], 'em;"> |
|
| 2142 | <label for="ignore_brd', $board['id'], '"><input type="checkbox" id="brd', $board['id'], '" name="ignore_brd[', $board['id'], ']" value="', $board['id'], '"', $board['selected'] ? ' checked' : '', ' class="input_check"> ', $board['name'], '</label> |
|
| 2143 | </li>'; |
|
| 2144 | ||
| 2145 | $i++; |
|
| 2146 | } |
|
| 2147 | ||
| 2148 | echo ' |
|
| 2149 | </ul> |
|