<?php include_once( "../../../../spider.inc.php" ); ?>
{charset:UTF-8}
{template:admin_default.tpl}
{module:member.member.Load}
{module:member.member.correspond.Form}
{preset:page_title MEMBER_PERSONAL_LABEL . '管理 > 対応履歴'}

	<div class="panc">
		<a href="../../../">管理パネルトップ</a>
		&gt; <a href="../../">{write:MEMBER_PERSONAL_LABEL}情報一覧</a>
		{if:!is_null(member.member.correspond.memberObject)}
		&gt; <a href="../../history/correspond.php">対応履歴検索</a>
		&gt; <a href="../../history/correspond.php?mi={write:member.member.correspond.memberObject->'member_id'}">{write:member.member.correspond.memberObject->'view_name'}さんの対応履歴</a>
		&gt; {if:strlen(member.member.correspond.correspondObject->'correspond_number')>0}編集{else}新規作成{/if}
		{else}
		&gt; 対応履歴検索
		{/if}
	</div>

	<h1>
		{write:MEMBER_PERSONAL_LABEL}管理 &gt; 対応履歴検索
		{if:!is_null(member.member.correspond.memberObject)}
		&gt; {write:member.member.correspond.memberObject->'view_name'}さんの対応履歴
		{/if}
	</h1>
	
{if:IS_ERROR}

	<ul class="error">
	{foreach:errors error}
		<li>{write:error}</li>
	{/foreach}
	</ul>

{else}

	<h2>
		{write:member.member.correspond.memberObject->'view_name'}さんの対応{if:strlen(member.member.correspond.correspondObject->'correspond_number')>0}編集{else}新規作成{/if}
	</h2>
	<form name="mform" action="./confirm.php?mci={write:member.member.correspond.correspondObject->'correspond_id'}&amp;mi={write:member.member.correspond.correspondObject->'member_id'}" method="post">
	<input type="hidden" name="member_id" value="{write:member.member.correspond.correspondObject->'member_id'}" />
	<table class="detail" style="width:96%;margin:0 auto;">
	<tbody>
	<tr>
		<th style="font-size:0.8em;width:14em;white-space: nowrap;">状態指定<span class="required">※</span></th>
		<td>
			<select name="status_flag">
				{foreach:MEMBER_CORERSPOND_STATUS_HASH key val}
				<option value="{write:key}"{if:member.member.correspond.correspondObject->'status_flag'==key} selected{/if}>{write:val}</option>
				{/foreach}
			</select>
		</td>
	</tr>
	<tr>
		<th style="font-size:0.8em;width:14em;white-space: nowrap;">対応開始タイプ<span class="required">※</span></th>
		<td>
			<select name="correspond_type">
				{foreach:MEMBER_CORERSPOND_TYPE_HASH key val}
				<option value="{write:key}"{if:member.member.correspond.correspondObject->'correspond_type'==key} selected{/if}>{write:val}</option>
				{/foreach}
			</select>
		</td>
	</tr>
	<tr>
		<th style="font-size:0.8em;width:14em;white-space: nowrap;">対応方法<span class="required">※</span></th>
		<td>
			<select name="correspond_method">
				{foreach:MEMBER_CORERSPOND_METHOD_HASH key val}
				<option value="{write:key}"{if:member.member.correspond.correspondObject->'correspond_method'==key} selected{/if}>{write:val}</option>
				{/foreach}
			</select>
		</td>
	</tr>
	<tr>
		<th style="font-size:0.8em;width:14em;white-space: nowrap;">対応分類<span class="required">※</span></th>
		<td>
			<select name="category_id">
				{foreach:MEMBER_CORRESPOND_CATEGORIES key val}
				<option value="{write:key}"{if:member.member.correspond.correspondObject->'category_id'==key} selected{/if}>{write:val}</option>
				{/foreach}
			</select>
		</td>
	</tr>
	<tr>
		<th style="font-size:0.8em;width:14em;white-space: nowrap;">対応概要<span class="required">※</span></th>
		<td>
			<input type="text" name="description" size="50" value="{write:member.member.correspond.correspondObject->'description'}" style="ime-mode:inactive;" />
		</td>
	</tr>
	<tr>
		<th style="font-size:0.8em;width:14em;white-space: nowrap;">対応内容<span class="required">※</span></th>
		<td>
			<textarea name="detail_note" cols="60" rows="8">{write:member.member.correspond.correspondObject->'detail_note'}</textarea>
		</td>
	</tr>
	<tr>
		<th style="font-size:0.8em;width:14em;white-space: nowrap;">対応開始日時<span class="required">※</span></th>
		<td>
			<input type="text" name="start_date" size="20" value="{write:member.member.correspond.correspondObject->'start_date'}" />
		</td>
	</tr>
	<tr>
		<th style="font-size:0.8em;width:14em;white-space: nowrap;">最終対応日時<span class="required">※</span></th>
		<td>
			<input type="text" name="correspond_date" size="20" value="{write:member.member.correspond.correspondObject->'correspond_date'}" />
		</td>
	</tr>
	</tbody>
	</table>
	
	<p style="text-align:center;">
		<input type="button" value="履歴に戻る" onclick="window.location.href='../../history/correspond.php?mi={write:member.member.correspond.memberObject->'member_id'}'"
		/><input type="submit" value="入力確認"
		/>
	</p>
	
	</form>

{/if}
	<hr style="width:96%;margin:0 auto;margin-top:1em;" />
	<div style="width:96%;margin:0 auto;text-align:right;">
		{if:strlen(member.member.correspond.memberObject->'member_number')>0}
		{write:member.member.correspond.memberObject->'view_name'}さんの
		&nbsp;&nbsp;
		&gt;&gt; <a href="../detail.php?mi={write:member.member.correspond.memberObject->'member_id'}">詳細情報</a>
		&nbsp;
		&gt;&gt; <a href="../form.php?mi={write:member.member.correspond.memberObject->'member_id'}">情報編集</a>
		&nbsp;
		&gt;&gt; <a href="../../history/correspond.php?mi={write:member.member.correspond.memberObject->'member_id'}">対応履歴</a>
		&nbsp;
		&gt;&gt; <a href="../reject/form.php?mi={write:member.member.correspond.memberObject->'member_id'}">メール拒否設定</a>
		<br /><br />
		{/if}
		&gt;&gt; <a href="../../">{write:MEMBER_PERSONAL_LABEL}一覧へ戻る</a>
	</div>