Beispiel #1
0
        $cells = array(i18n::s('Downloads'), 'left=' . Skin::build_number($item['hits'], i18n::s('downloads')));
        $context['text'] .= Skin::table_row($cells, $lines++);
    }
    // the first poster
    if ($item['create_name']) {
        $cells = array(i18n::s('Posted by'), $item['create_name']);
        $context['text'] .= Skin::table_row($cells, $lines++);
    }
    // the last poster
    if ($item['edit_name'] != $item['create_name']) {
        $cells = array(i18n::s('Updated by'), $item['edit_name']);
        $context['text'] .= Skin::table_row($cells, $lines++);
    }
    // date of last action
    $cells = array(i18n::s('Last action'), Skin::build_date($item['edit_date']));
    $context['text'] .= Skin::table_row($cells, $lines++);
    // associates may change the active flag: Yes/public, Restricted/logged, No/associates
    if (Surfer::is_associate()) {
        if ($item['active'] == 'N' && Surfer::is_associate()) {
            $context['text'] .= Skin::table_row(array(i18n::s('Access'), 'left=' . i18n::s('Private - Access is restricted to selected persons')), $lines++);
        } elseif ($item['active'] == 'R' && Surfer::is_member()) {
            $context['text'] .= Skin::table_row(array(i18n::s('Access'), 'left=' . i18n::s('Community -Access is granted to any identified surfer')), $lines++);
        }
    }
    // end of the table
    $context['text'] .= Skin::table_suffix();
    // count items related to this file
    $context['text'] .= Anchors::stat_related_to('file:' . $item['id'], i18n::s('Following items are attached to this record and will be deleted as well.'));
}
// render the skin
render_skin();