$content .= ' <h3 class="red">Product Inactive</h3>'; $content .= ' <input type="button" id="activate-status" name="activate" value="Set Active" title="Click here set this product as active" />'; $content .= ' </div>'; $content .= ' <div id="active-notice">'; $content .= ' <h3 class="green">Product Active</h3>'; $content .= ' <input type="button" id="deactivate-status" name="deactivate" value="Set InActive" title="Click here to set this product as inactive" />'; $content .= ' </div>'; /* $content .= ' <input type="button" id="newdesign-status" name="newdesign" value="Create New Design" title="Click here to create new design base on this product" onclick="location.href=\'?open=project_plan_new\'"/>'; */ $content .= ' <span><a href="?open=project_plan_new&id=' . $product_id . '&link_path=' . $url_link_path . '&hidemenu=true" class="view_webpage" title="New Design"></a><input type="button" id="newdesign-status" name="newdesign" value="Add To Design Process" title="Click here to create/change design base on this product" /></span> '; $content .= '</div>'; //COMMENTS $content .= $class_jc->drawCommentForm($cid, is_null($product['pc']['visible_status'])); $content .= '</div>'; //CLOSE RIGHT DIV $content .= '<form name="formdel" action="?open=sp-product" method="post">'; $content .= '<input type="hidden" name="me_action" value="REMOVEPRODUCT" />'; $content .= '<input type="hidden" name="jng_sp_catalog_id" value="' . $cid . '" />'; $content .= '</form>'; $content .= '<form name="print_label" action="?open=sp-reproduction-labels" method="post" target="_blank">'; $content .= '<input type="hidden" name="me_action" value="PRINTLABELS" />'; $content .= '<input type="hidden" name="products[]" value="' . $product_id . ',10" />'; $content .= '</form>'; $javascript = ' var tempValue = new Array(); var tempBG = new Array(); var statusField = new Array(); var active_status = ' . ($spinfo['active_status'] ? 'true' : 'false') . ';
$content .= '<div id="img">' . webImage($product['p']['products_image'], '120', '120', $product['p']['products_model'], 'img-border img-padding') . '</div>'; if ($have_articles) { $content .= '<div style="margin-top:5px;text-align:center;"><a href="javascript:void();" class="apply-same-price" target="_self">Apply default price<br />to all length</a></div>'; } //if($have_articles) $content .= '<div style="margin-top:5px;"><input type="button" value="Apply default price to all length" /></div>'; $content .= '</div>'; $content .= '<div style="margin-left:150px">'; $content .= tep_draw_table('proman table2', $table2); $content .= '<div> </div>'; $content .= tep_draw_table('proman table1', $table1); $content .= '</div>'; $content .= '<div style="clear:both;"> </div>'; //VC ANALYSIS include 'analysis-vc-detail.php'; //COMMENTS $content .= $class_jc->drawCommentForm($catalog['jng_sp_catalog_id'], is_array($product['pnc'])); $datafile = 'charts/analysis-vc-total-detail.php?sp=' . $jng_sp_id . '&id=' . $products_id; $datafile_url = urlencode($datafile); $javascript = ' swfobject.embedSWF( "charts/open-flash-chart.swf", "vc-detail", "800", "400", "9.0.0", false, { "data-file" : "' . $datafile_url . '" } ); var url = "index.php?open=analysis-vc-total-detail"; var tempValue = ""; function catalogUpdated(xml, txtStatus) { if(txtStatus=="success") { var fieldID = $("id", xml).text(); var fieldName = $("field_name", xml).text();