<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('visatype.html', 'c626515e3cc081c682c8d1eaaf1199f9', 1349921607); ?>
<?php if($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>
<?php } elseif ($action=='preview') { echo $content; } elseif ($action=='add') { ?>


<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:30%;text-align:left"><input id="O_name" type="text" class="common_txt" /><span class="red">*</span></td>
</tr>

<tr>
	<td align="center">当前状态</td>
	<td>
	<input type="radio" name="status" value="已审核" id="O_Status_1" checked /><label for="O_Status_1" style="cursor:pointer;">已审核</label>
	<input type="radio" name="status" value="待审核" id="O_Status_0"  /><label for="O_Status_0" style="cursor:pointer;">待审核</label> 
	
	</td>
</tr>
</tbody>
</table>

<?php } elseif ($action=='update') { ?>

<input type="hidden" id="O_ID" value="<?php echo $visatype['id']; ?>" />
<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:30%;text-align:left"><input id="O_name" type="text" class="common_txt"  value="<?php echo $visatype['name']; ?>" /><span class="red">*</span></td>
</tr>

<tr>
	<td align="center">当前状态</td>
	<td>
	<input type="radio" name="status" value="已审核" id="O_Status_1" <?php echo $visatype['s_1']; ?> />
	<label for="O_Status_1" style="cursor:pointer;">已审核</label>
	
	<input type="radio" name="status" value="待审核" id="O_Status_0"  <?php echo $visatype['s_2']; ?> />
	<label for="O_Status_0" style="cursor:pointer;">待审核</label> 
	
	</td>
</tr>
</tbody>
</table>

<?php } elseif ($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/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="name" selected>标题</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_visatype'); ?>
</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 } ?>