// JavaScript Document
var lang1="请输入课程关键词";
var lang2="作业";
function sendmsg(msgid,msgvalue){
document.getElementById(msgid).innerHTML=msgvalue;
setTimeout('sendmsg1("'+msgid+'")',8000);
}
function sendmsg1(msgid){
document.getElementById(msgid).innerHTML="";
}
function savarenzheng(){
if(document.getElementById("cqyun_name").value==""){
alert("请填写讲师名称!");
document.getElementById("cqyun_name").focus();
return false;
}
if(document.getElementById("cqyun_tel").value==""){
alert("请填写联系电话!");
document.getElementById("cqyun_tel").focus();
return false;
}
if(document.getElementById("cqyun_about").value==""){
alert("请填写讲师简介!");
document.getElementById("cqyun_about").focus();
return false;
}
cqyun_VIDEO.post("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&ac=renzheng&formhash=a8999980",cqyun_VIDEO("#cqyun_renzheng").serialize(),function (data, textStatus){
var tmparr=data.split("cqyun_split");
if(tmparr[1]=="ok"){
document.getElementById("ul1").style.display="none";
document.getElementById("ul2").style.display="";
}else if(tmparr[1]=="vipok"){
alert("您是讲师VIP,已为您自动审核通过!点击确定,自动进入讲师后台!");
location.href=tmparr[2];
}else{
alert(data);
}
}, "html");
}
function templatestyle(stylename){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax&stylename="+stylename+"&formhash=a8999980", {ac:"pcstyle"},function (data, textStatus){
if(data=="ok"){
location.reload();
}
}, "html");
}
var layerclose = {};
function showlayerwin(cqyuntype,type,title,content,width,height,wintype){
if(type==1){
content='
'+content+'
';
}
if(wintype==0){
var maxmin=false;
var shade=0.3;
}else{
var maxmin=true;
var shade=false;
}
layerclose[cqyuntype]=layer.open({
type: type,
title: ""+title+"
",
shadeClose: false,
scrollbar: false,
shade: shade,
maxmin: maxmin,
area: [width+"px",height+"px"],
content: content,
cancel: function(index, layero){
if(cqyuntype=='codepay'){
clearInterval(tmptime);
}
}
});
}
function showsalekm(){
showlayerwin('showsalekm',2,"卡密兑换",'plugin.php?id=cqyun_video:showsalekm',680,380,0);
}
cqyun_VIDEO.ajaxSetup({cache:false});
cqyun_VIDEO(document).ready(function() {
//02a580f9720ac3b2b3d90b0272ac72f2
cqyun_VIDEO(".renzheng").click(function(){
cqyun_VIDEO(".cqyun_members_login").click();return;
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:showrenzheng", {ac:"add"},function (data, textStatus){
var tmparr=data.split("cqyun_split");
showlayerwin('renzheng',1,tmparr[0],tmparr[1],1100,550,0);
}, "html");
});
//7a83eb5795991866db69b87567c43c1a
cqyun_VIDEO("#mysale").click(function(){
showlayerwin('mysale',1,'我的交易','',1200,610,1);
cqyun_VIDEO("#layer_mysale").html('
');
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:mysale", {ac:"add"},function (data, textStatus){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&formhash=a8999980", {ac:"salelist_get",ac1:"pcmysale"},function (data1, textStatus){
var tmparr1=data1.split("cqyun_split");
var bodytmp=data;
bodytmp=bodytmp.replace("cqyunmysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("cqyunmysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("cqyunmysalepage",tmparr1[2]);
bodytmp=bodytmp.replace("cqyunmyjfcount",tmparr1[3]);
cqyun_VIDEO("#layer_mysale").html(bodytmp);
laydate.render({trigger: "click",
elem: '#cqyun_time1'
});
laydate.render({trigger: "click",
elem: '#cqyun_time2'
});
}, "html");
}, "html");
});
//bd83044ca4b5ec95c4eca389fbdfde1a
cqyun_VIDEO("#mysalekm").click(function(){
showlayerwin('mysalekm',1,'兑换记录','',1200,610,1);
cqyun_VIDEO("#layer_mysalekm").html('
');
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:mysalekm", {ac:"add"},function (data, textStatus){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&formhash=a8999980", {ac:"salekmlist_get",ac1:"pcmysalekm"},function (data1, textStatus){
var tmparr1=data1.split("cqyun_split");
var bodytmp=data;
bodytmp=bodytmp.replace("cqyunmysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("cqyunmysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("cqyunmysalepage",tmparr1[2]);
cqyun_VIDEO("#layer_mysalekm").html(bodytmp);
laydate.render({trigger: "click",
elem: '#cqyun_time1'
});
laydate.render({trigger: "click",
elem: '#cqyun_time2'
});
}, "html");
}, "html");
});
//ff8fdbd007739d6667f1c8c5c1d9be44
cqyun_VIDEO("#mysubscribe").click(function(){
showlayerwin('mysubscribe',1,'我的关注','',1200,610,1);
cqyun_VIDEO("#layer_mysubscribe").html('
');
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:mysubscribe", {ac:"cqyun"},function (data, textStatus){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&formhash=a8999980", {ac:"subscribe_get",ac1:"pcmysubscribe"},function (data1, textStatus){
var tmparr1=data1.split("cqyun_split");
var bodytmp=data;
bodytmp=bodytmp.replace("cqyunmysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("cqyunmysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("cqyunmysalepage",tmparr1[2]);
cqyun_VIDEO("#layer_mysubscribe").html(bodytmp);
}, "html");
}, "html");
});
//473a5dfe4212a722f2109b7fd0a44f30
cqyun_VIDEO("#mygoods").click(function(){
showlayerwin('mygoods',1,'我的课程','',1200,610,1);
cqyun_VIDEO("#layer_mygoods").html('
');
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:mygoods", {ac:"cqyun"},function (data, textStatus){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&formhash=a8999980", {ac:"goods_get",ac1:"pcmygoods"},function (data1, textStatus){
var tmparr1=data1.split("cqyun_split");
var bodytmp=data;
bodytmp=bodytmp.replace("cqyunmysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("cqyunmysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("cqyunmysalepage",tmparr1[2]);
cqyun_VIDEO("#layer_mygoods").html(bodytmp);
}, "html");
}, "html");
});
//698470cabb4a1558b9df4c47bf65e0ea
cqyun_VIDEO("#mycollect").click(function(){
showlayerwin('mycollect',1,'我的收藏','',1200,610,1);
cqyun_VIDEO("#layer_mycollect").html('
');
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:mycollect", {ac:"cqyun"},function (data, textStatus){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&formhash=a8999980", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data1, textStatus){
var tmparr1=data1.split("cqyun_split");
var bodytmp=data;
bodytmp=bodytmp.replace("cqyunmysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("cqyunmysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("cqyunmysalepage",tmparr1[2]);
cqyun_VIDEO("#layer_mycollect").html(bodytmp);
}, "html");
}, "html");
});
//c6781107adba8bac681664fe33a14d6f
cqyun_VIDEO("#myplay").click(function(){
showlayerwin('myplay',1,'学习记录','',1200,610,1);
cqyun_VIDEO("#layer_myplay").html('
');
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:myplay", {ac:"cqyun"},function (data, textStatus){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&formhash=a8999980", {ac:"playlist_get",ac1:"pcmyplay"},function (data1, textStatus){
var tmparr1=data1.split("cqyun_split");
var bodytmp=data;
bodytmp=bodytmp.replace("cqyunmysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("cqyunmysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("cqyunmysalepage",tmparr1[2]);
cqyun_VIDEO("#layer_myplay").html(bodytmp);
}, "html");
}, "html");
});
//363c0af3857b614cb5b21eab44c32b1d
cqyun_VIDEO("#myplaypj").click(function(){
showlayerwin('myplaypj',1,'课程评价','',1200,610,1);
cqyun_VIDEO("#layer_myplaypj").html('
');
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:myplaypj", {ac:"cqyun"},function (data, textStatus){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&formhash=a8999980", {ac:"playpjlist_get",ac1:"pcmyplaypj"},function (data1, textStatus){
var tmparr1=data1.split("cqyun_split");
var bodytmp=data;
bodytmp=bodytmp.replace("cqyunmysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("cqyunmysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("cqyunmysalepage",tmparr1[2]);
bodytmp=bodytmp.replace("cqyunmyjfcount",tmparr1[3]);
cqyun_VIDEO("#layer_myplaypj").html(bodytmp);
}, "html");
}, "html");
});
});
var cqyun123="1088c7bfe8e919fb5a6cdf9377acc78b";
function delcollect(cid){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax&cid="+cid+"&formhash=a8999980",{ac:"delcollect"},function (data, textStatus){
alert(data);
getmycollectlist(document.getElementById("mysaleurl").value);
}, "html");
}
var sqlurl="";
function getmysalelist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
cqyun_VIDEO.get(url+sqlurl+"&formhash=a8999980", {ac:"salelist_get",ac1:"pcmysale"},function (data, textStatus){
var tmparr=data.split("cqyun_split");
cqyun_VIDEO("#mysalesum").html(tmparr[0]);
cqyun_VIDEO("#mysalelist").html(tmparr[1]);
cqyun_VIDEO("#mysalepage").html(tmparr[2]);
cqyun_VIDEO("#myjfcount").html(tmparr[3]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmysale(){
if(parseInt(document.getElementById("cqyun_time1").value.replace(/-/g,""))>parseInt(document.getElementById("cqyun_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var mysalepname=document.getElementById("mysalepname").value;
var cqyun_time1=document.getElementById("cqyun_time1").value;
var cqyun_time2=document.getElementById("cqyun_time2").value;
sqlurl="&pname="+mysalepname+"&cqyun_time1="+cqyun_time1+"&cqyun_time2="+cqyun_time2;
url="https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax";
getmysalelist(url);
document.getElementById("mysaleurl").value=url;
}
var mysalekmurl="https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax";
function getmysalekmlist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
cqyun_VIDEO.get(url+sqlurl+"&formhash=a8999980", {ac:"salekmlist_get",ac1:"pcmysalekm"},function (data, textStatus){
var tmparr=data.split("cqyun_split");
cqyun_VIDEO("#mysalesum").html(tmparr[0]);
cqyun_VIDEO("#mysalelist").html(tmparr[1]);
cqyun_VIDEO("#mysalepage").html(tmparr[2]);
mysalekmurl=url;
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmysalekm(){
if(parseInt(document.getElementById("cqyun_time1").value.replace(/-/g,""))>parseInt(document.getElementById("cqyun_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var findtypeid=document.getElementById("findtypeid").value;
var cqyun_time1=document.getElementById("cqyun_time1").value;
var cqyun_time2=document.getElementById("cqyun_time2").value;
sqlurl="&typeid="+findtypeid+"&cqyun_time1="+cqyun_time1+"&cqyun_time2="+cqyun_time2;
url="https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax";
getmysalekmlist(url);
document.getElementById("mysaleurl").value=url;
}
function getmysubscribelist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
cqyun_VIDEO.get(url+sqlurl+"&formhash=a8999980", {ac:"subscribe_get",ac1:"pcmysubscribe"},function (data, textStatus){
var tmparr=data.split("cqyun_split");
cqyun_VIDEO("#mysalesum").html(tmparr[0]);
cqyun_VIDEO("#mysalelist").html(tmparr[1]);
cqyun_VIDEO("#mysalepage").html(tmparr[2]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmysubscribe(){
url="https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax";
getmysubscribelist(url);
document.getElementById("mysaleurl").value=url;
}
var sqlurl="";
function getmygoodslist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
cqyun_VIDEO.get(url+sqlurl+"&formhash=a8999980", {ac:"goods_get",ac1:"pcmygoods"},function (data, textStatus){
var tmparr=data.split("cqyun_split");
cqyun_VIDEO("#mysalesum").html(tmparr[0]);
cqyun_VIDEO("#mysalelist").html(tmparr[1]);
cqyun_VIDEO("#mysalepage").html(tmparr[2]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmygoods(){
var pname=document.getElementById("pname").value;
sqlurl="&pname="+pname;
url="https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax";
getmygoodslist(url);
document.getElementById("mysaleurl").value=url;
}
var sqlurl="";
function getmycollectlist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
cqyun_VIDEO.get(url+sqlurl+"&formhash=a8999980", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data, textStatus){
var tmparr=data.split("cqyun_split");
cqyun_VIDEO("#mysalesum").html(tmparr[0]);
cqyun_VIDEO("#mysalelist").html(tmparr[1]);
cqyun_VIDEO("#mysalepage").html(tmparr[2]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmycollect(){
var pname=document.getElementById("pname").value;
sqlurl="&pname="+pname;
url="https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax";
getmycollectlist(url);
document.getElementById("mysaleurl").value=url;
}
var sqlurl="";
function getmyplaylist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
cqyun_VIDEO.get(url+sqlurl+"&formhash=a8999980", {ac:"playlist_get",ac1:"pcmyplay"},function (data, textStatus){
var tmparr=data.split("cqyun_split");
cqyun_VIDEO("#mysalesum").html(tmparr[0]);
cqyun_VIDEO("#mysalelist").html(tmparr[1]);
cqyun_VIDEO("#mysalepage").html(tmparr[2]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmyplay(){
var pid=document.getElementById("pid").value;
var vid=document.getElementById("vid").value;
sqlurl="&pid="+pid+"&vid="+vid;
url="https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax";
getmyplaylist(url);
document.getElementById("mysaleurl").value=url;
}
var sqlurl="";
function getmyplaypjlist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
cqyun_VIDEO.get(url+sqlurl+"&formhash=a8999980", {ac:"playpjlist_get",ac1:"pcmyplaypj"},function (data, textStatus){
var tmparr=data.split("cqyun_split");
cqyun_VIDEO("#mysalesum").html(tmparr[0]);
cqyun_VIDEO("#mysalelist").html(tmparr[1]);
cqyun_VIDEO("#mysalepage").html(tmparr[2]);
cqyun_VIDEO("#myjfcount").html(tmparr[3]);
document.getElementById("mysaleurl").value=url;
document.getElementById("img_loading").style.display="none";
document.getElementById("mysalelist").style.display="";
}, "html");
}
function searchmyplaypj(){
var pname=document.getElementById("pname").value;
sqlurl="&pname="+pname;
url="https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax";
getmyplaypjlist(url);
document.getElementById("mysaleurl").value=url;
}
var pjtype,pjtype1;
function setplaypj(playpjid){
pjtype='playpj';
pjtype1='playpj';
getplaypj(playpjid);
}
function goodsplaypj(playpjid,pjtypetmp){
pjtype='playpj';
pjtype1=pjtypetmp;
getplaypj(playpjid);
}
function hfplaypj(playpjid){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:hfplaypj"+"&playpjid="+playpjid, {ac:"cqyun"},function (data, textStatus){
var tmparr=data.split("cqyun_split");
showlayerwin('gethfsalepj',1,tmparr[0],tmparr[1],523,390,0);
cqyun_VIDEO('.ns-sub-a').click(function(){
var cqyun_content=document.getElementById("hfvalue").value;
if(cqyun_content==''){
alert("抱歉,请输入评价回复内容!");
return;
}
if(confirm("确定要提交评价回复内容?")){
document.getElementById("hfvalue").value=cqyun_content.replace(/\n/g,"[br]");
cqyun_VIDEO.post("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&ac=hfplaypj&playpjid="+playpjid+"&formhash=a8999980",cqyun_VIDEO("#cqyun_hfplaypj").serialize(),function (data, textStatus){
var tmparr=data.split("cqyun_split");
if(tmparr[0]=="ok"){
alert(tmparr[1]);
layer.close(layerclose['gethfsalepj']);
getpjlist(pjurl);
}else{
alert(data);
}
}, "html");
}
})
cqyun_VIDEO('.ns-sub-b').click(function(){
layer.close(layerclose['gethfsalepj']);
})
}, "html");
}
var K;
KindEditor.ready(function(ktmp) {
K=ktmp;
});
var ispjpicdel=0;
function getplaypj(playpjid){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:playpj"+"&playpjid="+playpjid, {ac:"cqyun"},function (data, textStatus){
var tmparr=data.split("cqyun_split");
showlayerwin('getsalepj',1,tmparr[0],tmparr[1],523,390,0);
var editor = K.editor({
uploadJson : 'source/plugin/cqyun_video/kindeditor/php/upload_json.php?uid='+tmparr[4]+'&imgwidth=680',
fileManagerJson : 'source/plugin/cqyun_video/kindeditor/php/file_manager_json.php?uid='+tmparr[4],
allowFileManager : true
});
K('#pjpic_addbtn').click(function() {
if(document.getElementById("pjpiccount").value>=5){
return;
}
editor.loadPlugin('image', function() {
editor.plugin.imageDialog({
showRemote : false,
clickFn : function(url, title, width, height, border, align) {
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&ac="+pjtype+"&playpjid="+playpjid+"&picurl="+url+"&formhash=a8999980",{ac1:"addpjpic"},function (data, textStatus){
getpjpic(playpjid);
}, "html");
editor.hideDialog();
}
});
var dlgh=K(".ke-dialog-default").height;
var dlgw=K(".ke-dialog-default").width;
var ntop=(window.innerHeight-dlgh)/2;
var nleft=(window.innerWidth-dlgw)/2;
K(".ke-dialog-default").css({"top":ntop,"left":nleft});
});
});
getpjpic(playpjid);
starh('.sp_a','.ias');
starh('.sp_b','.ibs');
starh('.sp_c','.ics');
starh('.sp_d','.ids');
if(tmparr[3]!='')window.eval(tmparr[3]);
cqyun_VIDEO('.ns-sub-a').click(function(){
if (cqyun_VIDEO('.doo').find('span').hasClass('mag')){
cqyun_VIDEO('.doo .mag').show();
}else{
var cqyun_content=document.getElementById("pjvalue").value;
if(getstrlen(cqyun_content)<5){
alert("评价内容字符数至少5个!");
return false;
}
if(getstrlen(cqyun_content)>400){
alert("评价内容字符数最多400个!");
return false;
}
if(confirm(tmparr[2])){
var score1 = cqyun_VIDEO('.sp_a').find('a').filter('.ns-sider-star').length;
var score2 = cqyun_VIDEO('.sp_b').find('a').filter('.ns-sider-star').length;
var score3 = cqyun_VIDEO('.sp_c').find('a').filter('.ns-sider-star').length;
var score4 = cqyun_VIDEO('.sp_d').find('a').filter('.ns-sider-star').length;
var score=score1+'@'+score2+'@'+score3+'@'+score4;
document.getElementById("pjvalue").value=cqyun_content.replace(/\n/g,"[br]");
cqyun_VIDEO.post("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&ac="+pjtype+"&playpjid="+playpjid+"&score="+score+"&formhash=a8999980",cqyun_VIDEO("#cqyun_playpj").serialize(),function (data, textStatus){
var tmparr=data.split("cqyun_split");
if(tmparr[0]=="ok"){
alert(tmparr[1]);
layer.close(layerclose['getsalepj']);
if(pjtype=='playpj'){
if(pjtype1=='playpj'){
getmyplaypjlist(document.getElementById("mysaleurl").value);
}else{
location.reload();
}
}else{
if(ispj==1){
getsalelist(salelisturl);
getpjlist(pjlisturl);
}else{
location.reload();
}
}
}else if(tmparr[0]=="editok"){
alert(tmparr[1]);
layer.close(layerclose['getsalepj']);
getpjlist(pjurl);
}else{
alert(data);
}
}, "html");
}
}
})
cqyun_VIDEO('.ns-sub-b').click(function(){
layer.close(layerclose['getsalepj']);
})
}, "html");
}
function starh(spans,ia){
var _span=cqyun_VIDEO(spans);
var _star=_span.find('a');
var _ias=cqyun_VIDEO(ia);
var _i=_ias.find('i');
_star.hover(function(){
var index=_span.index(this);
var indexs=_star.index(this);
if (_i.hasClass('ns-star-tag'))
{return;}
else {
_ias.eq(index).addClass('ns-star-tags');
_i.removeClass('ns-star-tags');
_i.eq(indexs).addClass('ns-star-tags');
}
cqyun_VIDEO(this).addClass('ns-sider-starc');
cqyun_VIDEO(this).prevAll().addClass('ns-sider-starc');
cqyun_VIDEO(this).nextAll().removeClass('ns-sider-starc');
},function(){
_star.removeClass('ns-sider-starc');
_ias.removeClass('ns-star-tags');
_i.removeClass('ns-star-tags');
})
_star.click(function(){
var index=_span.index(this);
var indexs=_star.index(this);
_i.removeClass('ns-star-tag');
_i.eq(indexs).addClass('ns-star-tag');
_ias.eq(index).addClass('ns-star-tag');
cqyun_VIDEO(this).addClass('ns-sider-star');
cqyun_VIDEO(this).prevAll().addClass('ns-sider-star');
cqyun_VIDEO(this).nextAll().removeClass('ns-sider-star');
cqyun_VIDEO(this).parents('li').removeClass('doo');
var sb=cqyun_VIDEO(this).parents('li').find('span');
var sa=sb.eq(2).hide();
})
}
function getbigpjpic(pjid,bigpjpic){
cqyun_VIDEO("#bigpjpic"+pjid).html("
");
cqyun_VIDEO("#bigpjpic"+pjid).show();
}
function hidebigpjpic(obj){
obj.style.display='none';
}
function delpjpic(pjid,pjpicid){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&ac="+pjtype+"&playpjid="+pjid+"&pjpicid="+pjpicid+"&formhash=a8999980",{ac1:"delpjpic"},function (data, textStatus){
getpjpic(pjid);
}, "html");
}
function getpjpic(pjid){
cqyun_VIDEO.get("https://ms.djxfyun.com/plugin.php?id=cqyun_video:ajax"+"&playpjid="+pjid+"&formhash=a8999980", {ac:"getpjpic"},function (data, textStatus){
cqyun_VIDEO("#divpjpic").html(data);
}, "html");
}
function getstrlen(str) {
var realLength = 0, len = str.length, charCode = -1;
for (var i = 0; i < len; i++) {
charCode = str.charCodeAt(i);
if (charCode >= 0 && charCode <= 128) realLength += 1;
else realLength += 2;
}
return realLength;
}
function getstrlenspan(str){
var strlen=getstrlen(str);
if(strlen<5){document.getElementById('strlentips').innerHTML='评价内容字符数至少5个!';return;}
if(strlen>400){document.getElementById('strlentips').innerHTML='评价内容字符数最多400个!';return;}
document.getElementById('strlentips').innerHTML='您输入了'+strlen+'个字符!';
}