<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('room.html', '89718a698a577d541c2e3eb7cb62d6fe', 1353383529); ?>
<?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/roomList.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="areaDrop" style="margin-right:3px">
<option value="">==行政区==</option>
<?php if(is_array($area)) foreach($area as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</select>
<select id="hotelDrop" style="margin-right:3px">
<option value="">==酒店==</option>
<?php if(is_array($hotel)) foreach($hotel as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</select>
<select style="width:80px;margin-right:3px" id="simpleSearch"> 
<option value="name" selected>客房名称</option>
</select>
<input id="simpleSearchKey" type="text" style="width:80px;" />&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_room'); ?>
</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=='add') { ?>
<!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" />
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/hotel/roomAdd.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">
<h2>客房添加</h2>
<table class="user_table" border="0" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr>
<td style="width:15%;white-space:nowrap;text-align:center;">酒店名称:</td>
<td colspan="3">
<select id="areaDrop" style="margin-right:3px">
<option value="">==行政区==</option>
<?php if(is_array($area)) foreach($area as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</select>
<select id="hotelDrop" style="margin-right:3px">
<option value="">==酒店==</option>
<?php if(is_array($hotel)) foreach($hotel as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</select>
<span class="red">*</span>
酒店搜索：<input id="searchKey" type="text" style="width:230px;" />&nbsp;
<button id="O_SearchBtn" class="searchbutton" type="button">快捷搜索</button>
<div id="auto" class="auto" style="display:none;"></div>
<iframe id="autoF" class="auto" style="display:none;"></iframe>
<span id="O_Flush" style="float:right;font-size:14px;margin-top:-23px;margin-right:10px;">加载中...</span></td>
</tr>
<tr>
<td style="text-align:center">客房名称:</td>
<td style="width:35%;"><input id="O_Name" type="text" class="common_txt" /> <span class="red">*</span></td>
<td style="width:15%;text-align:center">客房面积:</td>
<td style="width:35%;"><input id="O_Size" type="text" class="common_txt" /> <span class="red">*</span>(请填正整数)</td>
</tr>
<tr>
<td style="text-align:center">床位类型:</td>
<td><input id="O_Bed" type="text" class="common_txt" /></td>
<td style="text-align:center">可否加床:</td>
<td><input type="radio" name="O_CanAddBed" value="不能" id="O_CanAddBed_0" checked><label for="O_CanAddBed_0" style="cursor:pointer;">不能</label> <input type="radio" name="O_CanAddBed" value="可以" id="O_CanAddBed_1"><label for="O_CanAddBed_1" style="cursor:pointer;">可以</label></td>
</tr>
<tr>
<td style="text-align:center">宽带服务:</td>
<td><input type="radio" name="O_Internet" value="没有" id="O_Internet_0" checked><label for="O_Internet_0" style="cursor:pointer;">没有</label> <input type="radio" name="O_Internet" value="免费" id="O_Internet_1"><label for="O_Internet_1" style="cursor:pointer;">免费</label> <input type="radio" name="O_Internet" value="收费" id="O_Internet_2"><label for="O_Internet_2" style="cursor:pointer;">收费</label></td>
<td style="text-align:center">早餐服务:</td>
<td><input type="radio" name="O_Breakfast" value="无早" id="O_Breakfast_0" checked><label for="O_Breakfast_0" style="cursor:pointer;">无早</label> <input type="radio" name="O_Breakfast" value="单早" id="O_Breakfast_1"><label for="O_Breakfast_1" style="cursor:pointer;">单早</label> <input type="radio" name="O_Breakfast" value="双早" id="O_Breakfast_1"><label for="O_Breakfast_1" style="cursor:pointer;">双早</label></td>
</tr>
<tr>
<td style="text-align:center">客房介绍:</td>
<td colspan="3">
<textarea name="O_Remark" id="O_Remark" cols="80" rows="5"></textarea>
<script type="text/javascript">CKEDITOR.replace( 'O_Remark' );</script>
</td>
</tr>
<tr>
<td style="white-space:nowrap;text-align:center">状态:</td>
<td><input type="radio" name="O_Status" value="待审核" id="O_Status_0" checked /><label for="O_Status_0" style="cursor:pointer;">待审核</label> <input type="radio" name="O_Status" value="已审核" id="O_Status_1" /><label for="O_Status_1" style="cursor:pointer;">已审核</label>
</td>
</tr>
<tr>
<td style="text-align:left;padding-left:50px;" colspan="4"><button id="O_Add" class="searchbutton" type="button">提 交</button></td></tr>
</tbody>
</table>
</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>
</body>
</html>
<?php } elseif ($action=='info') { ?>
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>
<tr>
<td align="right">所属酒店：</td>
<td colspan="3"><?php if($hotelName=='') { ?><span style="color:#999999">查找不到所属酒店</span><?php } elseif ($hotelIsdel==1) { ?><span style="color:#999999"><?php echo $hotelName; ?>（已删除）</span><?php } else { ?><strong><?php echo $hotelName; ?></strong><?php } ?></td></tr>
<tr>
<td style="width:15%; white-space:nowrap" align="right">客房名称：</td>
<td style="width:35%; white-space:nowrap"><?php echo $name; ?></td>
<td style="width:15%; white-space:nowrap" align="right">客房面积：</td>
<td style="width:35%; white-space:nowrap"><?php echo $size; ?></td></tr>
<tr>
<td align="right">床位类型：</td>
<td><?php echo $bed; ?></td>
<td align="right">可否加床：</td>
<td><?php echo $canAddBed; ?></td></tr>
<tr>
<td align="right">宽带服务：</td>
<td><?php echo $internet; ?></td>
<td align="right">早餐服务：</td>
<td><?php echo $breakfast; ?></td></tr>
<tr>
<td align="right">客房介绍：</td>
<td colspan="3"><?php echo $remark; ?></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">所属酒店：</td>
<td colspan="3"><?php if($hotelName=='') { ?><span style="color:#999999">查找不到所属酒店</span><?php } elseif ($hotelIsdel==1) { ?><span style="color:#999999"><?php echo $hotelName; ?>（已删除）</span><?php } else { ?><strong><?php echo $hotelName; ?></strong><?php } ?></td></tr>
<tr>
<td style="width:15%; white-space:nowrap" align="right">客房名称：</td>
<td style="width:35%; white-space:nowrap"><input id="O_Name" type="text" class="common_txt" value="<?php echo $name; ?>" /> <span class="red">*</span></td>
<td style="width:15%; white-space:nowrap" align="right">客房面积：</td>
<td style="width:35%; white-space:nowrap"><input id="O_Size" type="text" class="common_txt" value="<?php echo $size; ?>" style="width:150px;" /> <span class="red">*</span></td></tr>
<tr>
<td align="right">床位类型：</td>
<td><input id="O_Bed" type="text" class="common_txt" value="<?php echo $bed; ?>" /></td>
<td align="right">可否加床：</td>
<td>
<input type="radio" name="O_CanAddBed" value="不能" id="O_CanAddBed_0"<?php if($canAddBed=='不能') { ?> checked<?php } ?> /><label for="O_CanAddBed_0" style="cursor:pointer;">不能</label>
<input type="radio" name="O_CanAddBed" value="可以" id="O_CanAddBed_1"<?php if($canAddBed=='可以') { ?> checked<?php } ?> /><label for="O_CanAddBed_1" style="cursor:pointer;">可以</label>
</td></tr>
<tr>
<td align="right">宽带服务：</td>
<td>
<input type="radio" name="O_Internet" value="没有" id="O_Internet_0"<?php if($internet=='没有') { ?> checked<?php } ?> /><label for="O_Internet_0" style="cursor:pointer;">没有</label>
<input type="radio" name="O_Internet" value="免费" id="O_Internet_1"<?php if($internet=='免费') { ?> checked<?php } ?> /><label for="O_Internet_1" style="cursor:pointer;">免费</label>
<input type="radio" name="O_Internet" value="收费" id="O_Internet_2"<?php if($internet=='收费') { ?> checked<?php } ?> /><label for="O_Internet_2" style="cursor:pointer;">收费</label>
</td>
<td align="right">早餐服务：</td>
<td>
<input type="radio" name="O_Breakfast" value="无早" id="O_Breakfast_0"<?php if($breakfast=='无早') { ?> checked<?php } ?> /><label for="O_Breakfast_0" style="cursor:pointer;">无早</label>
<input type="radio" name="O_Breakfast" value="单早" id="O_Breakfast_1"<?php if($breakfast=='单早') { ?> checked<?php } ?> /><label for="O_Breakfast_1" style="cursor:pointer;">单早</label>
<input type="radio" name="O_Breakfast" value="双早" id="O_Breakfast_2"<?php if($breakfast=='双早') { ?> checked<?php } ?> /><label for="O_Breakfast_2" style="cursor:pointer;">双早</label>
</td></tr>
<tr>
<td align="right">客房介绍：</td>
<td colspan="3"><textarea name="O_Remark" id="O_Remark" cols="80" rows="5"><?php echo $remark; ?></textarea></td></tr>
<tr>
<td align="right">当前状态：</td>
<td colspan="3"><input id="O_ID" type="hidden" value="<?php echo $id; ?>" /><span class="f_14b_f00"><?php echo $status; ?></span></td></tr>
</tbody></table>
<?php } elseif ($action=='price') { ?>
<!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/roomPriceList.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" />
</div></div>
<div class="todayinfoListTop">
<div class="todayinfo1" style="white-space:nowrap;">
<div>酒店筛选：<select id="areaDrop" style="margin-right:3px">
<option value="">==行政区==</option>
<?php if(is_array($area)) foreach($area as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</select>
<select id="hotelDrop" style="margin-right:3px">
<option value="">==酒店==</option>
<?php if(is_array($hotel)) foreach($hotel as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</select>
酒店搜索：<input id="searchKey" type="text" style="width:230px;" />&nbsp;<button id="O_SearchBtn" class="searchbutton" type="button">搜索酒店</button>
<div id="auto" class="auto" style="display:none;"></div>
<iframe id="autoF" class="auto" style="display:none;"></iframe>
<div style="padding-top:5px;">
客房筛选：<select id="roomDrop" style="width:100px;margin-right:3px">
<option value="">==客房==</option>
</select>
日期筛选：<select id="yearDrop" style="margin-right:3px">
<option value="">==年==</option>
<?php if(is_array($year)) foreach($year as $v) { ?>
<option value="<?php echo $v; ?>"><?php echo $v; ?>年</option>
<?php } ?>
</select>
<select id="monthDrop" style="margin-right:3px">
<option value="">==月==</option>
</select>
<select id="weekDrop" style="margin-right:3px">
<option value="">==星期==</option>
<option value="星期一">星期一</option>
<option value="星期二">星期二</option>
<option value="星期三">星期三</option>
<option value="星期四">星期四</option>
<option value="星期五">星期五</option>
<option value="星期六">星期六</option>
<option value="星期日">星期日</option>
</select>&nbsp;<button id="O_GetPriceBtn" class="searchbutton" type="button" onclick="loadPrice()">加载列表</button>
</div></div></div>
</div>
<span id="mainlist"></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_update'); ?>
</body>
</html>
<?php } elseif ($action=='dict') { ?>
<table cellSpacing="0" cellPadding="0" style="width:566px" border="0">
<tbody>
<tr style="font-weight:700;">
<td style="width:15%; white-space:nowrap; text-align:center;">星期</td>
<td style="width:25%; white-space:nowrap; text-align:center;">市场价(元)</td>
<td style="width:25%; white-space:nowrap; text-align:center;">成本价(元)</td>
<td style="width:25%; white-space:nowrap; text-align:center;">网内价(元)</td>
<td style="width:10%; white-space:nowrap; text-align:center;">操作</td>
</tr>

<?php if(is_array($dict)) foreach($dict as $k => $v) { ?>
<tr id="O_DictRow_<?php echo $k; ?>" class="dictrow"<?php if($v['week']=='星期五' || $v['week']=='星期六') { ?> style="background-color:#ffc;"<?php } ?>>
<td style="white-space:nowrap; text-align:center;"><span id="O_Week_<?php echo $k; ?>"><?php echo $v['week']; ?></span></td>
<td style="white-space:nowrap; text-align:center;">市场价 <input id="O_MarketPrice_<?php echo $k; ?>" class="marketPrice" value="<?php echo $v['marketPrice']; ?>" style="width:60%;" /></td>
<td style="white-space:nowrap; text-align:center;">成本价 <input id="O_CostPrice_<?php echo $k; ?>" class="costPrice" value="<?php echo $v['costPrice']; ?>" style="width:60%;" /></td>
<td style="white-space:nowrap; text-align:center;">网内价 <input id="O_Price_<?php echo $k; ?>" class="price" value="<?php echo $v['price']; ?>" style="width:60%;" /></td>
<td style="white-space:nowrap; text-align:center;"><a class="viewmode" id="o_<?php echo $k; ?>" onclick="updateDict(this);">更新</a></td>
</tr>
<?php } ?>
</tbody></table>
<input id="O_RoomId" value="662" type="hidden" />
<?php } ?>