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


PHP products_minierp::drawAttributes方法代码示例

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


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

示例1:

    for ($c = 0; $c < $cp_columns; $c++) {
        $content .= '<td>&nbsp;</td>';
        $content .= '<td>&nbsp;</td>';
    }
    $content .= '</tr>';
}
$content .= '</table>';
$content .= '<br />';
$content .= '<input id="checknameok" type="button" class="green" value="Save Name and Color" />';
$content .= '</div>';
$content .= '</div>';
//close checkname-act
//SET PRODUCT FINSIHING
$content .= '<div id="setprofin-act" class="" style="display:none;">';
$content .= '<h3>Product Attributes - Product Finishing</h3>';
$content .= '<div style="height:60px;">' . $class_pm->drawAttributes($products_id, ProductAttribute::GROUP_ID_PRODUCT_FINISHING) . '</div>';
$content .= '<div><input id="setprofin-ok" type="button" class="green" value="OK, Product Finishing is Set" /></div>';
$content .= '</div>';
//#setprofin-act
//SET SUB CATEGORY
$content .= '<div id="setsubcat-act" class="" style="display:none;">';
$content .= '<h3>Product Attributes - Subcategory</h3>';
$content .= '<div style="height:60px;">' . $class_pm->drawAttributes($products_id, ProductAttribute::GROUP_ID_SUB_CATEGORY . $product['p']['categories_top_id']) . '</div>';
$content .= '<div><input id="setsubcat-ok" type="button" class="green" value="OK, Subcategory is Set" /></div>';
$content .= '</div>';
//#setsubcat-act
//SET DESC 2
$content .= '<div id="setdesc2-act" style="display:none;">';
$content .= '<div><input id="setdesc2-ok" type="button" class="green" value="OK, Material Info is complete" /></div>';
$content .= '<iframe src="?open=product-detail-description2&id=' . $products_id . '&hidemenu=true&hidecopyurl=true" width="800" height="1300" style="border:none;"></iframe>';
$content .= '</div>';
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:designs-details.php

示例2: foreach

 }
 $content .= '<div class="w900" style="' . $style_margin_left . 'margin-top:20px;">';
 $content .= '<hr />';
 $content .= '<h3 style="margin:20px 0 0 0;">Product Attributes</h3>';
 $content .= '<div class="notice" style="margin-bottom:10px;">Using below list you can manage attributes of this product</div>';
 $content .= '<div><table border="0" cellpadding="0" cellspacing="0">';
 foreach ($class_s->groups as $gk => $gv) {
     if (substr($gk, 0, 1) == 'S') {
         //Only show related subcategories
         if ($gk != $obj_product->getCategory()->getCategoryTop()->getSubCategoryGroup()) {
             continue;
         }
     }
     $content .= '<tr><td style="vertical-align:top;padding-top:5px;">&bull;</td>';
     $content .= '<td style="vertical-align:top;padding-top:5px;">' . $gv . '</td>';
     $content .= '<td style="vertical-align:top;">' . $class_pm->drawAttributes($products_id, $gk);
     $content .= '</td></tr>';
     /*
     $content .= '<tr>';
     $content .= '<td class="w200">' . $gv . '</td>';
     $content .= '<td>'.$class_pm->drawAttributes($products_id, $gk).'</td>';
     $content .= '</tr>';
     */
 }
 $content .= '</table></div>';
 $content .= '</div>';
 $content .= '<div style="clear:both;">&nbsp;</div>';
 $content .= '</div>';
 //#prodet-tab1
 //TAB "Images"
 $content .= '<iframe id="prodet-tab1e" src="?open=product-detail-image&products_id=' . $products_id . '&hidemenu=true&hidecopyurl=true" width="1300" height="1650"></iframe>';
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:product-detail.php

示例3: loadComboListFromArray

$content .= '</div>';
//#block-step-3
$content .= '<h3>Step 4: Finalize Product Price</h3>';
$content .= '<div id="block-step-4" style="' . $div_closer_style . '">';
$content .= '<iframe src="/?open=products-price&amp;pids=' . $products_id . '&amp;hidemenu=true&amp;hidecopyurl=true" width="1100" height="540" style="border:none;overflow:hidden;" scrolling="no"></iframe>';
$content .= '</div>';
//#block-step-5
$content .= '<h3>Step 5: Finalize Product Info</h3>';
$content .= '<div id="block-step-5">';
$content .= '<div class="box ui-corner-all" style="margin-bottom:10px;"><table border="0" cellpadding="0" cellspacing="0"><tr><td class="tac" style="width:50px;"><input id="mktemplate" type="checkbox" /></td><td><label for="mktemplate" class="red"><h3 style="margin:0;padding:0;">Set Product as Template</h3><div>When checked, all unfinalize products from the same draft will be overwritten by this product data</div></label></td></tr></table></div>';
$content .= '<div style="float:left;width:600px;">';
$content .= '<div><table class="form" border="0" cellpadding="0" cellspacing="0">';
$content .= '<tr><td width="220">Sales Partners</td><td>' . $spadded . '</td></tr>';
$content .= '<tr><td>Gender Target</td><td><select id="pro-gender" class="input">' . loadComboListFromArray($class_pm->productGenderName(), null, $product['p']['products_gender']) . '"</select></td></tr>';
$content .= '<tr><td>Age Group Target</td><td><select id="pro-agegroup" class="input">' . loadComboListFromArray($class_pm->productAgeGroupName(), null, $product['p']['products_agegroup']) . '"</select></td></tr>';
$content .= '<tr><td>Attribute - Collection</td><td>' . $class_pm->drawAttributes($products_id, 'L') . '</td></tr>';
$content .= '<tr><td>Attribute - Symbol</td><td>' . $class_pm->drawAttributes($products_id, 'Y') . '</td></tr>';
$content .= '<tr><td>Attribute - Topic</td><td>' . $class_pm->drawAttributes($products_id, 'O') . '</td></tr>';
//$content .= '<tr><td class="bold">Fashion Grade</td><td>';
//$content .= '<div id="btn-fashion-show" style="display:none; float:left;" title="Click to add" class="ui-state-default ui-corner-all "><span class="pointer ui-icon ui-icon-plus"></span></div>';
//$content .= '<div id="fashion-content">';
//$content .= '<select id="cmb-attr-F" class="input" style="float:left;">';
//$content .= '<option value="0">Please select fashion grade...</option>';
//$content .= $class_s->drawComboOptions('', 'F', null, '', 'sd.name');
//$content .= '</select>';
//$content .= ' <span id="btn-fashion-add" style="float:left;margin-left:10px;" class="ui-icon ui-icon-circle-plus pointer" title="add"></span>';
//$content .= ' <span id="btn-fashion-cancel" style="float:left;" class="ui-icon ui-icon-circle-close pointer" title="cancel"></span>';
//$content .= '</div>';
//$content .= '<div class="fashion-separator" style="display:none;clear:both;height:10px;"></div>';
//$current_styles = $class_s->retrieveList('F', "shp.products_id='$products_id'");
//foreach($current_styles as $style) $content .= drawSmallBoxWithTrash("fashion-$style[styles_id]", $style['styles_id'], $style['name'], "attr-F", 'remove this collection');
开发者ID:blasiuscosa,项目名称:manobo-2008,代码行数:31,代码来源:designs-finalize.php


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