コード例 #1
0
<?php if (false == empty($elitetags)) {?>
<div class="box_c">
    <span class="diseaserightlabel">常见问题 专家回复</span>
    <div class="knowlist">
        <ul>
            <?php 
            foreach($elitetags as $tag) {
            ?>
            <li>·<a target="_blank" href="http://<?=URL_PREFIX?>zixun.haodf.com/zhuanjiahuifu/<?=urlencode(Berkeley::getKey4TagUrl($tag))?>.htm"><?=$tag?></a></li>
            <?php }?>
        </ul>
    </div>
</div>
<?php } ?>
コード例 #2
0
        <div><h3>常见问题 专家回复</h3></div>
    </div>
    <div class="clearfix izixun-doctorReply">
            <?php
            foreach($elitetags as $chunk)
            {
                ?>

        <ul class="fl izixun-doctorReply clearfix">
<?php
                foreach($chunk as $tag)
                {
                ?>
                <li>
                &middot; <a 
                    href="http://<?=URL_PREFIX?>zixun.haodf.com/zhuanjiahuifu/<?=urlencode(Berkeley::getKey4TagUrl($tag))?>.htm"
                    style="color:green"
                    target="_blank" ><?=$tag?></a>
                </li>
                <?php
                }
                ?>

        </ul>
<?php
            }
            ?>
    </div>
</div>
<!--end izixun-abox-->
<?php }?>