<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 onload="textOn();">
<div class="windowStyle">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
{ assign var="window_name" value="差分結果" }
{ include file="window_name.tpl" }
<tr><td align="right"><div style="color:red">{message name=""}</div></td></tr>
</table>
</div>
{form name="input" target="main"}
<div class="listName">
<table width="100%" frame="box" rules="none" cellspacing="0" cellpadding="3">
{ assign var="frame" value = "menu" }
{ assign var="action" value = "action_sync_read" }
{ include file="change_page.tpl" }
</table>
</div>
<div style="height:{ if $app.total_num > 13 }318{ elseif $app.total_num < 1 }68{ else }{ $app.total_num*24+48 }{ /if }px; overflow:scroll;">
<table width="100%" border="1" cellspacing="1" cellpadding="4" bordercolor="lightgrey">
<thead>
<tr class="listHead">
    <td align="center" width="40">NO.</td>
    <td align="center" width="120">システム名</td>
    <td align="center" width="120">ID</td>
    <td align="center" width="120">種類</td>
    <td align="center" width="700">内容</td>
</tr>
</thead>
<tbody id="listData">
{ foreach from=$app.list item="info" name="messages"}
<tr>
    <td align="center">{$smarty.foreach.messages.iteration}</td>
    <td align="left">{$info.sync}</td>
    <td align="left">{$info.name}</td>
    <td align="left">{$info.type}</td>
    <td align="left" width="700">{$info.message}</td>
</tr>

{ foreachelse }
<tr class="listNone"><td colspan="5">&nbsp;</td></tr>
{ /foreach}
</tbody>
</table>
</div>
<div align="center">
<hr>
{ if $app.total_num>0 }
<input type="button" value="同期" onClick="goAction('action_sync_update');">&nbsp;
<input type="button" value="ファイル出力" onClick="doDownloadFile('menu', 'action_sync_read')">
<input type="hidden" value={$app.systems} name="systems">
<input type="hidden" value={$app.filter} name="filter">
{ /if }
{form_input name="operation"}
<input type="hidden" name="action_sync_update" value="">
{/form}
</div>
</body>
</html>
