#*
 * 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 = [["グループ一覧", "",""]])
## ---------------------------------------------------------------------------
#ALtabheader($tabs "")
#ALspacebothheader()
#if($result.List.size() == 0)
<div class="message">社内の同僚をグループ化することで、ToDo などでグループごとの表示の切り替えが可能になります。 </div>
<div class="message">『グループ追加』 ボタンを押して、追加してください。 </div>
#else
#ALformheader('Myグループ' $jslink $portlet)
#ALajaxpageview('MyGroupListScreen' $result)
#ALtableheaderWide()
<tr>
## #ALtdheadThin(' ')
#ALtdheadWide("#ALajaxsort('group_alias_name' 'グループ名' $result 'MyGroupListScreen')")
#ALtdheadThin(' ')
</tr>
#foreach ($record in $result.List)
<tr>
## #ALtdcellAtt("<input name='check$!record.GroupName' type='checkbox' value='$!record.GroupName'/>" 'align="center"')
#ALtdcellheader()
<a href="javascript:void(0);" onclick="aipo.common.showDialog('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("template","MyGroupDetailScreen").addQueryData("entityid",$!record.GroupName))');">$!record.GroupAliasName</a>
#ALtdcellfooter()
#ALtdcellAtt("#ALajaxbuttonLinkCallback('編集' $!jslink.getPortletById($!portlet.ID).addQueryData('template','MyGroupFormScreen').addQueryData('entityid', $!record.GroupName) 'images/icon/icon_edit.gif' $!portlet.ID 'aipo.mygroup.onLoadMygroupDialog')" 'nowrap="nowrap"')
</tr>
#end
#ALtablefooter()
## #ALbuttonheaderRight()
## 選択したグループを#ALbutton('eventSubmit_doMygroup_multi_delete' '削除する' 'aimluck.io.checkboxDeleteSubmit(this)')"
## #ALbuttonfooterRight()
#ALajaxpageviewFooter('MyGroupListScreen' $result)
#ALformfooter()
#ALspacebothfooter()
#ALtabfooter()
#end
