Example #1
0
		</tr>
	<?php 
}
if ($countFiles > 0) {
    // -------------
    // Footer with "check all", "with selected: ..":
    // --------------
    ?>
		<tr class="listfooter firstcol lastcol file_selector">
			<td colspan="<?php 
    echo $filetable_cols;
    ?>
">

			<?php 
    echo $Form->check_all();
    $Form->add_crumb('file');
    $field_options = array();
    /*
     * TODO: fp> the following is a good idea but in case we also have $mode == 'upload' it currently doesn't refresh the list of attachements
     * which makes it seem like this feature is broken. Please add necessary javascript for this.
     */
    if ($fm_mode == 'link_object' && $mode != 'upload') {
        // We are linking to an object...
        $field_options['link'] = $LinkOwner->translate('Link files to current xxx');
    }
    if (($fm_Filelist->get_root_type() == 'collection' || !empty($Blog) && $current_User->check_perm('blog_post_statuses', 'edit', false, $Blog->ID)) && $mode != 'upload' && $current_User->check_perm('admin', 'normal')) {
        // We are browsing files for a collection:
        // User must have access to admin permission
        // fp> TODO: use current as default but let user choose into which blog he wants to post
        $field_options['make_post'] = T_('Make one post (including all images)');