本文整理汇总了PHP中products_minierp::drawAttributesJSBehavior方法的典型用法代码示例。如果您正苦于以下问题:PHP products_minierp::drawAttributesJSBehavior方法的具体用法?PHP products_minierp::drawAttributesJSBehavior怎么用?PHP products_minierp::drawAttributesJSBehavior使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类products_minierp
的用法示例。
在下文中一共展示了products_minierp::drawAttributesJSBehavior方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: manualPIAttached
$(this).addClass("ui-icon-close");f
}
);
}
function manualPIAttached(xmlResult, txtStatus) {
if(txtStatus=="success") {
reloadPIList();
}
}
function attachManualPI() {
$("#actAttach").click(function(){
var pid = $("#manpi-act").find("#products_id").val();
var list_cat_pi = $("#manpi-act").find("#list-cat-pi").val();
var list_pi = $("#manpi-act").find("#list-pi").val();
$.post(url, { me_action: "MANUALPIATTACH", products_id:pid, list_cat_pi:list_cat_pi, list_pi:list_pi }, manualPIAttached, "xml");
});
$("#actDone").click(function(){
sopDone("manpi");
});
$("#actManageMpi").click(function(){
window.open("?open=production-instruction-manual");
});
}
$("#setsubcat-ok").click(function() { sopDone("setsubcat"); });
$("#setprofin-ok").click(function() { sopDone("setprofin"); });
$("#setdesc2-ok").click(function() { sopDone("setdesc2"); });
$("#setfamily-ok").click(function() { sopDone("setfamily"); });
' . $class_pm->drawAttributesJSBehavior() . '
';
$title = 'Update Details Product <a href="?open=product-detail&products_id=' . $products_id . '" title="View Product Detail">' . $products_id . '</a>';
示例2: cogsTableReloaded
{
me_action: "SAVECOGSMANUAL",
products_id: ' . $products_id . ',
cogs: cogs
},
cogsTableReloaded,
"html");
});
function cogsTableReloaded(htmlResult, txtStatus) {
if (txtStatus == "success") {
$("#cogs-table").html(htmlResult);
$("#cogs-manual-form").siblings("img").remove();
$("#cogs-manual-set").show();
}
}
' . $class_pm->constructJSElementsUsed('#prodet-tab2') . $class_pm->drawAttributesJSBehavior();
if ($catalog_ebde !== false) {
$javascript .= '
$("#ebde_name_suggest").click(function() {
$("#ebde_name").val($(this).text());
recalcEbayNameLength();
});
$("#ebde_name").keyup(function() {
recalcEbayNameLength();
});
recalcEbayNameLength();
function recalcEbayNameLength() {
var ebde_name = $("#ebde_name").val();
var length_text = "(" + ebde_name.length.toString() + " chars)";
$("#ebde_name_length").text(length_text);
if (ebde_name.length > ' . $ebay_name_max_chars . ') {
示例3: webImage
$content .= '<div style="margin-left:620px;border-left:1px solid #ccc;padding:20px;">';
$content .= '<div style="margin-bottom:20px;">' . webImage($brand['brand_image'], IMAGE_SIZE_THUMBNAIL_2, '', $brand['brand_name']) . '</div>';
$content .= '<h3>' . $product_categories_name[$product['categories_id']] . ' / ' . $product['categories_name'] . '</h3>';
$content .= '<h3>Lengths: ' . ($length != '' ? $length : '<span class="notice">None</span>') . '</h3>';
$content .= '<div id="area-selling-points">';
$content .= drawSellingPointsData($product_selling_points, $product_selling_points_amde);
$content .= '</div>';
$content .= '<br/><br/>';
$content .= '<small class="notice">Used this button to reset selling points (all custom updates will also removed)</small><br/>';
$content .= '<input id="btn-reassign-selling-points" type="button" value="Reassign Selling Points" />';
$content .= '</div>';
$content .= '<div style="clear:both;"></div>';
$content .= '</div>';
//#block-step-5
//we remove all price related script
$javascript = $class_pm->drawAttributesJSBehavior() . '
$("table.form").find("input, textarea").focus(function() {
if($("#btn-update").hasClass("green")) {
$("#btn-update").removeClass("green");
$("#btn-update").attr("disabled", false);
$("#btn-update").val("Save Changes");
}
if($(this).attr("id").search("price")!=-1) $(this).select();
});
function sellingPointsReassigned(txtResult, txtStatus)
{
if(txtStatus=="success") {
$("#area-selling-points").html(txtResult);
}
}
function changesSaved(txtResult, txtStatus) {