<!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=gbk" />
<title>{:$title}_{:C('name')}</title>
<link href="member/style.css" type="text/css" rel="stylesheet" />
<link href="../../statics/skins/blue/jxbox.css" type="text/css" rel="stylesheet" />
<script type="text/javascript" src="../../statics/js/jquery.min.js"></script>
<script type="text/javascript" src="../../statics/js/jquery.cookie.js"></script>
<script type="text/javascript" src="../../statics/js/jquery.jxbox.min.js"></script>
<script type="text/javascript" src="member/common.js"></script>
</head>
<body>
<div id="head">
 <div class="container">
  <div class="logo"><a href="{:Url::getUrl('member')}">会员中心</a></div>
  <div class="right">
   <div class="tool"><a href="{:ROOT_PATH}">首页</a>|<a href="{:Url::getUrl('member', 'password')}">安全中心</a>|<a href="{:Url::getUrl('member', 'logout')}">退出</a></div>
   <ul class="nav">
    <li class="active"><a href="{:Url::getUrl('member')}">我的主页</a></li>
    <li><a href="{:Url::getUrl('member', 'profile')}">个人设置</a></li>
    <li><a href="#">我的收藏</a></li>
   </ul>
  </div>
 </div>
</div>
<!--{#:tpl member_head}-->
<div id="position">您现在的位置：<a href="{:Url::getUrl('member')}">会员中心</a>&gt;在线投稿</div>
<div id="main">
 <div class="left">
  <div class="avatar"><img src="{:Tag::avatar($member['userid'], 'b')}" width="180" height="180" /></div>
  <div class="username">{:$member['username']}</div>
  <ul class="sub_nav">
   <li class="active"><a href="{:Url::getUrl('member', 'publish')}">在线投稿</a></li>
   <li><a href="{:Url::getUrl('member', 'published')}">已发布稿件</a></li>
  </ul>
 </div>
 <div class="right">
  <h4 class="title">在线投稿</h4>
  <form action="{:Url::getUrl('member', 'publish')}" method="post">
  <div class="post">
   <dl>
    <dt><span>*</span>栏 目</dt>
    <dd><select name="info[catid]" id="catid" require="true" datatype="number" msg="您未选择栏目或选择的栏目不能发布">
     <option value="">请选择…</option>
     {:Tag::tree("<option value='\$catid'\$selected>\$tab\$name</option>",$data['catid'],$category,0,0,1)}
    </select>
    </dd>
   </dl>
   <dl>
    <dt><span>*</span>标 题</dt>
    <dd><input name="info[title]" id="title" type="text" value="{:$data['title']}" size="40" require="true" datatype="require" msg="标题不能为空" />
    </dd>
   </dl>
   <dl>
    <dt>关键词</dt>
    <dd><input name="info[keywords]" type="text" id="keywords" size="40" value="{:$data['keywords']}">&nbsp;<span>多个用逗号“,”隔开</span></dd>
   </dl>
   <dl>
    <dt>来 源</dt>
    <dd><input name="info[copyfrom]" id="copyfrom" type="text" value="{:$data['copyfrom']}" size="30" maxlength="50"></dd>
   </dl>
   <dl>
    <dt>作 者</dt>
    <dd><input name="info[author]" id="author" type="text" value="{:$data['author']}" size="30" maxlength="30"></dd>
   </dl>
   <dl>
    <dt>简 介</dt>
    <dd><textarea name="info[description]" cols="80" rows="5">{:$data['description']}</textarea></dd>
   </dl>
   <dl>
    <dt><span>*</span>内 容</dt>
    <dd>{:Tag::editor('content', 'info[content]', $data['content'], 'article', 400, '88%', 'require="true" datatype="require" msg="内容不能为空"')}</dd>
   </dl>
   <dl>
    <dt>&nbsp;</dt>
    <dd><input name="submit" type="submit" class="submit" value="" /></dd>
   </dl>
  </div>
  </form>
 </div>
 <div class="clear"></div>
</div>
<script type="text/javascript" src="../../statics/js/validator.js"></script>
<script language="javascript" type="text/javascript">
$(function(){
	$('form').checkForm(1);
})
</script>
{:tpl member_foot}