本文整理汇总了PHP中products_minierp::constructJSElementsUsed方法的典型用法代码示例。如果您正苦于以下问题:PHP products_minierp::constructJSElementsUsed方法的具体用法?PHP products_minierp::constructJSElementsUsed怎么用?PHP products_minierp::constructJSElementsUsed使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类products_minierp
的用法示例。
在下文中一共展示了products_minierp::constructJSElementsUsed方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: strpos
$products_id = tep_db_prepare_input($_GET['products_id']);
$designs_id = tep_db_prepare_input($_GET['designs_id']);
$accessed = strpos($_SERVER['HTTP_REFERER'], 'designs-manage') !== false || !empty($designs_id) ? CONST_ACCESS_DESIGNS_MANAGEMENT : '';
if (isset($_POST['me_action'])) {
if ($_POST['me_action'] == 'PRODUCTELUSED') {
$result = $class_pm->templateElementsUsed('?open=designs-products-elements-used&products_id=' . $_POST['products_id'] . '&hidemenu=true&designs_id=' . $designs_id);
echo $result;
exit;
} elseif ($_POST['me_action'] == 'ELEMENTSUSEDADD') {
$class_pm->templateAddElementsUsed();
} elseif ($_POST['me_action'] == 'ELEMENTSUSEDUPDATE') {
$class_pm->templateUpdateElementsUsed();
} elseif ($_POST['me_action'] == 'ELEMENTSUSEDOVR') {
$class_pm->templateOverrideElementsUsed();
}
}
$content = '<div id="area-el-used"></div>';
$title = "Product {$products_id} - Manage Elements Used";
$javascript = '
var accessed = "' . $accessed . '";
var designs_id = "' . $designs_id . '";
document.reloadFocusedTab = function(){
if(accessed != "undefined" && accessed == "' . CONST_ACCESS_DESIGNS_MANAGEMENT . '") window.parent.document.reloadFocusedTab(' . $designs_id . ');
$("#area-el-used").html(img_ajax_load_1);
$.post(url, { me_action: "PRODUCTELUSED", act:"LOAD", products_id: ' . $products_id . ' }, productElUsedLoaded, "html");
}
$("#area-el-used").html(img_ajax_load_1);
$.post(url, { me_action: "PRODUCTELUSED", act:"LOAD", products_id: ' . $products_id . ' }, productElUsedLoaded, "html");
';
$javascript .= $class_pm->constructJSElementsUsed('#area-el-used');
示例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 . ') {