<{include file="index/header.html"}> 
<div class="cnav"><a href="javascript:;" class="back">文章编辑</a></div>
<div class="main"> 
	<form action="?m=article&a=save" method="post">
		<{if $row.id}><input name="id" type="hidden" value="<{$row.id}>"><{/if}>	
		<table class="etable"> 
			<tr>
				<td width="100">分类：</td>
				<td> 
					<select name="cid">
						<{section name=c loop=$cats_tree}>
							<option value="<{$cats_tree[c].cid}>" <{if $cats_tree[c].cid == $row.cid}>selected="selected"<{/if}>><{$cats_tree[c].name}></option> 
						<{/section}> 
					</select>
				</td>
			</tr> 
			<tr>
				<td>标题：</td>
				<td><input name="title" type="text" size="70" value="<{$row.title}>"></td>
			</tr>  
			<tr>
				<td valign="top" style="padding-top:5px;">内容：</td>
				<td><textarea name="content" cols="130" rows="22" id="content"><{$row.content}></textarea></td>
			</tr> 
			<tr>
				<td>简述：</td>
				<td><textarea name="desc" cols="49" rows="2"><{$row.desc}></textarea></td>
			</tr> 
			<tr>
				<td>缩略图：</td>
				<td>
					<div class="upload_button">
						<input type="text" name="simg" value="<{$row.simg}>"/>
						<a class="file" href="javascript:;">选择文件<input type="file" name="imgFile" id="imgFile"/></a>
					</div>
					<div class="upload_tip vtip" data-img="<{if $row.simg}><{$__IMG__}><{$row.simg}><{/if}>"></div>
				</td>
			</tr>	
			<tr>
				<td>信息来源：</td>
				<td><input name="from" type="text" value="<{$row.from}>" size="50"/></td>
			</tr>  
			<tr>
				<td>喜欢数：</td>
				<td><input name="like" type="text" value="<{$row.like}>" size="10"/></td>
			</tr> 
			<tr>
				<td>浏览数：</td>
				<td><input name="click" type="text" value="<{$row.click}>" size="10"/></td>
			</tr>
			<tr>
				<td>允许评论：</td>
				<td> 
					<label><input type="radio" value="1" name="is_msg" <{if $smarty.get.id=="" || $row.is_msg == '1'}>checked="checked"<{/if}>/>允许 </label>
					<label><input type="radio" value="0" name="is_msg" <{if $row.is_msg == '0'}>checked="checked"<{/if}>/>不允许</label>
				</td>
			</tr>  
			<tr>
				<td>&nbsp;</td>
				<td><input name="submit" type="submit" id="submit" value="提交"/></td>
			</tr>
		</table>
	</form> 
</div>
<{include file="index/footer.html"}>
<script type="text/javascript">
editor_content('#content', 'article');
upload('article','imgFile');
</script>