00001 <?php
00002
00003
00026 ?>
00027 <?php
00028
00029 drupal_add_js('misc/tableheader.js');
00030 drupal_add_js(drupal_get_path('module', 'block') . '/block.js');
00031 foreach ($block_regions as $region => $title) {
00032 drupal_add_tabledrag('blocks', 'match', 'sibling', 'block-region-select', 'block-region-' . $region, NULL, FALSE);
00033 drupal_add_tabledrag('blocks', 'order', 'sibling', 'block-weight', 'block-weight-' . $region);
00034 }
00035 ?>
00036 <table id="blocks" class="sticky-enabled">
00037 <thead>
00038 <tr>
00039 <th><?php print t('Block'); ?></th>
00040 <th><?php print t('Region'); ?></th>
00041 <th><?php print t('Weight'); ?></th>
00042 <th colspan="2"><?php print t('Operations'); ?></th>
00043 </tr>
00044 </thead>
00045 <tbody>
00046 <?php $row = 0; ?>
00047 <?php foreach ($block_regions as $region => $title): ?>
00048 <tr class="region region-<?php print $region?>">
00049 <td colspan="5" class="region"><?php print $title; ?></td>
00050 </tr>
00051 <tr class="region-message region-<?php print $region?>-message <?php print empty($block_listing[$region]) ? 'region-empty' : 'region-populated'; ?>">
00052 <td colspan="5"><em><?php print t('No blocks in this region'); ?></em></td>
00053 </tr>
00054 <?php foreach ($block_listing[$region] as $delta => $data): ?>
00055 <tr class="draggable <?php print $row % 2 == 0 ? 'odd' : 'even'; ?><?php print $data->row_class ? ' ' . $data->row_class : ''; ?>">
00056 <td class="block"><?php print $data->block_title; ?></td>
00057 <td><?php print $data->region_select; ?></td>
00058 <td><?php print $data->weight_select; ?></td>
00059 <td><?php print $data->configure_link; ?></td>
00060 <td><?php print $data->delete_link; ?></td>
00061 </tr>
00062 <?php $row++; ?>
00063 <?php endforeach; ?>
00064 <?php endforeach; ?>
00065 </tbody>
00066 </table>
00067
00068 <?php print $form_submit; ?>