<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('inc\list_room.html', 'db81bbb00fc82ff77f1b1926a7b0fcf5', 1353383340); ?>
<table class="user_table user_table2" border="0" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr>
<th>客房名称</th>
<th>酒店名称</th>
<th style="width:150px;">床位类型</th>
<th style="width:70px;">面积</th>
<th style="width:70px;">早餐</th>
<th style="width:100px;">上网</th>
<th style="width:50px;">状态</th>
<th style="width:90px;"><input type="checkbox" id="o_delall" onclick="checkDelAll();" />操作</th>
</tr><?php $stateStyle=array('已停用'=>'content1','待审核'=>'content2','已审核'=>'content3'); if(count($list)>0) { if(is_array($list)) foreach($list as $k => $v) { ?>
<tr id="O_Row_<?php echo $v['id']; ?>" class="row">
<td><a class="viewmode" id="o_<?php echo $v['id']; ?>" onclick="viewClick(this);"><?php echo $v['name']; ?></a></td>
<td><?php if($v['hotelName']=='') { ?><span style="color:#999999">查找不到所属酒店</span><?php } elseif ($v['hotelIsdel']==1) { ?><span style="color:#999999"><?php echo $v['hotelName']; ?>（已删除）</span><?php } else { echo $v['hotelName']; } ?></td>
<td><?php echo $v['bed']; ?></td>
<td><?php echo $v['size']; ?></td>
<td><?php echo $v['breakfast']; ?></td>
<td><?php echo $v['internet']; ?></td>
<td><a id="o_<?php echo $v['id']; ?>" onclick="updateStatusClick(this);"><span class="<?php echo $stateStyle[$v['status']]; ?>"><?php echo $v['status']; ?></span></a></td>
<td style="white-space:nowrap;"><a class="viewmode" id="o_<?php echo $v['id']; ?>" onclick="updateClick(this);">编辑</a> <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 } } else { ?>
<tr>
<td style="text-align:center" colspan="8">没有找到相关数据。</td>
</tr>
<?php } ?>
</tbody></table>

<table border="0" width="100%">
<tbody>
<tr>
<td>
<?php include $this->tpl->getfile('inc/page'); ?>
</td>
<td align="right">
<div class="delselect" style="width:90px;"><button class="searchbutton" type="button" onclick="delSelectClick();">批量删除</button></div>
<div class="statusNote" style="width:225px">
<span style="color:#000; width:60px;">状态说明:</span>

<?php if(is_array($stateStyle)) foreach($stateStyle as $k => $v) { ?>
<span class="<?php echo $v; ?>" onclick="statusClick('<?php echo $k; ?>');"><?php echo $k; ?></span>
<?php } ?>
</div>
</td></tr>
</tbody>
</table>
