<html>
<head>
{ include file="header.tpl" }
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/frame_adjuster.js"></script>
<script type="text/javascript" src="js/table_sorter.js"></script>
<script type="text/javascript" src="js/read.js"></script>
</head>
<body>
<div class="windowStyle">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
{ assign var="window_name" value = "同期サーバ設定" }
{ include file="window_name.tpl"}
<tr class="windowMenu">
    <th><img src="images/publish.png"></th>
    <th>
    <a href="#" onClick="goAction('action_system_create')"
       title="同期サーバを登録します">同期サーバ登録</a>
    </th>
    <th>
    &nbsp;&nbsp;
    </th>
    <th><img src="images/search.png"></th>
    <th>
    <a href="#" onClick="goAction('action_system_read')"
       title="同期サーバを一覧します">同期サーバ一覧</a>
    </th>
    <th width="100%" align="right">
      <div style="color:red">{message name=""}</div>
    </th>
</tr>
</table>
</div>
{form name="input" target="main"}
{if isset($app.list)}
<div class="listName">
<table width="100%" frame="box" rules="none" cellspacing="0" cellpadding="3">
{ assign var="frame" value = "menu" }
{ assign var="action" value = "action_system_read" }
{ include file="change_page.tpl" }
</table>
</div>
<div style="overflow:scroll;">
<table width="100%" border="1" cellspacing="1" cellpadding="4" bordercolor="lightgrey">
<thead>
<tr class="listHead">
    <td align="center" width="5%" rowspan="2">選択</td>
    <td align="right" width="5%">No.</td>
    <td align="center" width="10%">操作</td>
    <td align="center" width="20%">システム名</td>
    <td align="center" width="10%">同期サーバのタイプ</td>
    <td align="center" widht="10%">LDAPサーバの種類</td>
    <td align="center" width="30%">URI</td>
    <td align="center" width="10%">状態</td>
</tr>
</thead>
<tbody id="listData">
{ foreach from=$app.list item="info" name="systems"}
<tr>
    <td align="center"><input type="checkbox" name="system_list[]" value="{$info.dn}"></td>
    <td align="right">{ $smarty.foreach.systems.iteration-1+1 }</td>
    <td align="center">
    <a href="#"
    <a href="#"
       onClick="doRefer('action_system_update', '{ $info.dn }')"
       title="編集"><img src="images/edit.png" border="0"></a>&nbsp;
    <a href="#"
       onClick="doDelete('action_system_delete', '{ $info.dn }', '同期サーバ')"
       title="削除"><img src="images/delete.png" border="0"></a>
    </td>
    <td align="left">{$info.dn}</td>
    <td align="left">{if $info.synctype == "master"}マスタ{else}スレーブ{/if}</td>
    <td align="left">{if $info.ldaptype == "AD"}Active Directory{else}LDAPサーバ{/if}</td>
    <td align="left">{$info.uri}</td>
    <td align="left">{$info.status}</td>
</tr>
{ foreachelse }
<tr class="listNone"><td colspan="8">&nbsp;</td></tr>
{ /foreach }
</tbody>
</table>
</div>
<div align="center">
<br>
<input type="button" value="削除" onClick="doDelete('action_system_delete', null, '同期サーバ')">
</div>
{ /if }
{form_input name="dn"}
{form_input name="operation"}
<input type="hidden" name="action_system_read" value="">
<input type="hidden" name="action_system_update" value="">
<input type="hidden" name="action_system_create" value="">
<input type="hidden" name="action_system_delete" value="">
{/form}
</body>
</html>
