예제 #1
0
 if($disc_text!='') {
     $content .= '<tr>';
     $content .= '<td>J&amp;G Discount</td>';
     $content .= '<td>'.$disc_text.'</td>';
     $content .= '</tr>';
 }
 */
 $content .= '<tr><td colspan="2"><strong>&raquo; <a href="?open=products-price&amp;pids=' . $products_id . '&amp;hidemenu=true" class="view_webpage">Click here to manage price details</a>!</strong></td></tr>';
 $content .= '<tr><td colspan="2"><hr /></td></tr>';
 $content .= '<tr>';
 $content .= '<tr>';
 $content .= '<td title="Check if this is a wholesale product">Is Wholesale</td>';
 $content .= '<td><input type="checkbox" id="wholesale" name="is_wholesale" value="1" ' . ($obj_product->is_wholesale ? 'checked="checked"' : '') . ' /> <label for="wholesale">Yes</label></td>';
 $content .= '</tr>';
 $content .= '<td>Product Gender</td>';
 $content .= '<td><select name="products_gender" class="w100">' . loadComboListFromArray($class_pm->productGenderName(), null, $products['products_gender']) . '"</select></td>';
 $content .= '</tr><tr>';
 $content .= '<td>Product Age Group</td>';
 $content .= '<td><select name="products_agegroup" class="w100">' . loadComboListFromArray($products_agegroup_options, null, $products['products_agegroup']) . '"</select></td>';
 $content .= '</tr>';
 $content .= '<tr>';
 $content .= '<td>Product Weight</td>';
 $content .= '<td><input type="text" name="products_weight" value="' . $products['products_weight'] . '" class="w100" /> <small id="zeroWeight"><a href="#dialog-zw" class="view_inline" style="color:#900;cursor:help;">0 weight product ...</a></small></td>';
 $content .= '</tr>';
 $content .= '<tr>';
 $content .= '<td>Default Length/Size</td>';
 if (Product::isUsingSizeInsteadOfLength($obj_product->category_id)) {
     $sizes = getLength2Sizes();
     $size_options = loadComboListFromArray($sizes, null, $pnc['products_length'], false);
     $content .= '<td><select name="products_length" class="w100">' . $size_options . '</select></td>';
 } else {
 //P_COMPONENTDATA
 $pcomp_from_desc2 = $class_pm->description2_label($parent_data['pd2'], $parent_data['categories_id']);
 $xml_pcomponentdata = $xmlt->drawTag($xml_product, 'P_COMPONENTDATA');
 //MATERIALS DATA, USED FOR P_COMPONENT AND P_TAGS (Material)
 $materials = $parent_data['materials'];
 //P_COMPONENT
 $xml_pcomponent = $xmlt->drawTag($xml_pcomponentdata, 'P_COMPONENT', '', array('identifier' => 'name', 'key' => 'Material'));
 $xmlt->drawTag($xml_pcomponent, 'VALUE', implode(', ', $materials), array('xml:lang' => 'x-default'));
 //PDESC2
 foreach ($pcomp_from_desc2 as $label => $value) {
     //P_COMPONENT
     $xml_pcomponent = $xmlt->drawTag($xml_pcomponentdata, 'P_COMPONENT', '', array('identifier' => 'name', 'key' => $label));
     $xmlt->drawTag($xml_pcomponent, 'VALUE', $value, array('xml:lang' => 'x-default'));
 }
 //P_TAGS (Attributes)
 $gender = $class_pm->productGenderName($parent_data['p']['products_gender']);
 $p_length = $parent_data['pnc']['products_length'];
 if ($p_length == 0) {
     $zade_sizegrid = 'OneSize';
 } elseif ($p_length < 10) {
     $zade_sizegrid = 'Ring';
 } elseif ($p_length < 30) {
     $zade_sizegrid = 'Armband';
 } elseif ($p_length < 105) {
     $zade_sizegrid = 'Ketten';
 } else {
     $zade_sizegrid = 'Ketten2';
 }
 $xml_ptags = $xmlt->drawTag($xml_product, 'P_TAGS');
 //P_TAG: Gender
 $xml_ptag_gender = $xmlt->drawTag($xml_ptags, 'P_TAG', '', array('identifier' => 'name', 'key' => 'Geschlecht'));
예제 #3
0
$content .= '<div><a id="matinfo-update" href="?open=product-detail-description2&amp;id=' . $products_id . '&amp;hidemenu=true" class="view_webpage">&raquo; Click here to update Materials Info</a></div>';
$content .= '<div id="matinfo-reload" style="display:none;"><a href="' . $_SERVER['REQUEST_URI'] . '" target="_self">&raquo; Reload Page to see Materials Info update</a></div>';
$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>';