<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('inc\list_price_room.html', '1a900937a9dace15ca1f43516276cb6f', 1347072986); ?>
<div style="clear:both; text-align:left; padding-left:10px; padding-top:10px; padding-bottom:10px;">
<button id="O_UpdateAllPrice2" class="searchbutton" type="button" onclick="updateAllPrice();">更新全部</button>&nbsp;
<button id="O_AddAllPrice2" class="searchbutton" type="button" onclick="addAllPrice();">批量录入</button>&nbsp;
<button id="O_UpdateByDict2" class="searchbutton" type="button" onclick="updateByDict();">覆盖更新</button>&nbsp;
<button id="O_PriceDict2" class="searchbutton" type="button" onclick="loadPriceDict();">数据字典</button>&nbsp;
<button id="O_FullSelect2" class="searchbutton" type="button" onclick="fullSelectClick();">满房设置</button>&nbsp;
<button id="O_DelSelect2" class="searchbutton" type="button" onclick="delSelectClick();">批量删除</button>&nbsp;
<span id="O_Loading2" class="loading" style="padding-left:10px; display:none">数据更新中，请稍候...</span>
</div>
<div style="text-align:left; padding-left:10px; padding-bottom:10px; font-size:14px;">当前酒店房型：<?php echo $hotelName; ?>（<?php echo $roomName; ?>）</div>
<table class="user_table user_table2" border="0" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr>
<th style="width:5%;white-space:nowrap;">序号</th>
<th style="width:20%;white-space:nowrap;">市场价(元)</th>
<th style="width:20%;white-space:nowrap;">成本价(元)</th>
<th style="width:20%;white-space:nowrap;">网内价(元)</th>
<th style="width:10%;white-space:nowrap;">日期</th>
<th style="width:10%;white-space:nowrap;">星期</th>
<th style="width:5%;white-space:nowrap;"><input type="checkbox" id="o_fullall" onclick="checkFullAll();" /><label for="o_fullall">满房</label></th>
<th style="width:10%;"><input type="checkbox" id="o_delall" onclick="checkDelAll();" /><label for="o_delall">操作</label></th>
</tr>

<?php if(is_array($list)) foreach($list as $k => $v) { ?>
<tr id="O_Row_<?php echo $v['id']; ?>" class="pricerow"<?php if($v['dateofweek']=='星期五' || $v['dateofweek']=='星期六') { ?> style="background-color:#ffc;"<?php } ?>>
<td style="white-space:nowrap;"><?php echo $k+1;; ?></td>
<td style="white-space:nowrap;">市场价 <input id="O_MarketPrice_<?php echo $v['id']; ?>" class="marketPrice" value="<?php echo $v['marketPrice']; ?>" style="width:60%;" /></td>
<td style="white-space:nowrap;">成本价 <input id="O_CostPrice_<?php echo $v['id']; ?>" class="costPrice" value="<?php echo $v['costPrice']; ?>" style="width:60%;" /></td>
<td style="white-space:nowrap;">网内价 <input id="O_Price_<?php echo $v['id']; ?>" class="price" value="<?php echo $v['price']; ?>" style="width:60%;" /></td>
<td style="white-space:nowrap;"><?php echo $v['date']; ?></td>
<td style="white-space:nowrap;"><?php echo $v['dateofweek']; ?></td>
<td style="white-space:nowrap;"><input type="checkbox" class="fullAll" id="o_full<?php echo $v['id']; ?>" value="<?php echo $v['id']; ?>"<?php if($v['isFull']) { ?> checked<?php } ?> /><a class="viewmode" id="o_full_<?php echo $v['id']; ?>" onclick="fullClick(this);">满房</a></td>
<td style="white-space:nowrap;"><input id="O_ID_<?php echo $v['id']; ?>" value="<?php echo $v['id']; ?>" type="hidden" /><a class="viewmode" id="o_<?php echo $v['id']; ?>" onclick="return updatePrice(this);">更新</a>&nbsp;<input type="checkbox" class="delAll" id="o_del<?php echo $v['id']; ?>" value="<?php echo $v['id']; ?>" /><a class="viewmode" id="o_<?php echo $v['id']; ?>" onclick="delClick(this);">删除</a></td>
</tr>
<?php } ?>
</tbody></table>
<div style="text-align:left; padding-left:10px; padding-top:10px;">
<input id="O_ids" value="<?php echo $ids; ?>" type="hidden" />
<button id="O_UpdateAllPrice" class="searchbutton" type="button" onclick="updateAllPrice();">更新全部</button>&nbsp;
<button id="O_AddAllPrice" class="searchbutton" type="button" onclick="addAllPrice();">批量录入</button>&nbsp;
<button id="O_UpdateByDict" class="searchbutton" type="button" onclick="updateByDict();">覆盖更新</button>&nbsp;
<button id="O_PriceDict" class="searchbutton" type="button" onclick="loadPriceDict();">数据字典</button>&nbsp;
<button id="O_FullSelect" class="searchbutton" type="button" onclick="fullSelectClick();">满房设置</button>&nbsp;
<button id="O_DelSelect" class="searchbutton" type="button" onclick="delSelectClick();">批量删除</button>&nbsp;
<span id="O_Loading" class="loading" style="padding-left:10px; display:none">数据更新中，请稍候...</span>
<div style="padding-top:10px;">操作说明：</div>
<div>1.更新全部：将最新价格相应价格(对应日期)全部在上面文本框录入，点击[更新全部]按钮，系统作批量更新。</div>
<div>2.批量录入：点击此按钮，系统会根据数据字典(一周内的房价)，批量补充录入所有未录入的价格。</div>
<div>3.覆盖更新：点击此按钮，系统会根据数据字典(一周内的房价)，批量覆盖更新所有价格，如果当日价格记录不存在会被添加，如果当日价格记录已存在会被覆盖更新。</div>
</div></div>
