コード例 #1
0
ファイル: products.dialog.php プロジェクト: huynp/Critical
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" : "";
    ?>
>
			&mdash; Use system default &mdash;
		</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 
}
コード例 #2
0
$field = new stdClass();
$field->fieldId = "mm_field_shipping_country";
$field->fieldName = "shippingcountry";
$field->label = "Country";
$fieldInfo[] = $field;
$data = array();
$data["mm_field_shipping_address"] = $user->getShippingAddress();
$data["mm_field_shipping_city"] = $user->getShippingCity();
$data["mm_field_shipping_state"] = $user->getShippingState();
$data["mm_field_shipping_zip"] = $user->getShippingZipCode();
$data["mm_field_shipping_country"] = $user->getShippingCountry();
$form = new MM_CheckoutForm();
if (!isset($data["mm_field_shipping_country"])) {
    $data["mm_field_shipping_country"] = "";
}
$form->shippingCountryList = MM_HtmlUtils::getCountryList($data["mm_field_shipping_country"]);
echo $form->getJavascriptIncludes(false);
?>
<div id="mm-form-container">
	<table>
		<?php 
foreach ($fieldInfo as $field) {
    ?>
			<tr>
				<td><span class="mm-myaccount-dialog-label"><?php 
    echo $field->label;
    ?>
</span></td>
				<td>
				<span style="font-family:courier; font-size:11px; margin-top:5px;">
					<?php 
コード例 #3
0
 onchange="mmjs.showOnMyAccountChanged()" />
				Show on My Account Page
			</label>
			
			<input type='hidden' id='mm-show-on-my-account' value='<?php 
    echo $customField->showOnMyAccount() ? "1" : "0";
    ?>
' />
		</td>
	</tr>
	<tr>
		<td>Type</td>
		<td>
			<select id="mm-field-type" onchange="mmjs.typeChangeHandler()">
			<?php 
    echo MM_HtmlUtils::getCustomFieldTypeList($customField->getType());
    ?>
			</select>
		</td>
	</tr>
	<tr>
		<td></td>
		<td>
			<div id="field-options-container" style="display:none;">
				Options
				
				<div id="mm-field-options" style="margin-top:5px;">
					<?php 
    $options = $customField->getOptions();
    if (count($options) > 0) {
        $crntOption = 1;
コード例 #4
0
ファイル: employees.dialog.php プロジェクト: huynp/Critical
    foreach ($restrictions as $key => $value) {
        $selectedMemberships[$value] = $value;
    }
    ?>
		<tr id="mm-access-restriction-row" style="display:none;">
			<td>Access Restrictions</td>
			<td>
			<?php 
    $accessDesc = "By selecting one or more membership levels below you're indicating that the employee should only be able to manage members with one of those membership levels. When no membership levels are selected this indicates that the employee should be able to manage all members.";
    ?>
			Allowed Membership Levels<?php 
    echo MM_Utils::getInfoIcon($accessDesc);
    ?>
			<select id="mm-memberships[]" size="6" multiple="multiple" style="margin-top:5px; width:400px;">
			<?php 
    echo MM_HtmlUtils::getMemberships($selectedMemberships);
    ?>
			</select>
			
			<p style="margin-top:5px; font-size:11px">
					Select Multiple Membership Levels: PC <code>ctrl + click</code> 
					Mac <code><img width="9" height="9" src="http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1343/ks_command.gif" alt="Command key icon" data-hires="true">
(Command key) + click</code>
			</p>
			</td>
		</tr>
		<?php 
}
?>
	</table>
	
コード例 #5
0
	<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 {
    ?>
コード例 #6
0
		
		<tr>
			<td colspan="2">
			<div style="width: 600px; margin-top: 8px;" class="mm-divider"></div>
			</td>
		</tr>
		
		<tr>
			<td>Protected Categories<?php 
echo MM_Utils::getInfoIcon("Select the WordPress categories that should be automatically protected by this membership level.");
?>
</td>
			<td>
				<select id="mm-categories[]" size="5" multiple="multiple" style="width:100%">
				<?php 
echo MM_HtmlUtils::getWordPressCategories($membership->getCategoryIds());
?>
				</select>
				
				<span style="font-size:11px">
					Select Multiple Categories: PC <code>ctrl + click</code> 
					Mac <code><img width="9" height="9" src="http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1343/ks_command.gif" alt="Command key icon" data-hires="true">
(Command key) + click</code>
				</span>
			</td>
		</tr>
	</table>
	
	<input id='mm-is-default' type='hidden' value='<?php 
echo $membership->isDefault();
?>
コード例 #7
0
            ?>
		
		<?php 
            if ($user->getStatus() != MM_Status::$CANCELED) {
                ?>
		<div style='margin-top:15px;'>
			<input type="submit" name='membership_update_submit' class="mm-ui-button blue" value="Update Membership Properties" >	
		</div>
		<?php 
            }
            ?>
	</form>
	
	<!-- MANAGE BUNDLES -->
	<?php 
            $bundleOptions = MM_HtmlUtils::getBundles(null, true);
            if (!empty($bundleOptions)) {
                ?>
	<div style="width: 800px; margin-top: 15px;" class="mm-divider"></div>
	
	<p><span class="mm-section-header">Bundles</span></p>
			
	<div style="margin-bottom:20px;">
		<select id="bundle-selector" name="bundle-seletor">
		<?php 
                echo $bundleOptions;
                ?>
		</select>
		<a onclick="mmjs.applyBundle('<?php 
                echo $user->getId();
                ?>
コード例 #8
0
ファイル: paypal_config.html.php プロジェクト: huynp/Critical
$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>

<!--
コード例 #9
0
ファイル: class.posthooks.php プロジェクト: huynp/Critical
 public function editPostsFilter()
 {
     global $post;
     $selectedMembership = isset($_GET["member_types"]) ? $_GET["member_types"] : "";
     $selectedBundle = isset($_GET["access_tags"]) ? $_GET["access_tags"] : "";
     $select = "<select name='member_types'>\n<option value=''>Show all Membership Levels</a>";
     $select .= MM_HtmlUtils::getMemberships($selectedMembership);
     $select .= "</select>";
     $select .= "<select name='access_tags'>\n<option value=''>Show all Bundles</a>";
     $select .= MM_HtmlUtils::getBundles($selectedBundle);
     $select .= "</select>";
     if (isset($post->post_type) && $post->post_type == 'page' || isset($_GET["post_type"]) && $_GET["post_type"] == 'page') {
         $cpt = isset($_GET["core_page_types"]) ? $_GET["core_page_types"] : "";
         $select .= "<select name='core_page_types'>\n <option value=''>Show all Pages</a>";
         $select .= "<option value='core_pages' " . ($cpt == "core_pages" ? "selected" : "") . ">Show only MM Core Pages</a>";
         $select .= "<option value='wp_pages' " . ($cpt == "wp_pages" ? "selected" : "") . ">Show only Standard Pages</a>";
         $select .= "</select>";
     }
     echo $select;
 }
コード例 #10
0
			</table>
			</td>
			
			<!-- RIGHT COLUMN -->
			<td valign="top">
			<table cellspacing="5">
				<?php 
$availableCoupons = MM_Coupon::getAllCodes(true);
if (count($availableCoupons) > 0) {
    ?>
				<tr>
					<td>Coupons</td>
					<td>
						<select id="mm-coupon-ids[]" multiple="multiple" style="width:200px;" size="5">
						<?php 
    echo MM_HtmlUtils::getNonFreeCouponCodes($selectedCoupons);
    ?>
						</select>
						<table style="width:260px;"><tr>
							<td><?php 
    echo MM_Utils::getInfoIcon();
    ?>
</td>
							<td style="font-size:10px; line-height:14px;"><em>Free coupons are not included in this list as no transaction is created when a free coupon is used.</em></td>
						</tr></table>
					</td>
				</tr>
				<?php 
}
?>
				
コード例 #11
0
ファイル: bundles.dialog.php プロジェクト: huynp/Critical
		
		<tr>
			<td colspan="2">
			<div style="width: 600px; margin-top: 8px;" class="mm-divider"></div>
			</td>
		</tr>
		
		<tr>
			<td>Protected Categories<?php 
echo MM_Utils::getInfoIcon("Select the WordPress categories that should be automatically protected by this bundle.");
?>
</td>
			<td>
				<select id="mm-categories[]" size="5" multiple="multiple" style="width:95%">
				<?php 
echo MM_HtmlUtils::getWordPressCategories($bundle->getCategories());
?>
				</select>
				
				<span style="font-size:11px">
					Select Multiple Categories: PC <code>ctrl + click</code> 
					Mac <code><img width="9" height="9" src="http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1343/ks_command.gif" alt="Command key icon" data-hires="true">
(Command key) + click</code>
				</span>
			</td>
		</tr>
		
		<tr>
			<td colspan="2">
			<div style="width: 600px; margin-top: 8px;" class="mm-divider"></div>
			</td>
コード例 #12
0
				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 
}
コード例 #13
0
<?php

/**
 * 
 * MemberMouse(TM) (http://www.membermouse.com)
 * (c) MemberMouse, LLC. All rights reserved.
 */
?>
Lookup 
<select id="mm-object-type-selection" onchange="stl_js.lookupIds();">
<?php 
echo MM_HtmlUtils::getMMObjectTypes();
?>
</select>

<div id="mm-lookup-results-container" style="margin-top: 8px; width:100%; height:250px; overflow:auto;"></div>

<script>stl_js.lookupIds();</script>
コード例 #14
0
<?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>
コード例 #15
0
ファイル: coupons.dialog.php プロジェクト: huynp/Critical
$prod = new MM_Product();
$selectedProds = array();
$id = 0;
if (isset($p->id)) {
    $id = $p->id;
}
$coupon = new MM_Coupon($id);
$prods = $coupon->getProducts();
if (!$coupon->isValid()) {
    $coupon->setStartDate(Date("m/d/Y"));
}
$editable = "";
if (MM_Coupon::isBeingUsed($coupon->getId())) {
    $editable = "disabled='disabled'";
}
$products = MM_HtmlUtils::createCheckboxGroup(MM_Product::getAll(), "mm_products", $prods);
?>
<div id="mm-coupons-container">
	<table cellspacing="10">
		<tr>
			<td width="140">Name*</td>
			<td><input type='hidden' id='id' value='<?php 
echo $coupon->getId();
?>
' />
				<input id="mm_coupon_name" type="text" value='<?php 
echo $coupon->getCouponName();
?>
' style='width:300px;' />
			</td>
		</tr>
コード例 #16
0
 * (c) MemberMouse, LLC. All rights reserved.
 */
$provider_entity = MM_AffiliateProvider::getActiveAffiliateProvider();
if (!$provider_entity->isValid()) {
    //TODO: handle error retrieving provider, shouldnt happen
}
$active_provider_token = $provider_entity->getToken();
?>

<div class="mm-wrap">
	<form id="provider-config-form" name="form" method="post" action="#" autocomplete="off">

	<div id="mm-affiliate-provider-select" style="margin-top: 15px; margin-bottom: 15px; line-height: 26px;">
		Select Provider: 
		<select name="provider_token" id="provider_token" onChange="mmjs.showNewProviderOptions(jQuery('#provider-config-form :input').serializeArray());"><?php 
echo MM_HtmlUtils::getAffiliateProvidersList($active_provider_token);
?>
</select>
	</div>

	<div>
		<div id="mm-affiliate-provider-options" style="margin-bottom:10px;">
			<?php 
$provider = MM_AffiliateProviderFactory::getActiveProvider();
$form = $provider->renderOptionsDialog(array());
echo $form->dialog;
?>
		</div>
		<div id="mm-affiliate-provider-controls">
			<?php 
echo $form->controls;
コード例 #17
0
				<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();
コード例 #18
0
ファイル: members.form.php プロジェクト: huynp/Critical
    ?>
						</select>
						<br />
						<input type='text' id='mm-member-custom-field-value' value='' style='width: 200px;display:none' />
					</td>
				</tr>
				<?php 
    if (count(MM_CustomField::getCustomFieldsList(false, false)) > 1) {
        ?>
				<tr>
					<td>Custom Field 2</td>
					<td>
						<select id="mm-member-custom-field2"  onchange="mmjs.changeCustomField('mm-member-custom-field2');">
							<option value=''>None</option>
							<?php 
        echo MM_HtmlUtils::getCustomFields(null, false);
        ?>
						</select>
						<br />
						<input type='text' id='mm-member-custom-field2-value' value='' style='width: 200px;display:none' />
					</td>
				</tr>
				<?php 
    }
    ?>
				<?php 
}
?>
			</table>
			</td>
		</tr>
コード例 #19
0
ファイル: diagnostics.form.php プロジェクト: huynp/Critical
				<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(){
コード例 #20
0
}
function generateRows($fields, $requirePost = false)
{
    $generatedHtml = "";
    foreach ($fields as $field => $typeArr) {
        $type = $typeArr['type'];
        $title = $typeArr['title'];
        if (!$requirePost || $requirePost && isset($_POST[$field])) {
            $generatedHtml .= createRow($title, createTextField($field, $type));
        }
    }
    return $generatedHtml;
}
// ---- ---- //
$selectedMembershipId = isset($_POST["membership_level"]) ? $_POST["membership_level"] : 0;
$freeMembershipList = MM_HtmlUtils::getMemberships($selectedMembershipId, true, MM_MembershipLevel::$SUB_TYPE_FREE);
$generatedHtml = "";
if (isset($_POST["membership_level"])) {
    $hiddenFields = array('membership_level');
    $reqFields = array('email' => array('type' => 'text', 'title' => 'Email'));
    $optFields = array('username' => array('type' => 'text', 'title' => 'Username'), 'password' => array('type' => 'password', 'title' => 'Password'), 'first_name' => array('type' => 'text', 'title' => 'First Name'), 'last_name' => array('type' => 'text', 'title' => 'Last Name'), 'phone' => array('type' => 'text', 'title' => 'Phone Number'));
    $generatedHtml = "<form method=\"post\" action=\"" . MM_API_BASE_URL . "/webform.php\">\n";
    $generatedHtml .= "<table>\n";
    $generatedHtml .= generateRows($reqFields);
    $generatedHtml .= generateRows($optFields, true);
    $customFields = MM_CustomField::getCustomFieldsList();
    if (count($customFields) > 0) {
        foreach ($customFields as $id => $displayName) {
            $customField = new MM_CustomField($id);
            if ($customField->isValid() && isset($_POST["custom_field_{$id}"])) {
                $generatedHtml .= createRow($customField->getDisplayName(), $customField->draw("", "", "custom_field_", false));
コード例 #21
0
ファイル: countries.php プロジェクト: huynp/Critical
        foreach ($_POST["mm-country"] as $iso) {
            $selections[$iso] = $iso;
        }
        MM_OptionUtils::setOption(MM_OptionUtils::$OPTION_KEY_COUNTRY_SELECTIONS, $selections);
        $saved = true;
    }
    if (isset($_POST["mm-default-country"])) {
        //MM_OptionUtils::setOption(MM_OptionUtils::$OPTION_KEY_DFLT_COUNTRY_SELECTION, in_array($_POST["mm-default-country"], $_POST["mm-country"]) ? $_POST["mm-default-country"] : $_POST["mm-country"][0]);
        MM_OptionUtils::setOption(MM_OptionUtils::$OPTION_KEY_DFLT_COUNTRY_SELECTION, $_POST["mm-default-country"]);
    }
}
// get country selections
$selections = MM_OptionUtils::getOption(MM_OptionUtils::$OPTION_KEY_COUNTRY_SELECTIONS);
$dfltCountry = MM_OptionUtils::getOption(MM_OptionUtils::$OPTION_KEY_DFLT_COUNTRY_SELECTION);
$fullCountryList = MM_HtmlUtils::getFullCountryList($selections);
$countryList = MM_HtmlUtils::getCountryList($dfltCountry);
?>
<div class="mm-wrap">
<form name='savecountry' method='post'>
   <p><strong>Select the countries customers can make purchases from below:</strong></p>   
	
	<p style="margin-left:15px;"><select name='mm-country[]' multiple size='100' style='height: 300px; width: 400px; font-size: 12px;'>
	<?php 
echo $fullCountryList;
?>
	</select></p>
	
	<p style="font-size:11px; margin-left:15px;">
	Select Multiple Countries: PC <code>ctrl + click</code>
	Mac <code><img width="9" height="9" src="http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1343/ks_command.gif" alt="Command key icon" data-hires="true">
(Command key) + click</code>
コード例 #22
0
    $obj->id = "at_" . $id;
    $obj->value = $name;
    $obj->image = MM_Utils::getAccessIcon(MM_OrderItemAccess::$ACCESS_TYPE_BUNDLE, '', 'float:left; padding-right: 5px; padding-left: 5px;');
    $options[$obj->id] = $obj;
    $rows[] = $obj;
    if (isset($selectedTypes[$obj->id])) {
        $showRows[] = $obj;
    }
}
$maxCheckboxLength = 18;
$maxHeaderLength = 14;
$maxPostLength = 25;
$maxPostLengthPlus = $maxPostLength + 20;
$viewDeliveryAccessTypes = MM_HtmlUtils::createCheckboxGroup($options, "view_schedules[]", $selectedTypes, null, "", null, $maxCheckboxLength);
$copyAccessTypesFrom = MM_HtmlUtils::createCheckboxGroup($options, "copy_schedules_from", $selectedFromCopy, "", null, "", $maxCheckboxLength, true);
$copyAccessTypesTo = MM_HtmlUtils::createCheckboxGroup($options, "copy_schedules_to", $selectedToCopy, "", null, "", $maxCheckboxLength, true);
//style
$color = "#666";
$headerBackgroundColor = "#D8D8D8";
$bodyBackgroundColor = "";
$bodyBorderColor = "#BBB";
$bodyColor = '#666';
$headerHeight = "20px";
$alternateColumnColor = "#C0DFFF";
$headerBorderColor = "#666";
$cellMarginInt = 2;
$cellMargin = $cellMarginInt . "px;";
$col1Width = 50;
$col2Width = 180;
$spaceForTypes = 400;
$tableWidth = $spaceForTypes + $col1Width + $col2Width;
コード例 #23
0
$field = new stdClass();
$field->fieldId = "mm_field_billing_country";
$field->fieldName = "billingcountry";
$field->label = "Country";
$fieldInfo[] = $field;
$data = array();
$data["mm_field_billing_address"] = $user->getBillingAddress();
$data["mm_field_billing_city"] = $user->getBillingCity();
$data["mm_field_billing_state"] = $user->getBillingState();
$data["mm_field_billing_zip"] = $user->getBillingZipCode();
$data["mm_field_billing_country"] = $user->getBillingCountry();
$form = new MM_CheckoutForm();
if (!isset($data["mm_field_billing_country"])) {
    $data["mm_field_billing_country"] = "";
}
$form->billingCountryList = MM_HtmlUtils::getCountryList($data["mm_field_billing_country"]);
echo $form->getJavascriptIncludes(false);
?>
<div id="mm-form-container">
	<table>
		<?php 
foreach ($fieldInfo as $field) {
    ?>
			<tr>
				<td><span class="mm-myaccount-dialog-label"><?php 
    echo $field->label;
    ?>
</span></td>
				<td>
				<span style="font-family:courier; font-size:11px; margin-top:5px;">
					<?php 
コード例 #24
0
ファイル: members.dialog.php プロジェクト: huynp/Critical
    $testData = MM_TestDataUtils::getCheckoutFormTestData();
    $memberData["mm_field_first_name"] = MM_TestDataUtils::getTestValue($testData, "mm_field_first_name");
    $memberData["mm_field_last_name"] = MM_TestDataUtils::getTestValue($testData, "mm_field_last_name");
    $memberData["mm_field_email"] = MM_TestDataUtils::getTestValue($testData, "mm_field_email", true);
    $memberData["mm_field_password"] = MM_TestDataUtils::getTestValue($testData, "mm_field_password");
    $memberData["mm_field_phone"] = MM_TestDataUtils::getTestValue($testData, "mm_field_phone");
}
?>
<div id="mm-new-member-form-container">
	<table cellspacing="10">
		<tr>
			<td width="120">Membership Level</td>
			<td>
				<select id="mm-new-membership-selector" style="width:300px;">
					<?php 
echo MM_HtmlUtils::getMemberships(null, true);
?>
				</select>
			</td>
		</tr>
		<tr>
			<td>First Name*</td>
			<td><input id="mm-new-first-name" type="text" size="40" value="<?php 
echo $memberData["mm_field_first_name"];
?>
" /></td>
		</tr>
		<tr>
			<td>Last Name*</td>
			<td><input id="mm-new-last-name" type="text" size="40" value="<?php 
echo $memberData["mm_field_last_name"];
コード例 #25
0
			Membership Level
		</label>
		
		&nbsp;&nbsp;
		
		<label>
			<input onchange="itemTypeChangeHandler();" name="mm_checkout_item_type" value='product' type="radio" <?php 
echo $dfltCheckoutItemType == "product" ? "checked" : "";
?>
  />
			Product
		</label>
	</div>
	
	<div style="margin-top:10px;">
		<select id="mm_membership_level_selector" name="mm_membership_level_selector" style="visible:false;">
		<?php 
echo MM_HtmlUtils::getMemberships($dfltCheckoutItemId);
?>
		</select>
		
		<select id="mm_product_selector" name="mm_product_selector" style="visible:false;">
		<?php 
echo MM_HtmlUtils::getProducts($dfltCheckoutItemId);
?>
		</select>
	</div>
</div>
<script type='text/javascript'>
itemTypeChangeHandler();
</script>
コード例 #26
0
ファイル: default_currency.php プロジェクト: huynp/Critical
	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 
    	through each product or coupon and update the prices to the new currency. MemberMouse does NOT perform automatic currency conversion.
    </div>
	
	<div style="margin-top:10px;">
		<select id="mm_currency_selector" name="mm_selected_currency">
		<?php 
echo MM_HtmlUtils::getSupportedCurrenciesList($currentCurrency);
?>
		</select>
		<?php 
echo $warningBox;
?>
	</div>
	
	<div style='margin:10px 0px 5px;'>
		<label>
			<input id="mm_postfix_iso_to_currency" name="mm_postfix_iso_to_currency" value='1' type="checkbox" <?php 
echo $postfixIsoToCurrency == "1" ? "checked" : "";
?>
 />
			Append the currency code after the amount (ie. $100.00 becomes $100.00 USD)
		</label>
コード例 #27
0
ファイル: diagnostics.php プロジェクト: huynp/Critical
<?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 
コード例 #28
0
?>
" <?php 
echo $actionValue["emailToId"] == MM_Action::$CURRENT_MEMBER_PLACEHOLDER ? "selected" : "";
?>
>Current Member</option>
		<?php 
echo MM_HtmlUtils::getEmployees($actionValue["emailToId"]);
?>
		</select>
	</div>
	
	<div>
		From
		<select id="mm-send-email-from" class="medium-text">
		<?php 
echo MM_HtmlUtils::getEmployees($actionValue["emailFromId"]);
?>
		</select>
	</div>
	
	<div>
		CC<?php 
echo MM_Utils::getInfoIcon("Enter emails addresses to CC separated by commas");
?>
		<input id="mm-send-email-cc" type="text" style="width:295px; font-family:courier; font-size:11px;" value="<?php 
echo $actionValue["emailCC"];
?>
"/>
	</div>

	<div style="margin-top:5px">
コード例 #29
0
ファイル: email_integration.php プロジェクト: huynp/Critical
 * MemberMouse(TM) (http://www.membermouse.com)
 * (c) MemberMouse, LLC. All rights reserved.
 */
$provider_entity = MM_EmailServiceProvider::getActiveEmailServiceProvider();
if (!$provider_entity->isValid()) {
    //TODO: handle error retrieving provider, shouldnt happen
}
$active_provider_token = $provider_entity->getToken();
?>

<div class="mm-wrap">
		<form id="provider-config-form" name="form" method="post" action="#" autocomplete="off">
		<div id="mm-email-service-provider-select" style="margin-top: 15px; margin-bottom: 15px; line-height: 26px;">
			Select Provider: 
			<select name="provider_token" id="provider_token" onChange="mmjs.showNewProviderOptions(jQuery('#provider-config-form :input').serializeArray());"><?php 
echo MM_HtmlUtils::getEmailServiceProvidersList($active_provider_token);
?>
</select>
		</div>
		
		<div>
			<div id="mm-email-service-provider-options" style="margin-bottom:10px;">
				<?php 
$provider = MM_EmailServiceProviderFactory::getActiveProvider();
$form = $provider->renderOptionsDialog(array());
echo $form->dialog;
?>
			</div>
			<div id="mm-email-service-provider-controls">
				<?php 
echo $form->controls;
コード例 #30
0
				</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();
}
?>