<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('visaManage.html', '2b9cfb7040773d7baba9168a26ea7e58', 1349921612); ?>
<?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/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.form.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/visa/visaManageList.js"></script>
</head>

<body>
<form id="O_frm" name="O_frm" action="?m=admin/visamanage.update" method="post">
<input type="hidden" name="m_id" id="m_id" />
<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_visa'); ?>
</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="name" selected>标题</option>
<option value="status">分类</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_visamanage'); ?>
</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=='info') { ?>
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>
<tr>
<td align="right">所属分类：</td>
<td><?php echo $type; ?></td></tr>
<tr>
<td align="right">标题：</td>
<td><?php echo $title; ?></td></tr>
<tr>
<td align="right">封面：</td>
<td><img src="<?php echo PICURL; ?>upload/article/<?php echo $cover; ?>" width="200" height="150" /></td></tr>
<tr>
<td align="right">内容：</td>
<td style="width:85%;"><iframe id="content" frameborder="0" width="100%" height="300" src="?m=admin/info.preview&id=<?php echo $id; ?>" scrolling="auto" style="overflow:scroll;"></iframe></td></tr>
<tr>
<td style="width:15%;white-space:nowrap;" valign="top" align="right">录入日期：</td>
<td><?php echo $date; ?></td></tr>
<tr>
<td align="right">状态：</td>
<td><span class="f_14b_f00"><?php echo $status; ?></span></td></tr>
</tbody></table>
</form>
<?php } elseif ($action=='preview') { echo $content; } 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="http://api.map.baidu.com/api?key=&v=1.3&services=true"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/visa/visaAdd.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_visa'); ?>
</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;" >签证名称:</td>
<td style="width:35%;text-align:left" ><input id="O_Name" type="text" class="common_txt" /> <span class="red">*</span></td>

<td style="text-align:center">可入境次数:</td>
<td><input id="O_VisaCount" type="text" class="common_txt" /><span class="red">*</span>
</td>
</tr>

