<!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=utf-8" />
<title>发布笑料-饭麻网-www.fanma.cn</title>
<link rel="shortcut icon" href="/favicon.ico" />
<link href='/templets/default/css/style_web.css?v=f3a5c' media="screen, projection" rel="stylesheet" type="text/css" />
<link href="/templets/default/css/bak.css" rel="stylesheet" type="text/css" />
<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>
</head>
<body>
<a name="top"></a>
<div class="head">
<div class="content-block">
<div class="logo"><a href="/">饭麻网</a></div>
<div class="userbar">
<div class="login hidden">
</div>
<div class="logout" id="_userlogin">
<a href="javascript:vote2(-1)">登录</a>
<a href="/member/index_do.php?fmdo=user&dopost=regnew">注册</a>

</div> 

<!-- /userlogin -->

<script>
	function timeclear(){
	window.onerror=function(){return true;};
	}
	var tcr=setInterval("timeclear();",3000); 
</script>
<script>
	function CheckLogin2(){
	  var taget_obj = document.getElementById('_userlogin');
	  myajax = new DedeAjax(taget_obj,false,false,'','','');
	  myajax.SendGet2("/member/ajax_loginsta.php");
	  DedeXHTTP = null;
	}
	
	function PostComment(mgid)
{
		var f = document.getElementById('feedback'+mgid);
		var msg = document.getElementById('commentc'+mgid).value;
		var nface = '6';
		var nfeedbacktype = 'feedback';
		var nvalidate = '';
		var nnotuser = '';
		var nusername = '';
		var npwd = '';
		var taget_obj = $DE('commetcontentNew'+mgid);
		var waithtml = "<div style='line-height:30px'><img src='/images/loadinglit.gif' />正在发送中...</div>";

		if(msg==''||msg==null||msg.length==0||msg=='请不要发表与本内容无关的评论，您有了账号就是有身份的人了，我们可认识您。')
		{
			alert("评论内容不能为空！");
			return;
		}
		if(msg.length > 500)
		{
			alert("你的评论是不是太长了？请填写500字以内的评论。");
			return;
		}
		if(f.feedbacktype) {
			for(var i=0; i < f.feedbacktype.length; i++)
				if(f.feedbacktype[i].checked){
				nfeedbacktype = f.feedbacktype[i].value;
				}
		}
		/*
		if(f.face) {
			for(var j=0; j < f.face.length; j++)
				if(f.face[j].checked) nface = f.face[j].value;
		}
		*/
		if(f.notuser.checked) nnotuser = '1';
		if(f.username) nusername = f.username.value;
		if(f.pwd) npwd = f.pwd.value;

		var myajax = new DedeAjax(taget_obj, false, true, '', '', waithtml);
		myajax.sendlang = 'utf-8';
		myajax.AddKeyN('dopost', 'send');
		myajax.AddKeyN('aid', mgid);
		myajax.AddKeyN('fid', f.fid.value);
		myajax.AddKeyN('face', nface);
		myajax.AddKeyN('feedbacktype', nfeedbacktype);
		myajax.AddKeyN('validate', nvalidate);
		myajax.AddKeyN('notuser', nnotuser);
		myajax.AddKeyN('username', nusername);
		myajax.AddKeyN('pwd', npwd);
		myajax.AddKeyN('msg', msg);
		myajax.SendPost2('/plus/feedback_ajax.php');
		//msg = '';
		document.getElementById('commentc'+mgid).value='';
		
		//taget_obj.removeAttribute('id');
		f.fid.value = 0;
		if(f.validate)
		{
			if($DE('validateimg')) $DE('validateimg').src = "/include/vdimgck.php?"+f.validate.value;
			f.validate.value = '';
		}
		
}
</script>
<script>CheckLogin2();</script>
</div>
</div>
</div>
</div>
<div class="menu-bar clearfix">
<div class="content-block">
<div class="menu">
<ul>
<li class="menuout"><a href="/">最新</a></li>
<li class="menuout" onMouseOver="this.className='menuover'" onMouseOut="this.className='menuout'">
<a href="/click_week" class="submenutitle">人气</a>
<a href="/click_week" class="submenu">7天内</a>
<a href="/click_month" class="submenu">30天内</a>
</li>
<li class="menuout"><a href='/plus/list.php?tid=1' >文字</a></li>
<li class="menuout"><a href='/plus/list.php?tid=2' >图片</a></li>
<li class="menuout"><a href='/plus/list.php?tid=4' >图片墙</a></li>
<li class="menuout"><a id='highlight' href='/member/add.php' >发表</a></li>
<li class="menuout"><a href='/member/' >会员中心</a></li>
</ul>
</div>
<div class="search">
<form action="http://www.google.com.hk/cse" id="cse-search-box">
<input type="hidden" name="cx" value="partner-pub-4939841000086153:4566343055" />
<input type="hidden" name="ie" value="UTF-8" />
<input type="text" name="q" size="32" class="input-box"/>
<input type="submit" name="sa" value="搜索" class="button-box"/>
</form>
<script type="text/javascript" src="http://www.google.com/coop/cse/brand?form=cse-search-box&lang=zh-Hans"></script>
</div>
</div>
</div>
<div class="main">
<div class="content-block">
<div class="col1">
<div class="block">
 
