| @@ 424-445 (lines=22) @@ | ||
| 421 | $middle = ceil(count($context['categories']) / 2); |
|
| 422 | ||
| 423 | $i = 0; |
|
| 424 | foreach ($context['categories'] as $category) |
|
| 425 | { |
|
| 426 | echo ' |
|
| 427 | <fieldset> |
|
| 428 | <legend>', $category['name'], '</legend> |
|
| 429 | <ul>'; |
|
| 430 | ||
| 431 | // Display a checkbox with every board. |
|
| 432 | foreach ($category['boards'] as $board) |
|
| 433 | echo ' |
|
| 434 | <li style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'] * 1.5, 'em;"> |
|
| 435 | <label for="boards_', $board['id'], '"><input type="checkbox" name="boards[', $board['id'], ']" id="boards_', $board['id'], '" checked>', $board['name'], '</label> |
|
| 436 | </li>'; |
|
| 437 | ||
| 438 | echo ' |
|
| 439 | </ul> |
|
| 440 | </fieldset>'; |
|
| 441 | ||
| 442 | // Increase $i, and check if we're at the middle yet. |
|
| 443 | if (++$i == $middle) |
|
| 444 | echo ' |
|
| 445 | </div><!-- .floatleft --> |
|
| 446 | <div class="floatright" style="width: 49%;">'; |
|
| 447 | } |
|
| 448 | ||
| @@ 2191-2208 (lines=18) @@ | ||
| 2188 | <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \'creator\'); return false;">', $category['name'], '</a> |
|
| 2189 | <ul>'; |
|
| 2190 | ||
| 2191 | foreach ($category['boards'] as $board) |
|
| 2192 | { |
|
| 2193 | if ($i == $limit) |
|
| 2194 | echo ' |
|
| 2195 | </ul> |
|
| 2196 | </li> |
|
| 2197 | </ul> |
|
| 2198 | <ul class="ignoreboards floatright"> |
|
| 2199 | <li class="category"> |
|
| 2200 | <ul>'; |
|
| 2201 | ||
| 2202 | echo ' |
|
| 2203 | <li class="board" style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'], 'em;"> |
|
| 2204 | <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> |
|
| 2205 | </li>'; |
|
| 2206 | ||
| 2207 | $i++; |
|
| 2208 | } |
|
| 2209 | ||
| 2210 | echo ' |
|
| 2211 | </ul> |
|
| @@ 157-176 (lines=20) @@ | ||
| 154 | <a href="javascript:void(0);" onclick="selectBoards([', implode(', ', $category['child_ids']), '], \'searchform\'); return false;">', $category['name'], '</a> |
|
| 155 | <ul>'; |
|
| 156 | ||
| 157 | foreach ($category['boards'] as $board) |
|
| 158 | { |
|
| 159 | if ($i == $limit) |
|
| 160 | echo ' |
|
| 161 | </ul> |
|
| 162 | </li> |
|
| 163 | </ul> |
|
| 164 | <ul class="ignoreboards floatright"> |
|
| 165 | <li class="category"> |
|
| 166 | <ul>'; |
|
| 167 | ||
| 168 | echo ' |
|
| 169 | <li class="board"> |
|
| 170 | <label for="brd', $board['id'], '" style="margin-', $context['right_to_left'] ? 'right' : 'left', ': ', $board['child_level'], 'em;"> |
|
| 171 | <input type="checkbox" id="brd', $board['id'], '" name="brd[', $board['id'], ']" value="', $board['id'], '"', $board['selected'] ? ' checked' : '', '> ', $board['name'], ' |
|
| 172 | </label> |
|
| 173 | </li>'; |
|
| 174 | ||
| 175 | $i++; |
|
| 176 | } |
|
| 177 | ||
| 178 | echo ' |
|
| 179 | </ul> |
|