实用的帝国cms笔记

       <span class="colpx"><a <?=$ntstyle?> href='[!--news.url--]e/action/ListInfo.php?classid=[!--self.classid--]&tempid=9&orderby=newstime&line=16'">时间</a> | <a <?=$psstyle?> href="[!--news.url--]e/action/ListInfo.php?classid=[!--self.classid--]&tempid=9&orderby=psales&line=16">销量</a> | <a <?=$ppstyle?> href="[!--news.url--]e/action/ListInfo.php?classid=[!--self.classid--]&tempid=9&orderby=pprice&line=16">价格</a></span>WBi迪尔课堂(迪尔掌上课堂)--官网 免费自学网站

 
--------------------------------------------------------------------------------------------------------------------------------
 
 
<?php
/**
 * 获取当前页面完整URL地址
 */
function get_url() {
    $sys_protocal = isset($_SERVER['SERVER_PORT']) && $_SERVER['SERVER_PORT'] == '443' ? 'https://' : 'http://';
    $php_self = $_SERVER['PHP_SELF'] ? $_SERVER['PHP_SELF'] : $_SERVER['SCRIPT_NAME'];
    $path_info = isset($_SERVER['PATH_INFO']) ? $_SERVER['PATH_INFO'] : '';
    $relate_url = isset($_SERVER['REQUEST_URI']) ? $_SERVER['REQUEST_URI'] : $php_self.(isset($_SERVER['QUERY_STRING']) ? '?'.$_SERVER['QUERY_STRING'] : $path_info);
    return $sys_protocal.(isset($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : '').$relate_url;
}
 
echo get_url();
?>
 
 
------------------------------------------------------------------------------------------------------------------------------------------------
 
分页样式修改  trecord(总数)
e\class\connect.php
 
e\class\t_functions.php
 
---------------------------------------------------------------------------------------------------
 
 
<div class="col-md-4 col-xs-6">
   <div class="course-item live">
        <div class="course-img">
            <a href="[!--titleurl--]"> 
              <img src="[!--titlepic--]" alt="[!--title--]" class="">
                                       <div class="live-status-tip unlive text-o-show">
     <div class="pull-left"><i class="hz-icon icon-videocam mrs "></i>更新时间</div>
    [!--newstime--]
   </div>             
            </a>
        </div>
        <div class="course-info">
            <div class="title text-o-show">
                  <a href="[!--titleurl--]">[!--title--]</a>
            </div>
            <div class="metas">
                                  <span class="status live">[!--nandu--]</span>
                                <span>[!--onclick--]浏览</span>/
                <span>628学员</span>/
                <span>5评分</span>
            </div>
              <div class="teacher text-o-show">
                                              <a class=" js-user-card" href="http://www.howzhi.com/u/1259977/" data-card-url="/user/1259977/card/show" data-user-id="1259977">
    <img class="avatar-ss " src="[!--news.url--]skin/dx/images/154444ca7768014596.jpg"  alt="亮剑">
    亮剑
  </a>
                 <span class="daren-icon-t" title="达人"></span>
                                      <div class="price free pull-right"><span>免费</span></div>
                              </div>
        </div>
   </div>
</div> 
 
 
 
-----------------------------------------------------------------------------------------------------------
 
<script type="text/javascript"> var letvcloud_player_conf =  {"uu":"8stspg3e7h","vu":"<?=$trueurl?>","auto_play":1,"gpcflag":1,"width":100%,"height":360};</script><script type="text/javascript" src="http://yuntv.letv.com/bcloud.js"></script>
 
 
 
 
 
------------------------------------------------------------------------
<?php
$id1=$_GET["id"];//获取当前页面id适合动态页面
$fr=$empire->fetch1("select onlinepath from {$dbtbpre}ecms_movie_data_1 where id='$id1'");
$olurl=explode('::::::',$fr['onlinepath']);
?>
<?=$olurl[1]?>
 
 
-------------------------------------------------------------------------------------------------
 
 
             
<?php
$id1=$_GET["id"];//获取当前页面id适合动态页面
$fr=$empire->fetch1("select onlinepath from {$dbtbpre}ecms_movie_data_1 where id='$id1'");
$olurl=explode('::::::',$fr['onlinepath']);
$resstr="";
for($i=0;$i<count($olurl)/4;$i++){
$resstr.=<<<HTMLSTR
<li class="period lesson-item lesson-item-51505 " data-id="{$i}" data-num="{$i}">
<a href="?classid=$classid&id=$id&pathid={$i}" title="{$olurl[$i*4]}">       
<i class="es-icon es-icon-undone status-icon"></i>
<span class="title">{$olurl[$i*4]}</span>
<span class="course-type">
<i class="hz-icon icon-play-nobg" data-toggle="tooltip" data-placement="top" title="" data-original-title="视频课程"></i>
</span>
</a>  
</li>
HTMLSTR;
}
echo $resstr;
?>
 
 
-------------------------------------------------------------------------------------------------------------------
 
 
<script>
 
$(document).ready(function(){  
    $('#course-item-list li a').each(function(){  
        if($($(this))[0].href==String(window.location)){
$(this).parent().addClass('item-active');  
    $('<span class="learning">学习中</span>').appendTo(this);
    });  
});  
 
   $(function(){   
  $('.keshiliebiao').click(function(event) {
            $('#lesson-dashboard').toggleClass('toolbarhide');
       });   
   })
</script>
 
 
----------------------------------------------------------------------------------------------------------------------------
 
 
<div id="myCarousel" class="carousel slide">
<ol class="carousel-indicators">
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
<li data-target="#myCarousel" data-slide-to="1"></li>
<li data-target="#myCarousel" data-slide-to="2"></li>
<li data-target="#myCarousel" data-slide-to="3"></li>
</ol>
<div class="carousel-inner">
 [e:loop={'movie',4,18,0,'firsttitle=1','newstime DESC'}]
<div class="item <?php if($bqno==1){echo 'active';}?>"style="background:<?=$bqr['lbground']?>">
<a href="<?=$bqsr['titleurl']?>" target="_blank"><img src="<?=$bqr['maxpic']?>" alt="<?=$bqr['title']?>"></a>
</div>
 [/e:loop]
</div>
<a href="#myCarousel" data-slide="prev" class="carousel-control left">
<span class="glyphicon glyphicon-chevron-left"></span>
</a>
<a href="#myCarousel" data-slide="next" class="carousel-control right">
<span class="glyphicon glyphicon-chevron-right"></span>
</a>
</div>
 
 
=============================================================================================================================================
 
 
 
<div class="ds-thread" data-thread-key="<?=$GET['id']?>" data-title="<?=$r[title]?>" >              
<!-- 多说js加载开始,一个页面只需要加载一次 -->
<script type="text/javascript">
var duoshuoQuery = {short_name:"dxpang"};
(function() {
    var ds = document.createElement('script');
    ds.type = 'text/javascript';ds.async = true;
    ds.src = 'http://static.duoshuo.com/embed.js';
    ds.charset = 'UTF-8';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(ds);
})();
</script>
</div>
 
 
==========================================================================================================================================
 
 
<script type="text/javascript" >
var str='[!--titlepic--]';
if(str==''){
document.write('');
}else{
document.write('<div class="featured-media"><a href="[!--titleurl--]"><img src="[!--titlepic--]" alt="[!--title--]"></a></div>');
}
</script>
---------------------------------------------------------------------------------------------------------------------------------------
。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
 
<script type="text/javascript" >
var str='[!--moviefen--]';
if(str==0){
document.write('免费');
}else{
document.write('¥'+str);
}
</script>
 
=====================================================================================================================
 <script language="JavaScript" src="http://code.54kefu.net/kefu/js/b45/953245.js" type="text/javascript" charset="utf-8"></script>
 
 
-----------------------------------------------------------------------------------------------
 
<script src="http://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
<script src="[!--news.url--]skin/dx/js/bootstrap.min.js"></script>
<script type="text/javascript" >
$('#myCarousel').carousel({
//自动4秒播放
interval : 4000,
       });
 
         $(document).ready(function(){  
    $('.tab-body li a').each(function(){  
        if($($(this))[0].href==String(window.location))  
            $(this).addClass('active');  
    });  
});
       
   
   
$(function(){
 $('#course-recommed').find('li').click(function(){
    $('#course-recommed').find('li').attr('class','btn');
$('.index-course-list').find("div[id^='course-commend']").css('display','none');  
$(this).attr('class','btn btn-primary');
$('.index-course-list').find("div[id^='course-commend']").eq( $(this).index() ).css('display','block');
 });
});    
 
    $(function(){
     (function(){
       var aLi = $('#text-center li');
                 aLi.each(function(index){
                  var tbname=$('.tbname');
                  $(this).click(function(){
                    $('#choose').html(this.innerHTML+'<i class="hz-icon icon-keyboardarrowdown"></i>');                     
                     var zhiLi=$(this).attr('value');
                     tbname.val(zhiLi);
                 });
           });
   })();
});        
</script>
--------------------------------------------------------------------------------
 
<div class="container" id="content-container">         
<section class="container flat">
  <div class="search col-md-9">
      <div class="toptip clearfix">
                    <a class="active" value="movie">课程</a>            
                    <a href="#" value="news">文章</a>
                    <a href="#" value="download">下载</a>
                    <a href="#" value="photo">图库</a>
      </div>  
<form class="search-form col-md-9" action='../../search/index.php' method="post" name="searchform" id="searchform">  
      <input class="form-control search" type="text" id="keyboard" value="[!--keyboard--]" size="42" name="keyboard">  
      <input type="hidden" name="show" value="title" />
      <input type="hidden" class="tbname" name="tbname" value="movie">
      <input type="hidden" name="tempid" value="1" />
      <button class="fa fa-search" type="submit"></button>
</form>   
<ul class="list">           
[!--empirenews.listtemp--]
<!--list.var1-->
[!--empirenews.listtemp--]
</ul>
<ul class="pagination ">
                    [!--show.page--]
</ul>             
</div>
</section>
      </div>    
         [!--temp.footer--]
 
<script>
$(function(){
       (function(){
       var aLi = $('.toptip a');
       aLi.each(function(index){
                  var tbname=$('.tbname');
                  $(this).click(function(){
                       aLi.removeClass();
                     $(this).addClass('active');            
                     var zhiLi=$(this).attr('value');
                     tbname.val(zhiLi);
                 });
           });
   })();
});
 
</script>
 
-----------------------------------------------------------------------------------------------------------------  

扫一扫手机访问