#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2008 Aimluck,Inc.
 * http://aipostyle.com/
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU 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 General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program. If not, see <http://www.gnu.org/licenses/>.
 *#
## ---------------------------------------------------------------------------
#set($tabs = [["メモ一覧", "",""]])
#set ($indicator_id = "indicator-list-")
## ---------------------------------------------------------------------------
#ALtabheader($tabs "")
#ALspacebothheader()
#ALajaxIndicator("${indicator_id}" "$!{portlet.ID}" "")
#ALajaxlistformheader('メモ')
#if($result.List.size() == 0)
<div class="message">指定された条件に該当するメモはありません。</div>
#else
#ALajaxpageview('MemoListScreen' $result)
#ALtableheaderWide()
<tr>
#ALtdheadThin("#ALswitchCheckbox()")
#ALtdheadW75("#ALajaxsort('memo_name' 'メモ名' $result 'MemoListScreen')")
#ALtdheadThin("#ALajaxsort('update_date' '更新日' $result 'MemoListScreen')")
#ALtdheadThin("#ALajaxsort('create_date' '作成日' $result 'MemoListScreen')")
#ALtdheadThin(' ')
</tr>
#foreach ($record in $result.List)
<tr>
#ALtdcellAtt("<input name='check$!record.MemoId' type='checkbox' value='$!record.MemoId'/>" 'align="center"')
#ALtdcellheader()
<a href="javascript:void(0);" onclick="aipo.common.showDialog('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","MemoDetailScreen").addQueryData("entityid",$record.MemoId))');">$!record.MemoName</a>
#ALtdcellfooter()
#ALtdcellAtt($!record.UpdateDate 'nowrap="nowrap"')
#ALtdcellAtt($!record.CreateDate 'nowrap="nowrap"')
#ALtdcellAtt("#ALajaxbuttonLinkCallback('編集' $!jslink.getPortletById($!portlet.ID).addQueryData('template','MemoFormScreen').addQueryData('entityid', $!record.MemoId) 'images/icon/icon_edit.gif' $!portlet.ID 'aipo.memo.onLoadMemoDialog')" 'nowrap="nowrap"')
</tr>
#end
#ALtablefooter()
#ALbuttonheaderRight()
選択したメモを #ALajaxbuttonCheckboxDelete('削除する' "$!jslink.getPortletById($!portlet.ID).addQueryData('template','MemoFormJSONScreen').addQueryData('mode','multi_delete')" "$indicator_id" "$!portlet.ID" "aipo.memo.onReceiveMessage")
#ALbuttonfooterRight()
#ALajaxpageviewFooter('MemoListScreen' $result)
#end
#ALformfooter()
#ALspacebothfooter()
#ALajaxtabfooter()
