<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('type.html', 'caca6c6a5cbaa8681f30cc83bdf6fa77', 1362484565); ?>
<?php if($action=='type') { ?>
<!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/article/typeList.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_article'); ?>
</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="sort">类别</option>
</select>
<input id="simpleSearchKey" type="text" />&nbsp;
<button id="O_SimpleSearchBtn" class="searchbutton" type="button">快捷搜索</button>
</div>
</div>
<div class="todayinfoListTop"></div>
<span id="mainlist">
<?php include $this->tpl->getfile('inc/list_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 } elseif ($action=='info') { ?>
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>
<tr>
<td valign="top" align="right">名称：</td>
<td><?php echo $name; ?></td></tr>
<tr>
<td valign="top" align="right">类别：</td>
<td style="width:85%;"><?php echo $sort; ?></td></tr>
</tbody></table>
<?php } elseif ($action=='update') { ?>
<table cellSpacing="0" cellPadding="0" style="width:566px" border="0">
<tbody>
<tr>
<td valign="top" align="right">名称：</td>
<td><input id="O_Name" type="text" class="common_txt" maxlength="50" value="<?php echo $name; ?>" /></td></tr>
<tr>
<td valign="top" align="right">类别：</td>
<td style="width:85%;"><input type="radio" name="O_Sort" value="简介" id="O_Sort_0"<?php if($sort=='简介') { ?> checked<?php } ?> /><label for="O_Sort_0" style="cursor:pointer;">简介</label> <input type="radio" name="O_Sort" value="资讯" id="O_Sort_1"<?php if($sort=='资讯') { ?> checked<?php } ?> /><label for="O_Sort_1" style="cursor:pointer;">资讯</label><input id="O_ID" type="hidden" value="<?php echo $id; ?>" /></td></tr>
</tbody></table>
<?php } ?>