<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/create.js"></script>
</head>
<body>
<div class="windowStyle">
<table width="100%" border="0" cellspacing="0" cellpadding="5">
{ assign var="window_name" value = "CSV登録" }
{ include file="window_name.tpl" }
<tr class="windowMenu">
    <th><img src="images/publish.png"></th>
    <th>
    <a href="#" onClick="goAction('action_user_create')"
       title="ユーザを登録します">新規登録</a>
    </th>
    <th>
    &nbsp;&nbsp;
    </th>
    <th><img src="images/import_wiz.gif"></th>
    <th>
    <a href="#" onClick="goAction('action_user_importCSV')"
       title="ユーザを登録します">CSV登録</a>
    </th>
    <th width="100%" align="right">
      <div style="color:royalblue">{ $app.message }</div>
      <div style="color:red">{if isset($app.record)}{$app.record}の{/if}{message name=""}</div>
    </th>
</tr>
</table>
</div>
<div class="infoName">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><th class="tabActive">
  <font color="blue">ユーザ情報</font>
</th></tr>
</table>
</div>
<div class="infoStyle">
{form name="input" target="main" enctype="multipart/form-data"}
<input type="hidden" name="MAX_FILE_SIZE" value="50000000" />
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td>
    <table width="100%" frame="below" rules="all" cellspacing="0" cellpadding="5">
    <tr><th class="itemName" width="20%">{form_name name="file"}</th>
        <td class="itemValue" size="60" width="80%">{form_input name="file"}</td></tr>
    <tr><td colspan="2">
    CSVファイルの形式は次のようになります。<br>
    &nbsp;<font size="1">ユーザID,社員番号,姓（漢字）,名（漢字）,姓（ひらがな）,名（ひらがな）,メールアドレス,パスワード{if isset($config.secioss.user.loginattr)},ログインID{/if}{if isset($config.secioss.user.statusattr)},ユーザ状態{/if}{if $session.role == 'system_admin' && isset($config.secioss.area)},テナント{/if}{if $config.secioss.system},システム{/if}</font>
    </td></tr>
    </table>
    <tr><td colspan="2" align="center">
        <br>
        <input type="button" value="登録" onClick="doCreate('action_user_importCSV', 'ユーザ情報')">
        </td></tr>
    </td></tr>
</table>
{form_input name="operation"}
<input type="hidden" name="action_user_create" value="">
<input type="hidden" name="action_user_importCSV" value="">
{/form}
</div>
</body>
</html>
