public static function bubuGao2014($array) { $paramArr = array('func_name' => "zol_t_getproinfo_bymodule", 'param_myjson' => "modid:17774,imgwidth:120,imgheight:90"); $str = '<div class="r_bd mt10"><div class="tit_5 tit_6">vivo智能手机推荐</div><div class="phone-recommend">'; $str = '<div class="module vivo-phone-rec"> <div class="module-header"><h3>vivo智能手机推荐</h3></div> <div class="pic-box">'; $rows = zol_t_db_func_exec($paramArr); if ($rows) { $i = 1; $icnt = count($rows); foreach ($rows as $row) { $paramArr = array('hardwareids' => $row['id'], 'byHardWareFlag' => "1", 'subOrManuLen' => "6", 'getSubClassOrManuFlag' => "1", 'len' => "36", 'orderby' => "1", 'prop' => "2", 'cid' => "74", 'sid' => "428", 'limit' => "limit 0,2"); $rowa = PageHelper::getArticleListByType($paramArr); $digest = cnsubstr($row['mod_digest'], 80); if (false !== strpos($row['price_str'], '.')) { $row['price_str'] = substr($row['price_str'], 0, -3); } $str .= '<ul class="pic-list"> <li> <a href="' . $row['pro_url'] . '" class="pic"><img width="120" height="90" src="' . $row['pic'] . '" alt="' . $row['title'] . '"></a> <div class="pic-title"><a href="' . $row['pro_url'] . '">' . $row['title'] . '</a></div> <p>商家报价:<span class="price">' . $row['price_str'] . '</span></p> <p>网友点评(' . $row['u_num'] . ')</p> <p><a href="' . $row['pro_url'] . '">查看详细>></a></p> </li> </ul> <ul class="news-list">'; foreach ($rowa as $article) { $str .= '<li><a href="' . $article["url"] . '"' . $article["title_tmp"] . '>' . $article["title"] . '</a></li>'; } $str .= '</ul>'; } $str .= '</div></div>'; return $str; } }