<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
<script type="text/javascript">
{literal}
    window.onload = function()
    {
        CKEDITOR.replace( 'editor01' );
    };
    function fuzhi(a){
document.getElementById("catId").value=a;
    {/literal}
</script>
<div id="page">
		<div id="content">
			<div class="post">
				<h2 class="title"><a href="#">修改密码 </a></h2>
				<div style="clear: both;">&nbsp;</div>
				<div class="entry">
				<form action="editNewsOK.php" method="POST" id="addNews" name="addNews">
				<table>
				<tr>
				<td>
				<label>分类：</label></td><td>
				<select name="catId" onchange="fuzhi(this.options[this.selectedIndex].text)">
				{foreach item=n from=$row}
				<option value="{$n.catId}">{$n.catName}</option>
				{/foreach}
				</select>
				<input type="hidden" id="select_content" name="select_content" />
				</td>
				</tr>
				{foreach item=edit from=$edit1}
				<tr><td><label>标题：</label></td><td><input type="text" size="30" name="title" value="{$edit.title}"/></td></tr>
				<tr><td><label>描述:</td><td>
<textarea  name="desc">{$edit.title}</textarea>
<script type="text/javascript">CKEDITOR.replace('desc');</script>
</td></tr>
				<tr><td><label>内容:</label></td><td>
				<textarea  name="content1">{$edit.content}</textarea>
<script type="text/javascript">CKEDITOR.replace('content1');</script>
</td></tr>
				<tr><td><label>推荐：</label></td><td>是：<input type="radio" name="recommend" value="1" checked>否：<input type="radio" name="recommend" value="0"></td></tr>
				<tr><td></td><td><input type="text" name="newsId" value="{$edit.newsId}" style="display:none"/></td></tr>
				{/foreach}
				</table>
				<div align="center">
				<input type="submit" value="修改" name="subNews"/>
				&nbsp;<input type="submit" value="预览" name="preNews" onclick="this.form.action='../preView.php';"/></div>
				</form> 
				</div>
			</div>
			<div style="clear: both;">&nbsp;</div>
		</div>
		<!-- end #content -->