Вход Регистрация
Файл: templates/default/content/default_list_table.tpl.php
Строк: 58
<?php
    
if( $ctype['options']['list_show_filter'] ) {
        
$this->renderAsset('ui/filter-panel', array(
            
'css_prefix' => $ctype['name'],
            
'page_url' => $page_url,
            
'fields' => $fields,
            
'props_fields' => $props_fields,
            
'props' => $props,
            
'filters' => $filters,
            
'is_expanded' => $ctype['options']['list_expand_filter']
        ));
    }
?>

<?php if ($items){ ?>

    <div class="content_list table <?php echo $ctype['name']; ?>_list">

        <table>
            <thead>
                <tr>
                    <?php if (isset($fields['photo']) && $fields['photo']['is_in_list']){ ?>
                        <th>&nbsp;</th>
                    <?php ?>
                    <?php if ($ctype['is_rating']){ ?>
                        <th><?php echo LANG_RATING?></th>
                    <?php ?>

                    <?php foreach($fields as $field){ ?>
                        <?php if (!$field['is_in_list']) { continue; } ?>
                        <?php if ($field['groups_read'] && !$user->isInGroups($field['groups_read'])) { continue; } ?>
                        <?php
                            
if (!isset($field['options']['label_in_list'])) {
                                
$label_pos 'none';
                            } else {
                                
$label_pos $field['options']['label_in_list'];
                            }
                        
?>
                        <th>
                            <?php echo $label_pos!='none' $field['title'] : '&nbsp'?>
                        </th>
                    <?php ?>
                </tr>
            </thead>
            <tbody>
                <?php foreach($items as $item){ ?>
                    <?php $item['ctype'] = $ctype?>
                    <tr<?php if (!empty($item['is_vip'])){ ?> class="is_vip"<?php ?>>
                        <?php if (isset($fields['photo']) && $fields['photo']['is_in_list']){ ?>
                            <td class="photo">
                                <a href="<?php echo href_to($ctype['name'], $item['slug'].'.html'); ?>">
                                    <?php if (!empty($item['photo'])){ ?>
                                        <?php echo html_image($item['photo'], $fields['photo']['options']['size_teaser']); ?>
                                        <?php unset($item['photo']); ?>
                                    <?php ?>
                                </a>
                            </td>
                        <?php ?>
                        <?php if ($ctype['is_rating']){ ?>
                            <td class="rating">
                                <?php echo $item['rating_widget']; ?>
                            </td>
                        <?php ?>
                        <?php foreach($fields as $field){ ?>
                                <?php if (!$field['is_in_list']) { continue; } ?>
                                <?php if ($field['groups_read'] && !$user->isInGroups($field['groups_read'])) { continue; } ?>
                                <?php if (empty($item[$field['name']])) { echo '<td>&nbsp;</td>'; continue; } ?>
                                <td class="field ft_<?php echo $field['type']; ?> f_<?php echo $field['name']; ?>">
                                    <?php if ($field['name'] == 'title' && $ctype['options']['item_on']){ ?>
                                        <?php if ($item['parent_id']){ ?>
                                            <a class="parent_title" href="<?php echo href_to($item['parent_url']); ?>"><?php echo htmlspecialchars($item['parent_title']); ?></a>
                                            &rarr;
                                        <?php ?>
                                        <a href="<?php echo href_to($ctype['name'], $item['slug'].'.html'); ?>"><?php echo htmlspecialchars($item[$field['name']]); ?></a>
                                    <?php } else { ?>
                                        <?php echo $field['handler']->setItem($item)->parseTeaser($item[$field['name']]); ?>
                                    <?php ?>
                                </td>
                        <?php ?>
                    </tr>
                <?php ?>
            </tbody>
        </table>

    </div>

    <?php if ($perpage $total) { ?>
        <?php echo html_pagebar($page$perpage$total$page_url$filters); ?>
    <?php ?>

<?php } else { echo LANG_LIST_EMPTY; } ?>
Онлайн: 0
Реклама