<?php if(!class_exists('Template')) die('Access Denied'); $this->tpl->check('info.html', '11daf45bef4467e71967eb0285d068c2', 1362484454); ?>
<?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>预订易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/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/infoList.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="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="O_Count"></span>　<span id="O_Flush">正在加载数据...</span></div>
</div>
<span id="mainlist">
<?php include $this->tpl->getfile('inc/list_info'); ?>
</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/info.addHandle">
<table cellSpacing="0" cellPadding="0" width="566px" border="0">
<tbody>
<tr>
<td align="right">所属分类：</td>
<td>
<select id="O_Type2" name="typeId">
<option value="">==分类==</option>
<?php if(is_array($typeList)) foreach($typeList as $v) { ?>
<option value="<?php echo $v['id']; ?>"><?php echo $v['name']; ?></option>
<?php } ?>
</select></td></tr>
<tr>
<td align="right">标题：</td>
<td><input id="O_Title" name="title" type="text" class="common_txt" maxlength="50" /></td></tr>
<tr>
<td align="right">上传封面：</td>
<td><input type="file" name="cover" size="45" /></td></tr>
<tr>
<td align="right">内容：</td>
<td style="width:85%;"><textarea id="O_Content" name="content"></textarea></td></tr>
<tr>
<td align="right">当前状态：</td>
<td><input type="radio" name="status" value="待审核" id="O_Status_0" checked /><label for="O_Status_0" style="cursor:pointer;">待审核</label> <input type="radio" name="status" value="已审核" id="O_Status_1" /><label for="O_Status_1" style="cursor:pointer;">已审核</label></td></tr>
</tbody></table>
</form>
<?php } elseif ($action=='update') { ?>
<form id="O_UploadForm" method="post" enctype="multipart/form-data" action="<?php echo DOMAIN; echo ROOT; ?>?m=admin/info.updateHandle">
<table cellSpacing="0" cellPadding="0" style="width:566px" border="0">
<tbody>
<tr>
<td align="right">所属分类：</td>
<td>
<select id="O_Type2" name="typeId">
<option value="">==分类==</option>
<?php if(is_array($typeList)) foreach($typeList as $v) { ?>
<option value="<?php echo $v['id']; ?>"<?php if($typeId==$v['id']) { ?> selected<?php } ?>><?php echo $v['name']; ?></option>
<?php } ?>
</select></td></tr>
<tr>
<td align="right">标题：</td>
<td><input id="O_Title" name="title" type="text" class="common_txt" maxlength="50" value="<?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><input type="file" name="cover" size="45" /></td></tr>
<tr>
<td align="right">内容：</td>
<td style="width:85%;"><textarea id="O_Content" name="content"><?php echo $content; ?></textarea></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><input id="O_ID" name="id" type="hidden" value="<?php echo $id; ?>" /></td></tr>
</tbody></table>
</form>
<?php } ?>