<?
/**
 * 赠送代金券
 * $Id: user_search_list.inc,v 1.1
 * @author taocy
 * @package src.admin.templates
 */
?>
<b>代金券使用</b><br /><br />

<form name="user_use_coupon" action="user_use_coupon_exec_result.php" method="post">
<input type="hidden" name="id" value="<?=$id ?>" />
<input type="hidden" name="status_from" value="<?=$user_use_coupon_dat->status ?>" />
<table>
<tr>
	<td>手机号码</td>
	<td class="begin_blank"><?=htmlspecialchars($user_mst->mobile) ?></td>
</tr>
<tr>
	<td>昵称</td>
	<td class="begin_blank"><?=htmlspecialchars($user_mst->nickname) ?></td>
</tr>
<tr>
	<td>代金券</td>
	<td class="begin_blank"><?=Coupon::getTitleById($user_use_coupon_dat->coupon_id) ?></td>
</tr>
<tr>
	<td>代金券</td>
	<td class="begin_blank">
			<select name="status_to">
				<?
				foreach ($coupon_status_list as $coupon_status_obj) {
				?>
					<option value="<?=$coupon_status_obj->name ?>" <?=$coupon_status_obj->name == $status_to ? " selected " : "" ?>><?=$coupon_status_obj->title ?></option>
				<?
				}
				?>
			</select>
	</td>
</tr>
<tr>
	<td>说明</td>
	<td class="begin_blank">
		<input type="text" id="comment" name="comment" value="" style="width:300px;"/><br/>
		<?=nl2br($user_use_coupon_dat->comment) ?>
		<br />
	</td>
</tr>
<tr>
	<td><input type="button" value="执行操作" class="button_width_normal" onClick="doUseCouponExec();" /></td>
</tr>
</table>
</form>
