<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<script language="javascript"> 

<!--屏蔽JS错误  

function killerrors() { 

return true; 

} 

window.onerror = killerrors; 

//--> 

</script>

<html xmlns="http://www.w3.org/1999/xhtml">

<head>

<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $cfg_soft_lang; ?>" />

<title>发表<?php echo $cInfos['typename']; ?> - 会员中心 - <?php echo $cfg_webname; ?></title>



<link href='/templets/default/css/style_web.css?v=f3a5c' media="screen, projection" rel="stylesheet" type="text/css" />

<link href="templets/style/base.css" rel="stylesheet" type="text/css" />

<script type="text/javascript" src="templets/js/j.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>

<script type="text/javascript" src="templets/js/checkSubmit.js"></script>

<script language="javascript" type="text/javascript" src="/include/dedeajax2.js"></script>

<script language="javascript" type="text/javascript">

<!--

function CheckLogin(tid){

LoadCommets(tid);

if(document.getElementById('qbpl'+tid).className=='comments'){

	  document.getElementById('qbpl'+tid).className='login';

}else{

	  document.getElementById('qbpl'+tid).className='comments';

	  var taget_obj = document.getElementById('_ajax_feedback'+tid);

	  myajax = new DedeAjax(taget_obj,false,false,'','','');

	  myajax.SendGet2("/member/ajax_feedback.php?aid="+tid);

	  DedeXHTTP = null;

	  document.getElementById('commetcontentNew'+tid).innerHTML='';

}



}



function postBadGood(ftype,fid)

{

	var taget_obj = document.getElementById(ftype+fid);

	var saveid = GetCookie('badgoodid');

	if(saveid != null)

	{

		var saveids = saveid.split(',');

		var hasid = false;

		saveid = '';

		j = 1;

		for(i=saveids.length-1;i>=0;i--)

		{

			if(saveids[i]==fid && hasid) continue;

			else {

				if(saveids[i]==fid && !hasid) hasid = true;

				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);

				j++;

				if(j==10 && hasid) break;

				if(j==9 && !hasid) break;

			}

		}

		if(hasid) { alert('您刚才已表决过了喔！'); return false;}

		else saveid += ','+fid;

		SetCookie('badgoodid',saveid,1);

	}

	else

	{

		SetCookie('badgoodid',fid,1);

	}

	myajax = new DedeAjax(taget_obj,false,false,'','','');

	myajax.SendGet2("/feedback.php?aid="+fid+"&action="+ftype+"&fid="+fid);

}

function postDigg(ftype,aid)

{

	var taget_obj = document.getElementById('newdigg'+aid);

	var saveid = GetCookie('diggid');

	if(saveid != null)

	{

		var saveids = saveid.split(',');

		var hasid = false;

		saveid = '';

		j = 1;

		for(i=saveids.length-1;i>=0;i--)

		{

			if(saveids[i]==aid && hasid) continue;

			else {

				if(saveids[i]==aid && !hasid) hasid = true;

				saveid += (saveid=='' ? saveids[i] : ','+saveids[i]);

				j++;

				if(j==20 && hasid) break;

				if(j==19 && !hasid) break;

			}

		}

		if(hasid) { alert("您已经顶过该帖，请不要重复顶帖 ！"); return; }

		else saveid += ','+aid;

		SetCookie('diggid',saveid,1);

	}

	else

	{

		SetCookie('diggid',aid,1);

	}

	myajax = new DedeAjax(taget_obj,false,false,'','','');

	var url = "/plus/digg_ajax.php?action="+ftype+"&id="+aid;

	myajax.SendGet2(url);

}

function getDigg(aid)

{

	var taget_obj = document.getElementById('newdigg'+aid);

	myajax = new DedeAjax(taget_obj,false,false,'','','');

	myajax.SendGet2("/plus/digg_ajax.php?id="+aid);

	DedeXHTTP = null;

}

-->

</script>

<script language="javascript" type="text/javascript">  var childWindow;  function toQzoneLogin()  {  childWindow =window.open("/plus/qzonelogin/redirect.php?gourl="+document.URL,"TencentLogin","width=450,height=320,menubar=0,scrollbars=1, resizable=1,status=1,titlebar=0,toolbar=0,location=1");  }  function closeChildWindow()  {  childWindow.close();  }  </script>

<script src="/plus/autohtml.php?mod=index" language="javascript" type="text/javascript"></script>

</head>

<body>

<div id="main">

  <?php include(DEDEMEMBER."/templets/head.htm"); ?>

  <div id="content" class="w960 clearfix">

    <?php include(DEDEMEMBER."/templets/menu.php"); ?>

    <div class="mainBox">

<div id="mcpmain">

      <div id="appTab">

        <ul>

          <li class="thisTab"><a href="#"><span>发表<?php echo $cInfos['typename']; ?></span></a></li>

        </ul>        

       </div>

      <form name="addcontent" action="article_add.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; ?>" />

		  <input type="hidden" name="writer" id="writer" value="<?php echo $cfg_ml->M_UserName?>" />

      <div id="mainCp">

        <h3 class="meTitle"</h3>

        <div class="postForm">

          <p class="cellBg">

            <label><?php echo $cInfos['titlename']; ?>：</label>

            <input name="title" type="text" id="title" value="请输入内容主题" maxlength="100" class="intxt" onfocus="inputAutoClear(this)"/>

          </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>

      <?php

       //自定义字段

       PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');

      ?>

    </div>

        <!-- 表单操作区域 -->

        <h3 class="meTitle">小提示:目前发布视频仅支持以SWF格式结尾的视频地址,选取宽度跟高度为480px.400px。图片宽度限制小于550px,谢谢各位麻友!!</h3>

        <div class="contentShow postForm">

          <p>

          	<?php GetEditor("body","",350,"Small"); ?>

          </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>

             <button class="button2" type="submit">提交</button>

             <button class="button2 ml10" type="reset" onclick="location.reload();">重置</button>

      </p>

        </div>

      </div>

      </form>

      <!--主操作区域 -->

    </div>

  </div></div>

<?php include(DEDEMEMBER."/templets/foot.htm"); ?>

</div>

</body>

</html>

