<?php
	!defined('IN_MANAGE') && exit('Access Denied!');
?>
<!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="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<link href="admin/template/images/tm_right.css" type="text/css" rel="stylesheet" />
<link href="statics/ui-jquery/jquery-ui.css" type="text/css" rel="stylesheet" />
<title>网站管理后台</title>
<script language="javascript" src="statics/ui-jquery/jquery-1.8.3.js"></script>
<script language="javascript" src="statics/ui-jquery/jquery-ui.js"></script>
<script language="javascript" src="statics/data.input.js"></script>
<script language="javascript" src="admin/template/images/tm-core.js"></script>
<script language="javascript" type="text/javascript">
	$(document).ready(function(){
		$('#typeid').val('<?php echo $info['typeid'];?>');
	});
</script>
</head>

<body>
	<div class="top-tips">
		<div class="tips-wrap">
			<div class="title">编辑单页</div>
			带星号项目均不可留空。<a href="<?php echo IN_SYS;?>" target="_blank" style="color:#FF0000">获取帮助</a>
		</div>
	</div>
	<form action="" method="post" name="myform" onsubmit="return datainputcheck('myform');" id="myform" enctype="multipart/form-data">
	<input type="hidden" name="do_submit" value="1" />
	<input type="hidden" name="id" value="<?php echo $id;?>" />
	<table class="table-wrap" cellpadding="0" cellspacing="0">
		<tr>
			<td bgcolor="#EFF7FF" width="15%" class="tb-name">所属分类<span>*</span></td>
			<td>
				<select name="info[typeid]" id="typeid" title="所属分类">
					<?php echo $pageobj->type_select_cat($moduleid,0);?>
				</select>
			</td>
		</tr>
		<tr>
			<td bgcolor="#EFF7FF" class="tb-name">单页名称：<span>*</span></td>
			<td><input type="text" name="info[name]" notnull="1" class="input-txt" size="32" title="单页名称" value="<?php echo $info['name'];?>" /></td>
		</tr>
		<tr>
			<td bgcolor="#EFF7FF" class="tb-name">单页内容：<span>*</span></td>
			<td><?php echo $formobj->fckeditor('info','content',htmlspecialchars($info['content']));?></td>
		</tr>
		<tr>
			<td colspan="2" class="save-td"><input type="submit" class="save-btn" value="保存单页" /></td>
		</tr>
	</table>
	</form>
</body>
</html>
