function renderFieldOption($optionId, $affiliateId, $profileId) { ?> <div id="mm-partner-container-<?php echo $optionId; ?> "> <input id="mm-partner-<?php echo $optionId; ?> " type="text" size="15" class="field-option" value="<?php echo $affiliateId; ?> " /> <select id='mm-commission-profile-<?php echo $optionId; ?> '> <option value="<?php MM_CommissionProfile::$DFLT_COMMISSION_PROFILE_ID; ?> " <?php echo $profileId == MM_CommissionProfile::$DFLT_COMMISSION_PROFILE_ID ? "selected" : ""; ?> > — Use system default — </option> <?php echo MM_HtmlUtils::getCommissionProfilesList($profileId); ?> </select> <a href="javascript:mmjs.addFieldOption('<?php echo htmlentities(MM_Utils::getIcon('plus-circle', 'green', '1.2em', '1px'), ENT_QUOTES); ?> ', '<?php echo htmlentities(MM_Utils::getIcon('trash-o', 'red', '1.2em', '1px'), ENT_QUOTES); ?> ');"><?php echo MM_Utils::getIcon('plus-circle', 'green', '1.2em', '1px'); ?> </a> <?php if ($optionId > 1) { ?> <a href="javascript:mmjs.removeFieldOption('mm-partner-container-<?php echo $optionId; ?> ');"><?php echo MM_Utils::getIcon('trash-o', 'red', '1.2em', '1px'); ?> </a> <?php } ?> </div> <?php }
function renderFieldOption($optionId, $value) { ?> <div id="mm-field-option-container-<?php echo $optionId; ?> "> <input id="mm-field-option-<?php echo $optionId; ?> " type="text" size="30" class="field-option" value="<?php echo $value; ?> " /> <a href="javascript:mmjs.addFieldOption('<?php echo htmlentities(MM_Utils::getIcon('plus-circle', 'green', '1.2em', '1px'), ENT_QUOTES); ?> ', '<?php echo htmlentities(MM_Utils::getIcon('trash-o', 'red', '1.2em', '1px'), ENT_QUOTES); ?> ');"><?php echo MM_Utils::getIcon('plus-circle', 'green', '1.2em', '1px'); ?> </a> <?php if ($optionId > 1) { ?> <a href="javascript:mmjs.removeFieldOption('mm-field-option-container-<?php echo $optionId; ?> ');"><?php echo MM_Utils::getIcon('trash-o', 'red', '1.2em', '1px'); ?> </a> <?php } ?> </div> <?php }
public static function getImage($statusId, $showTitle = true) { $title = $showTitle ? self::getName($statusId) : ""; switch ($statusId) { case self::$ACTIVE: return MM_Utils::getIcon('play-circle', 'green', '1.3em', '2px', $title); case self::$CANCELED: return MM_Utils::getIcon('stop', 'red', '1.2em', '1px', $title); case self::$LOCKED: return MM_Utils::getIcon('lock', 'yellow', '1.4em', '2px', $title); case self::$PAUSED: return MM_Utils::getIcon('pause', 'turq', '1.2em', '1px', $title); case self::$OVERDUE: return MM_Utils::getIcon('credit-card', 'orange', '1.3em', '1px', $title); case self::$ERROR: return MM_Utils::getIcon('warning', 'red', '1.2em', '1px', $title); case self::$EXPIRED: return MM_Utils::getIcon('times-circle', 'yellow', '1.3em', '2px', $title); case self::$PENDING_ACTIVATION: return MM_Utils::getIcon('clock-o', 'blue', '1.3em', '1px', $title); case self::$PENDING_CANCELLATION: return MM_Utils::getIcon('clock-o', 'red', '1.3em', '1px', $title); } return ""; }
disabled='disabled' <?php } ?> > <option value=''>None</option> <?php echo $p->existing_corepage_features; ?> </select> <?php if (isset($p->default_icon)) { ?> <a id='default_core_page' onclick="mmdialog_js.showDialog('mm-corepage-dialog', 'MM_CorePagesView', 420, 200, 'Change Core Page');" style="cursor: pointer; margin-left:5px;"> <?php echo MM_Utils::getIcon('pencil', 'yellow', '1.3em', '2px'); ?> </a> <?php } ?> </div> <?php if (!isset($p->default_icon) || isset($p->default_icon) && empty($p->default_icon)) { ?> <div id='subtypes'></div> <?php } ?> </div> </div>
?> <a href="javascript:mmjs.getLimeLightProducts();" title="Get Lime Light Products"><?php echo MM_Utils::getIcon("download", "green", "1.4em", "2px;"); ?> </a> <a href="javascript:mmjs.getLimeLightProductDescription('');" title="View Lime Light Product Info"><?php echo MM_Utils::getIcon("info-circle", "blue", "1.3em", "1px;"); ?> </a> </div> <div id="limelight_select_product_section" style="display:none;"> <select name='limelight_product_id_selector' id='limelight_product_id_selector' style="display:none;"> </select> <a href="javascript:mmjs.getLimeLightProductDescription('');" title="View Lime Light Product Info"><?php echo MM_Utils::getIcon("info-circle", "blue", "1.3em", "1px;"); ?> </a> </div> </td> </tr> </table> <input id='id' type='hidden' value='<?php if ($limeLightProduct->getId() != 0) { echo $limeLightProduct->getId(); } ?> ' /> <input id='limelight_campaign_name' name='limelight_campaign_name' type='hidden' /> <input id='limelight_product_name' name='limelight_product_name' type='hidden' value='<?php
?> ')" style="cursor:pointer" title="previous"><?php echo MM_Utils::getIcon('chevron-circle-left', 'light-blue', '1.4em', '1px'); ?> </a> <?php echo intval($p->crntPage) + 1; ?> <a onclick="mmjs.dgNextPage('<?php echo $p->crntPage; ?> ', '<?php echo $p->totalPages; ?> ')" style="cursor:pointer" title="next"><?php echo MM_Utils::getIcon('chevron-circle-right', 'light-blue', '1.4em', '1px'); ?> </a> of <?php echo $p->totalPages; ?> pages </span> <span style="margin-left: 30px;"> Show <select onchange="mmjs.dgSetResultSize(this)"> <?php echo MM_HtmlUtils::getDataGridResultsCount($p->resultSize); ?>
public static function getStatusImage($status) { if ($status == '1') { return MM_Utils::getIcon('circle', 'green', '1em', '2px', 'Active'); } else { if ($status == '0') { return MM_Utils::getIcon('circle-o', 'red', '1em', '2px', 'Inactive'); } else { return MM_NO_DATA; } } }
> <?php if (!$enableUsernameChange) { ?> <span class="description">Username cannot be changed.</span> <a href="https://membermouse.uservoice.com/knowledgebase/articles/319089-configure-if-member-can-change-their-username" target="_blank"><em>Learn more</em></a> <?php } ?> </td> </tr> <tr> <td style="padding-top:10px;">Password</td> <td> <div style="margin-top:10px; margin-bottom:15px;"> <?php echo MM_Utils::getIcon('paper-plane-o', 'green', '1.2em', '1px'); ?> <a style='cursor: pointer;' onclick="mmjs.sendPasswordEmail('<?php echo $user->getId(); ?> ');">Email reset password email to member</a> </div> <div style="margin-bottom:5px;"> <span style="margin-right:18px;">New Password</span> <input id="mm-new-password" type="password"> </div> <div style="margin-bottom:10px;"> Confirm Password <input id="mm-confirm-password" type="password"> </div> </td> </tr>
<div class="mm-wrap"> <?php if (MM_MemberMouseService::hasPermission(MM_MemberMouseService::$FEATURE_PUSH_NOTIFICATIONS)) { ?> <div class="mm-button-container"> <a onclick="mmjs.create('mm-push-notification-dialog', '510', '570')" class="mm-ui-button green"><?php echo MM_Utils::getIcon('plus-circle', '', '1.2em', '1px'); ?> Create Push Notification</a> </div> <div class="clear"></div> <?php echo $dgHtml; ?> <?php } else { ?> <?php echo MM_Utils::getIcon('lock', 'yellow', '1.3em', '2px'); ?> This feature is not available on your current plan. To get access, <a href="<?php echo MM_MemberMouseService::getUpgradeUrl(MM_MemberMouseService::$FEATURE_PUSH_NOTIFICATIONS); ?> " target="_blank">upgrade your plan now</a>. <?php } ?> </div>
'; alert(message.replace(/[\|]+/g, "\n\n")); <?php } foreach ($expandedRows as $row) { if (isset($rowCache[$row])) { ?> mmjs.toggleRow('<?php echo $rowCache[$row]; ?> ', '<?php echo $totalRows; ?> '); <?php } } ?> </script> <?php } else { ?> <?php echo MM_Utils::getIcon('lock', 'yellow', '1.2em', '1px'); ?> This feature is not available on your current plan. To get access, <a href="<?php echo MM_MemberMouseService::getUpgradeUrl(MM_MemberMouseService::$FEATURE_DRIP_CONTENT_SCHEDULE); ?> " target="_blank">upgrade your plan now</a>. <?php }
</table> </div> <div class="mm-button-container"> <a id="mm-show-filters-btn" href="javascript:mmjs.showFilters();" class="mm-ui-button blue" <?php echo $showFilters ? "style=\"display:none;\"" : ""; ?> ><?php echo MM_Utils::getIcon('search-plus'); ?> Filter</a> <a id="mm-hide-filters-btn" href="javascript:mmjs.hideFilters();" class="mm-ui-button" <?php echo !$showFilters ? "style=\"display:none;\"" : ""; ?> ><?php echo MM_Utils::getIcon('search-minus'); ?> Filter</a> <a onclick="mmjs.clearLog()" class="mm-ui-button" style="margin-left:15px;">Delete Diagnostic Data</a> </div> <div id="mm-filter-criteria" <?php echo $showFilters ? "" : "style=\"display:none;\""; ?> > <div id="mm-filter-criteria-container" style="width:98%"> <?php echo $view->generateFilterCriteriaForm($_POST); ?> </div> <div style="width: 98%; margin-top: 0px; margin-bottom: 10px;" class="mm-divider"></div> </div>
function goToCheckoutPage(checkoutUrl) { window.location.href = appendAffiliateParams(checkoutUrl); } </script> <div id="mm-main-container"> <div style="margin-top:10px; margin-bottom:15px;"> <a href=""></a> <a href='javascript:<?php echo $compFunction; ?> ' class="mm-ui-button"> <?php echo MM_Utils::getIcon('ticket', '', '1.2em'); echo "Comp {$accessName}"; ?> </a> </div> <div style="width: 425px; margin-bottom: 15px;" class="mm-divider"></div> <div style="margin-bottom:10px;"> <span class="mm-section-header">Charge for <?php echo $accessName; ?> </span> </div> <div style="margin-bottom:10px;">
$expirationDate = $appliedBundle->getExpirationDate(true); } else { $expirationDate = MM_NO_DATA; } $cancellationDate = ""; if ($appliedBundle->isPendingCancellation()) { $cancellationDate = $appliedBundle->getCancellationDate(true); } else { $cancellationDate = MM_NO_DATA; } $rows[] = array(array('content' => MM_Utils::abbrevString($bundle->getName())), array('content' => $status), array('content' => "<span style='font-family:courier;'>" . number_format($user->getDaysWithBundle($bundle->getId())) . "</span>"), array('content' => $appliedBundle->getApplyDate(true)), array('content' => $expirationDate), array('content' => $cancellationDate), array('content' => $actions)); } // membership level bundles $membershipBundles = $membership->getBundles(); foreach ($membershipBundles as $id => $name) { $status = MM_Utils::getIcon('user', 'blue', '1.3em', '2px', "Bundle applied through membership"); $rows[] = array(array('content' => $name), array('content' => $status), array('content' => MM_NO_DATA), array('content' => MM_NO_DATA), array('content' => MM_NO_DATA), array('content' => MM_NO_DATA), array('content' => MM_NO_DATA)); } $headers = array('bundle' => array('content' => 'Bundle'), 'status' => array('content' => 'Status'), 'days' => array('content' => '<span title=\'Days with Bundle\'>Days...</span>'), 'date_added' => array('content' => 'First Applied'), 'date_expires' => array('content' => 'Expires On'), 'date_cancels' => array('content' => 'Cancels On'), 'actions' => array('content' => 'Actions')); $dataGrid->setHeaders($headers); $dataGrid->setRows($rows); $dgHtml = $dataGrid->generateHtml(); if ($dgHtml == "") { $dgHtml = "<p><em>No bundles applied.</em></p>"; } ?> <div id="mm-grid-container"> <?php echo $dgHtml; ?> </div>
From: <span style="font-family:courier;"><?php echo $params[MM_ActivityLog::$PARAM_EMAIL_FROM_ADDRESS]; ?> </span><br/> Subject: <span style="font-family:courier;"><?php echo $params[MM_ActivityLog::$PARAM_EMAIL_SUBJECT]; ?> </span></p> <p><span style="font-family:courier;"><?php echo nl2br($params[MM_ActivityLog::$PARAM_EMAIL_BODY]); ?> </span></p> </div> <?php $details .= " — "; $details .= " <a onclick=\"viewInfo({$item->id})\" style='cursor: pointer;' title='View Email'>" . MM_Utils::getIcon('file-text', 'blue', '1.2em', '1px', '', 'margin-right:4px;') . "<span style='font-family:courier;'>" . MM_Utils::abbrevString($params[MM_ActivityLog::$PARAM_EMAIL_SUBJECT]) . "</span></a>"; } } else { $details .= $urlParts[0]; } } break; } } $row = array(); $row[] = array('content' => $eventType); if (!$isMemberDetailsArea) { $row[] = array('content' => $memberLink); } $row[] = array('content' => $details); $row[] = array('content' => $ipAddress);
$dataGrid->recordName = "employee"; break; case MM_TYPE_PRODUCT: $dataGrid->recordName = "product"; break; case MM_TYPE_CUSTOM_FIELD: $dataGrid->recordName = "custom field"; break; } $rows = array(); $headers = array('action' => array('content' => '', 'attr' => 'style="width:20px;"'), 'id' => array('content' => 'ID', 'attr' => 'style="width:20px;"'), 'name' => array('content' => 'Name')); if ($p->objectType == MM_TYPE_PRODUCT) { $headers['access'] = array('content' => 'Associated Access'); } foreach ($data as $key => $item) { $action = '<a title="Insert ID \'' . $item->id . '\'" onclick="stl_js.insertContent(\'' . $item->id . '\')" style="cursor:pointer;">' . MM_Utils::getIcon('plus-circle', 'green', '1.4em', '1px') . '</a>'; $row_array = array(array('content' => $action), array('content' => $item->id), array('content' => MM_Utils::abbrevString($item->name, 25))); if ($p->objectType == MM_TYPE_PRODUCT) { $product = new MM_Product($item->id); // Associated Access $accessGranted = ""; $membership = $product->getAssociatedMembership(); if ($membership->isValid()) { $accessGranted .= MM_Utils::getAccessIcon(MM_OrderItemAccess::$ACCESS_TYPE_MEMBERSHIP); $accessGranted .= " " . MM_Utils::abbrevString($membership->getName(), 25) . "</a>"; } if (empty($accessGranted)) { $bundle = $product->getAssociatedBundle(); if ($bundle->isValid()) { $accessGranted .= MM_Utils::getAccessIcon(MM_OrderItemAccess::$ACCESS_TYPE_BUNDLE); $accessGranted .= " " . MM_Utils::abbrevString($bundle->getName(), 25) . "</a>";
<?php echo MM_Utils::getIcon('shopping-cart', 'blue', '1.2em', '1px'); ?> Order History (most recent orders) <a href="[MM_Form_Button type='viewOrderHistory']" id="mm-order-history-view-all-button" class="mm-update-button">view all</a> </div> <div id="mm-order-history-body" class="mm-myaccount-content-wrapper"> [MM_Form_Data name='orderHistory'] </div> </div> [MM_Form_Section type='gifts'] <div id="mm-gifts-section" class="mm-myaccount-module"> <div id="mm-gifts-header" class="mm-myaccount-module-header"> <?php echo MM_Utils::getIcon('gift', 'purple', '1.2em', '1px'); ?> Gifts Purchased (most recent gifts) <a href="[MM_Form_Button type='viewGiftHistory']" id="mm-gifts-view-all-button" class="mm-update-button">view all</a> </div> <div id="mm-gifts-body" class="mm-myaccount-content-wrapper"> [MM_Form_Data name='gifts'] </div> </div> [/MM_Form_Section] [MM_Form_Section type='socialLogin'] <div id="mm-social-login-section" class="mm-myaccount-module"> <div id="mm-social-login-header" class="mm-myaccount-module-header"> Social Networks </div>
$lcvDescription = ""; echo "<span style='margin-left: 5px; background-color:#fff; padding: 2px 5px 6px; border-radius: 3px; font-size: .9em; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);'>"; echo "<span style='color:#888'><abbr title=\"Lifetime Customer Value\">LCV</abbr></span> "; if ($totalPayments > 0 && $totalRefunds > 0) { $lcvDescription .= _mmf($totalPayments) . " Paid"; if ($totalRefunds > 0) { $lcvDescription .= " - "; $lcvDescription .= _mmf($totalRefunds) . " Refunded"; } $lcvDescription .= " = " . _mmf($totalLCV) . " LCV"; } echo "<span style='color:#9c3;'><abbr title=\"{$lcvDescription}\">" . _mmf($totalLCV) . "</abbr></span>"; echo "</span>"; ?> </h3> <p> <?php echo MM_Utils::getIcon('user', 'blue', '1.2em', '1px', "Membership Level", "margin-right:8px;"); if ($user->isImported()) { echo MM_Utils::getIcon('sign-in', 'blue', '1.2em', '1px', "Membership Level (Member Imported)", "margin-right:8px;"); } echo $user->getMembershipName(); $appliedBundles = $user->getAppliedBundleNames(); if (!empty($appliedBundles)) { echo MM_Utils::getIcon('cubes', 'yellow', '1.2em', '1px', "Bundles", "margin-left:15px;"); echo $appliedBundles; } ?> </p> </div>
echo $p->bundleId; ?> ' /> <?php $calcMethodDesc = "This determines how MemberMouse will calculate the number of days a member has had a bundle. This is used primarily in determining where a member is in a drip content schedule and therefore what content they get access to. By default, the calculation is done based on the date the bundle was first applied to the member's account, but you can choose to have the calculation done based on a custom date or fix the number of days to a specific number."; ?> <p>'Days with Bundle' Calculation Method<?php echo MM_Utils::getInfoIcon($calcMethodDesc); ?> </p> <?php if (!$canChangeDaysCalc) { ?> <div style="margin-bottom:5px;"> <?php echo MM_Utils::getIcon('warning', 'yellow', '1.3em', '1px'); ?> You can modify the number of days this bundle is fixed at, but to change the calculation method you must change the bundle's status to Active. </div> <?php } ?> <div style="margin-bottom:5px;"></div> <div style="margin-bottom:5px;"> <input type='radio' <?php echo !$canChangeDaysCalc ? "disabled='disabled'" : ""; ?> onchange="mmjs.changeCalcMethodHandler('<?php echo MM_DaysCalculationTypes::$JOIN_DATE; ?>
$transactionTypeIcons .= MM_Utils::getIcon('money', 'red', '1.4em', '2px', "Refund"); break; default: $transactionTypeIcons .= MM_NO_DATA; break; } $affiliateId = MM_NO_DATA; $subAffiliateId = MM_NO_DATA; if (!empty($item->affiliate_id)) { $affiliateId = $item->affiliate_id; } if (!empty($item->sub_affiliate_id)) { $subAffiliateId = $item->sub_affiliate_id; } if ($item->is_test) { $transactionTypeIcons .= MM_Utils::getIcon('flask', 'grey', '1.3em', '2px', "Test Transaction", "padding-left:4px;"); } // build datagrid row $row = array(); $row[] = array('content' => $transactionTypeIcons); $row[] = array('content' => MM_Utils::dateToLocal($item->transaction_date)); $row[] = array('content' => "<a href='" . MM_ModuleUtils::getUrl(MM_MODULE_MANAGE_MEMBERS, MM_MODULE_MEMBER_DETAILS_TRANSACTION_HISTORY) . "&user_id={$item->user_id}'>{$item->order_number}</a>"); $row[] = array('content' => _mmf($item->transaction_amount, $item->currency)); $row[] = array('content' => $fullName); $row[] = array('content' => "<a href='" . MM_ModuleUtils::getUrl(MM_MODULE_MANAGE_MEMBERS, MM_MODULE_MEMBER_DETAILS_GENERAL) . "&user_id={$item->user_id}'>" . MM_Utils::abbrevString($item->user_email, 30) . "</a>"); $row[] = array('content' => "<span style='font-family:courier; font-size:11px;'>" . MM_Utils::abbrevString($affiliateId, 15) . "</span>"); $row[] = array('content' => "<span style='font-family:courier; font-size:11px;'>" . MM_Utils::abbrevString($subAffiliateId, 15) . "</span>"); $row[] = array('content' => MM_Utils::abbrevString($item->description, 30)); $datagridRows[] = $row; } $dataGrid->setHeaders($headers);
<td style="width:60px;"><strong>Action</strong></td> <td><strong>Details</strong></td> </tr> <?php foreach ($log as $logEvent) { ?> <tr> <td style="vertical-align:top;"><?php echo MM_Utils::dateToLocal($logEvent->date); ?> </td> <td style="vertical-align:top;"><?php if ($logEvent->mode == MM_SafeMode::$MODE_ENABLED) { echo MM_Utils::getIcon('play-circle', 'green', '1.3em', '2px', "Safe Mode Enabled"); } else { echo MM_Utils::getIcon('stop', 'red', '1.2em', '1px', "Safe Mode Disabled"); } ?> </td> <td><span style="font-size:11px"><?php echo $logEvent->message; ?> </span></td> </tr> <?php } ?> </table> </div> <?php }
?> Create Member</a> <a href="<?php echo MM_ModuleUtils::getUrl(MM_MODULE_MANAGE_MEMBERS, MM_MODULE_IMPORT_WIZARD); ?> " class="mm-ui-button" style="margin-left:15px;"><?php echo MM_Utils::getIcon('upload'); ?> Import Members</a> <?php if ($showCsvExportButton) { ?> <a class="mm-ui-button" onclick="mmjs.csvExport(0);" style="margin-left:15px;"><?php echo MM_Utils::getIcon('download'); ?> Export Members</a> <?php } ?> </div> <?php } ?> <div style="width: 98%; margin-top: 10px; margin-bottom: 0px;" class="mm-divider"></div> <div id="mm-advanced-search" <?php echo $showSearch ? "" : "style=\"display:none;\""; ?>
$unsupportedPaymentServices[] = $aps->getName(); } } $warningMsg = ""; $warningBox = ""; $numUnsupported = count($unsupportedPaymentServices); if ($numUnsupported > 0) { $lastService = ""; if ($numUnsupported > 1) { $lastService = array_pop($unsupportedPaymentServices); $lastService = " and {$lastService}"; } $warningMsg = "The currently selected currency is not supported by the " . implode(", ", $unsupportedPaymentServices) . "{$lastService} payment services"; } if (!empty($warningMsg)) { $warningBox = MM_Utils::getIcon('warning', 'yellow', '1.3em', '1px', '', 'margin-left:5px;') . " {$warningMsg}"; } ?> <script> function showCurrencyFormat() { jQuery("#mm-currency-format").show(); jQuery("#mm-currency-format").dialog({autoOpen: true, width: "600", height: "350"}); } </script> <div class="mm-wrap"> <p class="mm-header-text">Currency <span style="font-size:12px;"><a href="https://membermouse.uservoice.com/knowledgebase/articles/319033-currency-settings" target="_blank">Learn more</a></span></p> <div style="clear:both; height: 10px;"></div> <div style="margin-bottom:10px; width:550px;"> Setting the currency indicates which currency customers will pay in and also determines how all product and coupon prices are formatted across the site. If you're changing the currency and you've already defined product and coupon prices, you'll need to go
?> ' id='litle_report_group' name='payment_service[litle][report_group]' style='width: 160px; font-family:courier; font-size:11px;' /> </p> </div> <div id="litle-test-info" style="margin-bottom:10px; margin-left:10px;"> <div style="margin-bottom:5px;"> <?php echo MM_Utils::getIcon('credit-card', 'blue', '1.3em', '1px', "Test Credit Card Numbers", "margin-right:3px;"); ?> <a href="javascript:showLitleTestCardNumbers()">Test Credit Card Numbers</a> </div> <div> <?php echo MM_Utils::getIcon('flask', 'blue', '1.3em', '1px', 'Setup Test Data', "margin-right:3px;"); ?> <a href="<?php echo MM_ModuleUtils::getUrl(MM_ModuleUtils::getPage(), MM_MODULE_TEST_DATA); ?> " target="_blank">Configure Test Data</a> </div> </div> <div id="litle-credentials-section"> <div style="margin-bottom:10px;"> <span>Merchant ID</span> <p style="margin-left:10px; font-family:courier; font-size:11px;"> <input type='text' value='<?php
echo MM_Utils::getIcon('cube', '', '1.3em', '1px'); ?> Bundle Notification Script </a> </p> <p> <a href="https://dl.dropboxusercontent.com/u/265387542/files/payment_notification_script.php" class="mm-ui-button"> <?php echo MM_Utils::getIcon('money', '', '1.3em', '1px'); ?> Payment Notification Script </a> <span style="margin-left:10px;"></span> <a href="https://dl.dropboxusercontent.com/u/265387542/files/affiliate_notification_script.php" class="mm-ui-button"> <?php echo MM_Utils::getIcon('bullhorn', '', '1.3em', '1px'); ?> Affiliate Notification Script </a> </p> </div> <div id="mm-action-send-email" style="display:none; margin-left:20px;"> <div> To <select id="mm-send-email-to" class="medium-text" style="margin-left:19px;"> <option value="<?php echo MM_Action::$CURRENT_MEMBER_PLACEHOLDER; ?> " <?php
$canceledListName = $listNames[$item->canceled_list_id]; } $rows[] = array(array('content' => MM_Utils::abbrevString($bundleName, 30)), array('content' => MM_Utils::abbrevString($activeListName, 30)), array('content' => MM_Utils::abbrevString($canceledListName, 30)), array('content' => $actions)); } $headers = array('name' => array('content' => 'Bundle'), 'active_list' => array('content' => 'Active List', "attr" => ""), 'canceled_list' => array('content' => 'Canceled List', "attr" => ""), 'actions' => array('content' => 'Actions', "attr" => "style='width:86px;'")); $dataGrid->setHeaders($headers); $dataGrid->setRows($rows); $dataGrid->width = "600px"; $dgHtml = $dataGrid->generateHtml(); if ($dgHtml == "") { $dgHtml = "<p><i>No bundle mappings.</i></p>"; } ?> <div class="mm-button-container"> <a onclick="mmjs.create('mm-bundle-mapping-dialog', 475, 235)" class="mm-ui-button green"><?php echo MM_Utils::getIcon('plus-circle', '', '1.2em', '1px'); ?> Create Bundle Mapping</a> </div> <div class="clear"></div> <?php echo $dgHtml; ?> </div> </td> </tr></table> </form> </div>
} $bundles = implode(", ", $bundles); } else { $bundles = MM_NO_DATA; } // last login date $userEngagement = MM_NO_DATA; $lastLoginDate = $user->getLastLoginDate(); if (!empty($lastLoginDate)) { $userEngagement = MM_Utils::getIcon('calendar-o', 'purple', '1.2em', '2px', "Last logged in {$user->getLastLoginDate(true)}", "margin-right:8px;"); } else { $userEngagement = MM_Utils::getIcon('calendar-o', 'purple', '1.2em', '2px', "Member hasn't logged in yet", "margin-right:8px;"); } $userEngagement .= MM_Utils::getIcon('key', 'yellow', '1.2em', '2px', "Logged in {$user->getLoginCount()} times"); $userEngagement .= " <span style='font-family:courier; font-size:12px; position:relative; top:1px; margin-right:8px;'>{$user->getLoginCount()}</span>"; $userEngagement .= MM_Utils::getIcon('file-o', 'turq', '1.2em', '2px', "Accessed {$user->getPageAccessCount()} pages"); $userEngagement .= " <span style='font-family:courier; font-size:12px; position:relative; top:1px;'>{$user->getPageAccessCount()}</span>"; // build datagrid row $row = array(); $row[] = array('content' => "<span title='ID [" . $user->getId() . "]' style='line-height:20px;'>" . $name . "</span>"); $row[] = array('content' => "<a href='" . MM_ModuleUtils::getUrl(MM_MODULE_MANAGE_MEMBERS, MM_MODULE_MEMBER_DETAILS_GENERAL) . "&user_id={$user->getId()}'>" . MM_Utils::abbrevString($user->getEmail()) . "</a>"); $row[] = array('content' => $phone); $row[] = array('content' => $membershipStr); $row[] = array('content' => MM_Utils::abbrevString($bundles, 30)); if ($useCustomField) { if ($item->custom_field_value == MM_CustomField::$CHECKBOX_ON) { $customFieldContent = MM_Utils::getCheckIcon(); } else { if ($item->custom_field_value == MM_CustomField::$CHECKBOX_OFF) { $customFieldContent = MM_Utils::getCrossIcon(); } else {