예제 #1
0
         }
         $bundles[$i] = $bundleName[$bundleId];
     }
     $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) {