scripts.html 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. <script type="text/javascript" src="/js/jquery-1.7.2.min.js?<?=JS_LATEST_UPDATE?>"></script>
  2. <script type="text/javascript" src="/js/jquery.cookie.js?<?=JS_LATEST_UPDATE?>"></script>
  3. <script type="text/javascript" src="/js/jquery-ui-1.8.20.custom.min.js?<?=JS_LATEST_UPDATE?>"></script>
  4. <script type="text/javascript" src="/js/hotkeys.js?<?=JS_LATEST_UPDATE?>"></script>
  5. <script type="text/javascript" src="/js/events.js?<?=JS_LATEST_UPDATE?>"></script>
  6. <script type="text/javascript" src="/js/app.js?<?=JS_LATEST_UPDATE?>"></script>
  7. <script type="text/javascript" src="/js/init.js?<?=JS_LATEST_UPDATE?>"></script>
  8. <script type="text/javascript" src="/js/i18n.js.php?<?=JS_LATEST_UPDATE?>"></script>
  9. <script type="text/javascript" src="/js/templates.js?<?=JS_LATEST_UPDATE?>"></script>
  10. <script type="text/javascript" src="/js/jquery.finder.js?<?=JS_LATEST_UPDATE?>"></script>
  11. <script>
  12. $(function() {
  13. hover_menu();
  14. });
  15. </script>
  16. <?php
  17. // Dialogs
  18. // todo: display all the dialogs?
  19. if (!empty($_SESSION['look_alert'])):
  20. ?>
  21. <script>
  22. $(function() {
  23. $('#dialog:ui-dialog').dialog('destroy');
  24. $('#dialog-message').dialog({
  25. modal: true,
  26. buttons: {
  27. Ok: function() {
  28. $(this).dialog('close');
  29. }
  30. }
  31. });
  32. });
  33. </script>
  34. <div id="dialog-message" title="<?=__('Welcome')?>">
  35. <p class="confirmation"><?=__('LOGGED_IN_AS', $_SESSION['look'])?></p>
  36. </div>
  37. <?php
  38. unset($_SESSION['look_alert']);
  39. elseif (!empty($_SESSION['error_msg'])):
  40. ?>
  41. <div>
  42. <script>
  43. $(function() {
  44. $('#dialog:ui-dialog').dialog('destroy');
  45. $('#dialog-message').dialog({
  46. modal: true,
  47. buttons: {
  48. Ok: function() {
  49. $(this).dialog('close');
  50. }
  51. },
  52. create: function() {
  53. $(this)
  54. .closest('.ui-dialog')
  55. .find('.ui-button:first')
  56. .addClass('submit');
  57. }
  58. });
  59. });
  60. </script>
  61. <div id="dialog-message" title="">
  62. <p><?=htmlentities($_SESSION['error_msg'])?></p>
  63. </div>
  64. </div>
  65. <?php
  66. unset($_SESSION['error_msg']);
  67. endif;
  68. ?>