当前位置: 首页>>代码示例>>PHP>>正文


PHP Helper_Admin::addFolderClass方法代码示例

本文整理汇总了PHP中Helper_Admin::addFolderClass方法的典型用法代码示例。如果您正苦于以下问题:PHP Helper_Admin::addFolderClass方法的具体用法?PHP Helper_Admin::addFolderClass怎么用?PHP Helper_Admin::addFolderClass使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Helper_Admin的用法示例。


在下文中一共展示了Helper_Admin::addFolderClass方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: foreach

    </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 
开发者ID:hamby,项目名称:SEBLOD,代码行数:31,代码来源:default_compact.php

示例2: foreach

    <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>
开发者ID:hamby,项目名称:SEBLOD,代码行数:31,代码来源:default_compact.php


注:本文中的Helper_Admin::addFolderClass方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。