Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php foreach ($view['errors'] as $k => $error) { ?>
- <script>
- $.blockUI({
- message: '<h2 style="background:#cc0000;padding:1em;color:white;">Please complete all required fields</h2><p style="padding:1.5em 1em 1em;"><?php print $error; ?><button class="btn" onclick="$.unblockUI({onUnblock: function(){console.log('onUnblock'); $(window).css('cursor','default');$('form .error:first input:first').focus()}});return false">OK</button></p>'
- ,css: {
- padding: '0'
- ,'text-align': 'center'
- ,border: '0'
- }
- ,overlayCss: {
- cursor: 'default'
- }
- });
- </script>
- <p class="myerror error_option_<?php print $k; ?>">* <?php print $error; ?></p>
- <?php if($error == $lang->xget('str_item_added_to_registry')){ ?>
- <a href="<?php print Util::buildURL($here, ''); ?>"><?php $lang->xprint('btn_continue_shopping'); ?></a>
- |
- <a href="<?php print Util::buildURL($config->getValue('secureURL') . '/account.php', CUSTOMER_FINISH_REGISTRY_SESSION); ?>"><?php $lang->xprint('btn_done'); ?></a>
- <br /><br />
- <?php } ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement