<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('question.html', 'cb0ce263b5f4c6a9a2dce1f7e5693694', 1353383197); ?>
<?php if($action=='list') { ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="robots" content="none" />
<title>酒店预订网管理系统</title>
<link type="text/css" href="<?php echo MY_THEMEDIR; ?>images/layout.css" rel="stylesheet" />
<link type="text/css" href="<?php echo MY_THEMEDIR; ?>images/win.css" rel="stylesheet" />
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/common/viewMode.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/hotel/questionList.js"></script>
</head>

<body>
<div id="bodymain">
<!-- 头部开始 -->
<?php include $this->tpl->getfile('inc/header'); ?>
<!-- 主体开始 -->
<div id="user_content">
<table width="100%" border="0">
<tr>
<td width="156" valign="top">
<?php include $this->tpl->getfile('inc/lead_hotel'); ?>
</td>
<td valign="top">
<div id="main_user">
<div class="main_user_bg"><div class="main_user_bg1_right"></div></div>
<div class="user_con">
<div id="topFont">
<div class="left">问答列表</div>
<div class="right">
<input type="hidden" id="O_Type" value="list"/>
<input type="hidden" id="currentStatus" />
<select id="simpleSearch" style="width:80px;margin-right:3px"> 
<option value="hotelName">酒店名称</option>
<option value="title">提问标题</option>
<option value="content">回答内容</option>
</select>
<input id="simpleSearchKey" type="text"/>&nbsp;
<button id="O_SimpleSearchBtn" class="searchbutton" type="button">快捷搜索</button>
</div>
</div>
<div class="todayinfoListTop">
<div class="todayinfo1"><span id="O_Count"></span>　<span id="O_Flush">正在加载数据...</span></div>
</div>
<span id="mainlist">
<?php include $this->tpl->getfile('inc/list_question'); ?>
</span>
</div>
<div class="main_user_bg1"><div class="main_user_bg1_right1"></div></div></div>
</td>
</tr>
</table>
</div>
<div class="clearfloat"></div>
<?php include $this->tpl->getfile('inc/bottom'); ?>
</div>
<!-- 加一个半透明层 --> 
<div id="doing"></div>
<!-- 浏览信息 -->
<?php include $this->tpl->getfile('inc/win_view'); ?>
<!-- 修改信息 -->
<?php include $this->tpl->getfile('inc/win_update'); ?>
</body>
</html>
<?php } elseif ($action=='info') { ?>
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>
<tr>
<td align="right" style="white-space:nowrap;width:15%;">酒店名称：</td>
<td style="width:35%;"><?php if($hotelName=='') { ?><span style="color:#999999">查找不到所属酒店</span><?php } elseif ($hotelIsdel==1) { ?><span style="color:#999999"><?php echo $hotelName; ?>（已删除）</span><?php } else { echo $hotelName; } ?></td>
<td align="right" style="white-space:nowrap;width:15%;">会员名称：</td>
<td style="width:35%;"><?php if($memberName=='') { ?><span style="color:#999999">游客</span><?php } elseif ($memberIsdel==1) { ?><span style="color:#999999"><?php echo $memberName; ?>（已删除）</span><?php } else { echo $memberName; } ?></td></tr>
<tr>
<td align="right">提问标题：</td>
<td colspan="3"><?php echo $title; ?></td></tr>
<tr>
<td align="right">提问内容：</td>
<td colspan="3"><?php echo $content; ?></td></tr>
<tr>
<td align="right">客服回复：</td>
<td colspan="3"><?php echo $adminReply; ?></td></tr>
<tr>
<td align="right">问答状态：</td>
<td colspan="3"><span class="f_14b_f00"><?php echo $status; ?></span></td></tr>
</tbody></table>
<?php if(count($replyList)>0) { ?>
<div style="width:570px; margin-top:4px; border:solid 1px #ccc;">
<div style="clear:both;">
<div style="width:378px; height:20px; background:#eee;" class="tracerow">用户回复</div>
<div style="width:70px; height:20px; background:#eee;" class="tracerow">状态</div>
<div style="width:117px; height:20px; background:#eee;" class="tracerow">回复时间</div>
</div>
<div style="width:570px; height:180px; overflow-y:auto;">

<?php if(is_array($replyList)) foreach($replyList as $k => $v) { ?>
<div class="rowclear">
<div class="tracerow col1"><?php echo $memberAccount; ?>：<a title="<?php echo $v['content']; ?>"><?php echo $v['content']; ?></a></div>
<div class="tracerow col2"><a id="r_<?php echo $v['id']; ?>" onclick="updateStatusClick2(this);"><?php getStatusValue($v['status']); ?></a></div>
<div class="tracerow col3"><?php echo $v['date']; ?></div>
</div>
<?php } ?>
</div></div>
<?php } } elseif ($action=='update') { ?>
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>
<tr>
<td align="right" style="white-space:nowrap;width:15%;">酒店名称：</td>
<td style="width:35%;"><?php if($hotelName=='') { ?><span style="color:#999999">查找不到所属酒店</span><?php } elseif ($hotelIsdel==1) { ?><span style="color:#999999"><?php echo $hotelName; ?>（已删除）</span><?php } else { echo $hotelName; } ?></td>
<td align="right" style="white-space:nowrap;width:15%;">会员名称：</td>
<td style="width:35%;"><?php if($memberName=='') { ?><span style="color:#999999">游客</span><?php } elseif ($memberIsdel==1) { ?><span style="color:#999999"><?php echo $memberName; ?>（已删除）</span><?php } else { echo $memberName; } ?></td></tr>
<tr>
<td align="right">提问标题：</td>
<td colspan="3"><input id="O_Title" type="text" class="common_txt" style="width:410px;" value="<?php echo $title; ?>" /></td></tr>
<tr>
<td align="right">提问内容：</td>
<td colspan="3"><textarea name="O_Content" id="O_Content" style="width:410px;height:100px;"><?php echo $content; ?></textarea></td></tr>
<tr>
<td align="right">客服回复：</td>
<td colspan="3"><textarea name="O_AdminReply" id="O_AdminReply" style="width:410px;height:100px;"><?php echo $adminReply; ?></textarea></td></tr>
<tr>
<td align="right">问答状态：</td>
<td colspan="3"><span class="f_14b_f00"><?php echo $status; ?></span><input id="O_ID" type="hidden" value="<?php echo $id; ?>" /></td></tr>
</tbody></table>
<?php } ?>