<?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">
$(document).ready(function(){
	$('#typeid').val(<?php echo $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="info[modelid]" value="20" />
	<table class="table-wrap" cellpadding="0" cellspacing="0">
		<tr>
			<td bgcolor="#EFF7FF" width="20%" class="tb-name">所属分类<span>*</span></td>
			<td>
				<select name="info[typeid]" notnull="1" id="typeid" onchange="self.location.href='<?php echo ADMIN_FILE;?>?mod=<?php echo $mod;?>&file=<?php echo $file;?>&action=add&typeid='+$('#typeid').val()" title="所属分类">
					<?php echo $conobj->type_select($moduleid,0,3);?>
				</select>
				<span style="color:#FF0000">&nbsp;注意：选择分类会刷新当前页面</span>
			</td>
		</tr>
		<?php foreach($formlist as $r){?>
		<tr>
			<td bgcolor="#EFF7FF" class="tb-name"><?php echo $r['name'];?><?php echo $r['notnull']?'<span>*</span>':'';?></td>
			<td><?php echo $r['form'];?> <?php echo $r['unit'];?></td>
		</tr>
		<?php }?>
		<?php foreach($moreformlist as $r){?>
		<tr>
			<td bgcolor="#EFF7FF" class="tb-name"><?php echo $r['name'];?><?php echo $r['notnull']?'<span>*</span>':'';?></td>
			<td><?php echo $r['form'];?> <?php echo $r['unit'];?></td>
		</tr>
		<?php }?>
		<tr>
			<td colspan="2" class="save-td"><input type="submit" class="save-btn" value="发布新闻" /></td>
		</tr>
	</table>
	</form>
</body>
</html>
