<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('ktv_server.html', 'f83485385b2727c438f71215a425e49b', 1362484487); ?>
<?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/server.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">

</div>
</div>
<div class="todayinfoListTop"  style="display:none">
<div class="todayinfo1"><span id="O_Count"></span>　<span id="O_Flush">正在加载数据...</span></div>
</div>
<span id="mainlist">
<div style="clear:both"></div>
<?php include $this->tpl->getfile('inc/list_ktv_server'); ?>
</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>KTV预订网管理系统</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/ktv/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_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">
<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;">KTV名称:</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="">==KTV==</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>
KTV搜索：<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_seating" type="text" class="common_txt" /></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>
<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=='server_update') { ?>
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>

<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 $edit['name']; ?>" />
</td>

</tr>

</tbody></table>
<input id="O_ID" type="hidden" value="<?php echo $edit['id']; ?>" />


<?php } ?>