本文整理汇总了PHP中Technology::GetAllTechnologyByCategoryId方法的典型用法代码示例。如果您正苦于以下问题:PHP Technology::GetAllTechnologyByCategoryId方法的具体用法?PHP Technology::GetAllTechnologyByCategoryId怎么用?PHP Technology::GetAllTechnologyByCategoryId使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Technology
的用法示例。
在下文中一共展示了Technology::GetAllTechnologyByCategoryId方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Technology
$this_content .= ' <a href="single-product.php?id=' . $item->Id . '"><img src="' . $objItemImage->getPath() . $oItemImage[0]->ItemImageUrl . '" alt="' . $item->ItemName . '"></a>';
$this_content .= ' <a href="single-product.php?id=' . $item->Id . '">' . $item->ItemName . '</a>';
$this_content .= '</div>';
$cClass = '';
// Turn off active after first item
}
echo " category_names[" . $cat->Id . "] = '" . $cat->CategoryName . "';\n";
$this_content .= "</div>";
$cat_content[$cat->Id] = $this_content;
echo " category_content[" . $cat->Id . "] = '" . $this_content . "';\n";
}
$objTechnology = new Technology();
$tech_content = array();
foreach ($oCategory as $cat) {
$this_content = "";
$oTechnology = $objTechnology->GetAllTechnologyByCategoryId($cat->Id);
$iCnt = 3;
// Go ahead and set it to the max to kick of a new div
$iTotalInView = 3;
$cClass = ' active';
foreach ($oTechnology as $technology) {
if ($technology->IsActive == '1') {
$iCnt++;
if ($iCnt > $iTotalInView) {
if ($cClass == '') {
$this_content .= '</div>';
}
$this_content .= '<div class="item' . $cClass . '">';
$iCnt = 1;
}
$this_content .= '<div class="menu-item col-sm-4">';