コード例 #1
0
    static function personInterview($array)
    {
        $str = '';
        $paramArr = array('classid' => $array['classId'], 'showPicFlag' => 1, 'width' => 120, 'height' => 90, 'orderby' => 1, 'limit' => "limit 0,4", 'len' => 40);
        $rows = PageHelper::getTopicList($paramArr);
        if ($rows) {
            foreach ($rows as $row) {
                $str .= '<li><a href="' . $row['url'] . '" ' . $row['title_tmp'] . '><img src="' . $row['img'] . '" width="120" height="90" alt="' . $row['title'] . '" />' . $row['title'] . '</a></li>';
            }
        }
        if ($str) {
            if ($array['classId'] == 291) {
                $tit = '热点专题';
            } else {
                $tit = '企业人物访谈';
            }
            $str = '<div class="r_bd mt10 pb10">
				        <div class="tit_5 tit_6">' . $tit . '</div>
				        <ul class="ft_ul clearfix">
						' . $str . '
				        </ul>
				      </div>';
        }
        return $str;
    }