{dPtranslate word='File Name'} |
{dPtranslate word='Description'} |
{dPtranslate word='Versions'} |
{dPtranslate word='Category'} |
{dPtranslate word='Task Name'} |
{dPtranslate word='Owner'} |
{dPtranslate word='Size'} |
{dPtranslate word='Type'} |
{dPtranslate word='Date'} |
{dPtranslate word='co Reason'} |
{dPtranslate word='co'} |
|
|
{foreach from=$file.file_versions item='file'}
{if $file.file_name == $row.file_name && $file.file_project == $row.file_project}
$file_icon = getIcon($file['file_type']);
$file_date = new CDate( $file['file_date'] );
{include file='list_folder.row.html' file=$file}
{/if}
{/foreach}
{/if}
|
{$file_types[$row.file_category]}
|
{$row.task_name} |
{$row.contact_first_name} {$row.contact_last_name} |
{$row.file_size/1024|string_format:'%.2f'} kb |
{$row.file_type} |
{dPdateFormat date=$row.file_date format='full'} |
{$row.file_co_reason} |
{if $canEdit && !$row.file_checkout}
{dPshowImage src='./modules/files/images/up.png' wsize='16' alt='checkout' title='checkout file'}
{elseif $row.file_checkout == $AppUI->user_id}
{dPshowImage src='./modules/files/images/down.png' wsize='16' alt='checkin' title='checkin file'}
{elseif $file.file_checkout == 'final'}
final
{else}
{php}
$q4 = new DBQuery;
$q4->addQuery("file_id, file_checkout, user_username as co_user, contact_first_name, contact_last_name");
$q4->addTable('files');
$q4->leftJoin('users', 'cu', 'cu.user_id = file_checkout');
$q4->leftJoin('contacts', 'co', 'co.contact_id = cu.user_contact');
$q4->addWhere('file_id = '.$file['file_id']);
$co_user = array();
$co_user = $q4->loadList();
$co_user = $co_user[0];
$q4->clear();
echo $co_user['contact_first_name'].' '.$co_user['contact_last_name'].' ('.$co_user['co_user'].')';
{/if}
|
{if $canEdit && (!$file.file_checkout || $file.file_checkout == 'final') }
{dPshowImage src='./modules/files/images/kedit.png' wsize='16' alt='edit file' title='edit file'}
{dPshowImage src='./modules/files/images/duplicate.png' wsize='16' alt='duplicate file' title='duplicate file'}
{dPshowImage src='./modules/files/images/remove.png' wsize='16' alt='delete file' title='delete file'}
{/if}
|
|