| @@ 416-437 (lines=22) @@ | ||
| 413 | $middle = ceil(count($context['categories']) / 2); |
|
| 414 | ||
| 415 | $i = 0; |
|
| 416 | foreach ($context['categories'] as $category) |
|
| 417 | { |
|
| 418 | echo ' |
|
| 419 | <fieldset> |
|
| 420 | <legend>', $category['name'], '</legend> |
|
| 421 | <ul>'; |
|
| 422 | ||
| 423 | // Display a checkbox with every board. |
|
| 424 | foreach ($category['boards'] as $board) |
|
| 425 | echo ' |
|
| 426 | <li style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'] * 1.5, 'em;"> |
|
| 427 | <label for="boards_', $board['id'], '"><input type="checkbox" name="boards[', $board['id'], ']" id="boards_', $board['id'], '" checked>', $board['name'], '</label> |
|
| 428 | </li>'; |
|
| 429 | ||
| 430 | echo ' |
|
| 431 | </ul> |
|
| 432 | </fieldset>'; |
|
| 433 | ||
| 434 | // Increase $i, and check if we're at the middle yet. |
|
| 435 | if (++$i == $middle) |
|
| 436 | echo ' |
|
| 437 | </div><!-- .floatleft --> |
|
| 438 | <div class="floatright" style="width: 49%;">'; |
|
| 439 | } |
|
| 440 | ||
| @@ 159-178 (lines=20) @@ | ||
| 156 | <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \'searchform\'); return false;">', $category['name'], '</a> |
|
| 157 | <ul>'; |
|
| 158 | ||
| 159 | foreach ($category['boards'] as $board) |
|
| 160 | { |
|
| 161 | if ($i == $limit) |
|
| 162 | echo ' |
|
| 163 | </ul> |
|
| 164 | </li> |
|
| 165 | </ul> |
|
| 166 | <ul class="ignoreboards floatright"> |
|
| 167 | <li class="category"> |
|
| 168 | <ul>'; |
|
| 169 | ||
| 170 | echo ' |
|
| 171 | <li class="board"> |
|
| 172 | <label for="brd', $board['id'], '" style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'], 'em;"> |
|
| 173 | <input type="checkbox" id="brd', $board['id'], '" name="brd[', $board['id'], ']" value="', $board['id'], '"', $board['selected'] ? ' checked' : '', '> ', $board['name'], ' |
|
| 174 | </label> |
|
| 175 | </li>'; |
|
| 176 | ||
| 177 | $i++; |
|
| 178 | } |
|
| 179 | ||
| 180 | echo ' |
|
| 181 | </ul> |
|
| @@ 2228-2245 (lines=18) @@ | ||
| 2225 | <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \'creator\'); return false;">', $category['name'], '</a> |
|
| 2226 | <ul>'; |
|
| 2227 | ||
| 2228 | foreach ($category['boards'] as $board) |
|
| 2229 | { |
|
| 2230 | if ($i == $limit) |
|
| 2231 | echo ' |
|
| 2232 | </ul> |
|
| 2233 | </li> |
|
| 2234 | </ul> |
|
| 2235 | <ul class="ignoreboards floatright"> |
|
| 2236 | <li class="category"> |
|
| 2237 | <ul>'; |
|
| 2238 | ||
| 2239 | echo ' |
|
| 2240 | <li class="board" style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'], 'em;"> |
|
| 2241 | <label for="ignore_brd', $board['id'], '"><input type="checkbox" id="brd', $board['id'], '" name="ignore_brd[', $board['id'], ']" value="', $board['id'], '"', $board['selected'] ? ' checked' : '', '> ', $board['name'], '</label> |
|
| 2242 | </li>'; |
|
| 2243 | ||
| 2244 | $i++; |
|
| 2245 | } |
|
| 2246 | ||
| 2247 | echo ' |
|
| 2248 | </ul> |
|