?> </p> </div> <div id="dialogDeleteNewAddress" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_new_address_title')); ?> "> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_new_address_desc'); ?> </p> </div> <div id="dialogDeleteDefaultAddress" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_default_address_title')); ?> "> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_default_address_desc'); ?> </p> </div> <div id="addressBookForm" style="display: none;"> <div class="infoBox"> <?php if ($new_customer) { echo '<h3>' . HTML::icon('new.png') . ' ' . OSCOM::getDef('action_heading_new_customer') . '</h3>'; } else {
} }); </script> <div id="dialogDeleteConfirm" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_category_title')); ?> "> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_category_desc'); ?> </p> </div> <div id="dialogBatchDeleteConfirm" title="<?php echo HTML::output(OSCOM::getDef('dialog_batch_delete_category_title')); ?> "> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_batch_delete_category_desc'); ?> </p> </div> <script> $(function() { $('#dialogDeleteConfirm').dialog({ autoOpen: false, resizable: false, modal: true, buttons: {
} } </script> <div id="dialogDeleteConfirm" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_customer_title')); ?> "> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_customer_desc'); ?> </p> </div> <div id="dialogBatchDeleteConfirm" title="<?php echo HTML::output(OSCOM::getDef('dialog_batch_delete_customer_title')); ?> "> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_batch_delete_customer_desc'); ?> </p> </div> <script type="text/javascript"> $(function() { $('#dialogDeleteConfirm').dialog({ autoOpen: false, resizable: false, modal: true, buttons: {
<p id="variantSubmitButtonsNew"><?php echo HTML::button(array('type' => 'button', 'params' => 'onclick="processVariantForm();"', 'priority' => 'primary', 'icon' => 'plus', 'title' => OSCOM::getDef('button_add'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="closeVariantForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p> <p id="variantSubmitButtonsEdit"><?php echo HTML::button(array('type' => 'button', 'params' => 'data-vButtonType="henrysBucket"', 'priority' => 'primary', 'icon' => 'arrowrefresh-1-n', 'title' => OSCOM::getDef('button_update'))) . ' ' . HTML::button(array('type' => 'button', 'params' => 'onclick="closeVariantForm();"', 'priority' => 'secondary', 'icon' => 'close', 'title' => OSCOM::getDef('button_cancel'))); ?></p> </div> </div> </div> <div id="dialogDeleteVariant" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_variant_title')); ?>"> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_variant_desc'); ?></p> </div> <div id="dialogDeleteNewVariant" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_new_variant_title')); ?>"> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_new_variant_desc'); ?></p> </div> <div id="dialogDeleteDefaultVariant" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_default_variant_title')); ?>"> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_default_variant_desc'); ?></p> </div> <script> var edit_icon = '<?php echo HTML::icon('edit.png'); ?>'; var trash_icon = '<?php echo HTML::icon('trash.png'); ?>'; var undo_icon = '<?php echo HTML::icon('undo.png'); ?>'; var defaultVariantMarker = ' <span id="defaultVariantMarker">(default)</span>'; var defaultWeightClass = <?php echo SHIPPING_WEIGHT_UNIT; ?>; var variant_combos = <?php echo json_encode($vg); ?>; var v = $.parseJSON($('#assigned_variants').val()); var delete_variant_combos = { };
/** * Return an internal URL address for public objects. * * @param string $url The object location from the public/sites/SITE/ directory. * @param string $parameters Parameters to add to the link. Example: key1=value1&key2=value2 * @param string $site Get a public link from a specific Site * @return string The URL address. */ public static function getPublicSiteLink($url, $parameters = null, $site = null) { if (!isset($site)) { $site = static::getSite(); } $link = 'public/sites/' . $site . '/' . $url; if (!empty($parameters)) { $link .= '?' . HTML::output($parameters); } while (substr($link, -1) == '&' || substr($link, -1) == '?') { $link = substr($link, 0, -1); } return $link; }
$('#row' + record.code).hover( function() { $(this).addClass('mouseOver'); }, function() { $(this).removeClass('mouseOver'); }).css('cursor', 'pointer'); var newCell = newRow.insertCell(0); newCell.innerHTML = htmlSpecialChars(record.title); newCell = newRow.insertCell(1); newCell.innerHTML = '<a href="#" onclick="$(\'#dialogUninstallConfirm\').data(\'code\', \'' + record.code + '\').dialog(\'open\'); return false;">' + paUninstallLinkIcon + '</a>'; newCell.align = 'right'; rowCounter++; } } </script> <div id="dialogUninstallConfirm" title="<?php echo HTML::output(OSCOM::getDef('dialog_uninstall_product_attribute_title')); ?>"> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_uninstall_product_attribute_desc'); ?></p> </div> <script> $(function() { $('#dialogUninstallConfirm').dialog({ autoOpen: false, resizable: false, modal: true, buttons: { '<?php echo addslashes(OSCOM::getDef('button_uninstall')); ?>': function() { window.location.href='<?php echo OSCOM::getLink(null, null, 'Uninstall&Process&code=PACODE'); ?>'.replace('PACODE', $(this).data('code')); }, '<?php echo addslashes(OSCOM::getDef('button_cancel')); ?>': function() { $(this).dialog('close');
actions += ' <a href="#" onclick="$(\'#dialogUninstallConfirm\').data(\'code\', \'' + record.code + '\').dialog(\'open\'); return false;">' + smUninstallLinkIcon + '</a>'; } else { actions += ' <span style="padding: 8px;"></span>'; } newCell = newRow.insertCell(1); newCell.innerHTML = actions; newCell.align = 'right'; rowCounter++; } } </script> <div id="dialogUninstallConfirm" title="<?php echo HTML::output(OSCOM::getDef('dialog_uninstall_module_title')); ?> "> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_uninstall_module_desc'); ?> </p> </div> <script> $(function() { $('#dialogUninstallConfirm').dialog({ autoOpen: false, resizable: false, modal: true, buttons: {
/** * Get the messages belonging to a group. The messages are separated by a new * line character. * * @param string $group The name of the group to get the messages from * @since v3.0.0 */ public function getRaw($group = null) { if (!isset($group)) { $group = OSCOM::getSiteApplication(); } $result = false; if ($this->exists($group)) { $result = ''; foreach ($this->_data[$group] as $message) { $result .= HTML::output($message['text']) . "\n"; } unset($this->_data[$group]); } return $result; }
}).css('cursor', 'pointer'); var newCell = newRow.insertCell(0); newCell.innerHTML = htmlSpecialChars(record.date); newCell.style.whiteSpace = 'nowrap'; newCell = newRow.insertCell(1); newCell.innerHTML = htmlSpecialChars(record.message); rowCounter++; } } </script> <div id="dialogDeleteConfirm" title="<?php echo HTML::output(OSCOM::getDef('dialog_delete_error_log_title')); ?> "> <p><span class="ui-icon ui-icon-alert" style="float: left; margin: 0 7px 20px 0;"></span><?php echo OSCOM::getDef('dialog_delete_error_log_desc'); ?> </p> </div> <script type="text/javascript"> $(function() { $('#dialogDeleteConfirm').dialog({ autoOpen: false, resizable: false, modal: true, buttons: {
public function testOutputWithAmpersand() { $this->assertEquals('test"string &', HTML::output(' test"string & ', array('&' => '&', '"' => '"'))); }