{set:$id = IFilter::act(IReq::get('id'),'int')}
{query: name=refer as r join=left join goods as goods on r.goods_id eq goods.id left join user as u on r.user_id eq u.id left join admin as admin on r.admin_id eq admin.id left join seller as se on se.id eq r.seller_id fields=se.seller_name,r.*,u.username,goods.name as goods_name,goods.id as goods_id,admin.admin_name where=r.id eq $id}{/query}
{if:!$items}
{set:IError::show('数据不存在')}
{/if}
<div class="headbar">
	<div class="position"><span>会员</span><span>></span><span>咨询管理</span><span>></span><span>回复咨询</span></div>
	<div class="operating">
		<a onclick="window.location.href='{url:/comment/refer_del/check/$item[id]}'" href="javascript:void(0);"><button class="operating_btn" type="button"><span class="delete">删除</span></button></a>
		<a href="javascript:void(0)" onclick="history.go(-1)"><button class="operating_btn" type="button"><span class="return">返回</span></button></a>
	</div>
</div>
<div class="content_box">
	<div class="content form_content">
		<form action="{url:/comment/refer_reply}" method="post" name="refer_edit">
			<input type="hidden" value="{$item['id']}" name="refer_id" />
			<table class="form_table">
				<col width="150px" />
				<col />
				<tr>
					<th>咨询人：</th>
					<td>
						{if:isset($item['username'])}<a href="{url:/member/member_edit/uid/$item[user_id]}">{$item['username']}</a>{else:}非会员顾客{/if}
					</td>
				</tr>
				<tr>
					<th>咨询时间：</th><td>{$item['time']}</td>
				</tr>
				<tr>
					<th>咨询内容：</th><td>{$item['question']}</td>
				</tr>
				<tr>
					<th valign="top">回复：</th><td><textarea name="content" rows="" cols="">{$item['answer']}</textarea></td>
				</tr>
				<tr>
					<th></th><td><button class="submit" type="submit"><span>回 复</span></button></td>
				</tr>
			</table>
		</form>
	</div>
</div>
