<html>
<head>
{ include file="header.tpl" }
<script type="text/javascript" src="js/common.js"></script>
<script type="text/javascript" src="js/read.js"></script>
<script type="text/javascript" src="js/search.js"></script>
</head>
<body onload="textOn();">
<div class="windowStyle">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
<tr class="windowName"><th colspan="2">差分検索</th></tr>
<tr align="left">
    <th><img src="images/search.png" height=20 width=20></th>
    <th width="100%"><a href="#" onClick="doSearch('action_sync_read', 1, 0)" title="差分を検索します">差分検索</a>
</th></tr>
</table>
</div>
<div class="searchStyle">
{form name="input" target="main"}
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr><th class="itemName" colspan="2">システム選択</th></tr>
{if $app.cluster_list || $app.master_list}
{if $app.cluster_list}
<!--
<tr><td colspan="2"><b>マスタデータからシステム</b></td></tr>
-->
{foreach from=$app.cluster_list item="name"}
<tr>
    <td align="left" width="10"><input type="checkbox" checked id="cl_{$name}" name="sync_system_list[]" value="{$name}"></td>
    <td align="left">{$name}</td>
</tr>
{/foreach}
<tr><td colspan="2" align="left"><input type="button" value="全て選択" onclick="checkOn('cl');">&nbsp;<input type="button" value="全て解除" onclick="checkOff('cl');"></td></tr>
{/if}
{if $app.master_list}
<tr><td colspan="2"><b>システムからマスターデータ</b></td></tr>
{foreach from=$app.master_list item="name"}
<tr>
    <td align="left" width="10"><input type="checkbox" checked id="ma_{$name}" name="sync_system_list[]" value="{$name}"></td>
    <td align="left">{$name}</td>
</tr>
{/foreach}
<tr><td colspan="2" align="left"><input type="button" value="全て選択" onclick="checkOn('ma');">&nbsp;<input type="button" value="全て解除" onclick="checkOff('ma');"></td></tr>
{/if}
{else}
<tr><td colspan="2">&nbsp;該当システムなし</td></tr>
{/if}
{if isset($session.role) && $session.role == "system_admin"}
<tr><th colspan="2" class="itemName">{form_name name="tenant"}</th></tr>
<tr><td colspan="2">{form_input name="tenant" emptyoption="---選択してください---"}</td></tr>
{/if}
<tr><th class="itemName" colspan="3">検索条件</th></tr>
<tr>
    <td width="10" align="left"><input type="radio" name="entry" value="all" onclick="radioFunc(this);"checked></td>
    <td align="left" colspan="2"><b>全て</b></td>
</tr>
<tr>
    <td width="10" align="left"><input type="radio" name="entry" value="user" onclick="radioFunc(this);"></td>
    <td align="left" colspan="2"><b>ユーザ</b></td>
</tr>
<tr><td></td><td>{form_name name="user_id"}</td></tr>
<tr><td></td><td>{form_input name="user_id" size="18"}</td></tr>
<tr><td></td><td>{form_name name="user_name"}</td></tr>
<tr><td></td><td>{form_input name="user_name" size="18"}</td></tr>
{if isset($config.modules.Group)}
<tr>
    <td width="10" align="left"><input type="radio" name="entry" value="group" onclick="radioFunc(this);"></td>
    <td align="left" colspan="2"><b>グループ</b></td>
</tr>
<tr><td></td><td width="100">{form_name name="group_name"}</td></tr>
<tr><td></td><td>{form_input name="group_name" size="18"}</td></tr>
{/if}
</table>
{form_input name="file_output"}
{form_input name="operation"}
<input type="hidden" name="action_sync_read" value="">
{/form}
</div>
</body>
</html>
