Beispiel #1
0
    }
    if ($product->isRecurring()) {
        if ($product->doLimitPayments()) {
            $attributes .= MM_Utils::getIcon('calendar-o', 'beige', '1.3em', '0px', 'Payment Plan', 'margin-right:5px;');
        } else {
            $attributes .= MM_Utils::getIcon('refresh', 'beige', '1.3em', '0px', 'Subscription', 'margin-right:5px;');
        }
    } else {
        $attributes .= "<img title='No Recurring' style='margin-right:5px;' src='" . MM_Utils::getImageUrl("clear") . "' />";
    }
    if ($product->isShippable()) {
        $attributes .= MM_Utils::getIcon('truck', 'beige', '1.3em', '0px', 'Requires Shipping', 'margin-right:5px;');
    } else {
        $attributes .= "<img title='No Shipping Required' style='margin-right:5px;' src='" . MM_Utils::getImageUrl("clear") . "' />";
    }
    if ($product->getSku() != "") {
        $attributes .= MM_Utils::getIcon('barcode', 'beige', '1.3em', '0px', "SKU [" . $product->getSku() . "]", 'margin-right:5px;');
    } else {
        $attributes .= "<img title='No SKU' style='margin-right:5px;' src='" . MM_Utils::getImageUrl("clear") . "' />";
    }
    $rows[] = array(array('content' => "<span title='ID [" . $product->getId() . "]'>" . $product->getName() . "</span>"), array('content' => $product->getBillingDescription()), array('content' => $attributes), array('content' => $accessGranted), array('content' => $purchaseLinks), array('content' => MM_Utils::getStatusImage($product->getStatus())), array('content' => $actions));
}
$headers = array('name' => array('content' => '<a onclick="mmjs.sort(\'name\');" href="#">Name</a>'), 'billing' => array('content' => 'Billing Description'), 'attributes' => array('content' => 'Attributes'), 'access' => array('content' => 'Associated Access'), 'links' => array('content' => 'Purchase Links'), 'status' => array('content' => '<a onclick="mmjs.sort(\'status\');" href="#">Status</a>'), 'actions' => array('content' => 'Actions'));
$dataGrid->setHeaders($headers);
$dataGrid->setRows($rows);
$dgHtml = $dataGrid->generateHtml();
if ($dgHtml == "") {
    $dgHtml = "<p><i>No products found.</i></p>";
}
?>
<div class="mm-wrap">
Beispiel #2
0
?>
 /> Active &nbsp;
				<input type="radio" name="status" value="inactive" onclick="mmjs.processForm()" <?php 
echo $product->getStatus() == "0" ? "checked" : "";
?>
 /> Inactive
			</div>
			
			<input id="mm-status" type="hidden" />
		</td>
	</tr>
	
	<tr>
		<td>SKU</td>
		<td><input type='text' id='mm-sku' value='<?php 
echo $product->getSku();
?>
'  style='width: 125px;'/></td>
	</tr>
	<tr>
		<td colspan="2">
		<div style="width: 540px; margin-top: 5px; margin-bottom:4px;" class="mm-divider"></div>
		</td>
	</tr>
	<tr>
		<td>Associated Access</td>
		<td>
			<input id="mm-associated-access-value" type="hidden" />
			<input id="mm-last-associated-access-type" type="hidden" value="<?php 
echo $lastAccessAssociationType;
?>
Beispiel #3
0
        $mmProductName = $product->getName();
        $mmProductDescription = $product->getBillingDescription() . " ";
        if ($product->hasTrial()) {
            $mmProductDescription .= MM_Utils::getIcon('clock-o', 'beige', '1.3em', '2px', 'Has Trial', 'margin-right:5px;');
        }
        if ($product->isRecurring()) {
            if ($product->doLimitPayments()) {
                $mmProductDescription .= MM_Utils::getIcon('calendar-o', 'beige', '1.3em', '2px', 'Payment Plan', 'margin-right:5px;');
            } else {
                $mmProductDescription .= MM_Utils::getIcon('refresh', 'beige', '1.3em', '2px', 'Subscription', 'margin-right:5px;');
            }
        }
        if ($product->isShippable()) {
            $mmProductDescription .= MM_Utils::getIcon('truck', 'beige', '1.3em', '2px', 'Requires Shipping', 'margin-right:5px;');
        }
        if ($product->getSku() != "") {
            $mmProductDescription .= MM_Utils::getIcon('barcode', 'beige', '1.3em', '2px', "SKU [" . $product->getSku() . "]", 'margin-right:5px;');
        }
    }
    // Actions
    $editActionUrl = 'onclick="mmjs.edit(\'mm-limelight-products-dialog\', \'' . $item->id . '\', 550, 335)"';
    $deleteActionUrl = 'onclick="mmjs.remove(\'' . $item->id . '\')"';
    $actions = MM_Utils::getEditIcon("Edit Product Mapping", '', $editActionUrl);
    $actions .= MM_Utils::getDeleteIcon("Delete Product Mapping", 'margin-left:5px;', $deleteActionUrl);
    // Lime Light Product
    $llProduct = "{$item->limelight_product_name} [{$item->limelight_product_id}]";
    $llProduct .= '<a href="javascript:mmjs.getLimeLightProductDescription(\'' . $item->limelight_product_id . '\');" style="margin-left: 5px; cursor:pointer;" title="View Lime Light Product Info">' . MM_Utils::getIcon("info-circle", "blue", "1.3em", "2px;") . '</a>';
    $rows[] = array(array('content' => "{$item->limelight_campaign_name} [{$item->limelight_campaign_id}]"), array('content' => $llProduct), array('content' => $mmProductName), array('content' => $mmProductDescription), array('content' => $actions));
}
$headers = array('limelight_campaign_name' => array('content' => '<a onclick="mmjs.sort(\'limelight_campaign_name\');" href="#">Lime Light Campaign</a>'), 'limelight_product_name' => array('content' => '<a onclick="mmjs.sort(\'limelight_product_name\');" href="#">Lime Light Product</a>'), 'membermouse_product_id' => array('content' => 'MemberMouse Product'), 'membermouse_product_desc' => array('content' => 'Product Description'), 'actions' => array('content' => 'Actions', 'attr' => 'style="width:50px;"'));
$dataGrid->setHeaders($headers);