<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD><TITLE>用户中心-<?php echo $cfg_webname; ?></TITLE>
<META content="text/html; charset=utf-8" http-equiv=Content-Type>
<META content=IE=EmulateIE7 http-equiv=X-UA-Compatible><META name=GENERATOR content="MSHTML 8.00.7601.17785"></HEAD>
<script type="text/javascript" src="templets/js/j.js"></script>
<script type="text/javascript" src="templets/js/main.js"></script>
<script type="text/javascript" src="templets/js/inputAutoClear.js"></script>
<script type="text/javascript" src="templets/js/load.js"></script>
<script type="text/javascript" src="templets/js/leftmenu.js"></script>
<link href="templets/style/article.css" rel="stylesheet" type="text/css">
<script language="javascript">
<!--
function checkSubmit()
{

	if(document.addcontent.title.value=="" || document.addcontent.title.value=="请输入文章标题"){
		alert("文章标题不能为空！");
		document.addcontent.title.focus();
		return false;
	}
	if(document.addcontent.tags.value==""){
		alert("文章标签不能为空！");
		document.addcontent.tags.focus();
		return false;
	}

if(document.addcontent.typeid.value==0){
		alert("发布栏目必须选择！");
		return false;
	}

if(document.addcontent.typeid.options && document.addcontent.typeid.options[document.addcontent.typeid.selectedIndex].className!='option3')
{
	alert("发布栏目必须选择白色背景的栏目！");
	return false;
}

  	if(document.addcontent.description.value.length<=0)
    {
        alert("内容简介不能为空");
		document.addcontent.description.focus();
		return false;
    }
	if(document.addcontent.vdcode.value==""){
		document.addcontent.vdcode.focus();
		alert("验证码不能为空！");
		return false;
	}

}
-->
</script>
<BODY>
<?php include(DEDEMEMBER."/templets/head@@.htm"); ?>
<DIV class=content-box>
<DIV class=content-box-header>
<H3>分享无限创意</H3>
<DIV class=clear></DIV></DIV>
<DIV class=content-box-content>

    <div id="mcpmain">
      <form name="addcontent" action="fx_cy.php" method="post" enctype="multipart/form-data" onSubmit="return checkSubmit();">
          <input type="hidden" name="dopost" value="save" />
          <input type="hidden" name="channelid" value="<?php echo $channelid; ?>" />
      <div id="mainCp">
        <div class="postForm">
          <p>
            <label>文章标题：</label>
            <input name="title" type="text" id="title" maxlength="100" class="intxt"  onfocus="if(value=='请输入文章标题') {value=''}" onblur="if(value=='') {value='请输入文章标题'}" value="请输入文章标题"/>
          </p>
          <p>
            <label>文章标签：</label>
            <input name="tags" type="text" id="tags" maxlength="100" class="intxt"/><span>多个关键词请用英文逗号分隔</span>
          </p>
          <p>
            <label>文章作者：</label>
            <input type="text" name="writer" id="writer" value="<?php echo $cfg_ml->M_UserName?>" maxlength="100" class="intxt" style="width:219px" disabled/>
          </p>
          <p>
            <label>发布栏目：</label>
            <?php
				$typeOptions = GetOptionList(0,$channelid);
				echo "<select name='typeid' size='1'>\r\n";
				echo "<option value='0' selected>请选择栏目...</option>\r\n";
				echo $typeOptions;
				echo "</select>";
			?>
            <span style="color:#F00">*</span>(不能选择带颜色的分类)
          </p>
          <p>
            <label>内容简介：</label>
            <textarea name="description" id="description"></textarea><br>
(内容的简要说明)
          </p>
          <p>
            <label>文章缩略图：</label>
            <input name="litpic" type="file" id="litpic" onChange="SeePicNew('divpicview',this);"  maxlength="100" class="intxt"/>
          </p>
      <?php
       //自定义字段
       PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');
      ?>
    </div>
        <!-- 表单操作区域 -->
        <h3 class="meTitle">详细内容：</h3>
        <div class="contentShow postForm">
          <p>
          	<?php GetEditor("body","",350,"Member"); ?>
          </p>
      <?php
      if($safe_faq_send == '1'){
      	$faqkey = array_rand($safefaqs);
      ?>
      	 <p class="cellBg">
            <label>验证问题：</label>
            <?php echo $safefaqs[$faqkey]['question'];?> (答案:<?php echo $safefaqs[$faqkey]['answer'];?>)<input name="safeanswer" type="text" id="safeanswer" size="25" style='width:200px;' class="intxt"/> 
                <input type="hidden" name="faqkey" value="<?php echo $faqkey;?>" />
         </p>
      <?php
   		 }
      	//游客强制加验证码，会员则判断后台开关
        if(preg_match("/3/",$safe_gdopen)){
      ?>
          <p class="cellBg">
            <label>验证码：</label>
            <input name="vdcode" type="text" id="vdcode" maxlength="100" class="intxt" style='width:50px;text-transform:uppercase;' />
            <img src="../include/vdimgck.php" alt="看不清？点击更换" align="absmiddle" style="cursor:pointer" onClick="this.src=this.src+'?'" /></p>
      <?php }?>
      <p><INPUT id=btnSubmit2 class=button value=分&nbsp;&nbsp;享 type=submit>
      </p>
        </div>
      </div>
      </form>
      <!--主操作区域 -->
    </div>
  </div>
</DIV>
<DIV class=clear></DIV>
<?php include(DEDEMEMBER."/templets/foot@@.htm"); ?>
</BODY></HTML>
