<?php 
require_once '../../Config.php';
if (intval ( BLL_Admin::isLogin () ) === 0) {
	header ( 'Location:../Index.html' );
	die ();
}
$sortObj = BLL_NewsSort::getOne ( intval ( $_GET ['theId'] ), 'id,pid,sortName' );
$findId = $sortObj ['id'];
?>
<!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=utf-8" />
<title>后台管理系统</title>
<link rel="stylesheet" type="text/css" href="../Css/RightFrm.css" />
<script type="text/javascript" src="../jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="../Comm.js"></script>
<script type="text/javascript" src="ThisJs.js"></script>
</head>
<body>
<table  border="0" cellpadding="0" cellspacing="1" class="headTable">
  <tr>
    <th width="80%">新增信息(<?php echo $sortObj['sortName']; ?>)</th>
    <th width="20%" class="links"><a href="<?php COM_OftenFunction::getListPageUrl ( "NewsList$sortObj[id]", "News_List.php?theId=$sortObj[id]" ); ?>">【返回】</a></th>
  </tr>
</table>
<form name="theForm" method="post" action="TheAction.php" onsubmit="return ckTheNewsForm(this);">
  <input type="hidden" name="action" value="addnews" />
  <input type="hidden" name="theId" value="<?php echo $sortObj['id']; ?>" />
  <table border="0" cellpadding="0" cellspacing="1" class="formTable">
    <tr>
      <th width="10%">标题：</th>
      <td width="90%"><input type="text" name="title_txt" value="" size="40" />
        <input type="submit" value=" 提 交 " class='btn' />
        &nbsp;&nbsp;
        <input type="reset" value=" 重 填 " class='btn' />
      </td>
    </tr>
<!--这里是生成位置-->	<tr>
      <td colspan="2"><textarea name="content_noreplace" id="content_noreplace"></textarea></td>
    </tr>
    <tr>
      <td colspan="2">&nbsp;</td>
    </tr>
  </table>
</form>
<?php echo COM_OftenFunction::GetXhEditor ( "content_noreplace" ); ?>
<script type="text/javascript">$(function(){setTableColor('no');});</script>
</body>
</html>