本文整理汇总了PHP中products_minierp::generateLabelName方法的典型用法代码示例。如果您正苦于以下问题:PHP products_minierp::generateLabelName方法的具体用法?PHP products_minierp::generateLabelName怎么用?PHP products_minierp::generateLabelName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类products_minierp
的用法示例。
在下文中一共展示了products_minierp::generateLabelName方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: Amazon
$content .= '<tr><td>Price / Old Price</td><td><input id="txt-price" type="text" '.$pricestyle.' value="'.number_format($price, 2).'" /> / <input id="txt-price-old" type="text" '.$pricestyle.' value="'.number_format($price_old, 2).'" /> <span class="notice">EUR</span></td></tr>';
$content .= '<tr><td>Discount</td><td><input id="col-discount" type="text" '.$pricestyle.' readonly="readonly" /> <span class="notice">%</span></td></tr>';
$content .= '<tr><td>Net Price / Material Exp.</td><td><input id="col-netprice" type="text" '.$pricestyle.' readonly="readonly" /> / <input id="col-matexp" type="text" '.$pricestyle.' readonly="readonly" value="'.number_format($product['p']['material_expenses'], 2).'" /> <span class="notice">EUR</span></td></tr>';
$content .= '<tr><td>Profit</td><td><input id="col-profit" type="text" '.$pricestyle.' readonly="readonly" /> <span class="notice">EUR</span></td></tr>';
$content .= '<tr><td>Margin</td><td><input id="col-margin" type="text" '.$pricestyle.' readonly="readonly" > <span class="notice">%</span></td></tr>';
$content .= '<tr><td>Premium</td><td><span id="col-premium">0</span></td></tr>';
$content .= '<tr><td colspan="2"> </td></tr>';
*/
//WE WANT TO TEST MAKE SELLING POINTS UNEDITABLE AND JUST SHOW AS VISUAL INFO FOR USERS
//for($spt=0;$spt<5;$spt++) {
// $spt_nr = $spt+1;
// $content .= '<tr><td>Selling Point '.$spt_nr.' <span class="smallText notice">(max. '.SELLING_POINT_MAX_CHARS.' chars)</span></td><td><input id="pspoint'.$spt_nr.'" type="text" class="input2" value="'.$product_selling_points[$spt].'" maxlength="'.SELLING_POINT_MAX_CHARS.'" /></td></tr>';
//}
//Amazon Description
$shortname = $product['pd']['2']['products_short_name'] == '' ? '925 Silber' : $product['pd']['2']['products_short_name'];
$label_data = $class_pm->generateLabelName($products_id, '2', $product['p']['categories_id'], $brandnames[$product['p']['products_brand_id']], '', $product_categories_name[$product['categories_id']], $shortname, $product['pnc']['products_length'], $product['p']['products_model']);
$label_name_for_js = $label_data['label_name_split'];
$label_name = $label_data['label_name'];
$content .= '<tr class="amvdrows"><td colspan="2"><h3 style="margin:0;padding:0;">Details for Amazon (AM.DE)</h3></td></tr>';
//we move price update to next step using our new module
//$content .= '<tr class="amvdrows"><td>Selling Price / Default</td><td><input id="txt-amvd-price-new" type="text" '.$pricestyle.' '.(($added_to_amvd) ? '' : 'disabled="disabled"').' value="'.$price_new.'" /> / <input id="col-amvd-price-new-default" type="text" '.$pricestyle.' readonly="readonly" /> <span class="notice">EUR</span></td></tr>';
//$content .= '<tr class="amvdrows"><td>Factor</td><td><input id="col-amvd-factor" type="text" '.$pricestyle.' readonly="readonly" /></td></tr>';
$content .= '<tr class="amvdrows"><td>Short Name</td><td><input id="pshortname" type="text" class="input2" value="' . htmlspecialchars($shortname) . '" maxlength="12" /><br /><span class="smallText notice">* Max 12 chars, will be printed in AM.DE EAN Label</span></td></tr>';
$content .= '<tr class="amvdrows"><td>Auto Generated Name</td><td><input type="hidden" id="plabelname_split" value="' . htmlspecialchars($label_name_for_js) . '" /><input id="plabelname" type="text" class="input2 disabled" value="' . $label_name . '" readonly="readonly" /><br /><span class="smallText notice">* using default length as sample</span></td></tr>';
$content .= '<tr class="amvdrows"><td>Collection</td><td><input type="text" class="input2" id="colname" name="colname" value="' . htmlspecialchars($product['pd']['2']['collection_name']) . '" /></td></tr>';
$content .= '<tr class="amvdrows"><td colspan="2"> </td></tr>';
$content .= '<tr><td colspan="2"><h3 style="margin:0;padding:0;">Improved Flag Confirmation</h3></td></tr>';
$content .= '<tr><td>Image Improved</td><td><input id="impr-img" type="checkbox" ' . $improved_image_checked . '/> <label for="impr-con">Confirm all images are using new Improved Standard</label></td></tr>';
$content .= '<tr><td>Content Improved</td><td><input id="impr-con" type="checkbox" ' . $improved_content_checked . '/> <label for="impr-img">Confirm all products information are completed</label></td></tr>';
$content .= '<tr><td colspan="2"> </td></tr>';
$content .= '<tr><td id="saving" colspan="2" style="text-align:right;"><input id="btn-update" class="button" type="button" value="Save Changes" /></td></tr>';
示例2: htmlspecialchars
$content .= '<table border="0" cellpadding="2" cellspacing="2">';
$content .= '<tr>';
$content .= '<td width="120">Name</td>';
$content .= '<td><input type="hidden" name="languages_id" value="' . $lid . '" /><input type="hidden" name="brand_name" value="' . $products_data['p']['products_brand_name'] . '"><input type="hidden" name="cat_name" value="' . $products_data['categories_name'] . '"><input type="text" class="input2 name" id="name-' . $lid . '" value="' . utf8_decode(htmlspecialchars(utf8_encode($description[$lid]['products_name']))) . '" /><br /><span class="smallText brand"></span><br /><span class="smallText no-brand" style="color:#999;"></span></td>';
$content .= '</tr>';
$content .= '<tr>';
$content .= '<td valign="top">Description</td>';
$content .= '<td><textarea id="desc-' . $lid . '" class="input2" rows="10">' . $textarea_desc_text . '</textarea></td>';
$content .= '</tr>';
$content .= '<tr>';
$content .= '<td valign="top">Keywords</td>';
$content .= '<td><input type="hidden" name="languages_id" value="' . $lid . '" /><input type="text" id="keywords-' . $lid . '" class="input2 keywords" value="' . $textarea_keyw_text . '" /><br /><span class="smallText"></span></td>';
$content .= '</tr>';
if ($lid == 2) {
$content .= '<tr>';
$label_data = $class_pm->generateLabelName($products_id, $lid, $products_data['categories_id'], '', '', '', $description[$lid]['products_short_name'], '', $products_data['products_model'], $description[$lid]['products_promo_name']);
$label_name_for_js = $label_data['label_name_split'];
$label_name = $label_data['label_name'];
$content .= '<tr><td colspan="2"> </td></tr>';
$content .= '<tr><td colspan="2" class="bold">Amazon Germany Special Description</td></tr>';
$content .= '<tr>';
$content .= '<td>Promotion Name</td>';
$content .= '<td><input type="text" class="input2" id="promoname-' . $lid . '" name="promoname" value="' . htmlspecialchars($description[$lid]['products_promo_name']) . '" /><br /><span class="smallText notice">* Additional Names for promotional events in Amazon Germany</span></td><br /><span></span>';
$content .= '</tr>';
$content .= '<tr>';
$content .= '<td>Short Name</td>';
$content .= '<td><input type="text" class="input2" id="shortname-' . $lid . '" name="shortname" value="' . htmlspecialchars($description[$lid]['products_short_name']) . '" maxlength="12" /><br /><span class="smallText notice">* Max 12 chars, will be printed in Amazon Germany EAN Label</span></td>';
$content .= '</tr>';
$content .= '<tr>';
$content .= '<td>Full Name</td>';
$content .= '<td><input type="hidden" name="labelname_split" value="' . $label_name_for_js . '" /><input type="text" name="labelname" value="' . htmlspecialchars($label_name) . '" class="input2 disabled" readonly="readonly" /><br /><span class="smallText notice">* Automatically generated, real time preview</span></td>';