예제 #1
0
파일: editor.php 프로젝트: msigley/shopp
,
	FILE_UNKNOWN_IMPORT_ERROR = <?php 
_jse('An unknown error occurred while attempting to attach the file.', 'Shopp');
?>
,
	IMAGE_DETAILS_TEXT = <?php 
_jse('Image Details', 'Shopp');
?>
,
	IMAGE_DETAILS_TITLE_LABEL = <?php 
_jse('Title', 'Shopp');
?>
,
	IMAGE_DETAILS_ALT_LABEL = <?php 
_jse('Alt', 'Shopp');
?>
,
	IMAGE_DETAILS_DONE = <?php 
_jse('OK', 'Shopp');
?>
,
	IMAGE_DETAILS_CROP_LABEL = <?php 
_jse('Cropped images', 'Shopp');
?>
,
	TAG_SEARCHSELECT_LABEL = <?php 
_jse('Type to search tags or wait for popular tags&hellip;', 'Shopp');
?>
;
/* ]]> */
</script>
예제 #2
0
                  	ECART_CONFIRM_DELETE_LABEL = <?php _jse('Are you sure you want to remove this order status label?','Ecart'); ?>,
                  	ECART_CUSTOMER_SERVICE = <?php printf(json_encode(__('Contact <a href="%s">customer service</a>.','Ecart')),ECART_CUSTOMERS); ?>,
                  	keyStatus = {
                  		'-000':<?php _jse('The server could not be reached because of a connection problem.','Ecart'); ?>,
                  		'-1':<?php _jse('An unkown error occurred.','Ecart'); ?>,
                  		'0':<?php _jse('This key has been deactivated.','Ecart'); ?>,
                  		'1':<?php _jse('This key has been activated.','Ecart'); ?>,
                  		'-100':<?php _jse('An unknown activation error occurred.','Ecart'); ?>+ECART_CUSTOMER_SERVICE,
                  		'-101':<?php _jse('The key provided is not valid.','Ecart'); ?>+ECART_CUSTOMER_SERVICE,
                  		'-102':<?php _jse('This site is not valid to activate the key.','Ecart'); ?>+ECART_CUSTOMER_SERVICE,
                  		'-103':<?php _jse('The key provided could not be validated by ecartlugin.net.','Ecart'); ?>+ECART_CUSTOMER_SERVICE,
                  		'-104':<?php _jse('The key provided is already active on another site.','Ecart'); ?>+ECART_CUSTOMER_SERVICE,
                  		'-200':<?php _jse('An unkown deactivation error occurred.','Ecart'); ?>+ECART_CUSTOMER_SERVICE,
                  		'-201':<?php _jse('The key provided is not valid.','Ecart'); ?>+ECART_CUSTOMER_SERVICE,
                  		'-202':<?php _jse('The site is not valid to be able to deactivate the key.','Ecart'); ?>+ECART_CUSTOMER_SERVICE,
                  		'-203':<?php _jse('The key provided could not be validated by ecartlugin.net.','Ecart'); ?>+ECART_CUSTOMER_SERVICE
                  	},
                  
                  	zones_url = '<?php echo wp_nonce_url(admin_url('admin-ajax.php'), 'wp_ajax_ecart_country_zones'); ?>',
                  	act_key_url = '<?php echo wp_nonce_url(admin_url('admin-ajax.php'), 'wp_ajax_ecart_activate_key'); ?>',
                  	deact_key_url = '<?php echo wp_nonce_url(admin_url('admin-ajax.php'), 'wp_ajax_ecart_deactivate_key'); ?>';
                  /* ]]> */
                  </script>

                  <div class="clear"></div>
                </div>
			
                              </div><!-- End the tabs -->
            </div><!-- End tabs -->

            <div id="optionsfooter">
