コード例 #1
0
<!-- 疾病文章页:右侧第二个广告位 -->
<!--<script type="text/javascript">
    var cpro_id="u2303355";
    (window["cproStyleApi"] = window["cproStyleApi"] || {})[cpro_id]={at:"3",rsi0:"300",rsi1:"250",pat:"3",tn:"baiduCustNativeAD",rss1:"#FFFFFF",conBW:"0",adp:"1",ptt:"0",titFF:"%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91",titFS:"14",rss2:"#000000",titSU:"0",tft:"0",tlt:"1"}
</script>
<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>
-->

<?php 
if ($this->beginCache('frontend_article_detail_rightad02', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4553);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #2
0
<?php

//疾病wap端热图推荐奇趣广告通发
//if ($this->beginCache('wapjb_below_hotpic', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
$ads = new \common\models\ads\Ads();
$ads_br = $ads->ads(4575);
if (isset($ads_br) && !empty($ads_br)) {
    echo $ads_br;
}
//    $this->endCache();
//}
コード例 #3
0
<!--疾病症状页底部广告位-->
<?php 
if ($this->beginCache('jb_ads_seek_bottom', ['cache' => 'cache_file', 'duration' => 3600])) {
    $ads = new \common\models\ads\Ads();
    $ads_br = $ads->ads(4555);
    if (isset($ads_br) && !empty($ads_br)) {
        echo $ads_br;
    }
    $this->endCache();
}
コード例 #4
0
        echo $content;
    }
    $this->endCache();
}
//疾病wap端整站智能场景  ID:4584
if ($this->beginCache('wapjb_intelligent_scene', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4584);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
//疾病wap端整站搜索推荐  ID:4585
if ($this->beginCache('wapjb_search_recommendation', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4585);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
//疾病wap端整站统计  ID:4588
if ($this->beginCache('wapjb_search_statistic', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4588);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #5
0
<?php

if ($this->beginCache('jb_ads_common_left_bottom', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $ads_interest = $ads->ads(4543);
    if (isset($ads_interest) && !empty($ads_interest)) {
        echo $ads_interest;
    }
    $this->endCache();
}
コード例 #6
0
ファイル: ads_nav.php プロジェクト: VampireMe/admin-9939-com
<?php

if ($this->beginCache('jb_ads_common_header_nav', ['cache' => 'cache_file', 'duration' => 24 * 3600])) {
    $ads = new \common\models\ads\Ads();
    $ads_tr = $ads->ads(4556);
    //头部通栏广告
    if (isset($ads_tr) && !empty($ads_tr)) {
        echo $ads_tr;
    }
    $this->endCache();
}
コード例 #7
0
<?php

/**
 * 疾病页面 通用 第二个广告
 */
if ($this->beginCache('wapjb_disease_common_second', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4575);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #8
0
<?php

/**
 * 疾病文章中间----广告
 */
if ($this->beginCache('frontend_article_detail_middle_ads', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4574);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #9
0
ファイル: hot_pic.php プロジェクト: VampireMe/admin-9939-com
<?php

if ($this->beginCache('wapjb_hot_pic', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->getAdsHandle(4582, 6);
    if (isset($content) && !empty($content)) {
        ?>
        <h2>热图推荐</h2>
        <div class="main_visual">
            <div class="flicking_con">
                <?php 
        foreach ($content as $k => $v) {
            if ($k % 2 == 0) {
                echo '<a href="#">' . ($k / 2 + 1) . '</a>';
            }
        }
        ?>
            </div>
            <div class="main_image">
                <ul>
                    <?php 
        foreach ($content as $kk => $vv) {
            if ($kk % 2 == 0) {
                echo '<li>';
            }
            echo '<a href="' . $vv['linkurl'] . '"><img src="' . $vv['imageurl'] . '" alt="' . $vv['adsname'] . '"><p>' . $vv['adsname'] . '</p></a>';
            if ($kk % 2 == 1) {
                echo '</li>';
            }
        }
        ?>
コード例 #10
0
<?php

/**
 *  热图推荐下方广告
 *  通用
 */
if ($this->beginCache('wapjb_below_hotpic', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4576);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #11
0
<?php

/**
 * 疾病文章页第二个个广告
 */
if ($this->beginCache('wapjb_article_disease_second_ads', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4579);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
?>

<!--<li>
    <a href="">
        <img src="images/hot_01.jpg" alt="">
        <p>贝克汉姆登上杂志刊封面</p>
    </a>
    <a href="">
        <img src="images/hot_02.jpg" alt="">
        <p>李敏镐拍写真 卧床撒娇</p>
    </a>
</li>
<li>
    <a href="">
        <img src="images/hot_01.jpg" alt="">
        <p>贝克汉姆登上杂志刊封面</p>
    </a>
    <a href="">
コード例 #12
0
<?php

$ads = new \common\models\ads\Ads();
$content = $ads->ads(4558);
if (isset($content) && !empty($content)) {
    echo $content;
}
コード例 #13
0
<?php

$ads = new \common\models\ads\Ads();
$content = $ads->ads(4557);
if (isset($content) && !empty($content)) {
    echo $content;
}
コード例 #14
0
<?php 
//右侧中间广告位
if ($this->beginCache('jb_ads_seek_right_center', ['cache' => 'cache_file', 'duration' => 3600])) {
    $ads = new \common\models\ads\Ads();
    $ads_br = $ads->ads(4562);
    if (isset($ads_br) && !empty($ads_br)) {
        echo $ads_br;
    }
    $this->endCache();
}
コード例 #15
0
<!-- 第一个广告位 -->
<?php 
if ($this->beginCache('frontend_disease_index_ads01', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4546);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #16
0
<!-- 404 页面图片部分 -->

<?php 
if ($this->beginCache('frontend_404_page_pics', ['cache' => 'cache_file', 'duration' => 24 * 3600])) {
    $ads = new \common\models\ads\Ads();
    $picAd = $ads->ads_content(4456, 0, 8);
    ?>
    <?php 
    foreach ($picAd as $v) {
        ?>
        <li>
            <a href="<?php 
        echo $v['linkurl'];
        ?>
" title="<?php 
        echo $v['adsname'];
        ?>
">
                <img src="http://www.9939.com/uploadfile/<?php 
        echo $v['imageurl'];
        ?>
" alt="<?php 
        echo $v['adsname'];
        ?>
" title="<?php 
        echo $v['adsname'];
        ?>
">
            </a>
        </li>
コード例 #17
0
<?php

/**
 * 疾病文章页第一个广告
 */
if ($this->beginCache('wapjb_article_disease_first_ads', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4578);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #18
0
<?php

/**
 * 疾病图集最后位置----广告
 */
if ($this->beginCache('wapjb_article_disease_images_ending_ads', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4577);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #19
0
<?php

//症状首页左侧广告
if ($this->beginCache('jb_ads_symptom_left_middle', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $ads_lm = $ads->ads(4554);
    if (isset($ads_lm) && !empty($ads_lm)) {
        echo $ads_lm;
    }
    $this->endCache();
}
?>

コード例 #20
0
<?php

$ads = new \common\models\ads\Ads();
$content = $ads->ads(4559);
if (isset($content) && !empty($content)) {
    echo $content;
}
コード例 #21
0
<!-- 文章下面部分的广告位 -->

<?php 
if ($this->beginCache('frontend_article_detail_contentfloorad', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4550);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
?>

<!--<script type="text/javascript">
    var cpro_id="u2305398";
    (window["cproStyleApi"] = window["cproStyleApi"] || {})[cpro_id]={at:"3",rsi0:"670",rsi1:"120",pat:"3",tn:"baiduCustNativeAD",rss1:"#FFFFFF",conBW:"0",adp:"1",ptt:"0",titFF:"%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91",titFS:"14",rss2:"#006600",titSU:"0",tft:"0",tlt:"0"}
</script>
<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>-->
コード例 #22
0
<?php

/**
 * 疾病文章页第五个广告
 */
if ($this->beginCache('wapjb_article_disease_fifth_ads', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4580);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
?>

<!--<li>
    <a href="">
        <img src="images/hot_01.jpg" alt="">
        <p>贝克汉姆登上杂志刊封面</p>
    </a>
    <a href="">
        <img src="images/hot_02.jpg" alt="">
        <p>李敏镐拍写真 卧床撒娇</p>
    </a>
</li>
<li>
    <a href="">
        <img src="images/hot_01.jpg" alt="">
        <p>贝克汉姆登上杂志刊封面</p>
    </a>
    <a href="">
コード例 #23
0
<!--<script type="text/javascript">
var cpro_id="u2302991";
(window["cproStyleApi"] = window["cproStyleApi"] || {})[cpro_id]={at:"3",rsi0:"660",rsi1:"60",pat:"3",tn:"baiduCustNativeAD",rss1:"#FFFFFF",conBW:"1",adp:"1",ptt:"0",titFF:"%E5%BE%AE%E8%BD%AF%E9%9B%85%E9%BB%91",titFS:"14",rss2:"#000000",titSU:"0",tft:"0",tlt:"1"}
</script>
<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>-->

<?php 
if ($this->beginCache('frontend_article_detail_belowrecads', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4551);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #24
0
<?php

if ($this->beginCache('wapjb_zicha_step3_xgrs', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4582);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #25
0
<?php

/**
 * 疾病wap端内容页疾病相关下  ID:4586
 */
if ($this->beginCache('wapjb_symptom_hot_search', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4586);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #26
0
<?php 
//猜你喜欢广告位
if ($this->beginCache('jb_ads_seek_right_bottom', ['cache' => 'cache_file', 'duration' => 3600])) {
    $ads = new \common\models\ads\Ads();
    $ads_br = $ads->ads(4545);
    if (isset($ads_br) && !empty($ads_br)) {
        echo $ads_br;
    }
    $this->endCache();
}
コード例 #27
0
<!-- 文章内容上面部分的广告 -->

<!--<script type="text/javascript">
    /*久久疾病库内容页广告位二左侧文章摘要下方*/
    var cpro_id = "u2302983";
</script>
<script src="http://cpro.baidustatic.com/cpro/ui/c.js" type="text/javascript"></script>-->

<?php 
if ($this->beginCache('frontend_article_detail_contentupperad', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4549);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #28
0
<?php

/**
 * 疾病首页第一个广告
 */
if ($this->beginCache('wapjb_disease_index_first', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4587);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #29
0
<?php

/**
 * 猜你感兴趣----广告
 */
if ($this->beginCache('frontend_disease_common_cnxh', ['cache' => 'cache_file', 'duration' => CACHE_AD_TIME])) {
    $ads = new \common\models\ads\Ads();
    $content = $ads->ads(4543);
    if (isset($content) && !empty($content)) {
        echo $content;
    }
    $this->endCache();
}
コード例 #30
0
<?php

$ads = new \common\models\ads\Ads();
$content = $ads->ads(4560);
if (isset($content) && !empty($content)) {
    echo $content;
}