#*
 * 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($career = 'au')
#set($link = "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doTodo_list','1')")
#set($linklist = [["ToDoへ", "$!jslink.getPortletById($!portlet.ID).addQueryData('eventSubmit_doTodo_menu','1')"], ["TOPへ", "$!jslink.getAction('controls.Restore',$!portlet.ID)"], ["ﾛｸﾞｱｳﾄ", "$jslink.setAction($config.getString('action.logout'))"]])
#if($!result.currentTab == "list") #set($pagetitle = "未完了ToDo一覧") #else #set($pagetitle = "完了ToDo一覧") #end
#ALcell_pagetitle($career "$pagetitle")
#if ($result.List.size() == 0)
<div class="message">ToDoはありません。</div>
#else
#if($result.PagesNum > 1)
#ALcell_pageview($career $link $result)
#ALcell_hr($career '1')
#end
<ul>
#foreach ($record in $result.List)
#set($limitState = ${record.limitState.Value})
#if($result.isMatch(0, $limitState)) 
#set($color = "#FF6633")
#elseif($result.isMatch(1, $limitState))
#set($color = "#FF0000")
#else
#set($color = "#0000FF")
#end
#ALcell_li_header($career)<a href="$!jslink.getPortletById($!portlet.ID).addQueryData('mode','detail').addQueryData('entityid',$record.TodoId)"><font color="$color">$!record.TodoName</font></a>
#if(! ${record.isPublic()})
（非公開）
##<img src="images/todo/todo_secret.gif" border="0" width="16" height="16" alt="非公開">
#end
#ALcell_li_footer($career)
#end
</ul>
#if($result.PagesNum > 1)
#ALcell_hr($career '1')
#ALcell_pageview($career $link $result)
#end
#end
#*
<hr>
ｶﾃｺﾞﾘ選択
<select name="filter">
<option value="">（全体）
#foreach( $record in $result.CategoryList )
<option value="$!record.CategoryId" #if ($!result.CurrentFilter && $!result.CurrentFilter == $!record.CategoryId.toString()) selected #end>$!record.CategoryName
#end
</select>
<input type="hidden" name="filtertype" value="category" >
#submit("eventSubmit_doTodo_list" "表示切替")
*#
##ALcell_formfooter()
#ALcell_hr($career '1')
#ALcell_linklist($career $linklist)
