#*
 * 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/>.
 *#
## ---------------------------------------------------------------------------
#ALjavascript("javascript/aipo/schedule/form.js")
#ALjavascript("javascript/aipo/workflow/form.js")
#ALjavascript("javascript/aipo/blog/form.js")
#ALjavascript("javascript/aipo/msgboard/form.js")
#ALjavascript("javascript/aipo/note/form.js")
## ------------------------------------------
#if ($result.List.size() < 1 || ! $result.List)
<div class="message">新着情報はありません。</div>
#else
#foreach ($record in $result.List)
#if($record.beans && ($record.beans.size() > 0))
<div  style="padding:5px 0px 15px;">
<h3>$!{record.PortletName}</h3>
<ul>
#foreach ($record2 in $record.beans)
#if($!record2.ParamMap && $!record2.ParamMap.size() > 0)
#set($paramstr = "")
#foreach($record3 in $record2.ParamMap)
#set($paramstr = "$!{paramstr}&amp;$!{record3.Key}=$!{record3.Value}")
#end
#end
<li>
#if($!record2.JsFunctionName && ($!record2.JsFunctionName != ""))
<a href="javascript:void(0);" onclick="aipo.common.showDialog('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("entityid","$record2.EntityId"))$!{paramstr} ', '$!portlet.ID', $record2.getJsFunctionName());">
	$!record2.getName().toString() &nbsp;  ($!record2.OwnerName) &nbsp; $!record2.getUpdateDate().toString()</a>
#else
<a href="javascript:void(0);" onclick="aipo.common.showDialog('$!utils.escapeXML($!jslink.getPortletById($!portlet.ID).addQueryData("entityid","$record2.EntityId"))$!{paramstr} ', '$!portlet.ID');">
    $!record2.getName().toString() &nbsp; ($!record2.OwnerName) &nbsp; $!record2.getUpdateDate().toString()</a>
#end
</li>
#end
</ul>
#end
</div>
#end
#end
