代码拉取完成,页面将自动刷新
同步操作将从 二当家的/二当家的素材网前台系统源码 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
<!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=utf-8" />
<title>发布话题 - 二当家的</title>
<meta name="keywords" content="二当家的话题讨论,技术讨论,技术求助,技术分享,程序猿的技术闲聊,程序猿的吐槽" />
<meta name="description" content="二当家的讨论社区给大家提供一个技术圈交流的平台,您可以在这求助各种技术难题,吐槽闲聊心情,分享IT生活的各种欢乐与小烦恼,快来加入我们把!让我们大家共创二当家的和谐新社区!" />
<link rel="shortcut icon" href="Public/images/favicon.ico" type="image/x-icon" />
<link rel="stylesheet" href="Public/css/style.css" type="text/css" />
<link rel="stylesheet" href="http://www.erdangjiade.com/other/topic/css/topic.css" type="text/css" />
</head>
<body>
<div id="site_nav">
<div class="sn_container clearfix">
<ul class="tg_tools fr">
<li class="no-hover">
<a href="member_pay.html" class="head_pay_btn">充值</a>
</li>
<li class="no-hover">
<a id="msg_notify" class="msg_notify" href="member_message.html"></a>
</li>
<li class='box_color nav_home'>
<span><a href="member_index.html">个人中心</a></span><b class="icon"></b>
<ul>
<li><a href="member_index.html"><span>我的主页</span></a></li>
<li><a href="member_set.html"><span>个人设置</span></a></li>
<li><a href="member_downloads.html"><span>下载记录</span></a></li>
<li><a href="member_sign.html"><span>我的签到</span></a></li>
<li><a href="http://www.erdangjiade.com/Download/logout?r=/topic/add.html"><span>退出登录</span></a></li>
</ul>
</li>
<li class="tg-line icon"></li>
<li class='box_color'>
<span>帮助中心</span><b class="icon"></b>
<ul>
<li><a href="help.html"><span>扒模板</span></a></li>
<li><a href="help.html"><span>积分获取</span></a></li>
<li><a href="help.html"><span>联系我们</span></a></li>
<li><a href="help.html"><span>关于我们</span></a></li>
<li><a href="help.html"><span>招纳贤士</span></a></li>
</ul>
</li>
</ul>
<ul class="tg_tools fl" id="login_area" >
<li class="tg_tools_home no-hover"><i class="icon-more"></i><span><a href="index.html">二当家的首页</a></span></li>
<li class="no-hover nologin"><span><a href="http://www.erdangjiade.com/Index/login/type/qq.html"><img alt="Connect_logo_6.png" src="http://qzonestyle.gtimg.cn/qzone/vas/opensns/res/img/Connect_logo_6.png" style="position: relative;top:3px;"/></a></span></li>
<!-- <li class="no-hover nologin"><span><a href="http://www.erdangjiade.com/login.html" class="sn_login">登录</a></span></li>-->
<li class="no-hover hide haslogin"><span><a href="member_index.html"><font class="sn_login username" id='head_username'></font></a></span></li>
<li class="tg-line icon"></li>
<li class="no-hover nologin"><span><a href="http://www.erdangjiade.com/reg.html">注册</a></span></li>
<li class="no-hover hide haslogin"><span><a href="http://www.erdangjiade.com/Download/logout?r=/topic/add.html">退出</a></span></li> <li class='box_color nav_home' id="nav_login">
<span><a href="http://www.erdangjiade.com/login.html" class="sn_login">登录</a></span><b class="icon"></b>
<ul>
<li><a href="http://www.erdangjiade.com/Index/login/type/sina.html"><span>新浪微博</span></a></li>
<li><a href="http://www.erdangjiade.com/Index/login/type/renren.html"><span>人人网<i style="visibility: hidden">站</i></span></a></li>
</ul>
</li> </ul>
</div>
</div>
<div id="header">
<div class="tg_tools_home">
<div class="bbs_enter">
<a class="bbs-banner" href="help.html" target="_blank"><img src="Public/images/other/banner.jpg" alt="扒模板"/></a>
</div>
<div class="logo">
<a class="logo-bd" href="index.html"><img src="Public/images/logo.png" alt="二当家的logo"/></a>
</div>
<form action="search.html" method="GET" id="form_search" onsubmit="return searchSub()">
<div id='search'>
<div class="search_area">
<input type='submit' value='搜 索' class='btn_search'/>
<div class="search_select">
<span class="icon-search"></span>
</div>
<input type='text' value='请输入搜索内容' class="search_input" autocomplete="off" id="search_input" data-default="请输入搜索内容" onblur="checkInputBlur($(this))" onfocus="checkInputFocus($(this))" />
<input type="hidden" name="keyword"/>
</div>
<div class="search_box hide" id="search_box"></div>
<div class='search_keywords' >
<span>热门搜索:</span>
<a href="http://www.erdangjiade.com/search/search.html?keyword=手机" class="red">手机</a>
<a href="js.html?/8-0-0-0">导航菜单</a>
<a href="http://www.erdangjiade.com/search/search.html?keyword=bootstrap">bootstrap</a>
<a href="http://www.erdangjiade.com/search/search.html?keyword=后台">后台</a>
<a href="http://www.erdangjiade.com/search/search.html?keyword=上传"class="red">上传</a>
<a href="http://www.erdangjiade.com/search/search.html?keyword=购物车">购物车</a>
<a href="js.html?/106-0-0-0" class="red">日期时间</a>
<a href="http://www.erdangjiade.com/search/search.html?keyword=弹出层">弹出层</a>
</div>
</div>
</form>
</div>
</div>
<div id='nav' class='nav'>
<div class='nav_main clearfix'>
<a href='http://www.erdangjiade.com' class="menu">首 页</a>
<a href='js.html?' class="menu">jQuery特效</a>
<a href='js.html?' class="menu">PHP</a>
<a href='js.html?' class="menu">网站模板</a>
<!-- <a href='http://www.erdangjiade.com/psd' class="menu">网站psd</a>-->
<a href='topic.html' class="menu current">话题社区</a>
<a href='js.html?' class="menu">精选网址</a>
<a href='tool.html?' class="menu">工具箱</a>
<a href='help.html' class="menu">扒模板</a>
<!-- <a href='http://idc.erdangjiade.com/' class="menu" target="_blank">服务器</a>-->
<span class='icon_hot'></span>
</div>
</div>
<script type="text/javascript" charset="utf-8" src="other/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" charset="utf-8" src="other/js/ueditor/ueditor.all.min.js"></script>
<!--<script type="text/javascript" charset="utf-8" src="other/js/ueditor/lang/zh-cn/zh-cn.js"></script>-->
<div class="breadcrumbs">
<span>></span><a href="http://www.erdangjiade.com/topic">讨论社区</a>
<span>></span>发布话题
</div>
<div class="container clearfix">
<div class="sidebar">
<div class="sidebar_per">
<dl>
<dt>
<a href="http://www.erdangjiade.com/topic/" class="more">更多 <span class="more-sign">></span></a>
<strong>最新话题 <span class="name-en">/New</span></strong>
</dt>
<dd class="sidebar_articles">
<span>12-30</span>
<a target="_blank" href="http://www.erdangjiade.com/topic/37.html">真的很不错</a>
</dd><dd class="sidebar_articles">
<span>12-29</span>
<a target="_blank" href="http://www.erdangjiade.com/topic/36.html">不错得网站!</a>
</dd><dd class="sidebar_articles">
<span>12-22</span>
<a target="_blank" href="http://www.erdangjiade.com/topic/35.html">求助高手指点</a>
</dd><dd class="sidebar_articles">
<span>12-22</span>
<a target="_blank" href="http://www.erdangjiade.com/topic/34.html">这个网站程序,都是站长一个人开发的吗?</a>
</dd><dd class="sidebar_articles">
<span>12-22</span>
<a target="_blank" href="http://www.erdangjiade.com/topic/33.html">寻求项目合作</a>
</dd><dd class="sidebar_articles">
<span>12-20</span>
<a target="_blank" href="http://www.erdangjiade.com/topic/32.html">求助网站源码</a>
</dd><dd class="sidebar_articles">
<span>12-18</span>
<a target="_blank" href="http://www.erdangjiade.com/topic/31.html">ThinkPHP3.2.3中的文本编辑框如何实现?</a>
</dd><dd class="sidebar_articles">
<span>12-09</span>
<a target="_blank" href="http://www.erdangjiade.com/topic/29.html">山寨JQUERY:MingGEJS类库 。决战JQUERY,务必占据JQUERY用户份额</a>
</dd><dd class="sidebar_articles">
<span>10-27</span>
<a target="_blank" href="http://www.erdangjiade.com/topic/28.html">网站PSD 示例图片都不能显示 下载的文件也打不开</a>
</dd><dd class="sidebar_articles">
<span>10-20</span>
<a target="_blank" href="http://www.erdangjiade.com/topic/27.html">有没有手机版的大转盘抽奖页面</a>
</dd> </dl>
</div>
<div class="sidebar_per">
<dl>
<dt>
<a href="http://www.erdangjiade.com/topic/" class="more">更多 <span class="more-sign">></span></a>
<strong>标签云 <span class="name-en">/Tag</span></strong>
</dt>
<dd class="sidebar_tags">
<a target="_blank" href="http://www.erdangjiade.com/topic/tag-php.html">php</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-Html/CSS.html">Html/CSS</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-Mysql.html">Mysql</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-Html5.html">Html5</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-JQuery.html">JQuery</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-JavaScript.html">JavaScript</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-Bootstrap.html">Bootstrap</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-CSS3.html">CSS3</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-前端工具.html">前端工具</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-大数据.html">大数据</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-Thinkphp.html">Thinkphp</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-Ajax.html">Ajax</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-Curl.html">Curl</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-表单.html">表单</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-JSON.html">JSON</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-手机.html">手机</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-后台.html">后台</a><a target="_blank" href="http://www.erdangjiade.com/topic/tag-插件.html">插件</a> </dd>
</dl>
</div>
</div>
<div class="detail topic_add">
<ul class="topic_add_ul">
<li>
<div class="clearfix">
<div class="label_right"><input class="text" type="text" id="title" placeholder="请输入标题" data-null="请输入标题" autocomplete="off" tabindex="1" value="" onfocus="focusInputTopicArea($(this))" onblur="blurInputTopicArea($(this))" data-minlength="5" /></div>
<label><span class='must'>*</span>标题:</label>
</div>
<div class="validate"><span class="Validform_checktip Validform_wrong hide"></span></div>
</li>
<li>
<div class="clearfix">
<div class="label_right" id='cats'>
<em data-id='2' class='current' >求助交流<i></i></em><em data-id='3' >技术分享<i></i></em><em data-id='5' >网站模板<i></i></em><em data-id='6' >网站源码<i></i></em><em data-id='7' >项目合作<i></i></em><em data-id='8' >招聘求职<i></i></em><em data-id='10' style='margin-right:0'>其他<i></i></em> </div>
<label><span class='must'>*</span>分类:</label>
</div>
<div class="validate"><span class="Validform_checktip Validform_wrong hide"></span></div>
</li>
<li>
<div class="clearfix">
<div class="label_right">
<script id="editor" type="text/plain" style="width:663px;height:420px;"></script>
</div>
<label><span class='must'>*</span>内容:</label>
</div>
<div class="validate" id="tip_content"><span class="Validform_checktip Validform_wrong hide"></span></div>
</li>
<li class="clearfix" style="margin-bottom: 20px">
<div class="label_right">
<div class="tags" id="tags" tabindex="1">
<input id="form-field-tags" type="text" placeholder="请输入标签..." value="Tag Input Control" name="tags" style="display: none;"/>
<input type="text" placeholder="请输入标签..." class="tags_enter" autocomplete="off"/>
</div>
</div>
<label><span class='must'></span>标签:</label>
</li>
<li class="clearfix">
<div class="label_right">
<div id="js-tags" class="taglist clearfix">
<a class="list-tag" data-id="1" href="javascript:;" style="margin:0 6px 10px 0">php</a><a class="list-tag" data-id="2" href="javascript:;" style="margin:0 6px 10px 0">Html/CSS</a><a class="list-tag" data-id="3" href="javascript:;" style="margin:0 6px 10px 0">Mysql</a><a class="list-tag" data-id="4" href="javascript:;" style="margin:0 6px 10px 0">Html5</a><a class="list-tag" data-id="5" href="javascript:;" style="margin:0 6px 10px 0">JQuery</a><a class="list-tag" data-id="6" href="javascript:;" style="margin:0 6px 10px 0">JavaScript</a><a class="list-tag" data-id="7" href="javascript:;" style="margin:0 6px 10px 0">Bootstrap</a><a class="list-tag" data-id="8" href="javascript:;" style="margin:0 6px 10px 0">CSS3</a><a class="list-tag" data-id="9" href="javascript:;" style="margin:0 6px 10px 0">前端工具</a><a class="list-tag" data-id="10" href="javascript:;" style="margin:0 6px 10px 0">大数据</a><a class="list-tag" data-id="11" href="javascript:;" style="margin:0 6px 10px 0">Thinkphp</a><a class="list-tag" data-id="12" href="javascript:;" style="margin:0 6px 10px 0">Ajax</a><a class="list-tag" data-id="13" href="javascript:;" style="margin:0 6px 10px 0">Curl</a><a class="list-tag" data-id="14" href="javascript:;" style="margin:0 6px 10px 0">表单</a><a class="list-tag" data-id="15" href="javascript:;" style="margin:0 6px 10px 0">JSON</a><a class="list-tag" data-id="16" href="javascript:;" style="margin:0 6px 10px 0">手机</a><a class="list-tag" data-id="17" href="javascript:;" style="margin:0 6px 10px 0">后台</a><a class="list-tag" data-id="18" href="javascript:;" style="margin:0 6px 10px 0">插件</a> </div>
</div>
<label><span class='must'></span></label>
</li>
<li class="clearfix" id="upload_btn_area">
<div class="label_right">
<a class="upload_btn" id="upload_btn">上传附件</a>
</div>
<label><span class='must'></span>附件:</label>
</li>
<li class="clearfix">
<div class="label_right">
<div id="logo_upload_area" style="position: relative;width:525px;">
<div id='upload_progress' class='hide'>
<span class='bar' id='bar'></span>
<span id='percent_num'></span>
</div>
<div id='upload_rs' class='hide'>
</div>
</div>
</div>
<label></label>
</li>
<li>
<div class="clearfix">
<div class="label_right">
<input class="text" type="text" id="code" tabindex="2" style="width:110px" autocomplete="off" maxlength="4" data-null="请输入验证码" data-length="4" onfocus="focusInputTopicArea($(this))" onblur="blurInputTopicArea($(this))" />
<img src="other/js/group/code_gg.php" id="getcode_gg" class="getcode_gg" title="看不清,点击换一张" align="absmiddle"/>
<a class="getcode_gg_a" href="javascript:;" >换一张</a>
</div>
<label><span class='must'>*</span>验证码:</label>
</div>
<div class="validate"><span class="Validform_checktip Validform_wrong hide"></span></div>
</li>
<li class="clearfix">
<div class="label_right">
<input class="btn" value="提 交" tabindex="3" id='btn_submit' style='padding:4px 30px;font-size: 14px' autocomplete="off"/>
</div>
<label></label>
</li>
</ul>
</div>
</div>
<div class="footer" id="footer" data-url="http://www.erdangjiade.com/" data-logout="http://www.erdangjiade.com/Download/logout?r=/topic/add.html" data-id="" data-mtype="">
<div class="footer_main clearfix">
<div class="guide">
<span class="guide_icon"></span>
<ul class="ul_foot">
<li><strong>网站模板</strong></li>
<li><a href="js.html?/3-0-0-0-0-0">行业模板</a><a href="js.html?/7-0-0-0-0-0">专题模板</a></li>
<li><a href="js.html?/4-0-0-0-0-0">商城模板</a><a href="js.html?/8-0-0-0-0-0">后台模板</a></li>
<li><a href="js.html?/5-0-0-0-0-0">企业模板</a><a href="js.html?/9-0-0-0-0-0">其他模板</a></li>
<li><a href="js.html?/31-0-0-0-96-0">求职招聘</a><a href="js.html?/22-0-0-0-96-0">订餐外送</a></li>
<li><a href="js.html?/69-0-0-0-0-0">个人博客</a><a href="js.html?/0-0-0-0-96-0">中文模板</a></li>
</ul>
</div>
<div class="stores">
<span class="stores_icon"></span>
<ul class="ul_foot">
<li><strong>jquery特效</strong></li>
<li><a href="js.html?/7-0-0-0">图片代码</a><a href="js.html?/7-0-0-0">悬浮层/弹出层</a></li>
<li><a href="js.html?/8-0-0-0">导航菜单</a><a href="js.html?/14-0-0-0">其它特效</a></li>
<li><a href="js.html?/9-0-0-0">选项卡/滑动门</a><a href="js.html?/53-0-0-0">PHP+Ajax</a></li>
<li><a href="js.html?/11-0-0-0">表单代码</a><a href="js.html?/128-0-0-0">jQuery插件</a></li>
</ul>
</div>
<div class="rebate">
<span class="rebate_icon"></span>
<ul class="ul_foot">
<li><strong>推荐jQuery</strong></li>
<li><a href="js.html?/177.html">datepicker</a><a href="js.html?/44.html">flowplayer</a></li>
<li><a href="js.html?/1.html">jQuery购物车</a><a href="js.html?/85.html">jquery表单验证</a></li>
<li><a href="js.html?/200.html">lightbox</a><a href="js.html?/125.html">jquery滚动条</a></li>
<li><a href="js.html?/45.html">fancybox</a><a href="js.html?/268.html">WebUploader</a></li>
<li><a href="js.html?/107.html">fullcalendar</a><a href="js.html?/3.html">上传</a></li>
</ul>
</div>
<div class="follow">
<span class="follow_icon"></span>
<ul>
<li>
<strong>联系我们</strong>
</li>
<li>
<a class="qq-chat" href="http://wpa.qq.com/msgrd?v=3&uin=368848856&site=qq&menu=yes" target="_blank">
<img alt="QQ在线客服" src="Public/images/qq-chat.png">
</a>
</li>
<li>qq群:368848856</li>
<li>邮箱:368848856@qq.com</li>
<li>手机:erdangjiade</li>
</ul>
</div>
<div class="friendly">
<div class="foot_menu">
<a href="help.html" target="_blank">扒模板</a>
<a href="help.html" target="_blank">联系我们</a>
<a href="help.html" target="_blank">关于我们</a>
<a href="help.html" target="_blank">招纳贤士</a>
<a href="js.html?map.html" target="_blank">网站地图</a>
<span class="address">Copyright©2010-2020 All Rights Reserved. 沪ICP备88888888</span>
</div>
</div>
</div>
</div>
<div id="windown_box" class="modal fade">
<div class="pop_title">
<div class="pop_name">登录</div>
<i class="pop_close" onclick="$('#windown_box').modal('hide')"></i>
</div>
<div class="pop_content">
<div class="form_item">
<div class="item_tip">用户名/邮箱</div>
<input id="email" name="email" class="form_input" type="text" autocomplete="off" tabindex="1" value="" onblur="blurInputLoginBox($(this))" onfocus ="focusInputLoginBox($(this))"/>
</div>
<div class="form_item">
<div class="item_tip">密码</div>
<input name="pwd" id="pwd"class="form_input" type="password" tabindex="2" value="" onblur="blurInputLoginBox($(this))" onfocus ="focusInputLoginBox($(this))" />
</div>
<div class="captchaBox">
<div class="two_weeks">
<input id="rememberme" class="ckeckBox" type="checkbox" name="rememberme">
<label for="rememberme">两周内免登录</label>
<a href="http://www.erdangjiade.com/reg.html" target="_blank" class="loginbox_reg">免费注册</a>
</div>
</div>
<p class="notice_error"></p>
<input id="btn_login" class="btn" type="button" onclick="sublogin()" tabindex="4" value="登 录">
<a class="a_underline" href="http://www.erdangjiade.com/forget.html">忘记密码?</a>
<div class="co_login" style="margin:20px 0 0">
联合登录
<a class="a_underline" href="http://www.erdangjiade.com/Index/login/type/qq.html">腾讯QQ</a>
<a class="a_underline" href="http://www.erdangjiade.com/Index/login/type/sina.html">新浪微博</a>
<a class="a_underline" href="http://www.erdangjiade.com/Index/login/type/renren.html">人人网</a>
绑定送<span class="red">200</span>积分
</div>
</div>
</div>
<script src="Public/js/jquery.js" type="text/javascript"></script><script src="Public/js/common.js" type="text/javascript"></script>
<div class="mmsg-box mmsg-box-info" id='msg-box' style="margin-top: -23.5px; margin-left: -96.5px;">
<div class="mmsg-content">
<i class="mmsg-icon"></i>
<p id='msg-box-content'></p>
</div>
<div class="mmsg-background"></div>
</div>
<script type="text/javascript">
</script>
</body>
</html>
<script type="text/javascript" src="Public/js/plupload/plupload.full.min.js"></script>
<script type="text/javascript">
var ue = UE.getEditor('editor');
function addTag(tag) {
// var tag = obj.val();
var length = $("span.tag").length;
if (length > 8) {
alert("标签个数不能超过8个!");
return false;
}
if (tag != '') {
var i = 0;
$(".tag").each(function() {
if ($(this).text() == tag + "×") {
$(this).addClass("tag-warning");
setTimeout("removeWarning()", 400);
i++;
}
})
$(".tags_enter").val('');
if (i > 0) { //说明有重复
return false;
}
if (tag.length > 10) {
alert("标签长度不能大于10个字符!");
return false;
}
$("#form-field-tags").before("<span class='tag'>" + tag + "<button class='close' type='button'>×</button></span>"); //添加标签
}
}
function removeWarning() {
$(".tag-warning").removeClass("tag-warning");
}
var uploader = new plupload.Uploader({
runtimes: 'html5,flash,silverlight,html4',
browse_button: 'upload_btn', // you can pass in id...
logo_area_tr: document.getElementById('upload_btn_area'), // ... or DOM Element itself
url: "http://www.erdangjiade.com/Upload/files.html",
flash_swf_url: '/Public/js/plupload/Moxie.swf',
silverlight_xap_url: '/Public/js/plupload/Moxie.xap',
filters: {
max_file_size: '25mb',
mime_types: [
{title: "files", extensions: "jpg,png,gif,jpeg,zip,rar"}
]
},
multi_selection: false,
init: {
FilesAdded: function(up, files) {
$("#upload_progress").show();
$("#btn_submit").attr("disabled","disabled").addClass("disabled").val("正在上传...");
uploader.start();
},
UploadProgress: function(up, file) { //上传中,显示进度条
$("#bar").css({
"width": file.percent + "%"
});
$("#percent_num").text(file.percent + "%");
},
FileUploaded: function(up, file, info) {
var data = JSON.parse(info.response);
$("#upload_progress").hide();
$("#upload_rs").html(data.name + "<a class='file_remove' onclick=$('#upload_rs').hide()>删除</a>").show();
$("#btn_submit").removeAttr("disabled").removeClass("disabled").val("提 交");
},
Error: function(up, err) {
if (err.code == -601) {
alert("请上传jpg,png,gif,jpeg,zip或rar!");
$("#btn_submit").removeAttr("disabled").removeClass("disabled").val("提 交");
}
}
}
});
uploader.init();
$(function() {
/*******标签tag******/
$(".tags_enter").blur(function() { //焦点失去触发
addTag($(this).val());
$(this).parents(".tags").css({"border-color": "#d5d5d5"})
}).keydown(function(event) {
var key_code = event.keyCode;
if (key_code == 13) { //enter
addTag($(this).val());
}
});
$(".close").live("click", function() {
$(this).parent(".tag").remove();
});
$(".tags").click(function() {
$(".tags_enter").focus();
$(this).css({"border-color": "#f59942"})
}).blur(function() {
$(this).css({"border-color": "#d5d5d5"})
})
/*******分类******/
$("#cats").children("em").click(function() {
$(this).addClass("current").siblings("em").removeClass("current")
})
/*******更换验证码******/
$(".getcode_gg").click(function() {
$("#getcode_gg").attr("src", 'http://www.erdangjiade.com/other/js/group/code_gg.php?' + Math.random());
});
/*******提交******/
$("#btn_submit").click(function() {
blurInputTopicArea($("#title"), 1);
blurInputTopicArea($("#code"), 1);
var i = 0;
$(".Validform_wrong").each(function() {
if ($(this).css("display") == 'inline') {
i++;
}
})
if (i > 0) {
return false;
}
var title = $("#title").val();
var cat_id = $("#cats").children("em.current").attr("data-id");
var tags = "";
$("#tags").children(".tag").each(function() {
tags += $(this).text() + ",";
})
var content = UE.getEditor('editor').getContent();
var file_path = $("#upload_rs").text();
var code = $("#code").val();
// if (content == '') {
// $("#").children("span").text(tip).show();
// obj.css({"border-color": "#cc0000"})
// }
$.post(getUrl("Ajax/topic_post"), {
title: title,
cat_id: cat_id,
content: content,
tags: tags,
file_path: file_path,
code: code
},
function(data) {
if (data.error == -1) {
showWindowBox();
$("#windown_box").attr("data-func", "addClickFunc('#btn_submit')");
return false;
}
if (data.error == '') {
showSuccessTip("话题发布成功!");
var url = "http://www.erdangjiade.com/topic";
setTimeout("goUrl('" + url + "')", 1500);
} else {
alert(data.error);
}
}, "json")
})
/*******添加推荐标签******/
$("#js-tags").children(".list-tag").click(function() {
var tag = $(this).text();
addTag(tag);
})
})
function focusInputTopicArea(obj) {
obj.next(".error").hide();
obj.addClass("form_input-focus");
obj.prev("div").addClass("item_tip_focus");
obj.nextAll(".grey").show();
obj.nextAll(".icon-loginright").hide();
}
function focusInputTopicArea(obj) {
obj.parent().parent().next(".validate").children("span").hide();
obj.css({"border-color": "#cccccc"})
}
function blurInputTopicArea(obj, is_sub) {
var val = obj.val();
var minlength = obj.attr("data-minlength");
var maxlength = obj.attr("data-maxlength");
var length = obj.attr("data-length");
var type = obj.attr("data-type");
var time_error = 0;
if (val == "") {
var tip_null = obj.attr("data-null");
getTopicError(obj, tip_null);
} else {
if (val.length != length && length > 0) {
getTopicError(obj, "长度必须为" + length + "位");
time_error++;
}
if (minlength > 0 && val.length < minlength) {
getTopicError(obj, "长度至少" + minlength + "位");
time_error++;
}
if (maxlength > 0 && val.length > maxlength) {
getTopicError(obj, "长度最多" + maxlength + "位");
time_error++;
}
}
}
function getTopicError(obj, tip) {
obj.parent().parent().next(".validate").children("span").text(tip).show();
obj.css({"border-color": "#cc0000"})
}
</script>
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。