#*
 * Aipo is a groupware program developed by Aimluck,Inc.
 * Copyright (C) 2004-2011 Aimluck,Inc.
 * http://www.aipo.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/>.
 *#

## ---------------------------------------------------------------------------
							<!-- HEADER -->
#if ($data.User.hasLoggedIn())
                            <div id="header" class="clearfix">
							  <input type="image" style="position: absolute; top: -9999px; "/>
                              <div id="logo"></div>
                              <div id="topField" class="clearfix">
                                <div id="nameField">#if($!data.User.CompanyId >= 1) $!data.User.getCompanyName($!data.User.CompanyId) #end $utils.escapeXML($!data.User.LastName.toString()) $!utils.escapeXML($!data.User.FirstName.toString()) さま<span id="btnLogout">
                                  <input type="image" alt="ログアウト" name="logout" src="images/common/dot.gif" onclick="location.href='$jslink.setAction($config.getString("action.logout"))'">
                                  </span>
                                </div>
                                <div id="datetimeField">$!data.User.LastAccessTime</div>
                                <div class="activityField">
                                <div class="dijitRight">
                                <span id="activitycheckerContainer"></span></div></div>
                              </div>
                            </div>
#else
                            <div id="header" class="clearfix">
                              <div id="logo"></div>
                              <div class="alignright">
                              </div>
                            </div>
#end
                            <!-- /HEADER -->
<script language="JavaScript" type="text/javascript">
//<![CDATA[

dojo.require("aipo.widget.DropdownActivityChecker");

dojo.addOnLoad(function () {
    var acHtml = document.getElementById("activitycheckerContainer");
    if(acHtml){
       var params = {
            widgetId: "activitychecker",
            iconURL: "themes/$!theme/images/common/icon_message.gif",
            iconAlt: "あなた宛のお知らせ"
       };
       var ac = new aipo.widget.DropdownActivityChecker(params , acHtml);
   }
});

//]]>
</script>
