[ Index ]
 

Code source de Horde 3.1.3

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/templates/portal/ -> edit.inc (source)

   1  <table class="nopadding" cellspacing="6" width="100%">
   2  <?php
   3  $rows = $layout->rows();
   4  list($current_row, $current_col) = $layout->getCurrentBlock();
   5  $allow_add = (!empty($conf['hooks']['permsdenied']) ||
   6                Horde::hasPermission('max_blocks') === true ||
   7                Horde::hasPermission('max_blocks') > $layout->count());
   8  $columns = 0;
   9  for ($row = 0; $row < $rows; ++$row):
  10  ?>
  11    <tr>
  12  <?php
  13  $columns = $layout->columns($row);
  14  if (is_a($columns, 'PEAR_Error')) {
  15      $columns = 0;
  16  }
  17  for ($col = 0; $col < $columns; ++$col):
  18      $isEditing = ($current_row === $row && $current_col === $col);
  19      if ($layout->isCovered($row, $col)):
  20  ?>
  21      <!-- covered cell here -->
  22  <?php else: ?>
  23      <td class="<?php echo $isEditing ? 'currentBlock' : 'headerbox' ?>" valign="top" width="<?php echo floor(100 / ($columns + 1)) ?>%" rowspan="<?php echo $layout->getHeight($row, $col) ?>" colspan="<?php echo $layout->getWidth($row, $col) ?>">
  24  <?php
  25  $blockInfo = $layout->getBlockInfo($row, $col);
  26  if (!$layout->isEmpty($row, $col) && !is_a($blockInfo, 'PEAR_Error')) {
  27      if ($isEditing) {
  28          $edit_link = '&nbsp;';
  29      } else {
  30          $edit_link = '<small>' . Horde::link($layout->getActionUrl('edit', $row, $col)) . _("edit") . '</a></small>';
  31      }
  32      require dirname(__FILE__) . '/layout.inc';
  33  } else {
  34      if ($allow_add) {
  35          require dirname(__FILE__) . '/add.inc';
  36      }
  37  }
  38  ?>
  39      </td>
  40  <?php endif; endfor; if ($allow_add): ?>
  41      <td valign="top" class="headerbox">
  42        <?php require dirname(__FILE__) . '/add.inc'; ?>
  43      </td>
  44  <?php endif; ?>
  45    </tr>
  46  <?php endfor; if ($allow_add): ?>
  47    <tr>
  48  <?php
  49  for ($col = 0; $col <= $columns; ++$col):
  50  ?>
  51      <td valign="top" class="headerbox">
  52        <?php require dirname(__FILE__) . '/add.inc'; ?>
  53      </td>
  54  <?php endfor; ?>
  55    </tr>
  56  <?php endif; ?>
  57  </table>


Généré le : Sun Feb 25 18:01:28 2007 par Balluche grâce à PHPXref 0.7