<tr>
<td style="width:15%;white-space:nowrap;text-align:center;">所属国家:</td>
<td style="width:35%;text-align:left">
<select id="O_Countryid"><option value="0">===请选择===</option>
<?php if(is_array($visa)) foreach($visa as $v) { ?>

<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
<span class="red">*</span></td>
<td style="width:15%;white-space:nowrap;text-align:center;">签证类型:</td>
<td style="width:35%;text-align:left"><select id="O_Visatypeid">
<option>===请选择===</option>
<?php if(is_array($visatype)) foreach($visatype as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</td>
</tr>


<tr>
<td style="width:15%;white-space:nowrap;text-align:center;">可预订城市:</td>
<td style="width:35%;text-align:left"  colspan="4">
<?php if(is_array($visacity)) foreach($visacity as $v) { ?>
<input type="checkbox" name="O_City" value="<?php echo $v['id']; ?>" /><?php echo $v['name']; } ?>

</td>

</tr>

<tr>
<td style="text-align:center;">需否邀请函:</td>
<td>
<input type="radio" name="O_Invitation" class="invitation" value="不需要"  checked="checked" >不需要
<input type="radio" name="O_Invitation" class="invitation" value="需要"  />需要
<div id="need_invitation" style="display:none">
<input type="checkbox" name="invitation_box" value="自备" id="O_Owned" />自备
<input type="checkbox" name="invitation_box" value="代发" id="O_Behalf" />代发
<input type="text" style="width:50px;" id="O_BehalfMoney" disabled="disabled"/> 元 / 人
</div>
</td>
<td style="text-align:center">需否面试:</td>
<td>

<input type="radio" name="O_Interview" value="不需要" checked="checked"/>不需要
<input type="radio" name="O_Interview" value="需要"  />需要
</td>
</tr>

<tr>
<td style="text-align:center">签证有效期:</td>
<td><input id="O_Effective" type="text" class="common_txt" /></td>
<td style="text-align:center">最长停留时间:</td>
<td><input id="O_Longesttime" type="text" class="common_txt" /></td>
</tr>
<tr>
<td style="text-align:center">办理时长:</td>
<td><input id="O_Handlingtime" type="text" class="common_txt" /><span class="red">*</span>
</td>

<td style="text-align:center">价 格:</td>
<td><input id="O_Money" type="text" class="common_txt" style="width:60px;" /> 元 / 人<span class="red">*</span>
</td>

</tr>
<tr>
<td style="text-align:center">受理范围:</td>
<td colspan="3">
<textarea id="O_Scope" name="O_Scope" cols="80" rows="5"></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Scope');</script>
</td>
</tr>
<tr>
<td style="text-align:center">所需材料:</td>
<td colspan="3">
<textarea name="O_Materials" id="O_Materials" cols="80" rows="5"></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Materials');</script>
</td>
</tr>
<tr>
<td style="text-align:center">预订须知:</td>
<td colspan="3">
<textarea name="O_Notice" id="O_Notice" cols="80" rows="5"></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Notice');</script>
</td>
</tr>
<tr>
<td style="text-align:center">温馨提醒:</td>
<td colspan="3">
<textarea name="O_Remind" id="O_Remind" cols="80" rows="5"></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Remind');</script>
</td>
</tr>
<tr>
<td style="text-align:center">预订流程:</td>
<td colspan="3">
<textarea name="O_Remind" id="O_Process" cols="80" rows="5"></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Process');</script>
</td>
</tr>
<tr>
<td style="text-align:center">签约付款:</td>
<td colspan="3">
<textarea name="O_Payment " id="O_Payment" cols="80" rows="5"></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Payment');</script>
</td>
</tr>
<!--
<tr>
<td style="white-space:nowrap;text-align:center">SEO优化:</td>
<td colspan="3">
<div style="width:760px;clear:left;"><div style="width:120px;white-space:nowrap;float:left">Title(标题):</div><div style="width:640px;float:left;"><textarea name="O_Title" id="O_Title" cols="65" rows="2"></textarea></div></div>
<div style="width:760px;clear:left;"><div style="width:120px;white-space:nowrap;float:left">Keywords(关键字):</div><div style="width:640px;float:left;"><textarea name="O_Keywords" id="O_Keywords" cols="65" rows="2"></textarea></div></div>
<div style="width:760px;clear:left;"><div style="width:120px;white-space:nowrap;float:left">Description(描述):</div><div style="width:640px;float:left;"><textarea name="O_Description" id="O_Description" cols="65" rows="2"></textarea></div></div></td>
</tr>
-->
<tr>
<td style="white-space:nowrap;text-align:center" >状态:</td>
<td 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_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=='update') { ?>
<!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="http://api.map.baidu.com/api?key=&v=1.3&services=true"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/visa/visaAdd.js"></script>

</head>

<body>

<div id="bodymain">
<!-- 头部开始 -->
<?php include $this->tpl->getfile('inc/header'); ?>
<!-- 主体开始 -->
<input type="hidden" value="<?php echo $edit['id']; ?>"  id="O_id" name="O_id"/>
<div id="user_content">
<table width="100%" border="0">
<tr>
<td width="156" valign="top">
<?php include $this->tpl->getfile('inc/lead_visa'); ?>
</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;" >签证名称:</td>
<td style="width:35%;text-align:left" ><input id="O_Name" type="text" class="common_txt" value="<?php echo $edit['name']; ?>" /> <span class="red">*</span></td>

<td style="text-align:center">可入境次数:</td>
<td><input id="O_VisaCount" type="text" class="common_txt" value="<?php echo $edit['count']; ?>" /><span class="red">*</span>
</td>
</tr>

<tr>
<td style="width:15%;white-space:nowrap;text-align:center;">所属国家:</td>
<td style="width:35%;text-align:left">
<select id="O_Countryid">
<?php if(is_array($visa)) foreach($visa as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
<span class="red">*</span></td>
<td style="width:15%;white-space:nowrap;text-align:center;">签证类型:</td>
<td style="width:35%;text-align:left"><select id="O_Visatypeid">

<?php if(is_array($visatype)) foreach($visatype as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</td>
</tr>


<tr>
<td style="width:15%;white-space:nowrap;text-align:center;" >可预订城市:</td>
<td style="width:35%;text-align:left"  colspan="4">
<?php if(is_array($visacity)) foreach($visacity as $v) { ?>
<input type="checkbox" name="O_City" value="<?php echo $v['id']; ?>" checked="checked" /><?php echo $v['name']; } ?>

</td>

</tr>

<tr>
<td style="text-align:center;">需否邀请函:</td>
<td>
<input type="radio" name="O_Invitation" class="invitation" value="不需要"  checked="checked" >不需要
<input type="radio" name="O_Invitation" class="invitation" value="需要"   <?php if($check_count > 0) { ?>checked="checked"<?php } ?>  />需要
<div id="need_invitation" <?php if($check_count == 0) { ?>  style="display:none" <?php } ?>>
<input type="checkbox"  name="invitation_box" value="自备" id="O_Owned" <?php if($check_arr['check_1'] != '') { ?>checked="checked"<?php } ?> />自备
<input type="checkbox" name="invitation_box" value="代发" <?php if($check_arr['check_2'] != '') { ?>checked="checked"<?php } ?>  id="O_Behalf" />代发
<input type="text" style="width:50px;" id="O_BehalfMoney"  
<?php if($check_arr['check_3'] != '') { ?>value=<?php echo $check_arr['check_3']; } else { ?>disabled='disabled'<?php } ?>  />

 元 / 人 
</div>
</td>
<td style="text-align:center">需否面试:</td>
<td>

<input type="radio" name="O_Interview" value="不需要"  <?php if($edit['interview'] == '不需要') { ?>checked="checked"<?php } ?>/>不需要
<input type="radio" name="O_Interview" value="需要"  <?php if($edit['interview'] == '需要') { ?>checked="checked"<?php } ?>/>需要
</td>
</tr>

<tr>
<td style="text-align:center">签证有效期:</td>
<td><input id="O_Effective" type="text" class="common_txt"  value="<?php echo $edit['effective']; ?>"/></td>
<td style="text-align:center">最长停留时间:</td>
<td><input id="O_Longesttime" type="text" class="common_txt" value="<?php echo $edit['longesttime']; ?>" /></td>
</tr>

<tr>
<td style="text-align:center" value="<?php echo $edit['name']; ?>">办理时长:</td>
<td><input id="O_Handlingtime" type="text" class="common_txt" value="<?php echo $edit['handlingtime']; ?>" /><span class="red">*</span>
</td>

<td style="text-align:center">价 格:</td>
<td><input id="O_Money" type="text" class="common_txt" style="width:60px;" value="<?php echo $edit['money']; ?>" /> 元 / 人<span class="red">*</span>
</td>

</tr>
<tr>
<td style="text-align:center">受理范围:</td>
<td colspan="3">
<textarea id="O_Scope" name="O_Scope" cols="80" rows="5"><?php echo $edit['scope']; ?></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Scope');</script>
</td>
</tr>
<tr>
<td style="text-align:center">所需材料:</td>
<td colspan="3">
<textarea name="O_Materials" id="O_Materials" cols="80" rows="5"><?php echo $edit['materials']; ?></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Materials');</script>
</td>
</tr>
<tr>
<td style="text-align:center">预订须知:</td>
<td colspan="3">
<textarea name="O_Notice" id="O_Notice" cols="80" rows="5"><?php echo $edit['notice']; ?></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Notice');</script>
</td>
</tr>
<tr>
<td style="text-align:center">温馨提醒:</td>
<td colspan="3">
<textarea name="O_Remind" id="O_Remind" cols="80" rows="5"><?php echo $edit['remind']; ?></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Remind');</script>
</td>
</tr>
<tr>
<td style="text-align:center">预订流程:</td>
<td colspan="3">
<textarea name="O_Remind" id="O_Process" cols="80" rows="5"><?php echo $edit['process']; ?></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Process');</script>
</td>
</tr>
<tr>
<td style="text-align:center">签约付款:</td>
<td colspan="3">
<textarea name="O_Payment " id="O_Payment" cols="80" rows="5"><?php echo $edit['payment']; ?></textarea>
<script type="text/javascript">CKEDITOR.replace('O_Payment');</script>
</td>
</tr>
<!--
<tr>
<td style="white-space:nowrap;text-align:center">SEO优化:</td>
<td colspan="3">
<div style="width:760px;clear:left;"><div style="width:120px;white-space:nowrap;float:left">Title(标题):</div><div style="width:640px;float:left;"><textarea name="O_Title" id="O_Title" cols="65" rows="2"></textarea></div></div>
<div style="width:760px;clear:left;"><div style="width:120px;white-space:nowrap;float:left">Keywords(关键字):</div><div style="width:640px;float:left;"><textarea name="O_Keywords" id="O_Keywords" cols="65" rows="2"></textarea></div></div>
<div style="width:760px;clear:left;"><div style="width:120px;white-space:nowrap;float:left">Description(描述):</div><div style="width:640px;float:left;"><textarea name="O_Description" id="O_Description" cols="65" rows="2"></textarea></div></div></td>
</tr>
-->
<tr>
<td style="white-space:nowrap;text-align:center" >状态:</td>
<td colspan="3"><input type="radio" name="O_Status" value="待审核" id="O_Status_0" <?php echo $edit['s_0']; ?> /><label for="O_Status_0" style="cursor:pointer;">待审核</label> <input type="radio" name="O_Status" value="已审核" id="O_Status_1" <?php echo $edit['s_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_Update" 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=='typelist') { ?>
<!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/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.js"></script>
<script type="text/javascript" src="<?php echo MY_THEMEDIR; ?>js/jquery.form.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/article/visaTypeList.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_visa'); ?>
</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="title" selected>标题</option>
<option value="type">分类</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="1_Count"></span>　<span id="O_Flush">正在加载数据...</span></div>
</div>
<span id="mainlist">
<?php include $this->tpl->getfile('inc/list_visa_type'); ?>
</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 } ?>