<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('inc\list_order.html', '038b33aacdcc48821c44085b922a8c49', 1362377865); ?>
<table class="user_table user_table2" border="0" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr>
<th style="width:180px;">订单号</th>
<th>酒店名称</th>
<th>房间类型</th>
<th style="width:50px;">房间数</th>
<th style="width:80px;">联系人</th>
<th style="width:100px;">手机号码</th>
<th style="width:80px;">住/离店日期</th>
<th style="width:70px;">总价</th>
<th style="width:150px;">下单时间</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','已入住'=>'content4','已点评'=>'content5'); if(count($list)>0) { if(is_array($list)) foreach($list as $k => $v) { ?>
<tr id="O_Row_<?php echo $v['id']; ?>" class="row">
<td style="white-space:nowrap;"><div<?php if($v['memberType']=='分销会员') { ?> style="background-color:#5dab03; padding:0 3px;"<?php } elseif ($v['memberType']=='普通会员') { ?> style="background-color:#fe8802; padding:0 3px;"<?php } ?>><div><a class="viewmode" id="o_<?php echo $v['id']; ?>"<?php if($v['memberType']=='分销会员') { ?> style="color:#fff;"<?php } elseif ($v['memberType']=='普通会员') { ?> style="color:#fff;"<?php } ?> onclick="viewClick(this);"><?php echo $v['code']; ?></a></div>
<div<?php if($v['memberType']=='分销会员') { ?> style="color:#fff;"<?php } elseif ($v['memberType']=='普通会员') { ?> style="color:#fff;"<?php } elseif ($v['memberType']=='') { ?> style="color:#ccc;"<?php } ?>><?php if($v['memberType']=='') { ?>无帐号客户<?php } else { echo str_replace('会员', '：', $v['memberType']);; ?><span class="viewmode" onclick="byMemberClick('<?php echo $v['id']; ?>','<?php echo $v['memberId']; ?>');"><?php echo $v['memberAccount']; ?></span><?php } ?></div></div></td>
<td><a href="<?php echo DOMAIN; echo ROOT; ?>hotel/info-<?php echo $v['hotelId']; ?>.html" target="_blank"><?php echo $v['hotelName']; ?></a></td>
<td><?php echo $v['roomName']; ?></td>
<td><?php echo $v['roomNum']; ?></td>
<td><?php echo $v['name']; ?></td>
<td><?php echo $v['phone']; ?></td>
<td><?php echo $v['indate']; ?> 至 <?php echo $v['outdate']; ?></td>
<td><?php echo $v['price']; ?></td>
<td><?php echo $v['date']; ?></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="11">没有找到相关数据。</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:170px;"><button class="searchbutton" type="button" onclick="delSelectClick();">批量删除</button>&nbsp;<button class="searchbutton" type="button" onclick="addClick();">添加订单</button></div>
<div class="statusNote" style="width:330px">
<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>
