Web Interface For Lite Argus Control modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

120 lines
3.9 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. /*!
  2. * Ext JS Library 3.3.1
  3. * Copyright(c) 2006-2010 Sencha Inc.
  4. * licensing@sencha.com
  5. * http://www.sencha.com/license
  6. */
  7. Ext.onReady(function() {
  8. Ext.QuickTips.init();
  9. // create some portlet tools using built in Ext tool ids
  10. var tools = [{
  11. id:'gear',
  12. handler: function(){
  13. Ext.Msg.alert('Message', 'The Settings tool was clicked.');
  14. }
  15. },{
  16. id:'close',
  17. handler: function(e, target, panel){
  18. panel.ownerCt.remove(panel, true);
  19. }
  20. }];
  21. var viewport = new Ext.Viewport({
  22. layout:'fit',
  23. items:[{
  24. xtype: 'grouptabpanel',
  25. tabWidth: 130,
  26. activeGroup: 0,
  27. items: [{
  28. mainItem: 1,
  29. items: [{
  30. title: 'Tickets',
  31. layout: 'fit',
  32. iconCls: 'x-icon-tickets',
  33. tabTip: 'Tickets tabtip',
  34. style: 'padding: 10px;',
  35. items: [new SampleGrid([0,1,2,3,4])]
  36. },
  37. {
  38. xtype: 'portal',
  39. title: 'Dashboard',
  40. tabTip: 'Dashboard tabtip',
  41. items:[{
  42. columnWidth:.33,
  43. style:'padding:10px 0 10px 10px',
  44. items:[{
  45. title: 'Grid in a Portlet',
  46. layout:'fit',
  47. tools: tools,
  48. items: new SampleGrid([0, 2, 3])
  49. },{
  50. title: 'Another Panel 1',
  51. tools: tools,
  52. html: Ext.example.shortBogusMarkup
  53. }]
  54. },{
  55. columnWidth:.33,
  56. style:'padding:10px 0 10px 10px',
  57. items:[{
  58. title: 'Panel 2',
  59. tools: tools,
  60. html: Ext.example.shortBogusMarkup
  61. },{
  62. title: 'Another Panel 2',
  63. tools: tools,
  64. html: Ext.example.shortBogusMarkup
  65. }]
  66. },{
  67. columnWidth:.33,
  68. style:'padding:10px',
  69. items:[{
  70. title: 'Panel 3',
  71. tools: tools,
  72. html: Ext.example.shortBogusMarkup
  73. },{
  74. title: 'Another Panel 3',
  75. tools: tools,
  76. html: Ext.example.shortBogusMarkup
  77. }]
  78. }]
  79. }, {
  80. title: 'Subscriptions',
  81. iconCls: 'x-icon-subscriptions',
  82. tabTip: 'Subscriptions tabtip',
  83. style: 'padding: 10px;',
  84. layout: 'fit',
  85. items: [{
  86. xtype: 'tabpanel',
  87. activeTab: 1,
  88. items: [{
  89. title: 'Nested Tabs',
  90. html: Ext.example.shortBogusMarkup
  91. }]
  92. }]
  93. }, {
  94. title: 'Users',
  95. iconCls: 'x-icon-users',
  96. tabTip: 'Users tabtip',
  97. style: 'padding: 10px;',
  98. html: Ext.example.shortBogusMarkup
  99. }]
  100. }, {
  101. expanded: true,
  102. items: [{
  103. title: 'Configuration',
  104. iconCls: 'x-icon-configuration',
  105. tabTip: 'Configuration tabtip',
  106. style: 'padding: 10px;',
  107. html: Ext.example.shortBogusMarkup
  108. }, {
  109. title: 'Email Templates',
  110. iconCls: 'x-icon-templates',
  111. tabTip: 'Templates tabtip',
  112. style: 'padding: 10px;',
  113. html: Ext.example.shortBogusMarkup
  114. }]
  115. }]
  116. }]
  117. });
  118. });