<div class="new_article">
<form id="addcontent" name="addcontent" action="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="mtypesid" id="mtypesid" value="" />
		  <input type="hidden" name="description" id="description" value="" />
		  <input type="hidden" name="litpic" id="litpic" value="" />
		  <input type="hidden" name="writer" id="writer" value="游客" />
		  <div style="display:none;">
      <?php
       //自定义字段
       PrintAutoFieldsAdd($cInfos['fieldset'],'autofield');
      ?>
		  </div>
<textarea id="body" class="original" onclick="inbody();" name="body">您可以在这里发表您自己的或者您听说过的搞笑事，与大家一起分享。
发表搞笑事不需要登录（不登录只能发表500字以内的糗事，登录后无字数限制并且可以发表图片和视频）。
您提交的糗事会在我们审核之后发表，审核标准为：必须真实，有笑点。正文中不能包含邮件地址、电话号码、地址等联系信息，不能与政治相关，不包含色情描写，不带有广告性质。另，输入框不支持HTML标签。
隐私声明：我们不会公开您的IP地址，更没有人能知道您的姓名（如果您没有署上真实姓名），分享是绝对安全的。</textarea>
<div id="length"></div>
<script>
var bodyvle=document.getElementById('body').value;
function inbody(){
if(document.getElementById('body').value==bodyvle){
document.getElementById('body').value='';
}
}
</script>

<div class="tagbox">
<label>标题：</label>
<input type="text" id="title" name="title" size="30">
</div>

<div class="tagbox">
            <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>(不能选择带颜色的分类)
</div>

<div class="tagbox">
<label>标签：</label>
<input type="text" size="30" name="tags" id="tags" maxlength="30" />
<span>（最多3个标签，用","分隔）</span>
</div>
<script>
function tsub(){
if(document.getElementById('body').value==''||bodyvle==document.getElementById('body').value){
alert('请填写笑话内容');
}else{
document.getElementById('addcontent').submit();
}
}
</script>
<br />
<span>这里只支持发布文字笑话，如需发布视频跟图片请注册登陆后进入麻友中心发布。</span>
<div class="buttonbox">
<input type="button" onclick="tsub();" class="submit" id="article_submit" name="commit" value="发表">
</div>
</form>
</div>
 
