<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('ktvcomment.html', '37899b5f747c9ceea8b9d4fa93e0dd79', 1362484561); ?>
<?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>预订易KTV预订网站管理系统</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/ktv/commentList.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_ktv'); ?>
</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="`comment`.`content`" selected>点评内容</option>
<option value="`ktv`.`name`">ktv名称</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" style=" display:none"><span id="O_Count"></span>　<span id="O_Flush">正在加载数据...</span></div>
</div>
<span id="mainlist">
<?php include $this->tpl->getfile('inc/list_ktv_comment'); ?>
</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($orderCode=='') { ?><span style="color:#999999">查找不到所属订单</span><?php } elseif ($orderIsdel==1) { ?><span style="color:#999999"><?php echo $orderCode; ?>（已删除）</span><?php } else { echo $orderCode; } ?></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; ?>(<?php echo $memberType; ?>)<?php } ?></td></tr>
<tr>
<td align="right">KTV名称：</td>
<td colspan="3"><?php if($hotelName=='') { ?><span style="color:#999999">查找不到所属KTV</span><?php } elseif ($hotelIsdel==1) { ?><span style="color:#999999"><?php echo $hotelName; ?>（已删除）</span><?php } else { echo $hotelName; } ?></td></tr>
<tr>
<td align="right">房间名称：</td>
<td><?php if($roomName=='') { ?><span style="color:#999999">查找不到所属房间</span><?php } elseif ($roomIsdel==1) { ?><span style="color:#999999"><?php echo $roomName; ?>（已删除）</span><?php } else { echo $roomName; } ?></td>
<td align="right">房间号：</td>
<td><?php echo $roomNo; ?></td></tr>
<tr>
<td align="right">总体评价：</td>
<td colspan="3"><?php echo $score; ?></td></tr>
<tr>
<td align="right">入住日期：</td>
<td><?php echo $indate; ?></td>
<td align="right">离店日期：</td>
<td><?php echo $outdate; ?></td></tr>
<tr>
<td align="right">点评内容：</td>
<td colspan="3"><?php echo $remark; ?></td></tr>
<tr>
<td align="right">点评奖金：</td>
<td colspan="3"><?php echo $takeMoney; ?></td></tr>
<tr>
<td align="right">点评状态：</td>
<td colspan="3"><span class="f_14b_f00"><?php echo $status; ?></span></td></tr>
</tbody></table>
<?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:30%"><?php if($orderCode=='') { ?><span style="color:#999999">查找不到所属订单</span><?php } elseif ($orderIsdel==1) { ?><span style="color:#999999"><?php echo $orderCode; ?>（已删除）</span><?php } else { echo $orderCode; } ?></td>
<td align="right" style="white-space:nowrap;width:15%;">会员名称：</td>
<td style="width:40%"><?php if($memberName=='') { ?><span style="color:#999999">查找不到所属会员</span><?php } elseif ($memberIsdel==1) { ?><span style="color:#999999"><?php echo $memberName; ?>（已删除）</span><?php } else { echo $memberName; ?>(<?php echo $memberType; ?>)<?php } ?></td></tr>
<tr>
<td align="right">KTV名称：</td>
<td colspan="3"><?php if($hotelName=='') { ?><span style="color:#999999">查找不到所属KTV</span><?php } elseif ($hotelIsdel==1) { ?><span style="color:#999999"><?php echo $hotelName; ?>（已删除）</span><?php } else { echo $hotelName; } ?></td></tr>
<tr>
<td align="right">房间名称：</td>
<td><?php if($roomName=='') { ?><span style="color:#999999">查找不到所属房间</span><?php } elseif ($roomIsdel==1) { ?><span style="color:#999999"><?php echo $roomName; ?>（已删除）</span><?php } else { echo $roomName; } ?></td>
<td align="right">房间号：</td>
<td><input id="O_RoomNo" type="text" class="common_txt" style="width:159px;" value="<?php echo $roomNo; ?>" /></td></tr>
<tr>
<td align="right">总体评价：</td>
<td colspan="3">
<input type="radio" name="O_Score" value="好评" id="O_Score_1"<?php if($score=='好评') { ?> checked<?php } ?> /><label for="O_Score_1" style="cursor:pointer;">好评</label> 
<input type="radio" name="O_Score" value="中评" id="O_Score_2"<?php if($score=='中评') { ?> checked<?php } ?> /><label for="O_Score_2" style="cursor:pointer;">中评</label>
<input type="radio" name="O_Score" value="差评" id="O_Score_3"<?php if($score=='差评') { ?> checked<?php } ?> /><label for="O_Score_3" style="cursor:pointer;">差评</label>
</td></tr>
<tr>
<td align="right">入住日期：</td>
<td><input id="O_InDate" type="text" class="common_txt" style="width:159px;" value="<?php echo $indate; ?>" /></td>
<td align="right">离店日期：</td>
<td><input id="O_OutDate" type="text" class="common_txt" style="width:159px;" value="<?php echo $outdate; ?>" /></td></tr>
<tr>
<td align="right">点评内容：</td>
<td colspan="3"><textarea name="O_Remark" id="O_Remark" style="width:410px;height:50px;"><?php echo $remark; ?></textarea></td></tr>
<tr>
<td align="right">点评奖金：</td>
<td colspan="3"><input id="O_TakeMoney" type="text" class="common_txt" style="width:159px;" value="<?php echo $takeMoney; ?>" /></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 } ?>