{#include file="post_header.html"#}
<div class="active-tip">
	<p><a href="{#$PB_ENV.PB_URL#}"><span>{#$uimsg.index#}</span></a> &raquo; <span>编辑内容</span></p>
</div>
<!-- 内容 -->
<div id="container">


<h1>编辑内容</h1>

<form action="{#$actionurl#}" method="post" enctype="multipart/form-data" id="post"{#$editoronsubmit#}>

<div class="post-main">
	<div class="post-s">
    	<div class="post-ss">分类(<span class="red">*</span>)</div>
    	<div class="post-sss">{#$cateoption#}</div>
    </div>
    <div class="post-s">
    	<div class="post-ss">{#$uimsg.title#}(<span class="red">*</span>)</div>
    	<div class="post-sss"><input type="text" id="title" name="title" size="35" onblur="checktitle()" value="{#$post.title#}" /><span id="cktitle" class="post-cktip"></span></div>
    </div>
    {#if $title_ubb == "1"#}
    <div class="post-s">
    	<div class="post-ss">标题属性</div>
    	<div class="post-sss">{#if $title_b == "1"#}<strong>加粗</strong> <input type="checkbox" name="title_b" value="1" class="checkbox"{#$check_b#} />{#/if#}&nbsp;{#if $title_i == "1"#}<span style="font-style:italic">斜体</span> <input type="checkbox" name="title_i" value="1" class="checkbox"{#$check_i#} />{#/if#}&nbsp;{#if $title_u == "1"#}<span style="text-decoration:underline">下划线</span> <input type="checkbox" name="title_u" value="1" class="checkbox"{#$check_u#} />{#/if#}&nbsp;&nbsp;{#if $title_color == "1"#}<select name="title_color">
<option value="">标题颜色</option>{#$color_list#}</select>{#/if#}</div>
    </div>
    {#/if#}
    <div class="post-s">
    	<div class="post-ss">{#$uimsg.source#}</div>
    	<div class="post-sss"><input type="text" id="source" name="source" size="35" value="{#$post.source#}" onblur="checksource()" /><span id="cksource" class="post-cktip"></span></div>
    </div>
    <div class="post-s">
    	<div class="post-ss">{#$uimsg.tag#}</div>
    	<div class="post-sss"><input type="text" id="tag" name="tag" size="35"  value="{#$post.tag#}" />&nbsp;<span>多个标签之间请用逗号分隔</span></div>
    </div>
	<div class="post-s">
    	<fieldset id="systag"><legend>系统标签</legend>
    	{#foreach from=$systags item=item#}
    	<a href="javascript:void(0);" onclick="addTag('{#$item.tagname#}')">{#$item.tagname#}({#$item.usenum#})</a>
    	{#/foreach#}
    	</fieldset>
	</div>
	{#if $uploadtopicimg == "1"#}
    <div class="post-s">
    	<div class="post-ss">{#$uimsg.topicimg#}</div>
    	<div class="post-sss">
    	{#if $showtopicimg == "1"#}
<p id="topicimg"><img src="{#$topicimg#}" />[<span onclick="changetopicimg('edit')">{#$uimsg.edit#}</span>][<span onclick="changetopicimg('edit')">{#$uimsg.del#}</span>]</p>
		{#else#}
    	<input type="file" id="topicimg" name="topicimg" />
		{#/if#}</div>
    </div>
    {#/if#}
    <div class="post-s">
    	<div class="post-ss">内容摘要</div>
    	<div class="post-sss"><div><textarea id="summary" name="summary" cols="70" rows="10" class="text_editor" >{#$post.sdesc#}</textarea></div></div>
	</div>
    <div class="post-s">
    	<div class="post-ss">{#$uimsg.content#}(<span class="red">*</span>)</div>
    	<div class="post-sss">{#$content#}</div>
    	<p><span id="ckcontent" class="cktip"></span></p>
    </div>
    {#if $modanonnews eq "1"#}
    <div class="post-s">
    	<div class="post-ss">您的大名</div>
    	<div class="post-sss"><input type="text" id="anonname" name="anonname" size="15" value="{#$post.author#}" /></div>
    </div>
    <div class="post-s">
    	<div class="post-ss">您的个人网站</div>
    	<div class="post-sss"><input type="text" id="anonsite" name="anonsite" size="35" value="{#$post.anonsite#}" />&nbsp;<span>感谢您的投稿，系统将在内容页展示您的个人网站。</span></div>
    </div>
    {#/if#}
	{#if $pb_gdcheck.post eq "1"#}
    <div class="post-s">
    	<div class="post-ss">{#$uimsg.captcha#}(<span class="red">*</span>)</div>
    	<div class="post-sss"><input type="text" name="captcha" id="captcha" size="10" maxlength="4" />&nbsp;<img src="{#$PB_ENV.PB_URL#}checkcode.php" onclick="refreshCheckcode()" id="checkcode" alt="{#$uimsg.captcha_refresh#}" />&nbsp;{#$uimsg.captcha_intro#}</div>
    </div>
	{#/if#}
</div>


<!-- 上传 -->
<div class="post-side">
	<h1>上传附件</h1>
{#if $showupload == "1"#}
	<div>{#$attaupload#}</div>
<link href="{#$PB_ENV.PB_URL#}templates/digg2008/js/swfupload/swfupload.css" rel="stylesheet" type="text/css" />
<!-- swf -->
<div id="swfupload">
	<div class="flash" id="uploadProgress"><div class="progressWrapper" id="divFileProgress"><div class="progressContainer"><div class="progressName">&nbsp;</div><div class="progressBarStatus">&nbsp;</div><div class="progressBarInProgress">&nbsp;</div></div></div></div>
	<div class="addnew">
		<span id="buttonPlaceHolder"></span>&nbsp;
		<img src="{#$PB_ENV.PB_URL#}templates/{#$PB_ENV.PB_TEMPLATE#}/images/cancel.png" id="cancelButton" alt="取消" onclick="swfu.cancelUpload();" disabled="disabled" /><br />
	</div>
</div>
{#/if#}
<!-- swf -->
<div id="uploaded">{#$attachments#}</div>
</div>
<div class="clear"></div>


<div class="post-s">
<input type="hidden" name="submitted" value="1" />
<input type="hidden" name="verifyhash" value="{#$verifyhash#}" />
<input type="hidden" name="fsid" value="{#$fsid#}" />
<input type="submit" id="submit" name="submit" value="{#$uimsg.submit#}" class="button" />
<input type="button" id="cancel" name="cancel" value="{#$uimsg.cancel#}" class="button" onclick="history.go(-1);" /></div>
</form>
</div>

<script type="text/javascript">
<!--
var pb_url = '{#$PB_ENV.PB_URL#}';
var pb_template = 'digg2008';
var verifyhash = '{#$verifyhash#}';
var title_min = {#$title_min#};
var title_max = {#$title_max#};
var title_tip = '{#$title_tip#}';
var content_min = {#$content_min#};
var content_max = {#$content_max#};
var content_tip = '{#$content_tip#}';
var sourcelink_tip = '{#$uimsg.illegal_source#}';
var ajax_response_loading = '{#$uimsg.ajax_response_loading#}';
var ajax_response_failed = '{#$uimsg.ajax_response_failed#}';
var captcha_error = '{#$uimsg.captcha_error#}';
var topicimg_cancel = '{#$uimsg.cancel#}';
var topicimg_edit = '{#$uimsg.edit#}';
var fsid = '{#$fsid#}';
var editormod = '{#$pb_editor#}';
//-->
</script>

</div>
<!-- footer -->
{#include file="footer.html"#}
<!-- footer end -->

</body>
</html>