// 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("it618_name").value==""){ alert("请填写讲师名称!"); document.getElementById("it618_name").focus(); return false; } if(document.getElementById("it618_tel").value==""){ alert("请填写联系电话!"); document.getElementById("it618_tel").focus(); return false; } if(document.getElementById("it618_about").value==""){ alert("请填写讲师简介!"); document.getElementById("it618_about").focus(); return false; } IT618_VIDEO.post("https://www.yunfa.vip/plugin.php?id=it618_video:ajax"+"&ac=renzheng&formhash=0a0d2df0",IT618_VIDEO("#it618_renzheng").serialize(),function (data, textStatus){ var tmparr=data.split("it618_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){ IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:ajax&stylename="+stylename+"&formhash=0a0d2df0", {ac:"pcstyle"},function (data, textStatus){ if(data=="ok"){ location.reload(); } }, "html"); } function showlayerwin(it618type,type,title,content,width,height){ if(type==1){ content='
');
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:mysale", {ac:"add"},function (data, textStatus){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:ajax"+"&formhash=0a0d2df0", {ac:"salelist_get",ac1:"pcmysale"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
bodytmp=bodytmp.replace("it618myjfcount",tmparr1[3]);
$("#layer_mysale").html(bodytmp);
laydate.render({
elem: '#it618_time1'
});
laydate.render({
elem: '#it618_time2'
});
}, "html");
}, "html");
});
$("#mysalekm").click(function(){
showlayerwin('mysalekm',1,'兑换记录','',1200,610);
$("#layer_mysalekm").html('
');
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:mysalekm", {ac:"add"},function (data, textStatus){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:ajax"+"&formhash=0a0d2df0", {ac:"salekmlist_get",ac1:"pcmysalekm"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
$("#layer_mysalekm").html(bodytmp);
laydate.render({
elem: '#it618_time1'
});
laydate.render({
elem: '#it618_time2'
});
}, "html");
}, "html");
});
$("#mysubscribe").click(function(){
showlayerwin('mysubscribe',1,'我的关注','',1200,610);
$("#layer_mysubscribe").html('
');
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:mysubscribe", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:ajax"+"&formhash=0a0d2df0", {ac:"subscribe_get",ac1:"pcmysubscribe"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
$("#layer_mysubscribe").html(bodytmp);
}, "html");
}, "html");
});
$("#mygoods").click(function(){
showlayerwin('mygoods',1,'我的课程','',1200,610);
$("#layer_mygoods").html('
');
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:mygoods", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:ajax"+"&formhash=0a0d2df0", {ac:"goods_get",ac1:"pcmygoods"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
$("#layer_mygoods").html(bodytmp);
}, "html");
}, "html");
});
$("#mycollect").click(function(){
showlayerwin('mycollect',1,'我的收藏','',1200,610);
$("#layer_mycollect").html('
');
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:mycollect", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:ajax"+"&formhash=0a0d2df0", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
$("#layer_mycollect").html(bodytmp);
}, "html");
}, "html");
});
$("#myplay").click(function(){
showlayerwin('myplay',1,'学习记录','',1200,610);
$("#layer_myplay").html('
');
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:myplay", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:ajax"+"&formhash=0a0d2df0", {ac:"playlist_get",ac1:"pcmyplay"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
$("#layer_myplay").html(bodytmp);
}, "html");
}, "html");
});
$("#myplaypj").click(function(){
showlayerwin('myplaypj',1,'课程评价','',1200,610);
$("#layer_myplaypj").html('
');
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:myplaypj", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:ajax"+"&formhash=0a0d2df0", {ac:"playpjlist_get",ac1:"pcmyplaypj"},function (data1, textStatus){
var tmparr1=data1.split("it618_split");
var bodytmp=data;
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
bodytmp=bodytmp.replace("it618myjfcount",tmparr1[3]);
$("#layer_myplaypj").html(bodytmp);
}, "html");
}, "html");
});
});
var dialog_playpj,dialog_hfplaypj,playpjid=0;
KindEditor.ready(function(K) {K('#playpj').click(function() {
getplaypj(K);
});});
KindEditor.ready(function(K) {K('#hfplaypj').click(function() {
gethfplaypj(K);
});});
var it618123="";
function getmycollect(K){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:mycollect", {ac:"it618"},function (data, textStatus){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:ajax"+"&formhash=0a0d2df0", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data1, textStatus){
var tmparr=data.split("it618_split");
var tmparr1=data1.split("it618_split");
var bodytmp=tmparr[1];
bodytmp=bodytmp.replace("it618mysalesum",tmparr1[0]);
bodytmp=bodytmp.replace("it618mysalelist",tmparr1[1]);
bodytmp=bodytmp.replace("it618mysalepage",tmparr1[2]);
dialog_myplay = K.dialog({
width : 1100,
height: 630,
title : tmparr[0],
body : bodytmp,
closeBtn : {
name : '关闭',
click : function(e) {
dialog_myplay.remove();
}
}
});
}, "html");
}, "html");
}
function delcollect(cid){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:ajax&cid="+cid+"&formhash=0a0d2df0",{ac:"delcollect"},function (data, textStatus){
alert(data);
getmycollectlist(document.getElementById("mysaleurl").value);
}, "html");
}
var it611128123="";
var sqlurl="";
function getmysalelist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
IT618_VIDEO.get(url+sqlurl+"&formhash=0a0d2df0", {ac:"salelist_get",ac1:"pcmysale"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_VIDEO("#mysalepage").html(tmparr[2]);
IT618_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("it618_time1").value.replace(/-/g,""))>parseInt(document.getElementById("it618_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var mysalepname=document.getElementById("mysalepname").value;
var it618_time1=document.getElementById("it618_time1").value;
var it618_time2=document.getElementById("it618_time2").value;
sqlurl="&pname="+mysalepname+"&it618_time1="+it618_time1+"&it618_time2="+it618_time2;
url="https://www.yunfa.vip/plugin.php?id=it618_video:ajax";
getmysalelist(url);
document.getElementById("mysaleurl").value=url;
}
var mysalekmurl="https://www.yunfa.vip/plugin.php?id=it618_video:ajax";
function getmysalekmlist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
IT618_VIDEO.get(url+sqlurl+"&formhash=0a0d2df0", {ac:"salekmlist_get",ac1:"pcmysalekm"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_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("it618_time1").value.replace(/-/g,""))>parseInt(document.getElementById("it618_time2").value.replace(/-/g,""))){
alert("开始日期不能大于截止日期!");
return false;
}
var findtypeid=document.getElementById("findtypeid").value;
var it618_time1=document.getElementById("it618_time1").value;
var it618_time2=document.getElementById("it618_time2").value;
sqlurl="&typeid="+findtypeid+"&it618_time1="+it618_time1+"&it618_time2="+it618_time2;
url="https://www.yunfa.vip/plugin.php?id=it618_video:ajax";
getmysalekmlist(url);
document.getElementById("mysaleurl").value=url;
}
function getmysubscribelist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
IT618_VIDEO.get(url+sqlurl+"&formhash=0a0d2df0", {ac:"subscribe_get",ac1:"pcmysubscribe"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_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://www.yunfa.vip/plugin.php?id=it618_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";
IT618_VIDEO.get(url+sqlurl+"&formhash=0a0d2df0", {ac:"goods_get",ac1:"pcmygoods"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_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://www.yunfa.vip/plugin.php?id=it618_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";
IT618_VIDEO.get(url+sqlurl+"&formhash=0a0d2df0", {ac:"collectgoods_get",ac1:"pcmygoods"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_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://www.yunfa.vip/plugin.php?id=it618_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";
IT618_VIDEO.get(url+sqlurl+"&formhash=0a0d2df0", {ac:"playlist_get",ac1:"pcmyplay"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_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://www.yunfa.vip/plugin.php?id=it618_video:ajax";
getmyplaylist(url);
document.getElementById("mysaleurl").value=url;
}
var it6118123="";
var sqlurl="";
function getmyplaypjlist(url){
document.getElementById("img_loading").style.display="";
document.getElementById("mysalelist").style.display="none";
IT618_VIDEO.get(url+sqlurl+"&formhash=0a0d2df0", {ac:"playpjlist_get",ac1:"pcmyplaypj"},function (data, textStatus){
var tmparr=data.split("it618_split");
IT618_VIDEO("#mysalesum").html(tmparr[0]);
IT618_VIDEO("#mysalelist").html(tmparr[1]);
IT618_VIDEO("#mysalepage").html(tmparr[2]);
IT618_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://www.yunfa.vip/plugin.php?id=it618_video:ajax";
getmyplaypjlist(url);
document.getElementById("mysaleurl").value=url;
}
var pjtype,pjtype1;
function setplaypj(pjid){
if(playpjid==0){
playpjid=pjid;
pjtype='playpj';
pjtype1='playpj';
IT618_VIDEO("#playpj").click();
}
}
function goodsplaypj(pjid,pjtypetmp){
if(playpjid==0){
playpjid=pjid;
pjtype='playpj';
pjtype1=pjtypetmp;
IT618_VIDEO("#playpj").click();
}
}
function hfplaypj(pjid){
if(playpjid==0){
playpjid=pjid;
IT618_VIDEO("#hfplaypj").click();
}
}
function starh(spans,ia){
var _span=IT618_VIDEO(spans);
var _star=_span.find('a');
var _ias=IT618_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');
}
IT618_VIDEO(this).addClass('ns-sider-starc');
IT618_VIDEO(this).prevAll().addClass('ns-sider-starc');
IT618_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');
IT618_VIDEO(this).addClass('ns-sider-star');
IT618_VIDEO(this).prevAll().addClass('ns-sider-star');
IT618_VIDEO(this).nextAll().removeClass('ns-sider-star');
IT618_VIDEO(this).parents('li').removeClass('doo');
var sb=IT618_VIDEO(this).parents('li').find('span');
var sa=sb.eq(2).hide();
})
}
var ispjpicdel=0;
function getplaypj(K){
IT618_VIDEO.get("https://www.yunfa.vip/plugin.php?id=it618_video:playpj"+"&playpjid="+playpjid, {ac:"it618"},function (data, textStatus){
var tmparr=data.split("it618_split");
dialog_playpj = K.dialog({
width : 520,
title : tmparr[0],
body : '