<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('visa.html', '90ba5be9e438a3562d6e6b7d06b4d507', 1349924518); ?>
<?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/visaList.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>
<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_visa'); ?>
</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>
<?php } elseif ($action=='preview') { echo $content; } elseif ($action=='add') { ?>
<form id="O_UploadForm" method="post" enctype="multipart/form-data" action="<?php echo DOMAIN; echo ROOT; ?>?m=admin/visa.addHandle">
<input name="O_imgSrc" id="O_imgSrc" type="hidden" value="" />
<input id="content" name="content" type="hidden" />
<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">
<select id="O_Delta" name="O_Delta">
<option value="0">==请选择==</option>
<?php if(is_array($list)) foreach($list as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</select><span class="red">*</span></td>
</tr>

<tr>
<td style="width:15%;white-space:nowrap;text-align:center;">国家名(中文):</td>
<td style="width:30%;text-align:left"><input id="O_name" name="O_name" 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:30%;text-align:left"><input id="O_englishname" name="O_englishname" 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>


<tr>
	<td align="center">选择图片：</td>
	<td colspan="3"><iframe frameborder=no id="frm" align="left" src="uplodeimages.php" style="width:480px; height:40px;scrolling="no""></td>
</tr>



</tbody>
</table>
</form>

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

<input type="hidden" id="O_ID" value="<?php echo $visa['id']; ?>" />
<input name="O_imgSrc" id="O_imgSrc" type="hidden" value="" />
<input id="content" name="content" type="hidden" />
<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">
<select id="O_Delta" name="O_Delta">

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


<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 $visa['name']; ?> /><span class="red">*</span></td>
</tr>
<tr>
<td style="width:15%;white-space:nowrap;text-align:center;">国家名(英文):</td>
<td style="width:30%;text-align:left"><input id="O_englishname" type="text" class="common_txt" value=<?php echo $visa['englishname']; ?> /><span class="red">*</span></td>
</tr>

<tr>
	<td align="right">当前状态：</td>
	<td>

	
	<input type="radio" name="status" value="已审核" id="O_Status_1" <?php echo $visa['s_1']; ?> />
	<label for="O_Status_1" style="cursor:pointer;">已审核</label>
	
	<input type="radio" name="status" value="已停用" id="O_Status_2" <?php echo $visa['s_2']; ?> />
	<label for="O_Status_1" style="cursor:pointer;">已停用</label>
	</td>
</tr>

<tr>
	<td align="center">当前国旗图片：</td>
	<td colspan="3"><img src="<?php echo $visa['img']; ?>" width = '130' height = '100' style='margin-top:5px;' />
	</td>
</tr>


<tr>
	<td align="center">新的国旗图片：</td>
	<td colspan="3"><iframe frameborder=no id="frm" align="left" src="uplodeimages.php" style="width:480px; height:40px;" scrolling="no">
	</td>
</tr>




</tbody>
</table>

<?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/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="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 } ?>