예제 #3
0
             		</table>
            
            		<br class="clear" />
            
            		
 
            	</form>
            </div>
            
            <script type="text/javascript">
            /* <![CDATA[ */
            var ECART_PAYMENT_OPTION = <?php _jse('Option Name','Ecart'); ?>,
            	ECART_DELETE_PAYMENT_OPTION = <?php echo _jse('Are you sure you want to delete this payment option?','Ecart'); ?>,
            	ECART_GATEWAY_MENU_PROMPT = <?php _jse('Select a payment gateway&hellip;','Ecart'); ?>,
            	ECART_PLUGINURI = "<?php echo ECART_PLUGINURI; ?>",
            	ECART_SELECT_ALL = <?php _jse('Select All','Ecart'); ?>,
            	gateways = <?php echo json_encode($gateways); ?>;
            
            jQuery(document).ready( function() {
            	var $=jqnc(),
            		handlers = new CallbackRegistry();
            
            	handlers.options = {};
            	handlers.enabled = [];
            	handlers.register = function (name,object) {
            		this.callbacks[name] = function () {object['payment']();}
            		this.options[name] = object;
            	}
            
            	handlers.call = function(name,arg1,arg2,arg3) {
            
예제 #4
0
			row = false, i = false;

		if (!type) type = 'condition';

		if (type == "cartitem") {
			i = itemidx;
			if (!location) row = $('<tr />').appendTo('#cartitem');
			else row = $('<tr></tr>').insertAfter(location);
		} else {
			i = ruleidx;
			if (!location) row = $('<tr />').appendTo('#rules');
			else row = $('<tr></tr>').insertAfter(location);
		}

		var cell = $('<td></td>').appendTo(row);
		var deleteButton = $('<button type="button" class="delete"></button>').html('<img src="<?php echo ECART_PLUGINURI; ?>/core/ui/icons/delete.png" alt=<?php _jse('Delete','Ecart'); ?> width="16" height="16" />').appendTo(cell).click(function () { if (i > 1) $(row).remove(); }).attr('opacity',0);

		var properties_name = (type=='cartitem')?'rules[item]['+i+'][property]':'rules['+i+'][property]';
		var properties = $('<select name="'+properties_name+'" class="ruleprops"></select>').appendTo(cell);

		if (type == "cartitem") target = "Cart Item Target";
		if (conditions[target])
			for (var label in conditions[target])
				$('<option></option>').html(RULES_LANG[label]).val(label).attr('rel',target).appendTo(properties);

		var operation_name = (type=='cartitem')?'rules[item]['+i+'][logic]':'rules['+i+'][logic]';
		var operation = $('<select name="'+operation_name+'" ></select>').appendTo(cell);
		var value = $('<span></span>').appendTo(cell);

		var addspan = $('<span></span>').appendTo(cell);
		$('<button type="button" class="add"></button>').html('Add new rule').appendTo(addspan).click(function () { new Conditional(type,false,row); });
예제 #5
0
<script type="text/javascript">
/* <![CDATA[ */
jQuery(document).ready( function() {
	var $=jqnc(),
		featureurl = '<?php echo wp_nonce_url(admin_url('admin-ajax.php'),'wp_ajax_ecart_feature_product'); ?>';

	$('#selectall').change( function() {
		$('#products th input').each( function () {
			if (this.checked) this.checked = false;
			else this.checked = true;
		});
	});

	$('a.submitdelete').click(function () {
		var name = $(this).attr('title');
		if ( confirm(<?php _jse('You are about to delete this product!\n \'Cancel\' to stop, \'OK\' to delete.','Ecart'); ?>)) {
			$('<input type="hidden" name="delete[]" />').val($(this).attr('rel')).appendTo('#products-manager');
			$('<input type="hidden" name="deleting" />').val('product').appendTo('#products-manager');
			$('#products-manager').submit();
			return false;
		} else return false;
	});

	$('#delete-button').click(function() {
		if (confirm("<?php echo addslashes(__('Are you sure you want to delete the selected products?','Ecart')); ?>")) return true;
		else return false;
	});

	$('button.feature').click(function () {
		var $this = $(this);
		$.get(featureurl,{'feature':$this.val(),'action':'ecart_feature_product'},function (result) {
예제 #6
0
파일: taxes.php 프로젝트: robbiespire/paQui
                  	ratesidx = 0,
                  	countriesInUse = new Array(),
                  	zonesInUse = new Array(),
                  	allCountryZonesInUse = new Array(),
                  	APPLY_LOGIC = <?php _jse("Apply tax rate when %s of the following conditions match","Ecart"); ?>,
                  	LOCAL_RATES = <?php _jse("Local Rates","Ecart"); ?>,
                  	LOCAL_RATE_INSTRUCTIONS = <?php _jse("No local regions have been setup for this location. Local regions can be specified by uploading a formatted local rates file.","Ecart"); ?>,
                  	LOCAL_RATES_UPLOADERR = <?php _jse("The file was uploaded successfully, but the data returned by the server cannot be used.","Ecart"); ?>,
                  	ANY_OPTION = <?php _jse("any","Ecart"); ?>,
                  	ALL_OPTION = <?php _jse("all","Ecart"); ?>,
                  	ECART_PLUGINURI = '<?php echo ECART_PLUGINURI; ?>',
                  	RULE_LANG = {
                  		"product-name":<?php _jse('Product name is','Ecart'); ?>,
                  		"product-tags":<?php _jse('Product is tagged','Ecart'); ?>,
                  		"product-category":<?php _jse('Product in category','Ecart'); ?>,
                  		"customer-type":<?php _jse('Customer type is','Ecart'); ?>
                  	};
                  /* ]]> */
                  </script>

                  <div class="clear"></div>
                </div>
			
                              </div><!-- End the tabs -->
            </div><!-- End tabs -->

            <div id="optionsfooter">
              <div class="hl"></div>

              <div class="theinputs">
                              </div>
예제 #7
0
	rule_types = <?php 
echo json_encode($ruletypes);
?>
,
	bill_periods = <?php 
echo json_encode(ShoppPrice::periods());
?>
,
	rules = <?php 
echo json_encode($MemberPlan->stages);
?>
,
	STAGE_LABEL = <?php 
_jse('Content Access Rules', 'Shopp');
?>
,
	STAGES_LABEL = <?php 
_jse('Step', 'Shopp');
?>
,
	DELETE_RULE_PROMPT = <?php 
_jse('Are you sure you want to delete this rule?', 'Shopp');
?>
,
	DELETE_GROUP_PROMPT = <?php 
_jse('Are you sure you want to delete this rule?', 'Shopp');
?>
;

/* ]]> */
</script>
예제 #8
0
		var deleteButton = $('<button type="button" class="delete"></button>').html('<img src="<?php echo ECART_PLUGINURI; ?>/core/ui/icons/delete.png" alt=<?php _jse('Delete','Ecart'); ?> width="16" height="16" />').appendTo(cell).click(function () { if (i > 1) $(row).remove(); }).attr('opacity',0);

		var properties_name = (type=='cartitem')?'rules[item]['+i+'][property]':'rules['+i+'][property]';
		var properties = $('<select name="'+properties_name+'" class="ruleprops"></select>').appendTo(cell);

		if (type == "cartitem") target = "Cart Item Target";
		if (conditions[target])
			for (var label in conditions[target])
				$('<option></option>').html(RULES_LANG[label]).val(label).attr('rel',target).appendTo(properties);

		var operation_name = (type=='cartitem')?'rules[item]['+i+'][logic]':'rules['+i+'][logic]';
		var operation = $('<select name="'+operation_name+'" ></select>').appendTo(cell);
		var value = $('<span></span>').appendTo(cell);

		var addspan = $('<span></span>').appendTo(cell);
		$('<button type="button" class="add"></button>').html('<img src="<?php echo ECART_PLUGINURI; ?>/core/ui/icons/add.png" alt=<?php _jse('Add','Ecart'); ?> width="16" height="16" />').appendTo(addspan).click(function () { new Conditional(type,false,row); });

		cell.hover(function () {
			if (i > 1) deleteButton.css({'opacity':100,'visibility':'visible'});
		},function () {
			deleteButton.animate({'opacity':0});
		});

		var valuefield = function (fieldtype) {
			value.empty();
			var name = (type=='cartitem')?'rules[item]['+i+'][value]':'rules['+i+'][value]';
			field = $('<input type="text" name="'+name+'" class="selectall" />').appendTo(value);
			if (fieldtype == "price") field.change(function () { this.value = asMoney(this.value); });
		}

		// Generate logic operation menu
예제 #9
0
?>
,
	TRIAL_LABEL = <?php 
_jse('Trial Period', 'Shopp');
?>
,
	NOTRIAL_TEXT = <?php 
_jse('No trial period', 'Shopp');
?>
,
	TIMES_LABEL = <?php 
_jse('times', 'Shopp');
?>
,
	MEMBERSHIP_LABEL = <?php 
_jse('Membership', 'Shopp');
?>
,
	PRODUCT_DOWNLOAD_LABEL = "<?php 
_e('Product Download', 'Shopp');
?>
",
	NO_PRODUCT_DOWNLOAD_TEXT = "<?php 
_e('No product download', 'Shopp');
?>
",
	NO_DOWNLOAD = "<?php 
_e('No download file', 'Shopp');
?>
",
	UNKNOWN_UPLOAD_ERROR = "<?php 
예제 #10
0
?>
';

	$('input.current-page').unbind('mouseup.select').bind('mouseup.select',function () { this.select(); });

	$('#selectall').change( function() {
		$('#products th input').each( function () {
			if (this.checked) this.checked = false;
			else this.checked = true;
		});
	});

	$('a.submitdelete').click(function () {
		var name = $(this).attr('title');
		if ( confirm(<?php 
_jse('You are about to delete this product!\\n \'Cancel\' to stop, \'OK\' to delete.', 'Shopp');
?>
)) {
			$('<input type="hidden" name="delete[]" />').val($(this).attr('rel')).appendTo('#products-manager');
			$('<input type="hidden" name="deleting" />').val('product').appendTo('#products-manager');
			$('#products-manager').submit();
			return false;
		} else return false;
	});

	$('#delete-button').click(function() {
		if (confirm("<?php 
echo addslashes(__('Are you sure you want to delete the selected products?', 'Shopp'));
?>
")) return true;
		else return false;
예제 #11
0
	HEIGHT_LABEL = <?php _jse('Height','Ecart'); ?>,
	DIMENSIONAL_WEIGHT_LABEL = <?php _jse('3D Weight','Ecart'); ?>,
	SHIPFEE_LABEL = <?php _jse('Additional Shipping Fee','Ecart'); ?>,
	SHIPFEE_XTRA = <?php _jse('Amount added to shipping costs for each unit ordered (for handling costs, etc)','Ecart'); ?>,
	INVENTORY_LABEL = <?php _jse('Inventory','Ecart'); ?>,
	NOT_TRACKED_TEXT = <?php _jse('Add the product to the stock inventory manager','Ecart'); ?>,
	IN_STOCK_LABEL = <?php _jse('In Stock','Ecart'); ?>,
	OPTION_MENU_DEFAULT = <?php _jse('New Variation Group Created','Ecart'); ?>,
	NEW_OPTION_DEFAULT = <?php _jse('New Pricing Option Created','Ecart'); ?>,
	ADDON_GROUP_DEFAULT = <?php _jse('Add-on Group','Ecart'); ?>,
	SKU_LABEL = <?php _jse('SKU','Ecart'); ?>,
	SKU_LABEL_HELP = <?php _jse('Stock Keeping Unit','Ecart'); ?>,
	SKU_XTRA = <?php _jse('Enter a unique stock keeping unit identification code.','Ecart'); ?>,
	DONATIONS_VAR_LABEL = <?php _jse('Accept variable amounts','Ecart'); ?>,
	DONATIONS_MIN_LABEL = <?php _jse('Amount required as minimum','Ecart'); ?>,
	PRODUCT_DOWNLOAD_LABEL = <?php _jse('Digital Product Download','Ecart'); ?>,
	NO_PRODUCT_DOWNLOAD_TEXT = <?php _jse('No product added.','Ecart'); ?>,
	NO_DOWNLOAD = <?php _jse('Please upload a file using the button here (recommended .zip or .rar format).','Ecart'); ?>,
	UNKNOWN_UPLOAD_ERROR = <?php _jse('An unknown error occurred. The upload could not be saved.','Ecart'); ?>,
	DEFAULT_PRICELINE_LABEL = <?php _jse('Product Type : ','Ecart'); ?>,
	FILE_NOT_FOUND_TEXT = <?php _jse('The file you specified could not be found.','Ecart'); ?>,
	FILE_NOT_READ_TEXT = <?php _jse('The file you specified is not readable and cannot be used.','Ecart'); ?>,
	FILE_ISDIR_TEXT = <?php _jse('The file you specified is a directory and cannot be used.','Ecart'); ?>,
	FILE_UNKNOWN_IMPORT_ERROR = <?php _jse('An unknown error occured while attempting to attach the file.','Ecart'); ?>,
	IMAGE_DETAILS_TEXT = <?php _jse('Image Details','Ecart'); ?>,
	IMAGE_DETAILS_TITLE_LABEL = <?php _jse('Title','Ecart'); ?>,
	IMAGE_DETAILS_ALT_LABEL = <?php _jse('Alt','Ecart'); ?>,
	IMAGE_DETAILS_DONE = <?php _jse('OK','Ecart'); ?>,
	IMAGE_DETAILS_CROP_LABEL = <?php _jse('Cropped images','Ecart'); ?>;
/* ]]> */
</script>