#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2010 Aimluck,Inc.
 * http://aipostyle.com/
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as
 * published by the Free Software Foundation, either version 3 of the
 * License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 *
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 *#

## ---------------------------------------------------------------------------
#set($link = "$!jslink.getPortletById($!portlet.ID)")
#if ($result.List.size() == 0)
<div class="message">$!{result.SelectedFolderInfo.FolderName} にはファイルはありません。</div>
#else
<div style="padding:5px 0px 5px 3px">『$!{result.SelectedFolderInfo.FolderName}』 のファイル一覧</div>
#ALajaxpageview('CabinetScreen' $result)
#ALtableheaderWide()
<tr>
#ALtdhead("#ALajaxsort('file_title' 'タイトル' $result 'CabinetScreen')")
#ALtdhead("#ALajaxsort('file_name' 'ファイル名' $result 'CabinetScreen')")
#ALtdhead("#ALajaxsort('update_date' '更新日時' $result 'CabinetScreen')")
#ALtdheadThin("#ALajaxsort('file_size' 'サイズ（KB）' $result 'CabinetScreen')")
</tr>
#foreach ($record in $result.List)
<tr>
#ALtdcellheader()
<a href="javascript:void(0);" onclick="aipo.common.showDialog('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","CabinetFileDetailScreen").addQueryData("entityid",$record.FileId).addQueryData("folder_id",$result.SelectedFolderInfo.FolderId))');">$!record.FileTitle</a>
#ALtdcellfooter()
#ALtdcellheader()
<a href="$jslink.getTemplate("CabinetFileRawScreen").addQueryData("entityid", ${record.FileId})">$record.WbrFileName</a>
#ALtdcellfooter()
#ALtdcell($record.UpdateDate)
<td class="item" align="right">$record.FileSize</td>
</tr>
#end
#ALtablefooter()
#end
