Beispiel #1
0
		<tr>
			<td colspan="2">
			<span style="font-size:11px;">
			Employee accounts are used to grant access to additional members of your team. Once the 
			account has been created, the employee can login with the email address and password associated with the account.</span>
			</td>
		</tr>
		<tr>
			<td>Role</td>
			<td>
				<select id='mm-role-id' <?php 
echo $disableRole;
?>
 onchange="mmjs.toggleAccessRestrictions();">
				<?php 
echo MM_HtmlUtils::generateSelectionsList(MM_Role::getRoleList(), $employee->getRoleId());
?>
				</select>
				<div id='mm-role-desc-admin' style="font-size:11px; margin-top:4px; display:none;">Employees with
			the <code>Adminstrator</code> role have the same permissions as a standard WordPress administrator and have access to all MemberMouse
			configuration modules, member management pages and the reporting suite.</div>
			<div id='mm-role-desc-support' style="font-size:11px; margin-top:4px; display:none;">Employess with the <code>Support</code> role will only be able to access the MemberMouse 
			member management pages.</div>
			<div id='mm-role-desc-sales' style="font-size:11px; margin-top:4px; display:none;">Employess with the <code>Sales</code> role will only be able to access the MemberMouse 
			member management pages.</div>
			<div id='mm-role-desc-product-mgr' style="font-size:11px; margin-top:4px; display:none;">Employess with the <code>Product Manager</code> role will only be able to access the MemberMouse 
			 product settings and member management pages.</div>
			<div id='mm-role-desc-analyst' style="font-size:11px; margin-top:4px; display:none;">Employess with the <code>Analyst</code> role will only be able to access the MemberMouse reporting suite.</div>
			</td>
		</tr>
		<tr>
Beispiel #2
0
<?php

/**
 * 
 * MemberMouse(TM) (http://www.membermouse.com)
 * (c) MemberMouse, LLC. All rights reserved.
 */
global $current_user;
$view = new MM_DiagnosticsView();
$currentMode = MM_DiagnosticLog::getMode();
$modeList = MM_DiagnosticLog::getModeLabels();
$modeListHtml = MM_HtmlUtils::generateSelectionsList($modeList, $currentMode);
// determine if this user's preference is to have the advanced search open
$showFilterOptionName = MM_OptionUtils::$OPTION_KEY_SHOW_DIAGNOSTICS_LOG_FILTERS . "-" . $current_user->ID;
$showFilterOptionValue = MM_OptionUtils::getOption($showFilterOptionName);
$showFilters = $showFilterOptionValue == "1";
?>
<div class="mm-wrap">
	<div>
		<table>
			<tr>
				<td>Current Mode:</td>
				<td><?php 
echo $modeList[$currentMode];
?>
</td>
			</tr>
			<tr>
				<td>Change mode to: </td>
				<td><select id="newMode" name="newMode">
						<?php 
	<td>Active List<?php 
    echo MM_Utils::getInfoIcon($activeListDesc);
    ?>
</td>
	<td><select id="mm_active_list_id" name="mm_active_list_id"><?php 
    echo MM_HtmlUtils::generateSelectionsList($lists, $activeListId);
    ?>
</select></td>
</tr>
<tr>
	<td>Canceled List<?php 
    echo MM_Utils::getInfoIcon($canceledListDesc);
    ?>
</td>
	<td><select id="mm_canceled_list_id" name="mm_canceled_list_id"><?php 
    echo MM_HtmlUtils::generateSelectionsList($lists, $canceledListId);
    ?>
</select></td>
</tr>
</table>
</div>

<div class="mm-dialog-footer-container">
<div class="mm-dialog-button-container">
<a href="javascript:mmjs.save();" class="mm-ui-button blue">Save Bundle Mapping</a>
<a href="javascript:mmjs.closeDialog();" class="mm-ui-button">Cancel</a>
</div>
</div>
<?php 
} else {
    ?>
Beispiel #4
0
} else {
    if ($associatedBundle->isValid()) {
        $lastAccessAssociationType = "bundle";
        $lastAccessAssociationId = $associatedBundle->getId();
    } else {
        $lastAccessAssociationType = "";
        $lastAccessAssociationId = "";
    }
}
$hasBeenPurchased = false;
if ($product->isValid()) {
    $hasBeenPurchased = MM_Product::hasBeenPurchased($product->getId());
}
$periodsArr = array('days' => 'days', 'weeks' => 'weeks', 'months' => 'months', 'years' => 'years');
$trialFrequencyList = MM_HtmlUtils::generateSelectionsList($periodsArr, $product->getTrialFrequency());
$rebillFrequencyList = MM_HtmlUtils::generateSelectionsList($periodsArr, $product->getRebillFrequency());
$membershipList = MM_HtmlUtils::getMemberships($associatedMembership->getId(), false, MM_MembershipLevel::$SUB_TYPE_PAID);
$bundleList = MM_HtmlUtils::getBundles($associatedBundle->getId(), false, MM_Bundle::$SUB_TYPE_PAID);
$commissionProfileList = MM_HtmlUtils::getCommissionProfilesList($product->getCommissionProfileId());
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;
    echo MM_Utils::getInfoIcon("Customers can purchase any of the products above to sign up for this membership level. It's also possible for customers to sign up for the membership directly in which case they'll end up purchasing the default product. You can specify the default product below.");
    ?>
 
					</span>
					<br/>
						<select id='mm-default-product-id'  >
							<?php 
    if ($product->isValid() && $product->getId() > 0) {
        $products = $membership->getProductIds();
        $productsArr = array();
        if (is_array($products)) {
            foreach ($products as $pid) {
                $p = new MM_Product($pid);
                $productsArr[$pid] = $p->getName();
            }
            $selections = MM_HtmlUtils::generateSelectionsList($productsArr, $product->getId());
            if (empty($selections)) {
                echo "<option value=''>Select a product</option>";
            } else {
                echo $selections;
            }
        } else {
            echo "<option value=''>Select a product</option>";
        }
        ?>
									<?php 
    } else {
        echo "<option value=''>Select a product</option>";
    }
    ?>
						</select>
