当前位置: 首页>>代码示例>>PHP>>正文


PHP product::displayImage方法代码示例

本文整理汇总了PHP中product::displayImage方法的典型用法代码示例。如果您正苦于以下问题:PHP product::displayImage方法的具体用法?PHP product::displayImage怎么用?PHP product::displayImage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在product的用法示例。


在下文中一共展示了product::displayImage方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Sold

$headers['c w150 tac'] = 'Pieces Sold (1)';
$headers['d w150 tac'] = 'Pieces Sold (2)';
$headers['e w100 tac'] = 'Stock Available';
$headers['f w100 tac'] = 'Action';
if (isset($_POST['me_action'])) {
    if ($_POST['me_action'] == 'LOADPRODUCT') {
        $pid = tep_db_prepare_input($_POST['pid']);
        $rowclass = tep_db_prepare_input($_POST['rowclass']);
        $product = new product($pid);
        $row = '<tr id="row-' . $pid . '" class="' . $rowclass . '">';
        foreach ($headers as $hk => $hv) {
            $value = '';
            $hk_classes = explode(' ', $hk);
            switch ($hk_classes[0]) {
                case 'a':
                    $value = $product->displayImage(IMAGE_SIZE_THUMBNAIL_1, IMAGE_SIZE_THUMBNAIL_1);
                    break;
                case 'b':
                    $value .= '<strong>' . $product->brand_name . '</strong>';
                    $value .= '<br /><a href="?open=product-detail&amp;products_id=' . $product->id . '" target="_blank">' . $product->id . ' / ' . $product->code . '</a>';
                    if (!is_null($product->last_keep_timestamp)) {
                        $value .= '<br /><br />';
                        $value .= '<span class="red">&laquo; Last kept on ' . date('d.m.Y', $product->last_keep_timestamp) . ' by ' . $product->last_keep_by . ' &raquo;</span>';
                    }
                    break;
                case 'c':
                    $value = $product->displayYearlySoldTable();
                    break;
                case 'd':
                    $value = $product->displayRecentSoldTable();
                    break;
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:products-kill.php

示例2: constructProductDetailInfo

 use_class('element');
 $prid = $pid;
 $family_id = $p_data['p']['family_id'];
 $stars = $p_data['p']['stars'];
 $obj_family = new products_family(null, $pid);
 $family_name = $obj_family->name;
 $prinfo = constructProductDetailInfo($pid, $p_data, true, true);
 if ($family_id != '') {
     $fm = $obj_family->retrieveMembers();
     foreach ($fm as $fpid) {
         $family_is_locked = (int) $obj_family->productIsFamilyLocked($fpid);
         $family_members[] = "#box-pids-family|{$fpid}||{$family_is_locked}";
     }
 }
 //$primage = webImageWithDetailLinkStars($p_data['p']['products_image'], $image_size_w, $image_size_h, 'Product '.$pid, 'img-border', "Product $pid (Reference product)", '500', '500', $stars);
 $primage = $obj_product->displayImage($image_size_w, $image_size_h, '(Reference Product)');
 /* Moved this as function to object class products_family
    $family_searchkey = $p_data['p']['family_searchkey'];
    
    $q = "SELECT products_id, family_id FROM products";
    $q .= " WHERE products_id != $pid AND family_searchkey = '$family_searchkey'";
    if ($family_id != '') {
        $q .= " AND (family_id != '$family_id'  OR IFNULL(family_id,'') = '')";
    }
    $q .= " UNION";
    $q .= " SELECT p.products_id, p.family_id FROM products_articles pa";
    $q .= " INNER JOIN products p ON p.products_id = pa.products_id";
    $q .= " WHERE pa.products_id != $pid AND pa.family_searchkey = '$family_searchkey'";
    if ($family_id != '') {
        $q .= " AND (p.family_id != '$family_id'  OR IFNULL(p.family_id,'') = '')";
    }
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:products-family.php


注:本文中的product::displayImage方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。