end_js.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <script src="/js/jquery/jquery.cookie.js?<?=JS_LATEST_UPDATE?>"></script>
  2. <script src="/js/jquery/jquery-ui.min.js?<?=JS_LATEST_UPDATE?>"></script>
  3. <script src="/js/jquery/jquery.finder.js?<?=JS_LATEST_UPDATE?>"></script>
  4. <script src="/js/hotkeys.js?<?=JS_LATEST_UPDATE?>"></script>
  5. <script src="/js/events.js?<?=JS_LATEST_UPDATE?>"></script>
  6. <script src="/js/app.js?<?=JS_LATEST_UPDATE?>"></script>
  7. <script src="/js/init.js?<?=JS_LATEST_UPDATE?>"></script>
  8. <script src="/js/i18n.js.php?<?=JS_LATEST_UPDATE?>"></script>
  9. <script src="/js/templates.js?<?=JS_LATEST_UPDATE?>"></script>
  10. <script>
  11. $(function() {
  12. hover_menu();
  13. });
  14. </script>
  15. <?php
  16. if (!empty($_SESSION['error_msg'])):
  17. ?>
  18. <div>
  19. <script>
  20. $(function() {
  21. $('#dialog:ui-dialog').dialog('destroy');
  22. $('#dialog-message').dialog({
  23. modal: true,
  24. buttons: {
  25. Ok: function() {
  26. $(this).dialog('close');
  27. }
  28. },
  29. create: function() {
  30. $(this)
  31. .closest('.ui-dialog')
  32. .find('.ui-button:first')
  33. .addClass('submit');
  34. }
  35. });
  36. });
  37. </script>
  38. <div id="dialog-message" title="">
  39. <p><?=htmlentities($_SESSION['error_msg'])?></p>
  40. </div>
  41. </div>
  42. <?php
  43. unset($_SESSION['error_msg']);
  44. endif;
  45. ?>