Beispiel #6
0
				<tr>
					<td>Event Data</td>
					<td><input id="mm-event-data" type="text" size="25" /></td>
				</tr>
			</table>
			</td>
			
			<!-- CENTER COLUMN -->
			<td valign="top">
			<table cellspacing="5">
				<tr>
					<td>Event Types</td>
					<td>
						<select id="mm-event-types[]" size="6" multiple="multiple" style="width:300px;">
						<?php 
echo MM_HtmlUtils::generateSelectionsList(MM_DiagnosticLog::getEventTypeLabels(), $selectedEventType);
?>
						</select>
					</td>
				</tr>
			</table>
			</td>
		</tr>
	</table>
	
	<input type="button" class="mm-ui-button blue" value="Apply Filters" onclick="mmjs.search(0);">
	<input type="button" class="mm-ui-button" value="Reset Form" onclick="mmjs.resetForm();">
</div>

<script type='text/javascript'>
	jQuery(document).ready(function(){
}
echo MM_HtmlUtils::getBundles($bundleId);
?>
	</select>
	</p>
	
	<p style="margin-left: 20px;">
	When bundle status is...<br/>
	<select id="mm-bundle-status-selector">
		<option value="">Any Status</option>
	<?php 
$statusId = "";
if (is_array($eventAttributes) && isset($eventAttributes["status_id"])) {
    $statusId = $eventAttributes["status_id"];
}
echo MM_HtmlUtils::generateSelectionsList(MM_Status::getStatusTypesList(), $statusId);
?>
	</select>
	</p>	
</div>


<p><span class="mm-section-header">Perform the following action...</span></p>
<p style="margin-left:20px;">
	<select id="mm-action-type" onchange="mmjs.actionChangeHandler();">
	<?php 
echo MM_HtmlUtils::getActionsList($action->getActionType());
?>
	</select>
</p>
	
				<div id="mm_product_description" style="margin-top:10px;"></div>
			</td>
		</tr>
		
		<tr>
			<td colspan="2">
			<div style="width: 98%; margin-top: 8px;" class="mm-divider"></div>
			</td>
		</tr>
		
		<tr>
			<td width="150">Lime Light Campaign</td>
			<td>
				<select name='limelight_campaign_id' id='limelight_campaign_id' onchange='mmjs.getLimeLightProducts();'>
				<?php 
echo MM_HtmlUtils::generateSelectionsList($limeLightService->getCampaigns(), $limeLightProduct->getLimeLightCampaignId());
?>
				</select>
			</td>
		</tr>
		
		<tr>
			<td width="150">Lime Light Product</td>
			<td>
				<div id="limelight_product_display_section">
					<?php 
$productId = $limeLightProduct->getLimeLightProductId();
if (!empty($productId)) {
    ?>
					<span style="font-family:courier;"><?php 
    echo $limeLightProduct->getLimeLightProductName();
Beispiel #9
0
$validLocales["id_ID"] = "Indonesian (for Indonesia only)";
$validLocales["ja_JP"] = "Japanese (for Japan only)";
$validLocales["no_NO"] = "Norwegian (for Norway only)";
$validLocales["pt_BR"] = "Brazilian Portuguese (for Portugal and Brazil only)";
$validLocales["ru_RU"] = "Russian (for Lithuania, Latvia, and Ukraine only)";
$validLocales["sv_SE"] = "Swedish (for Sweden only)";
$validLocales["th_TH"] = "Thai (for Thailand only)";
$validLocales["tr_TR"] = "Turkish (for Turkey only)";
$validLocales["zh_CN"] = "Simplified Chinese (for China only)";
$validLocales["zh_HK"] = "Traditional Chinese (for Hong Kong only)";
$validLocales["zh_TW"] = "Traditional Chinese (for Taiwan only)";
?>
	<p style="margin-left:10px;">
		<select id='paypal_locale' name='payment_service[paypal][locale]'>
		<?php 
echo MM_HtmlUtils::generateSelectionsList($validLocales, $p->getLocale());
?>
		</select>
	</p>
	
	<p style="font-size:11px; margin-left:10px; padding-right:20px;">
	<?php 
echo MM_Utils::getInfoIcon("", "");
?>
	This is used to set the locale of the PayPal sign-up page and indicates which language will be used. If unspecified, 
	PayPal determines the locale by using a cookie in the subscriber's browser. If there is no PayPal cookie, the default 
	locale is United States.</p>
</div>
</div>

<!--
				ID:  <?php 
        echo $cbp->{$skuName};
        ?>
</br>
				Title: <?php 
        echo $cbp->title;
        ?>
			</td>
			<td>&nbsp;</td>
			<td>
				<select name='clickbank_product_mapping[<?php 
        echo $cbp->{$skuName};
        ?>
]'>
					<?php 
        echo MM_HtmlUtils::generateSelectionsList($membermouseProducts, $cbp->mapped ? $cbp->membermouse_product_id : null);
        ?>
				</select>
			</td>
		</tr>
		<?php 
    }
    ?>
	</table>
	<?php 
} else {
    ?>
		<!-- There were no clickbank products retrieved -->
		There are no products configured in ClickBank.
	<?php 
}
<?php

