(function(rt){var templates=rt.templates,attrs=function(){return rt.attrs.apply(rt,arguments)},_=function(){return rt._.apply(rt,arguments)},img=function(){return rt.img.apply(rt,arguments)},imgURL=function(){return rt.imgURL.apply(rt,arguments)},imgSize=function(){return rt.imgSize.apply(rt,arguments)},avatar=function(){return rt.avatar.apply(rt,arguments)},url=function(){return rt.url.apply(rt,arguments)},mkurl=function(){return rt.mkurl.apply(rt,arguments)},escape=function(){return rt.escape.apply(rt,arguments)},
__t=rt.templates,emerge=function(){return rt.renderSync.apply(rt,arguments)};
__t["dialog/dialog_report_fail"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("dialog/dialog_frame",{id:"ReportFail",title:"举报",body:emerge("dialog/dialog_report_fail_body"),className:"PaddingLess"});buf.push(null==__val__?"":__val__)}return buf.join("")},
__t["dialog/dialog_repin"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("dialog/dialog_frame",{id:"Repin",title:"转采",destroyOnClose:!0,body:emerge("dialog/dialog_repin_body")});buf.push(null==__val__?"":__val__)}return buf.join("")},
__t["dialog/sheet_confirm"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({id:"sheet","class":"destroy"})),buf.push("><div"),buf.push(attrs({id:"sheet_msg","class":"sheet"})),buf.push("><div"),buf.push(attrs({"class":"body"})),buf.push("><div"),buf.push(attrs({"class":"notice"})),buf.push("><span>");var __val__=confirm.text;buf.push(null==__val__?"":__val__),buf.push("</span></div><div"),buf.push(attrs({"class":"buttons"})),buf.push("><div"),buf.push(attrs({"class":"inner"})),buf.push("><a"),buf.push(attrs({href:"#",onclick:"return false;","class":"cancel btn btn18 wbtn"})),buf.push("><strong> 取消</strong><span></span></a><a"),buf.push(attrs({href:"#",onclick:"return false;","class":"confirm btn btn18 rbtn"})),buf.push("><strong> 确定</strong><span></span></a></div><div"),buf.push(attrs({"class":"clear"})),buf.push('></div></div></div></div></div><script>(function(){var a=document.id("sheet");a.getElement("a.confirm").addEvent("click",function(){app.hideSheet(!0)}),a.getElement("a.cancel").addEvent("click",function(){app.hideSheet(!1)})})()</script>')}return buf.join("")},
__t["dialog/dialog_upload_pin_body"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({"class":"PinTop"})),buf.push("><a"),buf.push(attrs({id:"upload_button",href:"#",onclick:"return false;","class":"btn btn18 wbtn"})),buf.push('><strong> 选择图片文件</strong><span></span></a></div><script>(function(){var a=$("UploadPin");if(a.retrieve("initialized"))return;var b=$("upload_button"),c=a.getElements("img.load"),d=a.getElement(".pbt"),e=new ImagePicker(a.getElement(".ImagePicker")),f=new Uploadr(b);f.addEvents({start:function(){c.show(),d.show()},failed:function(a){c.hide(),d.hide(),alert("上传出错: "+(a.msg||app.COMMON_ERRMSG))},complete:function(a){c.hide(),e.load([app.imgURL(a,"fw192")],null,!1,function(b){b&&b[0]&&b[0].store("file",a)}),b.fireEvent("success")}}),a.store("initialized",!0)})()</script>');var __val__=emerge("bidcms/pin_form");buf.push(null==__val__?"":__val__)}return buf.join("")},
__t["dialog/dialog_report_success"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("dialog/dialog_frame",{id:"ReportSuccess",title:"举报",body:emerge("dialog/dialog_report_success_body"),className:"PaddingLess"});buf.push(null==__val__?"":__val__)}return buf.join("")},
__t["dialog/dialog_report"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("dialog/dialog_frame",{id:"Report",title:"举报",body:emerge("dialog/dialog_report_body"),className:"PaddingLess"});buf.push(null==__val__?"":__val__)}return buf.join("")},
__t["dialog/dialog_move_pins_body"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("bidcms/board_picker");buf.push(null==__val__?"":__val__),buf.push("<a"),buf.push(attrs({href:"#",onclick:"return false;","class":"go btn btn18 rbtn"})),buf.push("><strong> 批量移动</strong><span></span></a>")}return buf.join("")},
__t["dialog/dialog_mv"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({id:"mv_holder",style:"display:none;","class":"ModalContainer"})),buf.push("><div"),buf.push(attrs({"class":"modal wide"})),buf.push("><div"),buf.push(attrs({"class":"header"})),buf.push("><a"),buf.push(attrs({href:"#",onclick:"app.hideDialog(); return false","class":"close"})),buf.push("><strong>Close</strong><span></span></a><h2>了解BidCms</h2></div>"),navigator.userAgent.toLowerCase().match("ipad")?(buf.push("<video"),buf.push(attrs({id:"youku-html5-player-video",width:"450px",height:"300px","x-webkit-airplay":"allow",controls:"",autoplay:"",preload:"",src:"http://www.youku.com/player/getM3U8/vid/80315531/type/flv/v.m3u8"})),buf.push("></video>")):(buf.push("<embed"),buf.push(attrs({src:"http://player.youku.com/player.php/sid/XMzIxMjU2OTY4/v.swf",allowFullScreen:"true",quality:"high",width:"480",height:"400",align:"middle",type:"application/x-shockwave-flash",flashvars:"winType=index",style:"visibility:visible;"})),buf.push("></embed>")),buf.push("</div><div"),buf.push(attrs({"class":"overlay"})),buf.push("></div></div>")}return buf.join("")},
__t["dialog/dialog_report_success_body"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({id:"ReportForm"})),buf.push("><span"),buf.push(attrs({"class":"ReportContent"})),buf.push(">谢谢你对BidCms的贡献，BidCms的工作人员会及时处理你的举报的。</span><div"),buf.push(attrs({"class":"Submit"})),buf.push("><a"),buf.push(attrs({href:"#",onclick:"return false;","class":"btn btn18 rbtn"})),buf.push('><strong> 确定</strong><span></span></a></div></div><script>$$("#ReportForm .Submit").addEvent("click",function(){return this.getParent(".ModalContainer").hasClass("destroy")&&this.fireEvent("destroy"),app.hideDialog(),!1})</script>')}return buf.join("")},
__t["dialog/dialog_repin_body"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("bidcms/pin_form");buf.push(null==__val__?"":__val__),buf.push('<script>(function(){var a=$("Repin");if(a.retrieve("onShow"))return;var b=a.getElements("img.load"),c=a.getElement(".pbt"),d=a.getElement("textarea.DescriptionTextarea"),e=new ImagePicker(a.getElement(".ImagePicker"));a.store("onShow",function(a){b.show(),c.show(),(new Request.JSON({url:"index.php?con=ajax&act=repin&pinid="+a,noCache:!0,onSuccess:function(f){if(f.err)app.hideDialog(),alert(f.msg||app.COMMON_ERRMSG);else if(f.warning&&f.warning==100){var g=new Element("div",{id:"pin_already_exist_warning"}),h=new Element("a",{href:app.url("/boards/"+f.exist_pin.board.board_id+"/"),html:"<em>"+f.exist_pin.board.title+"</em>"}),i=new Element("a",{href:"#",text:"取消",events:{click:function(){app.hideDialog()}}});g.appendText("这张图片已经在你的"),g.adopt(h),g.appendText("画板里了, 你可以"),g.adopt(i),g.appendText("本次采集"),g.inject(c,"before")}b.hide(),e.load(app.imgURL(f.pin.file,"fw192"),null,!1,function(b){b&&b[0]&&b[0].store("pin_id",a)}),(new FancyInput(d)).setValue(f.pin.raw_text),d.get("registered-at")||(d.set("registered-at","registered"),new Autocompleter.Contacts.At(d))}})).get()})})()</script>')}return buf.join("")},
__t["dialog/dialog_upload_pin"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("dialog/dialog_frame",{id:"UploadPin",title:"上传采集",destroyOnClose:!0,body:emerge("dialog/dialog_upload_pin_body")});buf.push(null==__val__?"":__val__)}return buf.join("")},
__t["dialog/dialog_create_board"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("dialog/dialog_frame",{id:"CreateBoard",title:"创建画板",body:emerge("dialog/dialog_create_board_body"),destroyOnClose:!0});buf.push(null==__val__?"":__val__)}return buf.join("")},
__t["dialog/dialog_create_board_body"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<form"),buf.push(attrs({action:"","class":"Form StaticForm nm"})),buf.push("><ul><li"),buf.push(attrs({"class":"nbt"})),buf.push("><input"),buf.push(attrs({id:"id_board_title",type:"text",name:"title",value:""})),buf.push("/><label>画板标题</label><span"),buf.push(attrs({"class":"fff"})),buf.push("></span></li><li><input"),buf.push(attrs({id:"id_category",type:"hidden",name:"category",value:""})),buf.push("/>");var __val__=emerge("bidcms/category_picker");buf.push(null==__val__?"":__val__),buf.push("<label>画板分类</label></li></ul><div"),buf.push(attrs({"class":"Submit"})),buf.push("><a"),buf.push(attrs({href:"#",onclick:"return false;","class":"btn btn18 wbtn"})),buf.push('><strong>创建画板</strong><span></span></a></div></form><script>(function(){var a=$("CreateBoard");if(a.retrieve("initialized"))return;var b=$("id_board_title"),c=a.getElement(".CategoryPicker"),d=new CategoryPicker(c);new Button(a.getElement(".Submit a"),{click:function(){var a=b.get("value").trim();if(a=="")return app.showTip(b,"请输入名称",{width:150});var c=d.getSelected();return c?(this.disable(),(new Request.JSON({url:"models/setboard.php",data:{title:a,category:c},onSuccess:function(a){a.err?app.error(a.msg):app.page.$overlaytip?(app.hideDialog(),app.page.$overlaytip&&app.page.$overlaytip.build()):window.location="index.php?con=boards&act=item&id="+a.board.board_id},onFailure:function(){app.error(app.COMMON_ERRMSG)},onComplete:function(){this.enable()}.bind(this)})).post(),!1):app.showTip(d.element,"请选择分类",{width:150})}}),d.addEvent("select",function(){app.hideTip(d.element)}),a.getElements("input").addEvent("blur",function(a){app.hideTip(a.target)}),a.store("initialized",!0)})()</script>')}return buf.join("")},
__t["dialog/dialog_submit_channel_board"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({id:"submit_channel_board_dialog",style:"display:none;","class":"ModalContainer"})),buf.push("><div"),buf.push(attrs({"class":"modal thin"})),buf.push("><div"),buf.push(attrs({"class":"header lg"})),buf.push("><a"),buf.push(attrs({href:"#",onclick:"$('submit_channel_board_dialog').hide();return false;","class":"close"})),buf.push("><strong>Close</strong><span></span></a><h2>提交画板</h2></div><h3>提交你的画板到<em"),buf.push(attrs({style:"color: #FF0000;"})),buf.push(">"+escape((interp=page.channel.name)==null?"":interp)+"</em>，和大家分享你的品味</h3>");var __val__=emerge("bidcms/board_picker");buf.push(null==__val__?"":__val__),buf.push("<div"),buf.push(attrs({"class":"help_text"})),buf.push(">采集数超过10个的画板才能提交哦</div><a"),buf.push(attrs({href:"#",onclick:"return false;","class":"commit btn btn18 rbtn"})),buf.push("><strong> 提交</strong><span></span></a><div"),buf.push(attrs({style:"display: none;","class":"msgr left-arrow"})),buf.push("><span"),buf.push(attrs({"class":"txt"})),buf.push("></span><span"),buf.push(attrs({"class":"arrow"})),buf.push(">◣</span><span"),buf.push(attrs({"class":"arrow-mask"})),buf.push("></span></div></div><div"),buf.push(attrs({"class":"overlay"})),buf.push('></div></div><script>(function(){var a=$("submit_channel_board_dialog");if(!a)return;var b=$$("#submit_channel_board_dialog a.commit");if(!b)return;$$("#submit_channel_board_dialog a.commit").addEvent("click",function(){var a=(new BoardPicker($("submit_channel_board_dialog").getElement(".BoardPicker"))).getSelected(),b=$$("#submit_channel_board_dialog .msgr")[0],c=new BoardPicker($("submit_channel_board_dialog").getElement(".BoardPicker"));return c.addEvent("select",function(){b.hide()}),$$("#submit_channel_board_dialog a.close").addEvent("click",function(){b.hide()}),(new Request.JSON({url:"/fm/"+app.page.channel.channel_id+"/boards/",data:{board_id:a},onSuccess:function(a){if(a.err)b.getElement("span.txt").set("text",a.msg),b.show("inline-block");else{document.id("submit_channel_board_dialog").hide();var c=$("channel_callout");c&&c.show();var d=new Fx.Scroll(window,{duration:"short"});d.toTop()}}})).post(),!1})})()</script>')}return buf.join("")},
__t["dialog/dialog_move_pins"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("dialog/dialog_frame",{id:"move_pins",title:"移动至...",className:"thin",destroyOnClose:!0,body:emerge("dialog/dialog_move_pins_body")});buf.push(null==__val__?"":__val__)}return buf.join("")},
__t["dialog/sheet_message"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({id:"sheet","data-timeout":""+msg.timeout+"","class":"destroy"})),buf.push("><div"),buf.push(attrs({id:"sheet_msg","class":"sheet"})),buf.push("><div"),buf.push(attrs({"class":"body"})),buf.push("><div"),buf.push(attrs({"class":""+msg.type+""})),buf.push("><span>");var __val__=msg.text;buf.push(null==__val__?"":__val__),buf.push("</span></div></div><a"),buf.push(attrs({href:"#",title:"关闭",onclick:"app.hideSheet();return false;","class":"close"})),buf.push('></a></div></div><script>(function(){var a=document.id("sheet"),b=Number(a.get("data-timeout"));b&&(app.page.msgCloseTimeout=setTimeout(function(){app.hideSheet()},b))})()</script>')}return buf.join("")},
__t["dialog/dialog_scrape_pin_body"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({"class":"PinTop inputHolder scrapePin"})),buf.push("><ul"),buf.push(attrs({"class":"Form FancyForm"})),buf.push("><li><img"),buf.push(attrs({src:"static/bidcms/i/load2.gif",alt:"Loading Indicator","class":"load"})),buf.push("/><a"),buf.push(attrs({id:"ScrapeButton",href:"#",onclick:"return false;","class":"fr btn btn18 wbtn"})),buf.push("><strong> 查找图片</strong><span></span></a><input"),buf.push(attrs({id:"scrapePinInput",type:"text"})),buf.push("/><label>http://</label><span"),buf.push(attrs({"class":"fff"})),buf.push("></span></li></ul></div>");var __val__=emerge("bidcms/pin_form");buf.push(null==__val__?"":__val__),buf.push('<script>(function(){var a=$("ScrapePin");if(a.retrieve("initialized"))return;var b=app.settings.minImageWidth,c=$("scrapePinInput"),d=a.getElement(".error"),e=a.getElements("img.load"),f=a.getElement(".pbt"),g=new ImagePicker(a.getElement(".ImagePicker"),{minW:b}),h=(new Button($("ScrapeButton"),{click:function(){var a=c.get("value").trim();if(a=="")return d.set("html","请输入URL"),!1;var f=this.disable();return e.show(),(new Request.JSON({url:"models/collection.php?type=find_images",data:{url:a},noCache:!0,onSuccess:function(c){if(c.err){d.set("html",c.msg),f.enable(),e.hide();return}var h=c.images.filter(function(a){return a.width==""||a.height==""||a.width.toInt()>=b||a.height.toInt()>=b}).map(function(a){return a.src});f.element.fireEvent("loaded"),g.load(h,a)},onFailure:function(){d.set("html",app.COMMON_ERRMSG),f.enable(),e.hide()}})).get(),!1}})).disable().bind(new FancyInput(c));g.addEvents({startLoading:function(){h.disable(),f.show()},finishLoading:function(){h.enable(),e.hide(),f.show();var a=this.listEl,b=this.listEl.getElements("li");b.sort(function(a,b){var c=a.getElement("img"),d=b.getElement("img");return"undefined"==typeof c.naturalWidth?1:d.naturalWidth-c.naturalWidth}),b.each(function(b){b.inject(a,"bottom")}),this.listEl.getElements("li").length==0&&alert("没有合适的图片")}}),a.store("initialized",!0)})()</script>')}return buf.join("")},
__t["dialog/dialog_pin_success"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("dialog/dialog_frame",{id:"PinSuccess",title:"采集成功",destroyOnClose:!0,body:emerge("bidcms/pin_success")});buf.push(null==__val__?"":__val__)}return buf.join("")},
__t["dialog/dialog_report_body"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({id:"ReportForm"})),buf.push("><span"),buf.push(attrs({"class":"ReportTitle"})),buf.push(">举报原因：</span><div"),buf.push(attrs({"class":"ReportRadio"})),buf.push("><label"),buf.push(attrs({"class":"InputBlock"})),buf.push("><input"),buf.push(attrs({type:"radio",name:"reason",value:0,checked:!0})),buf.push("/>&nbsp;&nbsp;垃圾广告</label><label"),buf.push(attrs({"class":"InputBlock"})),buf.push("><input"),buf.push(attrs({type:"radio",name:"reason",value:1})),buf.push("/>&nbsp;&nbsp;淫秽色情</label><label"),buf.push(attrs({"class":"InputBlock"})),buf.push("><input"),buf.push(attrs({type:"radio",name:"reason",value:2})),buf.push("/>&nbsp;&nbsp;虚假中奖</label><label"),buf.push(attrs({"class":"InputBlock"})),buf.push("><input"),buf.push(attrs({type:"radio",name:"reason",value:3})),buf.push("/>&nbsp;&nbsp;敏感信息</label><label"),buf.push(attrs({"class":"InputBlock"})),buf.push("><input"),buf.push(attrs({type:"radio",name:"reason",value:4})),buf.push("/>&nbsp;&nbsp;人身攻击</label><label"),buf.push(attrs({"class":"InputBlock"})),buf.push("><input"),buf.push(attrs({type:"radio",name:"reason",value:5})),buf.push("/>&nbsp;&nbsp;骚扰他人</label></div><div"),buf.push(attrs({"class":"Submit"})),buf.push("><a"),buf.push(attrs({href:"#",onclick:"return false;","class":"btn btn18 rbtn"})),buf.push('><strong> 提交</strong><span></span></a></div></div><script>$$("#ReportForm .Submit .btn").addEvent("click",function(){var a;for(var b=0;b<$$(".ReportRadio input").length;b++)if($$(".ReportRadio input")[b].checked){a=b;break}return data={type:report_type,reason:a,id:report_id},(new Request.JSON({url:"/feedback/new-report/",data:data,onSuccess:function(a){var b="你已经举报过了，我们会及时处理哦，谢谢。";if(window.location.pathname.indexOf("/message")===0)return a.err=="already reported"?app.showDialog("report_fail"):app.showDialog("report_success"),!1;a.err=="already reported"&&($$("#report_callout .words")[0].innerHTML=b,$$("#report_callout .sign")[0].setStyle("background-image",\'url("/img/icon_notice.png")\'),$$("#report_callout .sign")[0].setStyle("position","relative"),$$("#report_callout .sign")[0].setStyle("top",-3),$$("#report_callout .sign")[0].setStyle("width",32),$$("#report_callout .sign")[0].setStyle("height",32)),$("report_callout").show()}})).post(),this.getParent(".ModalContainer").hasClass("destroy")&&this.fireEvent("destroy"),app.hideDialog(),!1})</script>')}return buf.join("")},
__t["dialog/dialog_add"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("dialog/dialog_frame",{id:"Add",title:"添加",body:emerge("dialog/dialog_add_body"),className:"PaddingLess"});buf.push(null==__val__?"":__val__)}return buf.join("")},
__t["dialog/dialog_frame"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({id:""+id+"",style:"display:none;","class":"ModalContainer "+(typeof destroyOnClose=="undefined"?"":" destroy")})),buf.push("><div"),buf.push(attrs({"class":"modal wide "+(typeof className=="undefined"?"":" "+className)})),buf.push("><div"),buf.push(attrs({"class":"header"})),buf.push("><a"),buf.push(attrs({href:"#","class":"close"})),buf.push("><strong>Close</strong><span></span></a><h2>"+escape((interp=title)==null?"":interp)+"</h2></div>");var __val__=body;buf.push(null==__val__?"":__val__),buf.push("</div><div"),buf.push(attrs({"class":"overlay"})),buf.push('></div></div><script>$$(".ModalContainer .modal.wide .header a.close").addEvent("click",function(){return this.getParent(".ModalContainer").hasClass("destroy")&&this.fireEvent("destroy"),app.hideDialog(),!1})</script>')}return buf.join("")},
__t["dialog/sheet_login"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({id:"sheet","class":"destroy"})),buf.push("><div"),buf.push(attrs({id:"sheet_login","class":"sheet"})),buf.push("><div"),buf.push(attrs({"class":"head"})),buf.push(">");var prompt=typeof login_prompt=="undefined"?"登录BidCms":login_prompt;buf.push("<h2>"+escape((interp=prompt)==null?"":interp)+"</h2></div><div"),buf.push(attrs({"class":"body"})),buf.push("><div"),buf.push(attrs({"class":"login-connect"})),buf.push("><h5>使用合作网站帐号登录</h5><div"),buf.push(attrs({"class":"connections clearfix"})),buf.push("><a"),buf.push(attrs({href:"models/weibo/login.php",onclick:"return false;","class":"weibo login-button"})),buf.push(">新浪微博</a><a"),buf.push(attrs({href:"models/douban/login.php",onclick:"return false;","class":"douban login-button"})),buf.push(">豆瓣</a><a"),buf.push(attrs({href:"models/renren/login.php",onclick:"return false;","class":"renren login-button"})),buf.push(">人人网</a><a"),buf.push(attrs({href:"models/qzone/login.php",onclick:"return false;","class":"qzone login-button"})),buf.push(">QQ</a></div><p"),buf.push(attrs({"class":"less"})),buf.push(">未注册过BidCms也可以直接登录哦</p></div><div"),buf.push(attrs({"class":"login-form"})),buf.push("><h5>使用注册邮箱登录</h5><form"),buf.push(attrs({id:"auth_form",method:"post",action:url("index.php?con=user&act=login",!0),"class":"Form FancyForm AuthForm"})),buf.push("><ul><li><div"),buf.push(attrs({"class":"input email"})),buf.push("><input"),buf.push(attrs({id:"",name:"commit",type:"hidden",value:"1"})),buf.push("/>"),buf.push("<input"),buf.push(attrs({id:"login_email",name:"email",type:"text",value:""})),buf.push("/><label>BidCms注册邮箱</label><span"),buf.push(attrs({"class":"fff"})),buf.push("></span></div></li><li><div"),buf.push(attrs({"class":"input password"})),buf.push("><input"),buf.push(attrs({id:"login_password",name:"password",type:"password"})),buf.push("/><label>密码</label><span"),buf.push(attrs({"class":"fff"})),buf.push("></span></div></li></ul><div"),buf.push(attrs({"class":"non_inputs"})),buf.push("><a"),buf.push(attrs({id:"login_btn",href:"#",onclick:"return false;","class":"btn btn18 rbtn"})),buf.push("><strong> 登录</strong><span></span></a><a"),buf.push(attrs({id:"reset_password",href:"#",onclick:"return false;","class":"less fr"})),buf.push(">忘记了密码？</a><a"),buf.push(attrs({id:"back_to_login",href:"#",style:"display: none;",onclick:"return false;","class":"less fr"})),buf.push(">哦，又想起来了!</a></div></form><div"),buf.push(attrs({id:"reset_msg",style:"display: none;","class":"success"})),buf.push("></div></div><div"),buf.push(attrs({"class":"clear"})),buf.push("></div></div><a"),buf.push(attrs({href:"#",title:"关闭",onclick:"app.hideSheet();return false;","class":"close"})),buf.push('></a></div></div><script>(function(a){function f(a,b){app.showTip(a,b,{width:160})}function g(a){app.hideTip(a)}function h(){var g="index.php?con=user&act=login",h=b.get("value"),i=c.get("value");return h.trim()==""?f(b,"请输入您的邮箱地址"):~h.indexOf("@")?e=="login"&&i.trim()==""?f(c,"请输入密码"):(e=="reset"&&(g="/password/reset/"),d.disable(),(new Request.JSON({url:g,data:{commit:1,email:h,password:i},onSuccess:function(c){if(c.err)return d.enable(),f(b,c.msg);e=="login"?window.oauth_callback(c.user):(a("auth_form").hide(),a("reset_msg").set("html","<p>我们发送了一个密码重置链接发送到"+h+"，请查收。</p>").show())}})).post(),!1):f(b,"邮箱格式不正确")}var b,c,d,e="login";window.oauth_callback=function(a){app.req.user=a,app.hideSheet(function(){if(app.$login_callback){var a=app.$login_callback;a.redraw&&app.redraw(),delete app.$login_callback,a()}else window.location=app.page.locationurl?app.page.locationurl:"index.php"})},$$("a.login-button").addEvent("click",function(a){a.stop();var b=window.open(this.get("href"),"binding_win","status=no,resizable=no,scrollbars=yes,personalbar=no,directories=no,location=no,toolbar=no,menubar=no,width=680,height=500,left=50,top=40");window.focus&&b.focus()}),function(){b=a("login_email"),c=a("login_password"),new FancyInput(b),new FancyInput(c),c.addEvent("keyup",function(a){return a.code===13&&h(),!1}),d=new Button("login_btn",{click:h,disabledTitle:"登录..."}),a("sheet").store("onShow",function(){try{a("login_email").focus()}catch(b){}}),$$("input").addEvent("blur",function(a){g(a.target)});var f=a("reset_password"),i=a("back_to_login"),j=c.getParent("div.input");f.addEvent("click",function(){j.store("normal_height",j.getStyle("height")),j.setStyle("overflow","hidden").tween("height",0),j.getFirst().fade("out"),f.hide(),i.show(),e="reset",d.setTitle("重置")}),i.addEvent("click",function(){j.tween("height",0,j.retrieve("normal_height")),j.getFirst().fade("in"),f.show(),i.hide(),e="login",d.setTitle("登录")})}()})(document.id)</script>')}return buf.join("")},
__t["dialog/dialog_add_body"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({id:"OpenLinks"})),buf.push("><a"),buf.push(attrs({id:"OpenScrapePin","class":"cell"})),buf.push("><div"),buf.push(attrs({id:"scrape","class":"icon"})),buf.push("></div><span>采集网页图片</span></a><a"),buf.push(attrs({id:"OpenUploadPin","class":"cell"})),buf.push("><div"),buf.push(attrs({id:"upload","class":"icon"})),buf.push("></div><span>上传本地图片</span></a><a"),buf.push(attrs({id:"OpenCreateBoard","class":"cell"})),buf.push("><div"),buf.push(attrs({id:"board","class":"icon"})),buf.push("></div><span>新建画板</span></a><p"),buf.push(attrs({"class":"pin-tools"})),buf.push("><span>使用BidCms网的采集工具，你可以更高效地收集网络上的图片、视频或者网页截图</span><br"),buf.push(attrs({})),buf.push("/>BidCms上90%的采集都来自采集工具，<a"),buf.push(attrs({href:"index.php?con=about&act=goodies"})),buf.push('>去安装采集工具</a></p></div><script>(function(){function a(a){app.req.user?a():(app.hideDialog(),app.showSheet("login",{modal:!0,login_prompt:"请先登录，登录后才能继续刚才的操作"}))}document.id("OpenScrapePin").addEvent("click",function(){return a(function(){app.showDialog("scrape_pin")}),!1}),document.id("OpenUploadPin").addEvent("click",function(){return a(function(){app.showDialog("upload_pin")}),!1}),document.id("OpenCreateBoard").addEvent("click",function(){return a(function(){app.showDialog("create_board")}),!1})})()</script>')}return buf.join("")},
__t["dialog/dialog_report_fail_body"]=function(locals){var buf=[];with(locals||{}){var interp;buf.push("<div"),buf.push(attrs({id:"ReportForm"})),buf.push("><span"),buf.push(attrs({"class":"ReportContent"})),buf.push(">你已经举报过了，我们会及时处理哦，谢谢。</span><div"),buf.push(attrs({"class":"Submit"})),buf.push("><a"),buf.push(attrs({href:"#",onclick:"return false;","class":"btn btn18 rbtn"})),buf.push('><strong> 确定</strong><span></span></a></div></div><script>$$("#ReportForm .Submit").addEvent("click",function(){return this.getParent(".ModalContainer").hasClass("destroy")&&this.fireEvent("destroy"),app.hideDialog(),!1})</script>')}return buf.join("")},
__t["dialog/dialog_scrape_pin"]=function(locals){var buf=[];with(locals||{}){var interp,__val__=emerge("dialog/dialog_frame",{id:"ScrapePin",title:"网址采集",destroyOnClose:!0,body:emerge("dialog/dialog_scrape_pin_body")});buf.push(null==__val__?"":__val__)}return buf.join("")}})(app);