$cid=$GLOBALS[navclassid]; $topid=user_GetTopBclassname($cid); $pid=(int)$_GET['id']; $chr=$GLOBALS['navchr']; $ddr=$GLOBALS['navddr']; $playurl=$chr['vurl']; $price=$chr['price']; $type=$chr['type'];//播放数据源 $free=(int)$chr['free']; $mygroupid=(int)getcvar('mlgroupid'); $myuserid=(int)getcvar('mluserid'); //是否有权限 $cxddr=course_ddr($ddr,$pid); $ddid=$cxddr['id']; $ddall=$cxddr['all']; $isplay=0; if($ddid || $price=='0.00' || $price==0 || $free){ $isplay=1; } if($ddid){//有订单时不显示免费 $free=0; } //培训班 if($ddid && $mygroupid==3){ $pxb=0; } if($type==1 && $isplay){//有权限播放再获取数据 $playInfo=user_getPlayInfo_course($playurl,$pid); $sppic=$playInfo['picurl']; $playurl=$playInfo['playurl']; }else{ $sppic=$navinfor['titlepic']; } //讲师数据 $uid=$chr['signuid']?$chr['signuid']:$chr['techerid']; $u=array(); if($uid){ $u=sys_ShowMemberInfo($uid,'ui.truename,ui.userpic,ui.saytext'); } $uname=$u['truename']?$u['truename']:'最需教育'; $userpic=$u['userpic']?$u['userpic']:$public_r['add_pcurl'].'/static/member/face.png'; if(empty($u['saytext']) && $uname=='最需教育'){ $u['saytext']='软件教程、软件操作、软件下载、软件在线教育平台'; $userpic=$public_r['add_pcurl'].'/static/img/zxface.png'; } $udesc=$chr['signuid']?'签约讲师':$u['saytext']; if($myuserid){ //是否收藏 $favnum=$empire->gettotal("select count(*) as total from {$dbtbpre}enewsfava where userid='$myuserid' and id='$navinfor[id]' and classid='$cid' and pid='$pid' "); if($favnum){ $fav=' favon'; } //学习记录 $histor=$GLOBALS['navh_r']; $h_r=course_history($histor); } $kcnum=$empire->gettotal("select count(*) as total from {$dbtbpre}course_chapter where classid=$navinfor[classid] and id=$navinfor[id]"); $chapter=user_chapter($ddr,$pid); //总价 $price=$navinfor[price]; if($price>0){ $prices='¥'.$price.'元'; }else{ $prices='免费'; } $myurl=$public_r['add_myurl']; $buyurl=$myurl.'extend/course/?enews=buy&id='.$pid.'&type=i'; ?>
价格: if($ddall || $ddid){ echo '已购'; }else{ if($price>0){ echo ''.$prices.''; }else{ echo '免费'; } } ?>
最需网客户端 软件问题一手掌握
去 App Store 免费下载 iOS 客户端
点击加载更多评论>>