LP=function(){return{T:"chs",inv_user:"您输入的用户名在系统中不存在。",inv_email:"您输入的Email在系统中不存在。",not_reg:"如果您没有注册，请<a href='/reg.html'>点这里</a>开始注册",inv_pwd:"您输入的密码错误，请重试",inner_error:"程序内部发生错误，请稍候重试，或者点这里向我们反馈错误。",login:"登录中，请稍候",reg:"注册信息发送中，请稍候",login_title:"登录MySWJTU.com",inv_regcode:"注册码输入错误",username_existed:"您输入的用户名已经在系统中存在了，请重新选择。如果您忘记了密码，<a href='/forget-password.html'>请点这里找回</a>。",email_existed:"您输入的电子邮件已经在系统中存在了，请重新选择。如果您忘记了密码，<a href='/forget-password.html'>请点这里找回</a>。",get_profile:"正在获取您的个人资料信息，请稍候",update_profile:"正在更新您的个人资料信息，请稍候",update_profile_suc:"您的个人资料已经更新成功",submitting:"提交中，请稍候",submitted:"您的请求已经成功提交。",check_email:"请您查收邮件。",change_pwd_suc:"您的密码修改已成功",username_n_email_not_matching:"您输入的用户名和电子邮件不匹配。",no_retrieve_guid_found:"您提供的重设号错误或者已经被使用过了。",has_slugname:"地址已经被占用了，请重新选择。"}}();Ext.ns("mys");mys.Basic=function(){var b=$("span-tags"),c=null,a=Ext.DomHelper.append;function d(e,f){}if(b!=null){c=new inf2.Tags({target:b});c.on("search",d,this)}return{Share:function(f,i){var e=new redpill.Toolbox.Win({title:"和好友分享文章",name:"share_"+f,height:100,width:200});var h=a(e.body,{tag:"ul",cls:"share-list"},true);a(h,{tag:"li",cls:"copyme",cn:{id:"btn-copyme",tag:"div",cn:"复制地址到剪切板"}});a(h,{tag:"li",cn:{tag:"a",href:"http://share.renren.com/share/buttonshare.do?link="+f+"&title="+i,target:"_blank",cn:"分享到人人网(校内网)"}});e.Popup();var g=new ZeroClipboard.Client();g.setText(f);g.glue("btn-copyme");g.setHandCursor(true);g.setCSSEffects(true);e.on("closed",function(){g.destroy()},this)},QRCode:function(e){var f=new redpill.Toolbox.Win({title:"文章二维码",name:"qrcode_"+e,height:300,width:550});a(f.body,{tag:"div",cls:"qrcode-place",cn:{tag:"img",src:"/qrcode.ashx?"+Ext.util.base64.encode(e)}});a(f.body,{tag:"div",cls:"qrcode-tip",cn:[{tag:"h3",cn:"请扫描左边二维码"},{tag:"p",cn:"请用手机打开读码软件对准左边二维码完成扫描.如果您需要了解更多二维的使用方法,<br />请<a target='_blank' href='http://help.myswjtu.com/QnA/t:QRCODE'>点击这里</a>获得帮助."}]});f.Popup()},PopSubmit:function(){top.location.href="/submit.html"},PopLogin:function(){var e=new redpill.Toolbox.Win({title:"登录或注册",name:"loginform",height:300,width:400});var f=new redpill.Toolbox.Form({name:"login-form",remorting:null,submitText:"登录",items:[["t","LF_UserName","用户名","如果您没有注册,请<a href='/reg.html' target='_blank'>点这里</a>开始用户注册。",false,null,{regexp:/^[a-zA-Z0-9_]{4,}$/,text:"您的用户名应该是4位以上的英文或数字组合"}],["tp","LF_Pwd","密码","如果您忘记了密码，请<a href='/forget_password.html' target='_blank'>点这里找回密码</a>。",false,null,{regexp:/^.{6,}$/,text:"您的密码至少是6位以上。"}],["c","LF_SavePwd","","如果您现在在公共场所上网，建议您不要保存密码。",false,[50,[{value:"1",text:"在这台计算机上保存密码并自动登陆"}]]]]});a(e.body.dom,{tag:"div",id:"login-form-place"});f.RenderTo("login-form-place");f.cancelEl.hide();f.on("presubmit",function(){e.body.mask2("登录中,请稍候...");var h=f.GetData();var g=true;if(h.LF_SavePwd==null||h.LF_SavePwd.length==0){g=false}inf2.func.Login(h.LF_UserName,h.LF_Pwd,g,false,function(i){e.body.unmask();if(i.Error){switch(i.ErrorMsg){case"inv_user":$("LF_UserName-sr").update(LP.inv_user);$("LF_UserName").addClass("error").focus();break;case"inv_pwd":$("LF_Pwd-sr").update(LP.inv_pwd);$("LF_Pwd").addClass("error").focus();break}}else{e.Close();$("btn-loginnreg").hide()}});return false},this);e.Popup()}}};Ext.onReady(function(){top.pinc=new mys.Basic();var b=$("btn-submit"),c=$("btn-loginnreg");b.on("click",pinc.PopSubmit);c.on("click",pinc.PopLogin);try{if(loginObject!=null){c.hide()}}catch(a){}try{if(top.loginObject!=null){c.hide()}}catch(a){}try{if(inf2.LoginEntity!=null){c.hide()}}catch(a){}});top.pubconfig={removeInf2Image:false,showSourceImage:true};top.postli='<li class="post-summary dotline">		<a class="post-thumb" href="{PostSubmitTime:date(\'Y/m/d/\')}{SlugName}.html">{preview-image}<!--<img width="48" height="48" src="" />--></a>		<div class="post-body">			<h3><a href="{PostSubmitTime:date(\'Y/m/d/\')}{SlugName}.html">{PostTitle}</a></h3>		    <p><!--<em class="source"><a href="/">交大首页</a></em>-->			<div class="post-body-content">			{PostAbstruct}			</div>		    </p>		    <div class="post-details">			<a class="tool comments" href="{PostSubmitTime:date(\'Y/m/d/\')}{SlugName}.html#comments">评论</a>			<a class="tool share" href="javascript:pinc.Share(\'http://'+top.location.host+"/{PostSubmitTime:date('Y/m/d/')}{SlugName}.html','{PostTitle}')\">分享</a>			<a class=\"tool qrcode\" href=\"javascript:pinc.QRCode('http://"+top.location.host+'/{PostSubmitTime:date(\'Y/m/d/\')}{SlugName}.html\')">二维码</a>			by <span class="author">{PostGeneratorName}</span> @ 			<span class="publish-time">{PostSubmitTime:date(\'Y-m-d h:i:s\')}</span>		    </div>		</div>		<div class="post-source">			{source-image}		</div>		</li>';