function vtprd_show_help_tooltip($context, $location = null) { // hasTooltip set up to show the next div (hidden) as tooltip... ?> <img class="helpImg twelveByTwelve hasTooltip" alt="help" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <div class="hideMe"> <?php /* //add in class for location as needed switch($location) { case 'title': echo ' tooltipTitleSpacing'; break; } */ ?> <b> <?php vtprd_show_help_tooltip_text($context); ?> </b> </div> <?php }
public function vtprd_deal() { global $vtprd_rule_template_framework, $vtprd_deal_structure_framework, $vtprd_deal_screen_framework, $vtprd_rule_display_framework, $vtprd_rule, $vtprd_info, $vtprd_setup_options; $selected = 'selected="selected"'; $checked = 'checked="checked"'; $disabled = 'disabled="disabled"'; $vtprdNonce = wp_create_nonce("vtprd-rule-nonce"); //nonce verified in vt-pricing-deals.php if (sizeof($vtprd_rule->rule_error_message) > 0) { //these error messages are from the last upd action attempt, coming from vtprd-rules-update.php $this->vtprd_error_messages(); } $currency_symbol = vtprd_get_currency_symbol(); //********************************************************************** //IE CSS OVERRIDES, done here to ensure they're last in line... //********************************************************************** echo '<!--[if IE]>'; echo '<link rel="stylesheet" type="text/css" media="all" href="' . VTPRD_URL . '/admin/css/vtprd-admin-style-ie.css" />'; echo '<![endif]-->'; // end override //This Div only shows if there is a JS error in the customer implementation of the plugin, as the JS hides this div, if the JS is active //vtprd_show_help_if_js_is_broken(); ?> <script type="text/javascript"> jQuery(document).ready(function($) { //Spinner gif wasn't working... $('.spinner').append('<img src="<?php echo VTPRD_URL; ?> /admin/images/indicator.gif" />'); }); </script> <?php /* <div class="hide-by-jquery"> <span class="">< ?php _e('If you can see this, there is a JavaScript Error on the Page. Hover over this →', 'vtprd'); ? > </span> < ?php vtprd_show_help_tooltip($context = 'onlyShowsIfJSerror', $location = 'title'); ? > </div> */ ?> <?php //BANNER AND BUTTON AREA ?> <img id="pricing-deals-img-preload" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/upgrade-bkgrnd-banner.jpg" /> <div id="upgrade-title-area"> <a href=" <?php echo VTPRD_PURCHASE_PRO_VERSION_BY_PARENT; ?> " title="Purchase Pro"> <img id="pricing-deals-img" alt="help" height="40px" width="40px" src="<?php echo VTPRD_URL; ?> /admin/images/sale-circle.png" /> </a> <h2> <?php _e('Pricing Deals', 'vtprd'); ?> <?php if (defined('VTPRD_PRO_DIRNAME')) { _e(' Pro', 'vtprd'); } ?> </h2> <?php if (!defined('VTPRD_PRO_DIRNAME')) { ?> <span class="group-power-msg"> <strong><em><?php _e('Create rules for Any Group you can think of, and More!', 'vtprd'); ?> </em></strong> <?php /* - Product Category - Pricing Deal Custom Category - Logged-in Status - Product - Variations! */ ?> </span> <span class="buy-button-area"> <a href="<?php echo VTPRD_PURCHASE_PRO_VERSION_BY_PARENT; ?> " class="help tooltip tooltipWide buy-button"> <span class="buy-button-label"><?php _e('Get Pricing Deals Pro', 'vtprd'); ?> </span> <b> <?php vtprd_show_help_tooltip_text('upgradeToPro'); ?> </b> </a> </span> <?php } ?> </div> <?php //RULE EXECUTION TYPE ?> <div class="display-virtual_box top-box"> <?php //************************ ?> <?php //HIDDEN FIELDS BEGIN ?> <?php //************************ ?> <?php //RULE EXECUTION blue-dropdownS - only one actually displays at a time, depending on ?> <input type="hidden" id="vtprd_nonce" name="vtprd_nonce" value="<?php echo $vtprdNonce; ?> " /> <?php //Hidden switch to communicate with the JS that the data is 1st time screenful ?> <input type="hidden" id="firstTimeBackFromServer" name="firstTimeBackFromServer" value="yes" /> <input type="hidden" id="upperSelectsFirstTime" name="upperSelectsFirstTime" value="yes" /> <input type="hidden" id="upperSelectsDoneSw" name="upperSelectsDoneSw" value="" /> <input type="hidden" id="catalogCheckoutMsg" name="catalogCheckoutMsg" value="<?php echo __('Message unused for Catalog Discount', 'vtprd'); ?> " /> <input type="hidden" id="vtprd-moreInfo" name="vtprd-docTitle" value="<?php _e('More Info', 'vtprd'); ?> " /> <?php //v1.0.5 added 2nd button ?> <input type="hidden" id="vtprd-docTitle" name="vtprd-docTitle" value="<?php _e('- Help! -', 'vtprd'); ?> " /> <?php /* Assign a numeric value to the switch showing HOW MANY selects have data on 1st return from server... */ $data_sw = '0'; //test the Various group filter selects and set a value... switch (true) { case $vtprd_rule->get_group_filter_select > ' ' && $vtprd_rule->get_group_filter_select != 'choose': $data_sw = '5'; break; case $vtprd_rule->buy_group_filter_select > ' ' && $vtprd_rule->buy_group_filter_select != 'choose': $data_sw = '4'; break; case $vtprd_rule->minimum_purchase_select > ' ' && $vtprd_rule->minimum_purchase_select != 'choose': $data_sw = '3'; break; case $vtprd_rule->pricing_type_select > ' ' && $vtprd_rule->pricing_type_select != 'choose': $data_sw = '2'; break; case $vtprd_rule->cart_or_catalog_select > ' ' && $vtprd_rule->cart_or_catalog_select != 'choose': $data_sw = '1'; break; } /* upperSelectsHaveDataFirstTime has values from 0 => 5 value = 0 no previous data saved value = 1 last run got to: cart_or_catalog_select value = 2 last run got to: pricing_type_select value = 3 last run got to: minimum_purchase_select value = 4 last run got to: buy_group_filter_select value = 5 last run got to: get_group_filter_select */ ?> <input type="hidden" id="upperSelectsHaveDataFirstTime" name="upperSelectsHaveDataFirstTime" value="<?php echo $data_sw; ?> " /> <input type="hidden" id="templateChanged" name="templateChanged" value="no" /> <?php //Statuses used for switching of the upper dropdowns ?> <input type="hidden" id="select_status_sw" name="select_status_sw" value="no" /> <input type="hidden" id="chg_detected_sw" name="chg_detected_sw" value="no" /> <?php //v1.0.7.6 ?> <?php //pass these two messages up to JS, translated here if necessary ?> <input type="hidden" id="fullMsg" name="fullMsg" value="<?php echo $vtprd_info['default_full_msg']; ?> " /> <input type="hidden" id="shortMsg" name="shortMsg" value="<?php echo $vtprd_info['default_short_msg']; ?> " /> <input id="pluginVersion" type="hidden" value="<?php if (defined('VTPRD_PRO_DIRNAME')) { echo "proVersion"; } else { echo "freeVersion"; } ?> " name="pluginVersion" /> <input id="rule_template_framework" type="hidden" value="<?php echo $vtprd_rule->rule_template; ?> " name="rule_template_framework" /> <?php //************************ ?> <?php //HIDDEN FIELDS END ?> <?php //************************ ?> <div class="template-area clear-left"> <div class="clear-left" id="blue-area-title-line"> <img id="blue-area-title-icon" src="<?php echo VTPRD_URL; ?> /admin/images/tab-icons.png" width="1" height="1" /> <span class="section-headings column-width2" id="blue-area-title"> <?php _e('Blueprint', 'vtprd'); ?> </span> </div> <div class="clear-left" id="first-blue-line"> <span class="left-column left-column-nothing-on-top"> <?php //mwn20140414 added id ?> <label id="cart-or-catalog-select-label" class="hasWizardHelpRight" for="<?php echo $vtprd_rule_display_framework['cart_or_catalog_select']['label']['for']; ?> "><?php echo $vtprd_rule_display_framework['cart_or_catalog_select']['label']['title']; ?> </label> <?php vtprd_show_object_hover_help('cart_or_catalog_select', 'wizard'); ?> </span> <span class="blue-dropdown right-column" id="cart-or-catalog-select-area"> <select id="<?php echo $vtprd_rule_display_framework['cart_or_catalog_select']['select']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['cart_or_catalog_select']['select']['class']; ?> " name="<?php echo $vtprd_rule_display_framework['cart_or_catalog_select']['select']['name']; ?> " tabindex="<?php echo $vtprd_rule_display_framework['cart_or_catalog_select']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['cart_or_catalog_select']['option']); $i++) { ?> <option id="<?php echo $vtprd_rule_display_framework['cart_or_catalog_select']['option'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['cart_or_catalog_select']['option'][$i]['class']; ?> " value="<?php echo $vtprd_rule_display_framework['cart_or_catalog_select']['option'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['cart_or_catalog_select']['option'][$i]['value'] == $vtprd_rule->cart_or_catalog_select) { echo $selected; } ?> > <?php echo $vtprd_rule_display_framework['cart_or_catalog_select']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="shortIntro shortIntro2" id="buy_group_filter_comment"> <em><?php _e('Where is the discount', 'vtprd'); ?> </em> <br> <em><?php _e('taken first?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('cart_or_catalog_select', 'small'); ?> </span> </span> </div> <?php //end blue-line ?> <div class="blue-line clear-left"> <span class="left-column left-column-less-padding-top3"> <?php //mwn20140414 added id ?> <label id="pricing-type-select-label" class="hasWizardHelpRight" for="<?php echo $vtprd_rule_display_framework['pricing_type_select']['label']['for']; ?> "><?php echo $vtprd_rule_display_framework['pricing_type_select']['label']['title']; ?> </label> <?php vtprd_show_object_hover_help('pricing_type_select', 'wizard'); ?> </span> <span class="blue-dropdown right-column" id="pricing-type-select-area"> <select id="<?php echo $vtprd_rule_display_framework['pricing_type_select']['select']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['pricing_type_select']['select']['class']; ?> " name="<?php echo $vtprd_rule_display_framework['pricing_type_select']['select']['name']; ?> " tabindex="<?php echo $vtprd_rule_display_framework['pricing_type_select']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['pricing_type_select']['option']); $i++) { ?> <option id="<?php echo $vtprd_rule_display_framework['pricing_type_select']['option'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['pricing_type_select']['option'][$i]['class']; ?> " value="<?php echo $vtprd_rule_display_framework['pricing_type_select']['option'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['pricing_type_select']['option'][$i]['value'] == $vtprd_rule->pricing_type_select) { echo $selected; } ?> > <?php echo $vtprd_rule_display_framework['pricing_type_select']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="shortIntro shortIntro2" id="buy_group_filter_comment"> <span class=""> <em><?php _e("What kind of Deal is it?", 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('pricing_type_select', 'small'); ?> </span> <br> <a class="commentURL" target="_blank" href="http://www.varktech.com/documentation/pricing-deals/examples"><?php _e('Deal Examples', 'vtprd'); ?> </a> </span> </span> </div> <?php //end blue-line ?> <div class="blue-line clear-left"> <span class="left-column left-column-less-padding-top3"> <?php //mwn20140414 added id ?> <label id="minimum-purchase-select-label" class="hasWizardHelpRight" for="<?php echo $vtprd_rule_display_framework['minimum_purchase_select']['label']['for']; ?> "><?php echo $vtprd_rule_display_framework['minimum_purchase_select']['label']['title']; ?> </label> <?php vtprd_show_object_hover_help('minimum_purchase_select', 'wizard'); ?> </span> <span class="blue-dropdown blue-dropdown-minimum right-column" id="minimum-purchase-select-area"> <select id="<?php echo $vtprd_rule_display_framework['minimum_purchase_select']['select']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['minimum_purchase_select']['select']['class']; ?> " name="<?php echo $vtprd_rule_display_framework['minimum_purchase_select']['select']['name']; ?> " tabindex="<?php echo $vtprd_rule_display_framework['minimum_purchase_select']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['minimum_purchase_select']['option']); $i++) { ?> <option id="<?php echo $vtprd_rule_display_framework['minimum_purchase_select']['option'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['minimum_purchase_select']['option'][$i]['class']; ?> " value="<?php echo $vtprd_rule_display_framework['minimum_purchase_select']['option'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['minimum_purchase_select']['option'][$i]['value'] == $vtprd_rule->minimum_purchase_select) { echo $selected; } ?> > <?php echo $vtprd_rule_display_framework['minimum_purchase_select']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="shortIntro shortIntro2" id="buy_group_filter_comment"> <em> <?php _e('Buy this,', 'vtprd'); ?> <br> <?php _e('Discount this?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('minimum_purchase_select', 'small'); ?> </span> </span> </div> <?php //end blue-line ?> <div class="blue-line blue-line-less-top clear-left"> <span class="left-column"> <label class="scheduling-label hasWizardHelpRight" id="scheduling-label-item"><?php _e('Deal Schedule', 'vtprd'); ?> </label> <?php vtprd_show_object_hover_help('scheduling', 'wizard'); ?> </span> <span class="blue-dropdown scheduling-group right-column" id="scheduling-area"> <span class="date-line" id='date-line-0'> <?php // <label class="scheduling-label">Scheduling</label> ?> <span class="date-line-area"> <?php $this->vtprd_rule_scheduling(); ?> </span> <span class="on-off-switch"> <?php // <label for="rule-state-select">On/Off Switch</label> ?> <select id="<?php echo $vtprd_rule_display_framework['rule_on_off_sw_select']['select']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['rule_on_off_sw_select']['select']['class']; ?> " name="<?php echo $vtprd_rule_display_framework['rule_on_off_sw_select']['select']['name']; ?> " tabindex="<?php echo $vtprd_rule_display_framework['rule_on_off_sw_select']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['rule_on_off_sw_select']['option']); $i++) { ?> <option id="<?php echo $vtprd_rule_display_framework['rule_on_off_sw_select']['option'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['rule_on_off_sw_select']['option'][$i]['class']; ?> " value="<?php echo $vtprd_rule_display_framework['rule_on_off_sw_select']['option'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['rule_on_off_sw_select']['option'][$i]['value'] == $vtprd_rule->rule_on_off_sw_select) { echo $selected; } ?> > <?php echo $vtprd_rule_display_framework['rule_on_off_sw_select']['option'][$i]['title']; ?> </option> <?php } ?> </select> </span> </span> <span class="shortIntro" id="buy_group_filter_comment"> <em> <?php _e('Active When?', 'vtprd'); ?> <br> <?php _e('On or Off?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('scheduling', 'small'); ?> </span> </span> </div> <?php //end blue-line ?> <div class="blue-line clear-left"> <span class="left-column"> </span> <span class="right-column"> <span class="blue-dropdown rule-type" id="rule-type-select-area"> <label class="rule-type-label hasWizardHelpRight"><?php _e('Show Me', 'vtprd'); ?> </label> <?php vtprd_show_object_hover_help('rule-type-select', 'wizard'); ?> <span id="rule-type-info" class="clear-left"> <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['rule-type-select']); $i++) { ?> <input id="<?php echo $vtprd_rule_display_framework['rule-type-select'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['rule-type-select'][$i]['class']; ?> " type="<?php echo $vtprd_rule_display_framework['rule-type-select'][$i]['type']; ?> " name="<?php echo $vtprd_rule_display_framework['rule-type-select'][$i]['name']; ?> " value="<?php echo $vtprd_rule_display_framework['rule-type-select'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['rule-type-select'][$i]['value'] == $vtprd_rule->rule_type_select) { echo $checked; } ?> /><span id="<?php echo $vtprd_rule_display_framework['rule-type-select'][$i]['id'] . '-label'; ?> "> <?php echo $vtprd_rule_display_framework['rule-type-select'][$i]['label']; ?> </span> <?php } ?> </span> </span> <span class="blue-dropdown wizard-type" id="wizard-select-area"> <label class="wizard-type-label"><?php _e('Hover Help', 'vtprd'); ?> </label> <select id="<?php echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['select']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['select']['class']; ?> hasHoverHelp2" name="<?php echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['select']['name']; ?> " tabindex="<?php echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['wizard_on_off_sw_select']['option']); $i++) { ?> <option id="<?php echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['option'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['option'][$i]['class']; ?> " value="<?php echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['option'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['wizard_on_off_sw_select']['option'][$i]['value'] == $vtprd_rule->wizard_on_off_sw_select) { echo $selected; } ?> > <?php echo $vtprd_rule_display_framework['wizard_on_off_sw_select']['option'][$i]['title']; ?> </option> <?php } ?> </select> <?php vtprd_show_object_hover_help('hover-help', 'small'); ?> </span> </span> </div> <?php //end blue-line ?> <?php //v1.0.9.0 begin $memory = wc_let_to_num(WP_MEMORY_LIMIT); if ($memory < 67108864) { //test for 64mb ?> <div class="blue-line clear-left"> <span class="left-column"> </span> <span class="right-column"> <?php echo 'WP Memory Limit: ' . sprintf(__('%s - We recommend setting memory to at least 64MB. See: <a href="%s">Increasing memory allocated to PHP</a>', 'woocommerce'), size_format($memory), 'http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP'); ?> </span> </div> <?php //end blue-line ?> <?php } //v1.0.9.0 end ?> </div> <?php //end template-area ?> </div> <?php //end top-box ?> <div class="display-virtual_box hideMe" id="lower-screen-wrapper" > <?php //**************** //DEAL INFO GROUP //**************** ?> <div class="display-virtual_box clear-left" id="rule_deal_info_group"> <?php // for($k=0; $k < sizeof($vtprd_rule->rule_deal_info[$k]); $k++) { ?> <?php for ($k = 0; $k < sizeof($vtprd_rule->rule_deal_info); $k++) { ?> <div class="display-virtual_box rule_deal_info" id="rule_deal_info_line<?php echo '_' . $k; ?> "> <div class="display-virtual_box" id="buy_info<?php echo '_' . $k; ?> "> <input id="hiddenDealInfoLine<?php echo '_' . $k; ?> " type="hidden" value="lineActive" name="dealInfoLine<?php echo '_' . $k; ?> " /> <?php //***************************************************** //set the switch used on the screen for JS data check //***************************************************** ?> <?php //end switch ************************************** ?> <div class="screen-box buy_group_title_box"> <span class="buy_group_title-area"> <img class="buy_amt_title_icon" src="<?php echo VTPRD_URL; ?> /admin/images/tab-icons.png" width="1" height="1" /> <?php //EITHER / OR TITLE BASED ON DISCOUNT PRICING TYPE ?> <span class="section-headings first-level-title showBuyAsDiscount" id="buy_group_title_asDiscount"> <?php _e('Buy Group ', 'vtprd'); ?> <span class="label-no-cap this-is-the-discount"> <?php _e('(Discounted Group)', 'vtprd'); ?> </span> </span> <span class="section-headings first-level-title showBuyAsBuy" id="buy_group_title_asBuy"> <?php _e('Buy Group', 'vtprd'); ?> </span> </span> <span class="column-heading-titles"> <span class="column-heading-titles-type"><?php // _e('Type', 'vtprd'); ?> </span> <span class="column-heading-titles-count"><?php // _e('Count', 'vtprd'); ?> </span> </span> </div><!-- //buy_group_title_box --> <div class="screen-box buy_group_box" id="buy_group_box<?php echo '_' . $k; ?> " > <span class="left-column"> <span class="title hasWizardHelpRight" id="buy_group_title"> <a id="buy_group_title_anchor" class="title-anchors second-level-title" href="javascript:void(0);"><span class="showBuyAsBuy"><?php _e('Group Product Filter', 'vtprd'); ?> </span><span class="showBuyAsDiscount"><?php _e('Group Product Filter', 'vtprd'); ?> </span> </a> <span class="required-asterisk">* </span> </span> <?php vtprd_show_object_hover_help('inPop', 'wizard'); ?> </span> <span class="dropdown buy_group right-column" id="buy_group_dropdown"> <select id="<?php echo $vtprd_rule_display_framework['inPop']['select']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['inPop']['select']['class']; ?> " name="<?php echo $vtprd_rule_display_framework['inPop']['select']['name']; ?> " tabindex="<?php //echo $vtprd_rule_display_framework['inPop']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['inPop']['option']); $i++) { //pick up the free/pro version of the title => in this case, title and title3 $title = $vtprd_rule_display_framework['inPop']['option'][$i]['title']; if (defined('VTPRD_PRO_DIRNAME') && $vtprd_rule_display_framework['inPop']['option'][$i]['title3'] > ' ') { $title = $vtprd_rule_display_framework['inPop']['option'][$i]['title3']; } ?> <option id="<?php echo $vtprd_rule_display_framework['inPop']['option'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['inPop']['option'][$i]['class']; ?> " value="<?php echo $vtprd_rule_display_framework['inPop']['option'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['inPop']['option'][$i]['value'] == $vtprd_rule->inPop) { echo $selected; } ?> > <?php echo $title; ?> </option> <?php } ?> </select> <span class="buy_group_line_remainder_class" id="buy_group_line_remainder"> <?php $this->vtprd_buy_group_cntl(); ?> </span> <?php /* v1.1 "Product must be in the Filter Group" messaging removed! */ ?> </span> </div><!-- //buy_group_box --> <div class="screen-box buy_amt_box_class<?php echo '_' . $k; ?> " id="buy_amt_box<?php echo '_' . $k; ?> " > <span class="left-column"> <span class="title hasWizardHelpRight" id="buy_amt_title<?php echo '_' . $k; ?> "> <a id="buy_amt_title_anchor<?php echo '_' . $k; ?> " class="title-anchors second-level-title" href="javascript:void(0);"><span class="showBuyAsBuy"><?php _e('Group Amount', 'vtprd'); ?> </span><span class="showBuyAsDiscount"><?php _e('Group Amount', 'vtprd'); ?> </span> </a> <span class="required-asterisk">*</span> </span> <?php vtprd_show_object_hover_help('buy_amt_type', 'wizard'); ?> </span> <span class="dropdown buy_amt right-column" id="buy_amt_dropdown<?php echo '_' . $k; ?> "> <select id="<?php echo $vtprd_deal_screen_framework['buy_amt_type']['select']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_amt_type']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['buy_amt_type']['select']['name'] . '_' . $k; ?> " tabindex="<?php echo $vtprd_deal_screen_framework['buy_amt_type']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['buy_amt_type']['option']); $i++) { $this->vtprd_change_title_currency_symbol('buy_amt_type', $i, $currency_symbol); ?> <option id="<?php echo $vtprd_deal_screen_framework['buy_amt_type']['option'][$i]['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_amt_type']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['buy_amt_type']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['buy_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['buy_amt_type']) { echo $selected; } ?> > <?php echo $vtprd_deal_screen_framework['buy_amt_type']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="buy_amt_line_remainder buy_amt_line_remainder_class<?php echo '_' . $k; ?> " id="buy_amt_line_remainder<?php echo '_' . $k; ?> "> <span class="amt-field buy_amt_count" id="buy_amt_count_area<?php echo '_' . $k; ?> "> <input id="<?php echo $vtprd_deal_screen_framework['buy_amt_count']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_amt_count']['class']; ?> " type="<?php echo $vtprd_deal_screen_framework['buy_amt_count']['type']; ?> " name="<?php echo $vtprd_deal_screen_framework['buy_amt_count']['name'] . '_' . $k; ?> " value="<?php echo $vtprd_rule->rule_deal_info[$k]['buy_amt_count']; ?> " /> </span> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('Buy how many / how much', 'vtprd'); ?> </em><br> <em> <?php _e('to get access to the Deal?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('buy_amt_type', 'small'); ?> </span> </span> </div><!-- //buy_amt_box --> <div class="screen-box buy_amt_box_appliesto_class<?php echo '_' . $k; ?> buy_amt_line_remainder clear-left" id="buy_amt_box_appliesto<?php echo '_' . $k; ?> " > <span class="show-in-adanced-mode-only"> <span class="left-column left-column-less-padding-top3"> <span class="title hasWizardHelpRight" id="buy_amt_type_title<?php echo '_' . $k; ?> " > <a id="buy_amt_title_anchor<?php echo '_' . $k; ?> " class="title-anchors second-level-title" href="javascript:void(0);"><?php _e('Group Amount', 'vtprd'); echo '<br>'; _e('Applies to', 'vtprd'); ?> </a> </span> <?php vtprd_show_object_hover_help('buy_amt_applies_to', 'wizard'); ?> </span> <span class="dropdown right-column"> <select id="<?php echo $vtprd_deal_screen_framework['buy_amt_applies_to']['select']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_amt_applies_to']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['buy_amt_applies_to']['select']['name'] . '_' . $k; ?> " tabindex="<?php echo $vtprd_deal_screen_framework['buy_amt_applies_to']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['buy_amt_applies_to']['option']); $i++) { ?> <option id="<?php echo $vtprd_deal_screen_framework['buy_amt_applies_to']['option'][$i]['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_amt_applies_to']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['buy_amt_applies_to']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['buy_amt_applies_to']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['buy_amt_applies_to']) { echo $selected; } ?> > <?php echo $vtprd_deal_screen_framework['buy_amt_applies_to']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="shortIntro" > <em> <?php _e('How is the Buy', 'vtprd'); ?> </em><br> <em> <?php _e('Group Amount counted?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('buy_amt_applies_to', 'small'); ?> </span> </span> </span> </div><!-- //buy_amt_box_appliesto --> <div class="screen-box buy_amt_mod_box buy_amt_mod_box_class<?php echo '_' . $k; ?> " id="buy_amt_mod_box<?php echo '_' . $k; ?> " > <span class="left-column"> <span class="title third-level-title hasWizardHelpRight" id="buy_amt_mod_title<?php echo '_' . $k; ?> " > <a id="buy_amt_mod_title_anchor<?php echo '_' . $k; ?> " class="title-anchors third-level-title" href="javascript:void(0);"><span class="showBuyAsBuy"><?php _e('Min / Max', 'vtprd'); ?> </span><span class="showBuyAsDiscount"><?php _e('Min / Max', 'vtprd'); ?> </span></a> </span> <?php vtprd_show_object_hover_help('buy_amt_mod', 'wizard'); ?> </span> <span class="dropdown buy_amt_mod right-column" id="buy_amt_mod_dropdown<?php echo '_' . $k; ?> "> <select id="<?php echo $vtprd_deal_screen_framework['buy_amt_mod']['select']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_amt_mod']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['buy_amt_mod']['select']['name'] . '_' . $k; ?> " tabindex="<?php echo $vtprd_deal_screen_framework['buy_amt_mod']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['buy_amt_mod']['option']); $i++) { $this->vtprd_change_title_currency_symbol('buy_amt_mod', $i, $currency_symbol); ?> <option id="<?php echo $vtprd_deal_screen_framework['buy_amt_mod']['option'][$i]['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_amt_mod']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['buy_amt_mod']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['buy_amt_mod']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['buy_amt_mod']) { echo $selected; } ?> > <?php echo $vtprd_deal_screen_framework['buy_amt_mod']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="amt-field buy_amt_mod_count_area buy_amt_mod_count_area_class<?php echo '_' . $k; ?> " id="buy_amt_mod_count_area<?php echo '_' . $k; ?> "> <input id="<?php echo $vtprd_deal_screen_framework['buy_amt_mod_count']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_amt_mod_count']['class']; ?> " type="<?php echo $vtprd_deal_screen_framework['buy_amt_mod_count']['type']; ?> " name="<?php echo $vtprd_deal_screen_framework['buy_amt_mod_count']['name'] . '_' . $k; ?> " value="<?php echo $vtprd_rule->rule_deal_info[$k]['buy_amt_mod_count']; ?> " /> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('Put an upper or lower ', 'vtprd'); ?> </em><br> <em> <?php _e('limit on the Buy Group', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('buy_amt_mod', 'small'); ?> </span> </span> </div><!-- //buy_amt_mod_box --> <div class="screen-box buy_repeat_box buy_repeat_box_class<?php echo '_' . $k; ?> " id="buy_repeat_box<?php echo '_' . $k; ?> " > <?php //Rule repeat shifted to end of action area, although processed first ?> <span class="left-column"> <span class="title third-level-title hasWizardHelpRight" id="buy_repeat_title<?php echo '_' . $k; ?> "> <a id="buy_repeat_title_anchor<?php echo '_' . $k; ?> " class="title-anchors third-level-title" href="javascript:void(0);"><span class="showBuyAsBuy"><?php echo __('Rule Usage Count', 'vtprd'); ?> </span><span class="showBuyAsDiscount"><?php echo __('Rule Usage Count', 'vtprd'); ?> </span></a> <span class="required-asterisk">* </span> </span> <?php vtprd_show_object_hover_help('buy_repeat_condition', 'wizard'); ?> </span> <span class="dropdown buy_repeat right-column" id="buy_repeat_dropdown<?php echo '_' . $k; ?> "> <select id="<?php echo $vtprd_deal_screen_framework['buy_repeat_condition']['select']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_repeat_condition']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['buy_repeat_condition']['select']['name'] . '_' . $k; ?> " tabindex="<?php echo $vtprd_deal_screen_framework['buy_repeat_condition']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['buy_repeat_condition']['option']); $i++) { ?> <option id="<?php echo $vtprd_deal_screen_framework['buy_repeat_condition']['option'][$i]['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_repeat_condition']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['buy_repeat_condition']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['buy_repeat_condition']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['buy_repeat_condition']) { echo $selected; } ?> > <?php echo $vtprd_deal_screen_framework['buy_repeat_condition']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="amt-field buy_repeat_count_area buy_repeat_count_area_class<?php echo '_' . $k; ?> " id="buy_repeat_count_area<?php echo '_' . $k; ?> "> <input id="<?php echo $vtprd_deal_screen_framework['buy_repeat_count']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['buy_repeat_count']['class']; ?> " type="<?php echo $vtprd_deal_screen_framework['buy_repeat_count']['type']; ?> " name="<?php echo $vtprd_deal_screen_framework['buy_repeat_count']['name'] . '_' . $k; ?> " value="<?php echo $vtprd_rule->rule_deal_info[$k]['buy_repeat_count']; ?> " /> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('How many times can the Rule ', 'vtprd'); ?> </em><br> <em> <?php _e('be used per Cart?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('buy_repeat_condition', 'small'); ?> </span> </span> </div><!-- //buy_repeat_box --> </div><!-- //buy_info --> <?php //ACtion INFO ?> <div class="display-virtual_box action_info" id="action_info<?php echo '_' . $k; ?> "> <span class="box-border-line" id="line-above-action-info"> </span> <div class="screen-box get_group_title_box"> <span class="get_group_title-area"> <img class="get_amt_title_icon" src="<?php echo VTPRD_URL; ?> /admin/images/tab-icons.png" width="1" height="1" /> <span class="section-headings first-level-title showGetAsDiscount" id="get_group_title_active"> <?php _e('Get Group ', 'vtprd'); ?> <span class="label-no-cap"> <?php _e('(Discounted Group)', 'vtprd'); ?> </span> </span> <span class="section-headings first-level-title showGetAsGet" id="get_group_title_inactive"> <?php _e('Get Group ', 'vtprd'); ?> <span class="label-no-cap"> <?php _e('(Inactive)', 'vtprd'); ?> </span> </span> </span> </div><!-- //get_group_title_box --> <div class="screen-box action_group_box" id="action_group_box<?php echo '_' . $k; ?> " > <span class="left-column"> <span class="title hasWizardHelpRight" id="action_group_title"> <a id="action_group_title_anchor" class="title-anchors second-level-title" href="javascript:void(0);"><span class="showGetAsGet"><?php _e('Group Product Filter', 'vtprd'); ?> </span><span class="showGetAsDiscount"><?php _e('Group Product Filter', 'vtprd'); ?> </span></a> <span class="required-asterisk">*</span> </span> <?php vtprd_show_object_hover_help('actionPop', 'wizard'); ?> </span> <span class="dropdown action_group right-column" id="action_group_dropdown_0"> <select id="<?php echo $vtprd_rule_display_framework['actionPop']['select']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['actionPop']['select']['class']; ?> " name="<?php echo $vtprd_rule_display_framework['actionPop']['select']['name']; ?> " tabindex="<?php //echo $vtprd_rule_display_framework['actionPop']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['actionPop']['option']); $i++) { //pick up the free/pro version of the title => in this case, title and title3 $title = $vtprd_rule_display_framework['actionPop']['option'][$i]['title']; if (defined('VTPRD_PRO_DIRNAME') && $vtprd_rule_display_framework['actionPop']['option'][$i]['title3'] > ' ') { $title = $vtprd_rule_display_framework['actionPop']['option'][$i]['title3']; } ?> <option id="<?php echo $vtprd_rule_display_framework['actionPop']['option'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['actionPop']['option'][$i]['class']; ?> " value="<?php echo $vtprd_rule_display_framework['actionPop']['option'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['actionPop']['option'][$i]['value'] == $vtprd_rule->actionPop) { echo $selected; } ?> > <?php echo $title; ?> </option> <?php } ?> </select> <span class="action_group_line_remainder_class" id="action_group_line_remainder"> <?php $this->vtprd_action_group_cntl(); ?> </span> <?php /* v1.1 "Product must be in the Filter Group" messaging removed! */ ?> </span> </div><!-- //action_group_box --> <div class="screen-box action_amt_box action_amt_box_class<?php echo '_' . $k; ?> " id="action_amt_box<?php echo '_' . $k; ?> " > <span class="left-column"> <span class="title hasWizardHelpRight" id="action_amt_type_title<?php echo '_' . $k; ?> " > <a id="action_amt_title_anchor<?php echo '_' . $k; ?> " class="title-anchors second-level-title" href="javascript:void(0);"><span class="showGetAsGet"><?php _e('Group Amount', 'vtprd'); ?> </span><span class="showGetAsDiscount"><?php _e('Group Amount', 'vtprd'); ?> </span></a> <span class="required-asterisk">*</span> </span> <?php vtprd_show_object_hover_help('action_amt_type', 'wizard'); ?> </span> <span class="dropdown action_amt right-column" id="action_amt_dropdown<?php echo '_' . $k; ?> "> <select id="<?php echo $vtprd_deal_screen_framework['action_amt_type']['select']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_amt_type']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['action_amt_type']['select']['name'] . '_' . $k; ?> " tabindex="<?php echo $vtprd_deal_screen_framework['action_amt_type']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['action_amt_type']['option']); $i++) { $this->vtprd_change_title_currency_symbol('action_amt_type', $i, $currency_symbol); ?> <option id="<?php echo $vtprd_deal_screen_framework['action_amt_type']['option'][$i]['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_amt_type']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['action_amt_type']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['action_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['action_amt_type']) { echo $selected; } ?> > <?php echo $vtprd_deal_screen_framework['action_amt_type']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="action_amt_line_remainder action_amt_line_remainder_class<?php echo '_' . $k; ?> " id="action_amt_line_remainder<?php echo '_' . $k; ?> "> <span class="amt-field action_amt_count" id="action_amt_count_pair<?php echo '_' . $k; ?> "> <input id="<?php echo $vtprd_deal_screen_framework['action_amt_count']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_amt_count']['class']; ?> " type="<?php echo $vtprd_deal_screen_framework['action_amt_count']['type']; ?> " name="<?php echo $vtprd_deal_screen_framework['action_amt_count']['name'] . '_' . $k; ?> " value="<?php echo $vtprd_rule->rule_deal_info[$k]['action_amt_count']; ?> " /> </span> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('Get how many / how much', 'vtprd'); ?> </em><br> <em> <?php _e('to get access to the Deal?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('action_amt_type', 'small'); ?> </span> </span> </div><!-- //action_amt_box --> <div class="screen-box action_amt_box_appliesto_class<?php echo '_' . $k; ?> action_amt_line_remainder clear-left " id="action_amt_box_appliesto<?php echo '_' . $k; ?> " > <span class="show-in-adanced-mode-only"> <span class="left-column left-column-less-padding-top3"> <span class="title hasWizardHelpRight" id="action_amt_type_title<?php echo '_' . $k; ?> " > <a id="action_amt_title_anchor<?php echo '_' . $k; ?> " class="title-anchors second-level-title" href="javascript:void(0);"><span class="showGetAsGet"><?php _e('Group Amount', 'vtprd'); echo '<br>'; _e('Applies to', 'vtprd'); ?> </span><span class="showGetAsDiscount"><?php _e('Group Amount', 'vtprd'); echo '<br>'; _e('Applies to', 'vtprd'); ?> </span></a> </span> <?php vtprd_show_object_hover_help('action_amt_applies_to', 'wizard'); ?> </span> <span class="dropdown right-column"> <select id="<?php echo $vtprd_deal_screen_framework['action_amt_applies_to']['select']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_amt_applies_to']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['action_amt_applies_to']['select']['name'] . '_' . $k; ?> " tabindex="<?php //echo $vtprd_deal_screen_framework['action_amt_applies_to']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['action_amt_applies_to']['option']); $i++) { ?> <option id="<?php echo $vtprd_deal_screen_framework['action_amt_applies_to']['option'][$i]['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_amt_applies_to']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['action_amt_applies_to']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['action_amt_applies_to']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['action_amt_applies_to']) { echo $selected; } ?> > <?php echo $vtprd_deal_screen_framework['action_amt_applies_to']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="shortIntro" > <em> <?php _e('How is the Get', 'vtprd'); ?> </em><br> <em> <?php _e('Group Amount counted?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('action_amt_applies_to', 'small'); ?> </span> </span> </span> </div><!-- //action_amt_box_appliesto --> <div class="screen-box action_amt_mod_box action_amt_mod_box_class<?php echo '_' . $k; ?> " id="action_amt_mod_box<?php echo '_' . $k; ?> " > <span class="left-column"> <span class="title third-level-title hasWizardHelpRight" id="action_amt_mod_title<?php echo '_' . $k; ?> " > <a id="action_amt_mod_title_anchor<?php echo '_' . $k; ?> " class="title-anchors third-level-title" href="javascript:void(0);"><span class="showGetAsGet"><?php _e('Min / Max', 'vtprd'); ?> </span><span class="showGetAsDiscount"><?php _e('Min / Max', 'vtprd'); ?> </span></a> </span> <?php vtprd_show_object_hover_help('action_amt_mod', 'wizard'); ?> </span> <span class="dropdown right-column" id="action_amt_mod_dropdown<?php echo '_' . $k; ?> "> <select id="<?php echo $vtprd_deal_screen_framework['action_amt_mod']['select']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_amt_mod']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['action_amt_mod']['select']['name'] . '_' . $k; ?> " tabindex="<?php //echo $vtprd_deal_screen_framework['action_amt_mod']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['action_amt_mod']['option']); $i++) { $this->vtprd_change_title_currency_symbol('action_amt_mod', $i, $currency_symbol); ?> <option id="<?php echo $vtprd_deal_screen_framework['action_amt_mod']['option'][$i]['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_amt_mod']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['action_amt_mod']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['action_amt_mod']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['action_amt_mod']) { echo $selected; } ?> > <?php echo $vtprd_deal_screen_framework['action_amt_mod']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="amt-field action_amt_mod_count_area action_amt_mod_count_area_class<?php echo '_' . $k; ?> " id="action_amt_mod_count_area<?php echo '_' . $k; ?> "> <input id="<?php echo $vtprd_deal_screen_framework['action_amt_mod_count']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_amt_mod_count']['class']; ?> " type="<?php echo $vtprd_deal_screen_framework['action_amt_mod_count']['type']; ?> " name="<?php echo $vtprd_deal_screen_framework['action_amt_mod_count']['name'] . '_' . $k; ?> " value="<?php echo $vtprd_rule->rule_deal_info[$k]['action_amt_mod_count']; ?> " /> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('Put an upper or lower ', 'vtprd'); ?> </em><br> <em> <?php _e('limit on the Get Group', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('action_amt_mod', 'small'); ?> </span> </span> </div><!-- //action_amt_mod_box --> <div class="screen-box action_repeat_condition_box action_repeat_condition_box_class<?php echo '_' . $k; ?> " id="action_repeat_condition_box<?php echo '_' . $k; ?> " > <?php //Action repeat shifted to end of action area, although processed first ?> <span class="left-column"> <span class="title third-level-title hasWizardHelpRight" id="action_repeat_condition_title<?php echo '_' . $k; ?> " > <a id="action_repeat_condition_title_anchor<?php echo '_' . $k; ?> " class="title-anchors third-level-title" href="javascript:void(0);"><span class="showGetAsGet"><?php _e('Group Repeat', 'vtprd'); ?> </span><span class="showGetAsDiscount"><?php _e('Group Repeat', 'vtprd'); ?> </span></a> </span> <?php vtprd_show_object_hover_help('action_repeat_condition', 'wizard'); ?> </span> <span class="dropdown action_repeat_condition right-column" id="action_repeat_condition_dropdown<?php echo '_' . $k; ?> "> <select id="<?php echo $vtprd_deal_screen_framework['action_repeat_condition']['select']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_repeat_condition']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['action_repeat_condition']['select']['name'] . '_' . $k; ?> " tabindex="<?php //echo $vtprd_deal_screen_framework['action_repeat_condition']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['action_repeat_condition']['option']); $i++) { ?> <option id="<?php echo $vtprd_deal_screen_framework['action_repeat_condition']['option'][$i]['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_repeat_condition']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['action_repeat_condition']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['action_repeat_condition']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['action_repeat_condition']) { echo $selected; } ?> > <?php echo $vtprd_deal_screen_framework['action_repeat_condition']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="amt-field action_repeat_count_area action_repeat_count_area_class<?php echo '_' . $k; ?> " id="action_repeat_count_area<?php echo '_' . $k; ?> "> <input id="<?php echo $vtprd_deal_screen_framework['action_repeat_count']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['action_repeat_count']['class']; ?> " type="<?php echo $vtprd_deal_screen_framework['action_repeat_count']['type']; ?> " name="<?php echo $vtprd_deal_screen_framework['action_repeat_count']['name'] . '_' . $k; ?> " value="<?php echo $vtprd_rule->rule_deal_info[$k]['action_repeat_count']; ?> " /> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('How many times may the Get Group be', 'vtprd'); ?> </em><br> <em> <?php _e('used (after Buy Group satisfied)?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('action_repeat_condition', 'small'); ?> </span> </span> </div><!-- //action_repeat_condition_box --> </div><!-- //action_info --> <span class="box-border-line"> </span> <div class="display-virtual_box" id="discount_info"> <div class="screen-box discount_amt_box discount_amt_box_class<?php echo '_' . $k; ?> " id="discount_amt_box<?php echo '_' . $k; ?> " > <span class="title" id="discount_amt_title<?php echo '_' . $k; ?> " > <img class="discount_amt_title_icon" src="<?php echo VTPRD_URL; ?> /admin/images/tab-icons.png" width="1" height="1" /> <a id="discount_amt_title_anchor<?php echo '_' . $k; ?> " class="section-headings first-level-title" href="javascript:void(0);"><?php _e('Discount ', 'vtprd'); echo $currency_symbol; ?> </a> </span> <span class="clear-both left-column"> <span class="title discount_action_type hasWizardHelpRight" id="discount_action_type_title<?php echo '_' . $k; ?> " > <a id="discount_action_title_anchor<?php echo '_' . $k; ?> " class="title-anchors second-level-title" href="javascript:void(0);"><?php _e('Discount Amount', 'vtprd'); ?> </a> <span class="required-asterisk">*</span> </span> <?php vtprd_show_object_hover_help('discount_amt_type', 'wizard'); ?> </span> <span class="dropdown discount_amt_type right-column" id="discount_amt_type_dropdown<?php echo '_' . $k; ?> "> <select id="<?php echo $vtprd_deal_screen_framework['discount_amt_type']['select']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_amt_type']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['discount_amt_type']['select']['name'] . '_' . $k; ?> " tabindex="<?php //echo $vtprd_deal_screen_framework['discount_amt_type']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['discount_amt_type']['option']); $i++) { $this->vtprd_change_title_currency_symbol('discount_amt_type', $i, $currency_symbol); ?> <option id="<?php echo $vtprd_deal_screen_framework['discount_amt_type']['option'][$i]['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_amt_type']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['discount_amt_type']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['discount_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['discount_amt_type']) { echo $selected; } ?> > <?php echo $vtprd_deal_screen_framework['discount_amt_type']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="discount_amt_count_area discount_amt_count_area_class<?php echo '_' . $k; ?> amt-field" id="discount_amt_count_area<?php echo '_' . $k; ?> "> <span class="discount_amt_count_label" id="discount_amt_count_label<?php echo '_' . $k; ?> "> <span class="forThePriceOf-amt-literal-inserted discount_amt_count_literal discount_amt_count_literal<?php echo '_' . $k; ?> " id="discount_amt_count_literal_forThePriceOf_buyAmt<?php echo '_' . $k; ?> "><?php $this->vtprd_load_forThePriceOf_literal($k); ?> </span> <span class="discount_amt_count_literal discount_amt_count_literal_forThePriceOf discount_amt_count_literal<?php echo '_' . $k; ?> " id="discount_amt_count_literal_forThePriceOf<?php echo '_' . $k; ?> "><?php _e('units ', 'vtprd'); echo ' '; _e(' For the Price of ', 'vtprd'); ?> </span> <span class="discount_amt_count_literal discount_amt_count_literal_forThePriceOf_Currency discount_amt_count_literal<?php echo '_' . $k; ?> " id="discount_amt_count_literal_forThePriceOf_Currency<?php echo '_' . $k; ?> "><?php echo $currency_symbol; ?> </span> </span> <input id="<?php echo $vtprd_deal_screen_framework['discount_amt_count']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_amt_count']['class']; ?> " type="<?php echo $vtprd_deal_screen_framework['discount_amt_count']['type']; ?> " name="<?php echo $vtprd_deal_screen_framework['discount_amt_count']['name'] . '_' . $k; ?> " value="<?php echo $vtprd_rule->rule_deal_info[$k]['discount_amt_count']; ?> " /> <span class="discount_amt_count_literal_units_area discount_amt_count_literal<?php echo '_' . $k; ?> discount_amt_count_literal_units_area_class<?php echo '_' . $k; ?> " id="discount_amt_count_literal_units_area<?php echo '_' . $k; ?> "> <span class="discount_amt_count_literal" id="discount_amt_count_literal_units<?php echo '_' . $k; ?> "><?php _e(' units', 'vtprd'); ?> </span> <?php vtprd_show_help_tooltip($context = 'discount_amt_count_forThePriceOf'); ?> </span> </span> <label id="<?php echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['label']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['label']['class']; ?> "> <input id="<?php echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['checkbox']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['checkbox']['class']; ?> hasWizardHelpBelow" type="checkbox" value="<?php echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['checkbox']['value']; ?> " <?php if ($vtprd_deal_screen_framework['discount_auto_add_free_product']['checkbox']['value'] == $vtprd_rule->rule_deal_info[$k]['discount_auto_add_free_product']) { echo $checked; } ?> name="<?php echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['checkbox']['name'] . '_' . $k; ?> " /> <?php vtprd_show_object_hover_help('discount_free', 'wizard'); ?> <?php echo $vtprd_deal_screen_framework['discount_auto_add_free_product']['label']['title']; ?> <?php vtprd_show_help_tooltip($context = 'discount_auto_add_free_product', $location = 'title'); ?> </label> <span class="shortIntro shortIntro2" > <em> <?php _e('What kind of Discount is offered,', 'vtprd'); ?> </em><br> <em> <?php _e('and in what amount?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('discount_amt_type', 'small'); ?> </span> </span> </div> <!-- //discount_amt_box --> <div class="screen-box discount_applies_to_box discount_applies_to_box_class<?php echo '_' . $k; ?> " id="discount_applies_to_box<?php echo '_' . $k; ?> " > <span class="left-column"> <span class="title hasWizardHelpRight" id="discount_applies_to_title<?php echo '_' . $k; ?> " > <a id="discount_applies_to_title_anchor<?php echo '_' . $k; ?> " class="title-anchors second-level-title" href="javascript:void(0);"><?php _e('Discount Applies To', 'vtprd'); ?> </a> </span> <?php vtprd_show_object_hover_help('discount_applies_to', 'wizard'); ?> </span> <span class="dropdown discount_applies_to right-column" id="discount_applies_to_dropdown<?php echo '_' . $k; ?> "> <select id="<?php echo $vtprd_deal_screen_framework['discount_applies_to']['select']['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_applies_to']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['discount_applies_to']['select']['name'] . '_' . $k; ?> " tabindex="<?php //echo $vtprd_deal_screen_framework['discount_applies_to']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['discount_applies_to']['option']); $i++) { ?> <option id="<?php echo $vtprd_deal_screen_framework['discount_applies_to']['option'][$i]['id'] . '_' . $k; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_applies_to']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['discount_applies_to']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['discount_applies_to']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[$k]['discount_applies_to']) { echo $selected; } ?> > <?php echo $vtprd_deal_screen_framework['discount_applies_to']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="shortIntro" > <em> <?php _e('How is the Discount ', 'vtprd'); ?> </em><br> <em> <?php _e('Amount counted?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('discount_applies_to', 'small'); ?> </span> </span> </div><!-- //discount_applies_to_box --> </div> <!-- //discount_info --> </div> <!-- //end DEAL INFO line in "for" loop --><?php //end DEAL INFO line in "for" loop ?> <?php } //end $k'for' LOOP ?> </div> <!-- //rule_deal_info_group --> <?php //end rule_deal_info_group ?> <span class="box-border-line"> </span> <div id="messages-outer-box"> <div class="screen-box messages-box_class" id="messages-box"> <span class="title" id="discount_msgs_title" > <img class="theme_msgs_title_icon" src="<?php echo VTPRD_URL; ?> /admin/images/tab-icons.png" width="1" height="1" /> <a id="discount_msgs_title_anchor" class="section-headings first-level-title" href="javascript:void(0);"><?php _e('Discount Messages:', 'vtprd'); ?> </a> </span> <span class="dropdown messages-box-area clear-left" id="discount_msgs_dropdown"> <span class="discount_product_short_msg_area clear-left"> <span class="left-column"> <span class="title hasHoverHelp hasWizardHelpRight"> <span class="title-anchors" id="discount_product_short_msg_label"><?php _e('Checkout Message', 'vtprd'); ?> </span> <span class="required-asterisk">*</span> </span> <?php vtprd_show_object_hover_help('discount_product_short_msg', 'wizard'); ?> </span> <span class="right-column"> <span class="column-width50"> <textarea rows="1" cols="50" id="<?php echo $vtprd_rule_display_framework['discount_product_short_msg']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['discount_product_short_msg']['class']; ?> right-column" type="<?php echo $vtprd_rule_display_framework['discount_product_short_msg']['type']; ?> " name="<?php echo $vtprd_rule_display_framework['discount_product_short_msg']['name']; ?> " ><?php echo $vtprd_rule->discount_product_short_msg; ?> </textarea> </span> <span class="shortIntro" > <em> <?php _e('Checkout Message shows only ', 'vtprd'); ?> </em><br> <em> <?php _e('for Cart Deals (not Catalog)', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('discount_product_short_msg', 'small'); ?> </span> </span> </span> <span class="discount_product_full_msg_area clear-both"> <span class="left-column"> <span class="title hasWizardHelpRight"> <span class="title-anchors" id="discount_product_full_msg_label"> <?php _e('Advertising Message', 'vtprd'); ?> </span> </span> <?php vtprd_show_object_hover_help('discount_product_full_msg', 'wizard'); ?> </span> <span class="right-column"> <span class="column-width50"> <textarea rows="2" cols="35" id="<?php echo $vtprd_rule_display_framework['discount_product_full_msg']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['discount_product_full_msg']['class']; ?> right-column" type="<?php echo $vtprd_rule_display_framework['discount_product_full_msg']['type']; ?> " name="<?php echo $vtprd_rule_display_framework['discount_product_full_msg']['name']; ?> " ><?php echo $vtprd_rule->discount_product_full_msg; ?> </textarea> </span> <span class="shortIntro" > <em> <?php _e('Can be shown in your Website using', 'vtprd'); ?> </em><br> <em> <?php _e('Shortcodes', 'vtprd'); ?> </em> <a class="commentURL" target="_blank" href="http://www.varktech.com/documentation/pricing-deals/shortcodes"><?php _e('Shortcode Examples', 'vtprd'); ?> </a> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('discount_product_full_msg', 'small'); ?> </span> </span> </span> </span> </div> </div> <span class="box-border-line"> </span> <div id="advanced-data-area"> <div class="screen-box" id="maximums_box"> <span class="title" id="cumulativePricing_title" > <img class="maximums_icon" src="<?php echo VTPRD_URL; ?> /admin/images/tab-icons.png" width="1" height="1" /> <a id="cumulativePricing_title_anchor" class="section-headings first-level-title" href="javascript:void(0);"> <?php _e('Discount Limits:', 'vtprd'); ?> <?php if (!defined('VTPRD_PRO_DIRNAME')) { ?> <span id="max-limits-subtitle"><?php _e('(pro only)', 'vtprd'); ?> </span> <?php } ?> </a> </span> <div class="screen-box screen-box2 discount_lifetime_max_amt_type_box clear-left" id="discount_lifetime_max_amt_type_box_0"> <?php /* *********************** special handling for discount_lifetime_max_amt_type, discount_lifetime_max_amt_type. Even though they appear iteratively in deal info, they are only active on the '0' occurrence line. further, they are displayed only AFTER all of the deal lines are displayed onscreen... This is actually a kluge, done to utilize the complete editing already available in the deal info loop for a dropdown and an associated amt field. *********************** */ //Both _label fields have trailing '_0', as edits are actually handled in the discount info loop ?> <span class="left-column left-column-less-padding-top2"> <span class="title hasWizardHelpRight" id="discount_lifetime_max_title_0" > <a id="discount_lifetime_max_title_anchor" class="title-anchors second-level-title" href="javascript:void(0);"><?php _e('Customer', 'vtprd'); echo '<br>'; _e('Rule Limit', 'vtprd'); ?> </a> </span> <?php vtprd_show_object_hover_help('discount_lifetime_max_amt_type', 'wizard'); ?> </span> <span class="dropdown right-column" id="discount_lifetime_max_dropdown"> <select id="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['select']['id'] . '_0'; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['select']['name'] . '_0'; ?> " tabindex="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['select']['tabindex'] . '_0'; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option']); $i++) { $this->vtprd_change_title_currency_symbol('discount_lifetime_max_amt_type', $i, $currency_symbol); //pick up the free/pro version of the title => in this case, title and title3 $title = $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['title']; if (defined('VTPRD_PRO_DIRNAME') && $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['title3'] > ' ') { $title = $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['title3']; } ?> <option id="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['id'] . '_0'; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['discount_lifetime_max_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[0]['discount_lifetime_max_amt_type']) { echo $selected; } // use '0' deal_info_line... ?> > <?php echo $title; ?> </option> <?php } ?> </select> <span class="amt-field" id="discount_lifetime_max_amt_count_area"> <input id="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_count']['id'] . '_0'; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_count']['class']; ?> limit-count" type="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_count']['type']; ?> " name="<?php echo $vtprd_deal_screen_framework['discount_lifetime_max_amt_count']['name'] . '_0'; ?> " value="<?php echo $vtprd_rule->rule_deal_info[0]['discount_lifetime_max_amt_count']; // use '0' deal_info_line... ?> " /> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('Limit by Customer - by Count or', 'vtprd'); ?> </em><br> <em> <?php _e('Discount value - Lifetime of rule', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('discount_lifetime_max_amt_type', 'small'); ?> </span> </span> <span class="text-field clear-left" id="discount_lifetime_max_amt_msg"> <span class="data-line-indent"> </span> <span class="text-field-label" id="discount_lifetime_max_amt_msg_label"> <?php _e('Short Message When Max Applied (opt) ', 'vtprd'); ?> </span> <?php vtprd_show_help_tooltip($context = 'discount_lifetime_max_amt_msg'); ?> <textarea rows="1" cols="100" id="<?php echo $vtprd_rule_display_framework['discount_lifetime_max_amt_msg']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['discount_lifetime_max_amt_msg']['class']; ?> " type="<?php echo $vtprd_rule_display_framework['discount_lifetime_max_amt_msg']['type']; ?> " name="<?php echo $vtprd_rule_display_framework['discount_lifetime_max_amt_msg']['name']; ?> " ><?php echo $vtprd_rule->discount_lifetime_max_amt_msg; ?> </textarea> </span> </div> <div class="screen-box screen-box2 dropdown discount_rule_max_amt_type discount_rule_max_amt_type_box clear-left" id="discount_rule_max_amt_type_box_0"> <?php /* *********************** special handling for discount_rule_max_amt_type, discount_rule_max_amt_type. Even though they appear iteratively in deal info, they are only active on the '0' occurrence line. further, they are displayed only AFTER all of the deal lines are displayed onscreen... This is actually a kluge, done to utilize the complete editing already available in the deal info loop for a dropdown and an associated amt field. *********************** */ //Both _label fields have trailing '_0', as edits are actually handled in the discount info loop ?> <span class="left-column"> <span class="title hasWizardHelpRight" id="discount_rule_max_title_0" > <a id="discount_rule_max_title_anchor" class="title-anchors second-level-title" href="javascript:void(0);"><?php _e('Cart Limit', 'vtprd'); ?> </a> </span> <?php vtprd_show_object_hover_help('discount_rule_max_amt_type', 'wizard'); ?> </span> <span class="dropdown right-column" id="discount_rule_max_dropdown"> <select id="<?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['select']['id'] . '_0'; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['select']['name'] . '_0'; ?> " tabindex="<?php //echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['select']['tabindex'] .'_0' ; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['discount_rule_max_amt_type']['option']); $i++) { $this->vtprd_change_title_currency_symbol('discount_rule_max_amt_type', $i, $currency_symbol); ?> <option id="<?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['option'][$i]['id'] . '_0'; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['discount_rule_max_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[0]['discount_rule_max_amt_type']) { echo $selected; } // use '0' deal_info_line... ?> > <?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_type']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="amt-field " id="discount_rule_max_amt_count_area"> <input id="<?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_count']['id'] . '_0'; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_count']['class']; ?> limit-count" type="<?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_count']['type']; ?> " name="<?php echo $vtprd_deal_screen_framework['discount_rule_max_amt_count']['name'] . '_0'; ?> " value="<?php echo $vtprd_rule->rule_deal_info[0]['discount_rule_max_amt_count']; // use '0' deal_info_line... ?> " /> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('Limit by Cart - by Count or', 'vtprd'); ?> </em><br> <em> <?php _e('Discount $$ value or % value', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('discount_rule_max_amt_type', 'small'); ?> </span> </span> <?php //while the 2 max_amt fields above are kluged onto the deal_screen_framework, the msg field is on the rule proper ?> <span class="text-field clear-left" id="discount_rule_max_amt_msg"> <span class="data-line-indent"> </span> <span class="left-column"> <span class="text-field-label" id="discount_rule_max_amt_msg_label"> <?php _e('Short Message When Max Applied (opt) ', 'vtprd'); ?> </span> <?php vtprd_show_help_tooltip($context = 'discount_rule_max_amt_msg'); ?> </span> <textarea rows="1" cols="100" id="<?php echo $vtprd_rule_display_framework['discount_rule_max_amt_msg']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['discount_rule_max_amt_msg']['class']; ?> right-column" type="<?php echo $vtprd_rule_display_framework['discount_rule_max_amt_msg']['type']; ?> " name="<?php echo $vtprd_rule_display_framework['discount_rule_max_amt_msg']['name']; ?> " ><?php echo $vtprd_rule->discount_rule_max_amt_msg; ?> </textarea> </span> </div> <div class="screen-box screen-box2 dropdown discount_rule_cum_max_amt_type discount_rule_cum_max_amt_type_box clear-left" id="discount_rule_cum_max_amt_type_box_0"> <?php /* *********************** special handling for discount_rule_cum_max_amt_type, discount_rule_cum_max_amt_type. Even though they appear iteratively in deal info, they are only active on the '0' occurrence line. further, they are displayed only AFTER all of the deal lines are displayed onscreen... This is actually a kluge, done to utilize the complete editing already available in the deal info loop for a dropdown and an associated amt field. *********************** */ //Both _label fields have trailing '_0', as edits are actually handled in the discount info loop ?> <span class="left-column"> <span class="title hasWizardHelpRight" > <span class="title-anchors" id="discount_rule_cum_max_title_0" ><?php _e('Product Limit', 'vtprd'); ?> </span> </span> <?php vtprd_show_object_hover_help('discount_rule_cum_max_amt_type', 'wizard'); ?> </span> <span class="dropdown right-column" id="discount_rule_cum_max_dropdown"> <select id="<?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['select']['id'] . '_0'; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['select']['class']; ?> " name="<?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['select']['name'] . '_0'; ?> " tabindex="<?php //echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['select']['tabindex'] .'_0' ; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option']); $i++) { $this->vtprd_change_title_currency_symbol('discount_rule_cum_max_amt_type', $i, $currency_symbol); ?> <option id="<?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option'][$i]['id'] . '_0'; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option'][$i]['class']; ?> " value="<?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option'][$i]['value']; ?> " <?php if ($vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option'][$i]['value'] == $vtprd_rule->rule_deal_info[0]['discount_rule_cum_max_amt_type']) { echo $selected; } // use '0' deal_info_line... ?> > <?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_type']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="amt-field" id="discount_rule_cum_max_amt_count_area"> <input id="<?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_count']['id'] . '_0'; ?> " class="<?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_count']['class']; ?> limit-count" type="<?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_count']['type']; ?> " name="<?php echo $vtprd_deal_screen_framework['discount_rule_cum_max_amt_count']['name'] . '_0'; ?> " value="<?php echo $vtprd_rule->rule_deal_info[0]['discount_rule_cum_max_amt_count']; // use '0' deal_info_line... ?> " /> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('Limit by Product - by Count or', 'vtprd'); ?> </em><br> <em> <?php _e('Discount $$ value or % value', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('discount_rule_max_amt_type', 'small'); ?> </span> </span> <span class="text-field clear-left" id="discount_rule_cum_max_amt_msg"> <span class="data-line-indent"> </span> <span class="text-field-label" id="discount_rule_cum_max_amt_msg_label"> <?php _e('Short Message When Max Applied (opt) ', 'vtprd'); ?> </span> <?php vtprd_show_help_tooltip($context = 'discount_rule_cum_max_amt_msg'); ?> <textarea rows="1" cols="100" id="<?php echo $vtprd_rule_display_framework['discount_rule_cum_max_amt_msg']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['discount_rule_cum_max_amt_msg']['class']; ?> " type="<?php echo $vtprd_rule_display_framework['discount_rule_cum_max_amt_msg']['type']; ?> " name="<?php echo $vtprd_rule_display_framework['discount_rule_cum_max_amt_msg']['name']; ?> " ><?php echo $vtprd_rule->discount_rule_cum_max_amt_msg; ?> </textarea> </span> </div> </div> <?php //end maximums_box box ?> <span class="box-border-line"> </span> <div class="screen-box" id="cumulativePricing_box"> <span class="title" id="cumulativePricing_title" > <img class="working_together_icon" src="<?php echo VTPRD_URL; ?> /admin/images/tab-icons.png" width="1" height="1" /> <a id="cumulativePricing_title_anchor" class="section-headings first-level-title" href="javascript:void(0);"><?php _e('Discount Works Together With:', 'vtprd'); ?> </a> </span> <div class="clear-left" id="cumulativePricing_dropdown"> <div class="screen-box dropdown cumulativeRulePricing_area clear-left" id="cumulativeRulePricing_areaID"> <span class="left-column left-column-less-padding-top"> <span class="title hasWizardHelpRight" > <span class="cumulativeRulePricing_lit" id="cumulativeRulePricing_label"><?php _e('Other', 'vtprd'); echo ' <br>'; _e('Rule Discounts', 'vtprd'); ?> </span> </span> <?php vtprd_show_object_hover_help('cumulativeRulePricing', 'wizard'); ?> </span> <span class="right-column"> <span class="column-width50"> <select id="<?php echo $vtprd_rule_display_framework['cumulativeRulePricing']['select']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['cumulativeRulePricing']['select']['class']; ?> " name="<?php echo $vtprd_rule_display_framework['cumulativeRulePricing']['select']['name']; ?> " tabindex="<?php //echo $vtprd_rule_display_framework['cumulativeRulePricing']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['cumulativeRulePricing']['option']); $i++) { ?> <option id="<?php echo $vtprd_rule_display_framework['cumulativeRulePricing']['option'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['cumulativeRulePricing']['option'][$i]['class']; ?> " value="<?php echo $vtprd_rule_display_framework['cumulativeRulePricing']['option'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['cumulativeRulePricing']['option'][$i]['value'] == $vtprd_rule->cumulativeRulePricing) { echo $selected; } ?> > <?php echo $vtprd_rule_display_framework['cumulativeRulePricing']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="" id="priority_num"> <?php //only display if multiple rule discounts ?> <span class="text-field" id="ruleApplicationPriority_num"> <span class="text-field-label" id="ruleApplicationPriority_num_label"> <?php _e('Priority', 'vtprd'); //_e('Rule Priority Sort Number:', 'vtprd'); ?> </span> <input id="<?php echo $vtprd_rule_display_framework['ruleApplicationPriority_num']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['ruleApplicationPriority_num']['class']; ?> " type="<?php echo $vtprd_rule_display_framework['ruleApplicationPriority_num']['type']; ?> " name="<?php echo $vtprd_rule_display_framework['ruleApplicationPriority_num']['name']; ?> " value="<?php echo $vtprd_rule->ruleApplicationPriority_num; ?> " /> </span> </span> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('Does this Rule apply its discount', 'vtprd'); ?> </em><br> <em> <?php _e('in addition to other Rules?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('cumulativeRulePricing', 'small'); ?> </span> </span> </div> <div class="screen-box dropdown cumulativeCouponPricing_area clear-left" id="cumulativeCouponPricing_0"> <span class="left-column left-column-less-padding-top"> <span class="title hasWizardHelpRight" > <span class="cumulativeRulePricing_lit" id="cumulativeCouponPricing_label"><?php _e('Other <br>Coupon Discounts', 'vtprd'); //_e('Apply this Rule Discount ', 'vtprd'); echo ' '; _e('in Addition to Coupon Discount : ', 'vtprd'); ?> </span> </span> <?php vtprd_show_object_hover_help('cumulativeCouponPricing', 'wizard'); ?> </span> <span class="right-column"> <span class="column-width50"> <select id="<?php echo $vtprd_rule_display_framework['cumulativeCouponPricing']['select']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['cumulativeCouponPricing']['select']['class']; ?> " name="<?php echo $vtprd_rule_display_framework['cumulativeCouponPricing']['select']['name']; ?> " tabindex="<?php //echo $vtprd_rule_display_framework['cumulativeCouponPricing']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['cumulativeCouponPricing']['option']); $i++) { ?> <option id="<?php echo $vtprd_rule_display_framework['cumulativeCouponPricing']['option'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['cumulativeCouponPricing']['option'][$i]['class']; ?> " value="<?php echo $vtprd_rule_display_framework['cumulativeCouponPricing']['option'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['cumulativeCouponPricing']['option'][$i]['value'] == $vtprd_rule->cumulativeCouponPricing) { echo $selected; } ?> > <?php echo $vtprd_rule_display_framework['cumulativeCouponPricing']['option'][$i]['title']; ?> </option> <?php } ?> </select> </span> <span class="shortIntro shortIntro2" > <em> <?php _e('Does this Rule apply its discount', 'vtprd'); ?> </em><br> <em> <?php _e('in addition to other Coupons?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('cumulativeCouponPricing', 'small'); ?> </span> </span> </div> <div class="screen-box dropdown cumulativeSalePricing_area clear-left" id="cumulativeSalePricing_areaID"> <span class="left-column left-column-less-padding-top"> <span class="title hasWizardHelpRight" > <span class="cumulativeRulePricing_lit" id="cumulativeSalePricing_label"><?php _e('Product', 'vtprd'); echo ' <br>'; _e('Sale Pricing', 'vtprd'); ?> </span> </span> <?php vtprd_show_object_hover_help('cumulativeSalePricing', 'wizard'); ?> </span> <span class="right-column"> <select id="<?php echo $vtprd_rule_display_framework['cumulativeSalePricing']['select']['id']; ?> " class="<?php echo $vtprd_rule_display_framework['cumulativeSalePricing']['select']['class']; ?> " name="<?php echo $vtprd_rule_display_framework['cumulativeSalePricing']['select']['name']; ?> " tabindex="<?php //echo $vtprd_rule_display_framework['cumulativeSalePricing']['select']['tabindex']; ?> " > <?php for ($i = 0; $i < sizeof($vtprd_rule_display_framework['cumulativeSalePricing']['option']); $i++) { ?> <option id="<?php echo $vtprd_rule_display_framework['cumulativeSalePricing']['option'][$i]['id']; ?> " class="<?php echo $vtprd_rule_display_framework['cumulativeSalePricing']['option'][$i]['class']; ?> " value="<?php echo $vtprd_rule_display_framework['cumulativeSalePricing']['option'][$i]['value']; ?> " <?php if ($vtprd_rule_display_framework['cumulativeSalePricing']['option'][$i]['value'] == $vtprd_rule->cumulativeSalePricing) { echo $selected; } ?> > <?php echo $vtprd_rule_display_framework['cumulativeSalePricing']['option'][$i]['title']; ?> </option> <?php } ?> </select> <span class="shortIntro shortIntro2 shortIntro3" > <em> <?php _e('Does this Rule discount apply at all,', 'vtprd'); ?> </em><br> <em> <?php _e('over top or in place of Sale Price?', 'vtprd'); ?> </em> <img class="hasHoverHelp2" width="11px" alt="" src="<?php echo VTPRD_URL; ?> /admin/images/help.png" /> <?php vtprd_show_object_hover_help('cumulativeSalePricing', 'small'); ?> </span> </span> <?php if (VTPRD_PARENT_PLUGIN_NAME == 'WP E-Commerce') { vtprd_show_help_tooltip($context = 'cumulativeSalePricingLimitation'); } ?> </div> </div> <?php //end cumulativeRulePricing_dropdown ?> </div> <?php //end cumulativePricing box ?> </div> <?php //end advanced-data-area ?> </div> <?php //lower-screen-wrapper ?> <?php //lots of selects change their values between standard and 'discounted' titles. //This is where we supply the HIDEME alternative titles $this->vtprd_print_alternative_title_selects(); //echo '$vtprd_rule= <pre>'.print_r($vtprd_rule, true).'</pre>' ; }