<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 = "ユーザ登録" }
{ 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:red">{message name=""}</div>
    </th>
</table>
</div>
<div class="infoName">
<table width="100%" border="0" cellspacing="0" cellpadding="2">
<tr><th class="tabActive">
  <font color="blue">ユーザ情報</font>
</th></tr>
</table>
</div>
<div class="infoStyle">
{form name="input" target="main"}
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr><td>
    <table width="100%" frame="below" rules="all" cellspacing="0" cellpadding="5" bordercolor="lightgrey">
{if isset($config.secioss.system)}
    <tr><th class="itemName" width="1%" title="システム名です">{form_name name="newsystem"}</th>
        <td>{form_input name="newsystem"}</td></tr>
{/if}
{if isset($config.secioss.area) && isset($session.role) && $session.role == "system_admin"}
    <tr><th class="itemName" width="1%" title="テナント名です">{form_name name="newtenant"}</th>
        <td>{form_input name="newtenant"}</td></tr>
{/if}
{if isset($config.secioss.unit)}
    <tr><th class="itemName" width="1%" title="所属名です">{form_name name="newunit"}</th>
        <td>{form_input name="newunit"}</td></tr>
{/if}
    <tr><th class="itemName" width="1%" title="ユーザIDです">{form_name name="newid"}*</th>
        <td size="10">{form_input name="newid"}</td></tr>
    <tr><th class="itemName" width="1%" title="社員番号です">{form_name name="newempnum"}</th>
        <td>{form_input name="newempnum" size="20"}</td></tr>
{if isset($config.secioss.user.loginidattr)}
   <tr><th class="itemName" width="1%" title="ログインIDです">{form_name name="newloginid"}
        </th>
        <td size="10">{form_input name="newloginid"}</td></tr>
{/if}
    <tr><th class="itemName" width="1%" title="姓名（漢字）です">氏名（漢字）*</th>
        <td>
        {form_name name="newsnkanji"}&nbsp;{form_input name="newsnkanji" size="20"}
        {form_name name="newgnkanji"}&nbsp;{form_input name="newgnkanji" size="20"}
        </td></tr>
{if !isset($session.ldaptype) || $session.ldaptype != 'AD'}
    <tr><th class="itemName" width="1%" title="姓名（かな）です">氏名（かな）</th>
        <td>
        {form_name name="newsnkana"}&nbsp;{form_input name="newsnkana" size="20"}
        {form_name name="newgnkana"}&nbsp;{form_input name="newgnkana" size="20"}
        </td></tr>
{/if}
    <tr><th class="itemName" width="1%" title="メールアドレスです">{form_name name="newmail"}</th>
        <td>
        {form_input name="newmail" size="40"}
        </td></tr>
    <tr><th class="itemName" width="1%" title="パスワードです">{form_name name="newpassword"}*</th>
        <td>
        {form_input name="newpassword" size="20"}
        </td></tr>
{if isset($config.secioss.user.statusattr)}
    <tr><th class="itemName" width="1%" title="アカウントの状態です">{form_name name="newstatus"}</th>
        <td>{form_input name="newstatus" default=$form.newstatus}
        </td></tr>
{/if}
{if isset($config.secioss.sync)}
    <tr><th class="itemName" width="1%" title="更新対象システムです">{form_name name="newsync"}</th>
        <td>{form_input name="newsync" default=$form.newsync}
        </td></tr>
{/if}
{foreach from=$config.secioss.user.userdefinedattr key=attr item=name}
    <tr><th class="itemName" width="1%">{$name}</th>
        <td><input type="text" name="attr_{$attr}" value="{$app.$attr}"></td></tr>
{/foreach}
    </table>
    <tr><td colspan="2" align="center">
        <br>
        <input type="button" value="登録" onClick="doCreate('action_user_create', 'ユーザ情報')">
        </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>
