scripts.html 2.1 KB

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