Advertisement
Guest User

Untitled

a guest
Jan 18th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.41 KB | None | 0 0
  1. <?php foreach ($view['errors'] as $k => $error) { ?>
  2. <script>
  3.  
  4. $.blockUI({
  5. 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>'
  6.  
  7. ,css: {
  8. padding: '0'
  9. ,'text-align': 'center'
  10. ,border: '0'
  11. }
  12. ,overlayCss: {
  13. cursor: 'default'
  14. }
  15. });
  16.  
  17.  
  18.  
  19. </script>
  20. <p class="myerror error_option_<?php print $k; ?>">* <?php print $error; ?></p>
  21. <?php if($error == $lang->xget('str_item_added_to_registry')){ ?>
  22. <a href="<?php print Util::buildURL($here, ''); ?>"><?php $lang->xprint('btn_continue_shopping'); ?></a>
  23. &nbsp;|&nbsp;
  24. <a href="<?php print Util::buildURL($config->getValue('secureURL') . '/account.php', CUSTOMER_FINISH_REGISTRY_SESSION); ?>"><?php $lang->xprint('btn_done'); ?></a>
  25. <br /><br />
  26. <?php } ?>
  27. <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement