<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('union.html', 'b61e60967fc4012fd15b93a85a4705bb', 1344697621); ?>
<?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/member/unionList.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_member'); ?>
</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="simpleSearch"> 
<option value="account" selected>登录帐号</option>
<option value="name">姓名</option>
<option value="mobile">手机号码</option>
<option value="phone">联系电话</option>
<option value="company">公司(企业)</option>
</select>
<input id="simpleSearchKey" type="text" />&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_union'); ?>
</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/member/unionAdd.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_member'); ?>
</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 user_table2" border="0" cellSpacing="0" cellPadding="0" width="100%">
<tbody>
<tr>
<td style="width:15%;">登录帐号:</td>
<td style="width:35%;text-align:left"><input id="O_Account" type="text" class="common_txt" maxlength="50" />　<span class="red">*</span></td>
<td style="width:15%;">公司(企业):</td>
<td style="width:35%;text-align:left"><input id="O_Company" type="text" class="common_txt" maxlength="50" />　<span class="red">*</span></td>
</tr>
<tr>
<td>登录密码:</td>
<td style="text-align:left"><input id="O_Psd" type="password" class="common_txt" maxlength="50" />　<span class="red">*</span></td>
<td>重复密码:</td>
<td style="text-align:left"><input id="O_Psd_Re" type="password" class="common_txt" maxlength="50" />　<span class="red">*</span></td>
</tr>
<tr>
<td>联系人:</td>
<td style="text-align:left"><input id="O_Name" type="text" class="common_txt" maxlength="50" />　<span class="red">*</span></td>
<td>性别:</td>
<td style="text-align:left"><input type="radio" name="O_Sex" value="男" id="O_Sex_0" checked /><label for="O_Sex_0" style="cursor:pointer;">男</label> <input type="radio" name="O_Sex" value="女" id="O_Sex_1" /><label for="O_Sex_1" style="cursor:pointer;">女</label></td>
</tr>
<tr>
<td>手机号码:</td>
<td style="text-align:left"><input id="O_Mobile" type="text" class="common_txt" maxlength="50" /></td>
<td>联系电话:</td>
<td style="text-align:left"><input id="O_Phone" type="text" class="common_txt" maxlength="50" /></td>
</tr>
<tr>
<td>联系QQ:</td>
<td style="text-align:left"><input id="O_QQ" type="text" class="common_txt" maxlength="50" /></td>
<td>Email:</td>
<td style="text-align:left"><input id="O_Email" type="text" class="common_txt" maxlength="50" /></td>
</tr>
<tr>
<td>联系地址:</td>
<td style="text-align:left"><input id="O_Address" type="text" class="common_txt" maxlength="50" /></td>
<td>邮编:</td>
<td style="text-align:left"><input id="O_Postcode" type="text" class="common_txt" maxlength="50" /></td>
</tr>
<tr style="background-color:#ffc">
<td>订房利润比例:</td>
<td style="text-align:left" colspan="3"><input id="O_HotelReturn" type="text" class="common_txt" maxlength="50" />　<span class="red">(%) *</span></td>
</tr>
<tr>
<td>状态:</td>
<td style="text-align:left" colspan="3"><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_Submit" class="searchbutton" type="button">提 交</button></td></tr>
</tbody>
</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 style="width:35%"><strong><?php echo $account; ?></strong></td>
<td align="right">姓名：</td>
<td style="width:35%"><?php echo $name; ?></td></tr>
<tr>
<td align="right">公司(企业)：</td>
<td><?php echo $company; ?></td>
<td align="right">联系人：</td>
<td><?php echo $name; ?></td></tr>
<tr>
<td align="right">性别：</td>
<td><?php echo $sex; ?></td>
<td style="width:15%;white-space:nowrap;" align="right">手机号码：</td>
<td><?php echo $mobile; ?></td></tr>
<tr>
<td align="right">联系电话：</td>
<td><?php echo $phone; ?></td>
<td align="right">联系QQ：</td>
<td><?php echo $qq; ?></td></tr>
<tr>
<td align="right">Email：</td>
<td><?php echo $email; ?></td>
<td align="right">联系地址：</td>
<td><?php echo $address; ?></td></tr>
<tr>
<td align="right">邮编：</td>
<td><?php echo $postcode; ?></td>
<td align="right">注册日期：</td>
<td><?php echo $date; ?></td></tr>
<tr style="background-color:#ffc">
<td style="width:15%;white-space:nowrap;" align="right">订房利润比例：</td>
<td colspan="3"><span class="f_14b_f00"><?php echo $hotelReturn * 100;; ?>%</span></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" style="white-space:nowrap;">登录帐号：</td>
<td><strong><?php echo $account; ?></strong></td>
<td align="right" style="white-space:nowrap;">公司(企业)：</td>
<td style="white-space:nowrap;"><input id="O_Company" type="text" class="common_txt" maxlength="50" value="<?php echo $company; ?>" /> <span class="red">*</span></td></tr>
<tr>
<td align="right">联系人：</td>
<td style="white-space:nowrap;"><input id="O_Name" type="text" class="common_txt" maxlength="50" value="<?php echo $name; ?>" /> <span class="red">*</span></td>
<td align="right">性别：</td>
<td>
<input type="radio" name="O_Sex" value="男" id="O_Sex_0"<?php if($sex=='男') { ?> checked<?php } ?> /><label for="O_Sex_0" style="cursor:pointer;">男</label> 
<input type="radio" name="O_Sex" value="女" id="O_Sex_1"<?php if($sex=='女') { ?> checked<?php } ?> /><label for="O_Sex_1" style="cursor:pointer;">女</label>
</td></tr>
<tr>
<td align="right">手机号码：</td>
<td><input id="O_Mobile" type="text" class="common_txt" maxlength="50" value="<?php echo $mobile; ?>" /></td>
<td align="right">联系电话：</td>
<td><input id="O_Phone" type="text" class="common_txt" maxlength="50" value="<?php echo $phone; ?>" /></td></tr>
<tr>
<td align="right" style="white-space:nowrap;">联系QQ：</td>
<td><input id="O_QQ" type="text" class="common_txt" maxlength="50" value="<?php echo $qq; ?>" /></td>
<td align="right">Email：</td>
<td><input id="O_Email" type="text" class="common_txt" maxlength="50" value="<?php echo $email; ?>" /></td></tr>
<tr>
<td align="right">联系地址：</td>
<td><input id="O_Address" type="text" class="common_txt" maxlength="50" value="<?php echo $address; ?>" /></td>
<td align="right">邮编：</td>
<td><input id="O_Postcode" type="text" class="common_txt" maxlength="50" value="<?php echo $postcode; ?>" /></td></tr>
<tr>
<td align="right">利润比例：</td>
<td><span class="f_14b_f00"><?php echo $hotelReturn * 100;; ?>%</span></td>
<td align="right">注册日期：</td>
<td><?php echo $date; ?></td></tr>
<tr>
<td align="right">帐号状态：</td>
<td colspan="3"><span class="f_14b_f00"><?php echo $status; ?></span><input id="O_ID" type="hidden" value="<?php echo $id; ?>" /></td></tr>
</tbody></table>
<?php } elseif ($action=='updateHotelReturn') { ?>
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>
<tr>
<td style="width:20%" align="right">登录帐号：</td>
<td style="width:30%"><strong><?php echo $account; ?></strong></td>
<td style="width:20%" align="right">公司(企业)：</td>
<td style="width:30%"><?php echo $company; ?></td></tr>
<tr>
<td align="right">联系人：</td>
<td><?php echo $name; ?></td>
<td align="right">性别：</td>
<td><?php echo $sex; ?></tr>
<tr>
<td align="right">手机号码：</td>
<td><?php echo $mobile; ?></td>
<td align="right">联系电话：</td>
<td><?php echo $phone; ?></td></tr>
<tr>
<td align="right">联系QQ：</td>
<td><?php echo $qq; ?></td>
<td align="right">Email：</td>
<td><?php echo $email; ?></td></tr>
<tr>
<td align="right">联系地址：</td>
<td><?php echo $address; ?></td>
<td align="right">邮编：</td>
<td><?php echo $postcode; ?></td></tr>
<tr style="background-color:#ffc">
<td align="right">订房利润比例：</td>
<td colspan="3"><input id="O_HotelReturn" type="text" class="common_txt" maxlength="50" value="<?php echo $hotelReturn * 100;; ?>" /> <span class="red">(%) *</span><input id="O_ID" type="hidden" value="<?php echo $id; ?>" /></td></tr>
<tr>
<td align="right">注册日期：</td>
<td><?php echo $date; ?></td>
<td align="right">帐号状态：</td>
<td><span class="f_14b_f00"><?php echo $status; ?></span></td></tr>
</tbody></table>
<?php } elseif ($action=='updatePassword') { ?>
<table cellSpacing="0" cellPadding="0" style="width:566px" border="0">
<tbody>
<tr>
<td align="right">登录帐号：</td>
<td><strong><?php echo $account; ?></strong><input id="O_ID" type="hidden" value="<?php echo $id; ?>" /></td></tr>
<tr>
<td align="right">公司(企业)：</td>
<td><?php echo $company; ?></td></tr>
<tr>
<td align="right">联系人：</td>
<td><?php echo $name; ?></td></tr>
<tr>
<td align="right">性别：</td>
<td><?php echo $sex; ?></td></tr>
<tr>
<td align="right">手机号码：</td>
<td><?php echo $mobile; ?></td></tr>
<tr>
<td align="right">联系电话：</td>
<td><?php echo $phone; ?></td></tr>
<tr>
<td align="right">登录密码：</td>
<td><input id="O_Psd" type="password" class="common_txt" maxlength="50" /> <span class="red">*</span></td></tr>
<tr>
<td align="right">重复密码：</td>
<td><input id="O_Psd_Re" type="password" class="common_txt" maxlength="50" /> <span class="red">*</span></td></tr>
</tbody></table>
<?php } ?>