$employee = MM_Employee::findByUserId($current_user->ID); if ($employee->isValid() && ($employee->getRoleId() == MM_Role::$ROLE_ADMINISTRATOR || $employee->doAllowExport())) { $showCsvExportButton = true; } echo "<input type='hidden' id='mm-admin-id' value='{$current_user->ID}' />"; // determine if this user's preference is to have the advanced search open $showSearchOptionName = MM_OptionUtils::$OPTION_KEY_SHOW_MBRS_SEARCH . "-" . $current_user->ID; $showSearchOptionValue = MM_OptionUtils::getOption($showSearchOptionName); if ($showSearchOptionValue == "1") { $showSearch = true; } } ?> <div class="mm-wrap"> <?php if (count(MM_MembershipLevel::getMembershipLevelsList()) > 0) { ?> <div style="margin-top:20px;" class="mm-button-container"> <a id="mm-show-search-btn" onclick="mmjs.showSearch()" class="mm-ui-button blue" <?php echo $showSearch ? "style=\"display:none;\"" : ""; ?> ><?php echo MM_Utils::getIcon('search-plus'); ?> Advanced Search</a> <a id="mm-hide-search-btn" onclick="mmjs.hideSearch()" class="mm-ui-button" <?php echo $showSearch ? "" : "style=\"display:none;\""; ?> ><?php echo MM_Utils::getIcon('search-minus'); ?>
if ($from->getId() == $to->getId() && get_class($from) === get_class($to)) { $copyScheduleResponse = "Invalid selections. Cannot copy a schedule to itself."; } else { if ($to === false || $from === false) { $copyScheduleResponse = "Invalid selections. Could not copy drip content schedules."; } else { $response = MM_ContentDeliveryEngine::copySchedule($from, $to, $overwrite); $copyScheduleResponse = $response->message; } } } } $showRows = array(); $rows = array(); $options = array(); $memberTypes = MM_MembershipLevel::getMembershipLevelsList(); foreach ($memberTypes as $id => $name) { $mt = new MM_MembershipLevel($id); $obj = new stdClass(); $obj->id = "mt_" . $id; $obj->value = $name; $obj->image = MM_Utils::getAccessIcon(MM_OrderItemAccess::$ACCESS_TYPE_MEMBERSHIP, '', 'float:left; padding-right: 5px; padding-left: 5px;'); $options[$obj->id] = $obj; $rows[] = $obj; if (isset($selectedTypes[$obj->id])) { $showRows[] = $obj; } } $accessTags = MM_Bundle::getBundlesList(); foreach ($accessTags as $id => $name) { $at = new MM_Bundle($id);