<!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 href="<{$css_root}>images/admincp.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<{$web_url}>include/js/jquery.js"></script>
<script type="text/javascript" src="<{$web_url}>include/editor/xheditor.js"></script>
<script type="text/javascript" src="<{$web_url}>include/js/checkform.js"></script>
<script type="text/javascript">
$(pageInit);
function pageInit()
{
	$('#elm1').xheditor(true,{tools:'full',upImgUrl:"upload.php",upImgExt:"jpg,jpeg,gif,png"});
}
</script>
</head>
<body>
<div id="append_parent"/>
<div id="cpcontainer" class="container">
  <div class="itemtitle">
    <h3>文章管理</h3>
    <ul class="tab1">
      <li> <a href="article.php?act=show"> <span>文章列表</span> </a> </li>
      <li> <a href="article.php?act=add"> <span>添加文章</span> </a> </li>
    </ul>
  </div>
 <form id="form" action="article.php?act=editok" method="post" name="form">
 <input type="hidden" value="<{$art_aid}>" name="art[aid]" />
    <table class="tb tb2">
      <tbody>
        <tr>
          <td class="td27" colspan="2">文章标题:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="text" id="mustwrite" value="<{$art_title}>" name="art[title]"/>          </td>
          <td class="vtop tips2">文章标题，这个页面的名字</td>
        </tr>
        <tr>
          <td class="td27" colspan="2">所属分类:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><select name="art[catid]">
              <{section name=cates loop=$artcatelist}>
              <option 
              <{if $artcatelist[cates].catid eq $art_catid}>
              selected="selected" <{/if}>
              value="<{$artcatelist[cates].catid}>"><{$artcatelist[cates].name}>
              </option>
              <{/section}>
            </select>      </td>
          <td class="vtop tips2">这篇文章所属的类别</td>
        </tr>
        <tr>
          <td class="td27" colspan="2">发布人:</td>
        </tr>
        <tr class="noborder">
          <td class="vtop rowform"><input class="txt" type="text" id="mustwrite" value="<{$art_user}>" name="art[user]"/>          </td>
          <td class="vtop tips2">发布文章的人</td>
        </tr>
        
        
        <tr>
        <td class="td27" colspan="2">文章内容:</td>
      </tr>
      <tr class="noborder">
        <td colspan="2" ><textarea id="elm1" name="art[content]" rows="25" cols="80"><{$art_cont}></textarea>
        </td>
        </tr>
        <tr>
          <td colspan="2"><input class="btn" type="submit" value="提交" id="send" name="submit"/>          </td>
        </tr>
      </tbody>
    </table>
  </form>
</div>
</body>
</html>