</div>
<div class="shadow"></div>
</div>

 
 
 
<div class="col2">
<div class="sponsor">
AD
</script>
</div>
<div class="shadow"></div>
<div class="microblog">
<h3>收听</h3>
<div class="content">
<a href="http://user.qzone.qq.com/1492495058" target="_blank">QQ空间<span>610<em>万</em></span></a><a href="http://t.qq.com/qiushibaike" target="_blank">腾讯微博<span>145<em>万</em></span></a><a href="http://weibo.com/qiushibaike" target="_blank">新浪微博<span>55<em>万</em></span></a><a href="http://mail.qq.com/cgi-bin/bookcol?colid=314" target="_blank">Feed订阅<span>360<em>万</em></span></a>
</div>
</div>
<div class="shadow"></div>
<div class="sponsor">
AD
</div>
<div class="shadow"></div>
<div class="tagsblock">
<h3>标签</h3>
<div class="content">
<a href="/tags.php?/%E4%BC%A4%E4%B8%8D%E8%B5%B7" rel="tag">伤不起</a>
<a href="/tags.php?/JJ" rel="tag">JJ</a>
<a href="/tags.php?/%E6%A0%A1%E5%9B%AD" rel="tag">校园</a>
<a href="/tags.php?/%E5%9B%B4%E8%A7%82" rel="tag">围观</a>
<a href="/tags.php?/ML" rel="tag">ML</a>
<a href="/tags.php?/%E7%BE%8E%E5%A5%B3" rel="tag">美女</a>
<a href="/tags.php?/%E8%BD%A6%E9%9C%87" rel="tag">车震</a>
<a href="/tags.php?/%E7%81%AB%E6%98%9F%E6%96%87" rel="tag">火星文</a>
<a href="/tags.php?/%E9%9D%9E%E4%B8%BB%E6%B5%81" rel="tag">非主流</a>
<a href="/tags.php?/%E4%B8%80%E5%8F%A5%E8%AF%9D%E4%B8%8D%E5%89%B2" rel="tag">一句话不割</a>
<a href="/tags.php?/%E7%A9%BF%E8%B6%8A" rel="tag">穿越</a>
<a href="/tags.php?/%E6%89%93%E9%A3%9E%E6%9C%BA" rel="tag">打飞机</a>
<a href="/tags.php?/%E7%A7%92%E6%9D%80" rel="tag">秒杀</a>
<a href="/tags.php?/%E8%90%9D%E8%8E%89" rel="tag">萝莉</a>
<a href="/tags.php?/hold" rel="tag">hold</a>
<a href="/tags.php?/%E8%85%90%E5%A5%B3" rel="tag">腐女</a>
<a href="/tags.php?/%E5%B0%8F%E4%B8%89" rel="tag">小三</a>
<a href="/tags.php?/TT" rel="tag">TT</a>
<a href="/tags.php?/%E5%BE%A1%E5%A7%90" rel="tag">御姐</a>
<!--a href="/tags.php?/%E8%90%8C" rel="tag">萌</a-->
<a href="/tags.php?/mm" rel="tag">mm</a>
<a href="/tags.php?/%E4%BA%8C%E5%A5%B6" rel="tag">二奶</a>
<a href="/tags.php?/%E6%AD%A3%E5%A4%AA" rel="tag">正太</a>
<a href="/tags.php">更多...</a>
</div>
</div>
<div class="shadow"></div>
<div class="sponsor">
AD
</div>
<div class="shadow"></div>
<div class="sitelink">
<h3>友情链接</h3>
<div class="content">
<a href='http://www.fanma.cn' target='_blank'>饭麻网</a>
</div>
</div>
<div class="shadow"></div>
<div id="box">
<div id="float" class="div1">
<div id="float-ad" class="sponsor">
AD
</div>
<div class="shadow"></div>
<div class="toolbar">
<a href="#top" class="back">回到顶部</a><a href="javascript:showSuggestForm()" class="feedback">意见建议</a>
</div>
</div>
</div>
</div>

<div class="baidu-sponsor">
AD
</div>
</div>
</div>
<?php include(DEDEMEMBER."/templets/foot.htm"); ?>
<div id="login-form">
<a href="#" class="close"><div class="bti"></div></a>
<div class="ie6-fix"></div>
<div class="col1">
<h1>欢迎回来</h1>
<div class="inputbox">
<form name="userlogin" id="userlogin" action="{dede:global.cfg_memberurl/}/index_do.php" method="POST">
<input type="hidden" name="fmdo" value="login" />
<input type="hidden" name="dopost" value="login" />
<input type="hidden" name="keeptime" value="604800" />
<label for="login">用户名</label>
<input type="text" tabindex="1" name="userid" id="login" class="Txt1" value="" onfocus="if(value=='') {value=''}" onblur="if(value=='') {value=''}"/>
<label for="password">密码：(<a href="/member/resetpassword.php">忘记密码？</a>)</label>
<input type="password" tabindex="2" name="pwd" id="password" class="Txt2" value="" onfocus="if(value=='') {value=''}" onblur="if(value=='') {value=''}"/>
</div>
<!--<div id="error"></div>-->
<div class="optionbox"><label for='remember_me'><input type="checkbox" value="checked" checked name="remember_me" id="remember_me"> 记住我</label></div>
<button type="submit">登录</button>
</form>
</div>
<div class="col2">
<h1>创建账号</h1>
<div class="intro">
强热推荐用QQ一键登录、一键注册、方便又省时。<br/><br/>
<a href="javascript:vod(0);" onclick='toQzoneLogin()'><img src="/plus/qzonelogin/img/qq_login.png"></a></div>
<a href="/member/index_do.php?fmdo=user&dopost=regnew" class="button">注册</a>
</div>
</div>
<div id="suggest-form">
<a href="#" class="close"><div class="bti"></div></a>
<div class="ie6-fix"></div>
<div class="form-block">
<h1>请帮助我们进步</h1>
<form method="post" action="plus/guestbook.php" name="form1">
<input type='hidden' name='action' value='save' /> 
<textarea type="text" id="suggest-text" name="msg" tabindex="1"></textarea>
<button type="submit">提交</button>
</form>
</div>
</div>
<script src="{dede:global.cfg_basehost/}/templets/default/js/application.js?v=b3c1e" type="text/javascript"></script>
</body>
</html>