Beispiel #1
0
    </tr>			
</thead>
<tbody>
<?php 
foreach ($this->items as $i => $item) {
    $checkedOut = !($item->checked_out == $userId || $item->checked_out == 0);
    $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0;
    $canChange = $user->authorise('core.edit.state', CCK_COM . '.folder.' . $item->folder) && $canCheckin;
    $canEdit = $user->authorise('core.edit', CCK_COM . '.folder.' . $item->folder);
    $canEditFolder = $user->authorise('core.edit', CCK_COM . '.folder.' . $item->folder);
    $canEditOwn = '';
    $link = JRoute::_('index.php?option=' . $this->option . '&task=' . $this->vName . '.edit&id=' . $item->id);
    $link2 = JRoute::_('index.php?option=' . $this->option . '&view=form&type=' . $item->name . '&return=cck&return_v=types');
    $linkFilter = JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&folder_id=' . $item->folder);
    $linkFolder = JRoute::_('index.php?option=' . $this->option . '&task=folder.edit&id=' . $item->folder);
    Helper_Admin::addFolderClass($css, $item->folder, $item->folder_color, $item->folder_colorchar);
    ?>
    <tr class="row<?php 
    echo $i % 2;
    ?>
" height="64px;">
        <td class="center hidden-phone"><?php 
    Helper_Display::quickSlideTo('pagination-bottom', $i + 1);
    ?>
</td>
        <td class="center hidden-phone"><?php 
    echo JHtml::_('grid.id', $i, $item->id);
    ?>
</td>
        <td width="30px" class="center hidden-phone">
            <?php 
Beispiel #2
0
    <tbody>
	<?php 
foreach ($this->items as $i => $item) {
    $checkedOut = !($item->checked_out == $userId || $item->checked_out == 0);
    $canCheckin = $user->authorise('core.manage', 'com_checkin') || $item->checked_out == $userId || $item->checked_out == 0;
    $canChange = $user->authorise('core.edit.state', CCK_COM . '.folder.' . $item->id) && $canCheckin;
    $canEdit = $user->authorise('core.edit', CCK_COM . '.folder.' . $item->id);
    $canEditOwn = '';
    $last = $item->id == 1 ? ' last' : '';
    $link = JRoute::_('index.php?option=' . $this->option . '&task=folder.edit&id=' . $item->id);
    $linkTemplate = JRoute::_('index.php?option=' . $this->option . '&view=' . _C1_NAME . '&folder_id=' . $item->id);
    $linkType = JRoute::_('index.php?option=' . $this->option . '&view=' . _C2_NAME . '&folder_id=' . $item->id);
    $linkField = JRoute::_('index.php?option=' . $this->option . '&view=' . _C3_NAME . '&folder_id=' . $item->id);
    $linkSearch = JRoute::_('index.php?option=' . $this->option . '&view=' . _C4_NAME . '&folder_id=' . $item->id);
    $linkFilter = JRoute::_('index.php?option=' . $this->option . '&view=' . $this->getName() . '&folder_id=' . $item->id);
    Helper_Admin::addFolderClass($css, $item->id, $item->color, $item->colorchar, '60');
    ?>
        <tr class="row<?php 
    echo $i % 2;
    echo $last;
    ?>
" height="64px;">
			<td class="center hidden-phone"><?php 
    Helper_Display::quickSlideTo('pagination-bottom', $i + 1);
    ?>
</td>
			<td class="center hidden-phone"><?php 
    echo JHtml::_('grid.id', $i, $item->id);
    ?>
</td>
			<td>