$report = new MM_NewMembersComparisonReport();
$startDate = date("m/d/Y", strtotime("-3 months"));
$endDate = date("m/d/Y");
$membershipLevels = MM_MembershipLevel::getMembershipLevelsList();
$firstInList = is_array($membershipLevels) ? current(array_keys($membershipLevels)) : "";
$membershipLevelsOptionsHtml = MM_HtmlUtils::generateSelectionsList($membershipLevels);
?>
<!---------- Report Injection ---------->
<div class="mm-report-container">
	<h2 class="mm-dashboard-title">Compare Membership Levels</h2>
	
	<?php 
include "dropdown_nav_menu.php";
?>
	
	
	<div class="mm-graph-container">
		<form novalidate="">
			<div id="mm-form-container" class="mm-report-params">
				
				<div class="mm-report-filter">
					<div class="mm-report-filter-set">
						<label>Start Date:</label>
						<input type="text" id="start_date" name="start_date" class="mm-reporting-datepicker" value="<?php 
echo $startDate;
?>
" placeholder="mm/dd/yyyy"/>
						<a onClick="jQuery('#start_date').focus();"><i class="fa fa-calendar"></i></a>
					</div>
				</select>
			</td>
		</tr>
		
		<tr>
			<td colspan="2">
			<div style="width: 98%; margin-top: 8px;" class="mm-divider"></div>
			</td>
		</tr>
		
		<tr>
			<td width="150">Lime Light Shipping Method</td>
			<td>
				<select name='limelight_shipping_method_id_selector' id='limelight_shipping_method_id_selector'>
				<?php 
echo MM_HtmlUtils::generateSelectionsList($limeLightService->getShippingMethods(), $limeLightShippingMethod->getLimeLightShippingMethodId());
?>
				</select>
				<a href="javascript:mmjs.getLimeLightShippingDescription('');" title="View Lime Light Shipping Method Info"><?php 
echo MM_Utils::getIcon("info-circle", "blue", "1.3em", "2px;");
?>
</a>
			</td>
		</tr>
	</table>
	
	<input id='id' type='hidden' value='<?php 
if ($limeLightShippingMethod->getId() != 0) {
    echo $limeLightShippingMethod->getId();
}
?>
Beispiel #13
0
$module = MM_ModuleUtils::getModule();
$isMemberDetailsArea = $module == MM_MODULE_MEMBER_DETAILS_ACTIVITY_LOG ? true : false;
if ($isMemberDetailsArea) {
    // include activity log JS
    $activityLogJS = plugins_url("../resources/js/admin/mm-" . MM_MODULE_ACTIVITY_LOG . ".js", __FILE__);
    wp_enqueue_script(basename($activityLogJS), $activityLogJS, array('membermouse-global'), MemberMouse::getPluginVersion());
    if (isset($_REQUEST[MM_Session::$PARAM_USER_ID])) {
        $_REQUEST["member_id"] = $_REQUEST[MM_Session::$PARAM_USER_ID];
    }
}
$eventsList = array_merge(array("" => "All"), MM_ActivityLog::getEventsList());
$eventTypeValue = "";
if (!empty($_REQUEST["event_type"])) {
    $eventTypeValue = $_REQUEST["event_type"];
}
$eventOptions = MM_HtmlUtils::generateSelectionsList($eventsList, $eventTypeValue);
$memberIdValue = "";
if (!empty($_REQUEST["member_id"])) {
    $memberIdValue = $_REQUEST["member_id"];
}
$fromDateValue = "";
if (!empty($_REQUEST["from_date"])) {
    $fromDateValue = $_REQUEST["from_date"];
}
$toDateValue = "";
if (!empty($_REQUEST["to_date"])) {
    $toDateValue = $_REQUEST["to_date"];
}
?>
<script type='text/javascript'>
jQuery(document).ready(function()