#*
 * 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/>.
 *#

#*
Copyright 2004 The Apache Software Foundation

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*#

<table width="100%" cellpadding="3" cellspacing="1" BORDER="1">
  <tr>
    <th>${l10n.BROWSER_CLIENT_NAME_VM}</th>
    <th>${l10n.BROWSER_CLIENT_PATTERN_VM}</th>
    <th>${l10n.BROWSER_CLIENT_MIME_TYPES_VM}</th>
    <th>${l10n.BROWSER_CLIENT_CAPABILITIES_VM}</th>
    <th colspan="2">${l10n.BROWSER_CLIENT_ACTIONS_VM}</th>
  </tr>
#foreach ( $entry in $registry )
  <tr>
    <td>$entry.Name</td>
    <td>$entry.Useragentpattern</td>
    <td valign="top">
#foreach ( $type in $entry.MimetypeMap.Mimetypes )
#if ( $type.equals($entry.MimetypeMap.preferredMimetype) ) 
	<b>$type</b>
#else
	$type
#end
	<br/>
#end
    </td>
    <td>
#if ($entry.CapabilityMap.Capabilities.hasNext() == false) &nbsp; #end    
#foreach ( $capability in $entry.CapabilityMap.Capabilities )
	$capability<br />
#end
    </td>
    <td align="center"><a style="font-size:10" href="$jslink.setPaneByName("ClientForm").addQueryData("mode","update").addQueryData("client_name", $!entry.Name)">${l10n.BROWSER_CLIENT_EDIT_VM}</a>&nbsp;</td>
    <td align="center"><a style="font-size:10" href="$jslink.setPaneByName("ClientForm").addQueryData("mode","delete").addQueryData("client_name", $!entry.Name)">${l10n.BROWSER_CLIENT_DELETE_VM}</a>&nbsp;</td>
  </tr>
#end
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr>
    <td align="right" width="50%">
#if ($prev)
<form action="$jslink" method="post">
	  <input type="hidden" name="start" value="$prev">
      <input type="submit" value="${l10n.BROWSER_CLIENT_LT_LT_PREVIOUS_VM}">
</form>
#end
    </td>
    <td align="left" width="50%">
#if ($next)
<form action="$jslink" method="post">
      <input type="submit" value="${l10n.BROWSER_CLIENT_NEXT_GT_GT_VM}">
      <input type="hidden" name="start" value="$next">
</form>
#end
    </td>
  </tr>
  <tr>
    <td colspan=6 align="left">
    	<a style="font-size:10" href="$jslink.setPaneByName("ClientForm").addQueryData("mode","insert")">${l10n.BROWSER_CLIENT_ADD_CLIENT_VM}</a>&nbsp;
    </td>
  </tr>
</table>

<center>
  <table>
    <tr>
      <td>
        #registry_alpha_nav($jslink $filtered_entries 0 "" "")
      </td>
    </tr>
  </table>
</center>