for ($c = 0; $c < $cp_columns; $c++) { $content .= '<td> </td>'; $content .= '<td> </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>';
} $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;">•</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;"> </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>';
$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&pids=' . $products_id . '&hidemenu=true&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');