htmlgrid 1.1.7 → 1.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (72) hide show
  1. checksums.yaml +4 -4
  2. data/lib/htmlgrid/booleanvalue.rb +14 -14
  3. data/lib/htmlgrid/button.rb +9 -9
  4. data/lib/htmlgrid/centeredcomposite.rb +21 -20
  5. data/lib/htmlgrid/component.rb +214 -197
  6. data/lib/htmlgrid/composite.rb +332 -301
  7. data/lib/htmlgrid/datevalue.rb +12 -12
  8. data/lib/htmlgrid/div.rb +9 -9
  9. data/lib/htmlgrid/divcomposite.rb +44 -43
  10. data/lib/htmlgrid/divform.rb +8 -8
  11. data/lib/htmlgrid/divlist.rb +17 -19
  12. data/lib/htmlgrid/divtemplate.rb +6 -6
  13. data/lib/htmlgrid/dojotoolkit.rb +54 -48
  14. data/lib/htmlgrid/errormessage.rb +47 -43
  15. data/lib/htmlgrid/form.rb +70 -62
  16. data/lib/htmlgrid/formlist.rb +14 -14
  17. data/lib/htmlgrid/grid.rb +111 -67
  18. data/lib/htmlgrid/image.rb +17 -16
  19. data/lib/htmlgrid/infomessage.rb +15 -14
  20. data/lib/htmlgrid/input.rb +34 -32
  21. data/lib/htmlgrid/inputcheckbox.rb +13 -13
  22. data/lib/htmlgrid/inputcurrency.rb +9 -9
  23. data/lib/htmlgrid/inputdate.rb +11 -11
  24. data/lib/htmlgrid/inputfile.rb +13 -12
  25. data/lib/htmlgrid/inputradio.rb +9 -9
  26. data/lib/htmlgrid/inputtext.rb +10 -10
  27. data/lib/htmlgrid/javascript.rb +17 -16
  28. data/lib/htmlgrid/label.rb +53 -49
  29. data/lib/htmlgrid/labeltext.rb +8 -8
  30. data/lib/htmlgrid/link.rb +31 -27
  31. data/lib/htmlgrid/list.rb +121 -110
  32. data/lib/htmlgrid/namedcomponent.rb +28 -25
  33. data/lib/htmlgrid/pass.rb +11 -11
  34. data/lib/htmlgrid/passthru.rb +20 -17
  35. data/lib/htmlgrid/popuplink.rb +41 -39
  36. data/lib/htmlgrid/reset.rb +8 -8
  37. data/lib/htmlgrid/richtext.rb +22 -20
  38. data/lib/htmlgrid/select.rb +28 -26
  39. data/lib/htmlgrid/span.rb +9 -9
  40. data/lib/htmlgrid/spancomposite.rb +18 -18
  41. data/lib/htmlgrid/spanlist.rb +9 -9
  42. data/lib/htmlgrid/staticinput.rb +14 -13
  43. data/lib/htmlgrid/submit.rb +9 -9
  44. data/lib/htmlgrid/template.rb +121 -105
  45. data/lib/htmlgrid/text.rb +9 -9
  46. data/lib/htmlgrid/textarea.rb +19 -17
  47. data/lib/htmlgrid/ulcomposite.rb +22 -22
  48. data/lib/htmlgrid/ullist.rb +9 -9
  49. data/lib/htmlgrid/urllink.rb +38 -36
  50. data/lib/htmlgrid/value.rb +9 -9
  51. data/lib/htmlgrid/version.rb +2 -2
  52. data/test/stub/cgi.rb +10 -7
  53. data/test/suite.rb +3 -3
  54. data/test/test_add_row.rb +12 -13
  55. data/test/test_component.rb +141 -91
  56. data/test/test_composite.rb +85 -46
  57. data/test/test_datevalue.rb +28 -24
  58. data/test/test_divlist.rb +126 -0
  59. data/test/test_dojotoolkit.rb +41 -26
  60. data/test/test_form.rb +89 -73
  61. data/test/test_formlist.rb +77 -65
  62. data/test/test_grid.rb +256 -208
  63. data/test/test_input.rb +37 -31
  64. data/test/test_interaction_list.rb +106 -70
  65. data/test/test_label.rb +91 -77
  66. data/test/test_list.rb +110 -95
  67. data/test/test_select.rb +35 -30
  68. data/test/test_template.rb +66 -55
  69. data/test/test_text.rb +36 -31
  70. metadata +17 -4
  71. data/TooltipDialog.txt +0 -73
  72. data/interaction_no_inline.txt +0 -1216
@@ -21,99 +21,110 @@
21
21
  # ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
22
22
  # htmlgrid@ywesee.com, downloads.ywesee.com/ruby/htmlgrid
23
23
  #
24
- # TestTemplate -- htmlgrid -- 19.11.2002 -- hwyss@ywesee.com
24
+ # TestTemplate -- htmlgrid -- 19.11.2002 -- hwyss@ywesee.com
25
25
 
26
26
  $LOAD_PATH << File.expand_path("../lib", File.dirname(__FILE__))
27
27
  $LOAD_PATH << File.dirname(__FILE__)
28
28
 
29
- require 'minitest'
30
- require 'minitest/autorun'
31
- require 'flexmock/minitest'
32
- require 'stub/cgi'
33
- require 'sbsm/lookandfeel'
34
- require 'htmlgrid/template'
29
+ require "minitest"
30
+ require "minitest/autorun"
31
+ require "flexmock/minitest"
32
+ require "stub/cgi"
33
+ require "sbsm/lookandfeel"
34
+ require "htmlgrid/template"
35
35
 
36
36
  class StubTemplateSession
37
- def flavor
38
- "gcc"
39
- end
40
- def language
41
- "de"
42
- end
37
+ def flavor
38
+ "gcc"
39
+ end
40
+
41
+ def language
42
+ "de"
43
+ end
44
+
43
45
  def http_protocol
44
- 'http'
46
+ "http"
45
47
  end
48
+
46
49
  def server_name
47
50
  "testserver.com"
48
51
  end
52
+
49
53
  def server_port
50
- '80'
54
+ "80"
51
55
  end
52
- alias :default_language :language
56
+ alias_method :default_language, :language
53
57
  end
58
+
54
59
  class StubTemplateLookandfeel < SBSM::Lookandfeel
55
- RESOURCES = {
56
- :css => "test.css"
57
- }
58
- DICTIONARIES = {
59
- "de" => {
60
- :html_title => "Test",
61
- }
62
- }
63
- def lookandfeel
64
- self
65
- end
60
+ RESOURCES = {
61
+ css: "test.css"
62
+ }
63
+ DICTIONARIES = {
64
+ "de" => {
65
+ html_title: "Test"
66
+ }
67
+ }
68
+ def lookandfeel
69
+ self
70
+ end
66
71
  end
67
72
 
68
73
  class Template < HtmlGrid::Template
69
- META_TAGS = [
70
- {
71
- "http-equiv" => "robots",
72
- "content" => "follow, index",
73
- },
74
- ]
75
- COMPONENTS = {
76
- [0,0] => :foo,
77
- }
78
- LEGACY_INTERFACE = false
79
- def foo(model)
80
- 'foo'
81
- end
74
+ META_TAGS = [
75
+ {
76
+ "http-equiv" => "robots",
77
+ "content" => "follow, index"
78
+ }
79
+ ]
80
+ COMPONENTS = {
81
+ [0, 0] => :foo
82
+ }
83
+ LEGACY_INTERFACE = false
84
+ def foo(model)
85
+ "foo"
86
+ end
82
87
  end
83
88
 
84
89
  class TestTemplate < Minitest::Test
85
- def setup
86
- lookandfeel = StubTemplateLookandfeel.new(StubTemplateSession.new)
87
- @template = Template.new(nil, lookandfeel, nil)
88
- end
89
- def test_to_html
90
- result = ""
90
+ def setup
91
+ lookandfeel = StubTemplateLookandfeel.new(StubTemplateSession.new)
92
+ @template = Template.new(nil, lookandfeel, nil)
93
+ end
94
+
95
+ def test_to_html
96
+ result = ""
91
97
  result << @template.to_html(CGI.new)
92
98
  expected = [
93
- '<TITLE>Test</TITLE>',
99
+ "<TITLE>Test</TITLE>",
94
100
  '<LINK rel="stylesheet" type="text/css" async="true" href="http://testserver.com:80/resources/gcc/test.css">',
95
- '<META http-equiv="robots" content="follow, index">',
101
+ '<META http-equiv="robots" content="follow, index">'
96
102
  ]
97
103
  expected.each_with_index { |line, idx|
98
104
  assert(result.index(line), "#{idx} Missing: #{line} in #{result}")
99
105
  }
100
- end
106
+ end
107
+
101
108
  def test_to_html_with_inline_css
102
- @lookandfeel = flexmock('lnf', StubTemplateLookandfeel.new(StubTemplateSession.new))
103
- @lookandfeel.should_receive(:resource).with(:css).and_return('test/inline.css')
104
- @lookandfeel.should_receive(:lookup).with(:html_title).and_return('html_title').by_default
109
+ @lookandfeel = flexmock("lnf", StubTemplateLookandfeel.new(StubTemplateSession.new))
110
+ @lookandfeel.should_receive(:resource).with(:css).and_return("test/inline.css")
111
+ @lookandfeel.should_receive(:lookup).with(:html_title).and_return("html_title").by_default
105
112
  @lookandfeel.should_receive(:lookup).with(any).and_return(nil).by_default
106
113
  @template = Template.new(nil, @lookandfeel, nil)
107
114
  result = ""
108
115
  result << @template.to_html(CGI.new)
109
116
  expected = [
110
- '<TITLE>html_title</TITLE>',
111
- 'this is a dummy CSS file, which should be inlined',
117
+ "<TITLE>html_title</TITLE>",
118
+ "this is a dummy CSS file, which should be inlined",
112
119
  '<STYLE rel="stylesheet" type="text/css" async="true">',
113
- '<META http-equiv="robots" content="follow, index">',
120
+ '<META http-equiv="robots" content="follow, index">'
114
121
  ]
115
122
  expected.each_with_index { |line, idx|
116
123
  assert(result.index(line), "#{idx} Missing: #{line} in #{result}")
117
124
  }
118
125
  end
126
+
127
+ def test_to_html_with_nil_inline
128
+ assert_nil(HtmlGrid::TemplateMethods.get_inline(nil))
129
+ end
119
130
  end
data/test/test_text.rb CHANGED
@@ -21,43 +21,48 @@
21
21
  # ywesee - intellectual capital connected, Winterthurerstrasse 52, CH-8006 Zuerich, Switzerland
22
22
  # htmlgrid@ywesee.com, www.ywesee.com/htmlgrid
23
23
  #
24
- # TextText -- htmlgrid -- 20.11.2002 -- hwyss@ywesee.com
24
+ # TextText -- htmlgrid -- 20.11.2002 -- hwyss@ywesee.com
25
25
 
26
26
  $: << File.expand_path("../lib", File.dirname(__FILE__))
27
27
 
28
- require 'minitest/autorun'
29
- require 'htmlgrid/text'
28
+ require "minitest/autorun"
29
+ require "htmlgrid/text"
30
30
 
31
31
  class StubTextLookandfeel
32
- def lookup(key)
33
- {
34
- :foo => "Foo Text!",
35
- :navigation_divider => "&nbsp;|&nbsp;",
36
- }[key]
37
- end
38
- def attributes(key)
39
- {"foo" => "bar"} if key==:foo
40
- end
41
- def lookandfeel
42
- self
43
- end
32
+ def lookup(key)
33
+ {
34
+ foo: "Foo Text!",
35
+ navigation_divider: "&nbsp;|&nbsp;"
36
+ }[key]
37
+ end
38
+
39
+ def attributes(key)
40
+ {"foo" => "bar"} if key == :foo
41
+ end
42
+
43
+ def lookandfeel
44
+ self
45
+ end
44
46
  end
45
47
 
46
48
  class TestText < Minitest::Test
47
- def setup
48
- @view = HtmlGrid::Text.new(:foo, nil, StubTextLookandfeel.new)
49
- end
50
- def test_respond_to_attributes
51
- assert_respond_to(@view, :attributes)
52
- end
53
- def test_to_html
54
- assert_equal("Foo Text!", @view.to_html(nil))
55
- end
56
- def test_init
57
- expected = {
58
- "foo" => "bar",
59
- "name" => "foo",
60
- }
61
- assert_equal(expected, @view.attributes)
62
- end
49
+ def setup
50
+ @view = HtmlGrid::Text.new(:foo, nil, StubTextLookandfeel.new)
51
+ end
52
+
53
+ def test_respond_to_attributes
54
+ assert_respond_to(@view, :attributes)
55
+ end
56
+
57
+ def test_to_html
58
+ assert_equal("Foo Text!", @view.to_html(nil))
59
+ end
60
+
61
+ def test_init
62
+ expected = {
63
+ "foo" => "bar",
64
+ "name" => "foo"
65
+ }
66
+ assert_equal(expected, @view.attributes)
67
+ end
63
68
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htmlgrid
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.7
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Masaomi Hatakeyama, Zeno R.R. Davatz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-06-16 00:00:00.000000000 Z
11
+ date: 2021-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sbsm
@@ -150,6 +150,20 @@ dependencies:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: standardrb
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
153
167
  description: Not much to say.
154
168
  email: mhatakeyama@ywesee.com, zdavatz@ywesee.com
155
169
  executables: []
@@ -157,8 +171,6 @@ extensions: []
157
171
  extra_rdoc_files: []
158
172
  files:
159
173
  - Manifest.txt
160
- - TooltipDialog.txt
161
- - interaction_no_inline.txt
162
174
  - lib/htmlgrid/booleanvalue.rb
163
175
  - lib/htmlgrid/button.rb
164
176
  - lib/htmlgrid/centeredcomposite.rb
@@ -215,6 +227,7 @@ files:
215
227
  - test/test_component.rb
216
228
  - test/test_composite.rb
217
229
  - test/test_datevalue.rb
230
+ - test/test_divlist.rb
218
231
  - test/test_dojotoolkit.rb
219
232
  - test/test_form.rb
220
233
  - test/test_formlist.rb
data/TooltipDialog.txt DELETED
@@ -1,73 +0,0 @@
1
- />>built
2
- require({cache:{"url:dijit/templates/TooltipDialog.html":"<div role=\"alertdialog\" tabIndex=\"-1\">\n\t<div class=\"dijitTooltipContainer\" role=\"presentation\">\n\t\t<div data-dojo-attach-point=\"contentsNode\" class=\"dijitTooltipContents dijitTooltipFocusNode\">\n\t\t\t<div data-dojo-attach-point=\"containerNode\"></div>\n\t\t\t${!actionBarTemplate}\n\t\t</div>\n\t</div>\n\t<div class=\"dijitTooltipConnector\" role=\"presentation\" data-dojo-attach-point=\"connectorNode\"></div>\n</div>\n"}});
3
- define("dijit/TooltipDialog",["dojo/_base/declare","dojo/dom-class","dojo/has","dojo/keys","dojo/_base/lang","dojo/on","./focus","./layout/ContentPane","./_DialogMixin","./form/_FormMixin","./_TemplatedMixin","dojo/text!./templates/TooltipDialog.html","./main"],function(_1,_2,_3,_4,_5,on,_6,_7,_8,_9,_a,_b,_c){
4
- var _d=_1("dijit.TooltipDialog",[_7,_a,_9,_8],{title:"",doLayout:false,autofocus:true,baseClass:"dijitTooltipDialog",_firstFocusItem:null,_lastFocusItem:null,templateString:_b,_setTitleAttr:"containerNode",postCreate:function(){
5
- this.inherited(arguments);
6
- this.own(on(this.domNode,"keydown",_5.hitch(this,"_onKey")));
7
- },orient:function(_e,_f,_10){
8
- var _11={"MR-ML":"dijitTooltipRight","ML-MR":"dijitTooltipLeft","TM-BM":"dijitTooltipAbove","BM-TM":"dijitTooltipBelow","BL-TL":"dijitTooltipBelow dijitTooltipABLeft","TL-BL":"dijitTooltipAbove dijitTooltipABLeft","BR-TR":"dijitTooltipBelow dijitTooltipABRight","TR-BR":"dijitTooltipAbove dijitTooltipABRight","BR-BL":"dijitTooltipRight","BL-BR":"dijitTooltipLeft","BR-TL":"dijitTooltipBelow dijitTooltipABLeft","BL-TR":"dijitTooltipBelow dijitTooltipABRight","TL-BR":"dijitTooltipAbove dijitTooltipABRight","TR-BL":"dijitTooltipAbove dijitTooltipABLeft"}[_f+"-"+_10];
9
- _2.replace(this.domNode,_11,this._currentOrientClass||"");
10
- this._currentOrientClass=_11;
11
- },focus:function(){
12
- this._getFocusItems();
13
- _6.focus(this._firstFocusItem);
14
- },onOpen:function(pos){
15
- this.orient(this.domNode,pos.aroundCorner,pos.corner);
16
- var _12=pos.aroundNodePos;
17
- if(pos.corner.charAt(0)=="M"&&pos.aroundCorner.charAt(0)=="M"){
18
- this.connectorNode.style.top=_12.y+((_12.h-this.connectorNode.offsetHeight)>>1)-pos.y+"px";
19
- this.connectorNode.style.left="";
20
- }else{
21
- if(pos.corner.charAt(1)=="M"&&pos.aroundCorner.charAt(1)=="M"){
22
- this.connectorNode.style.left=_12.x+((_12.w-this.connectorNode.offsetWidth)>>1)-pos.x+"px";
23
- }
24
- }
25
- this._onShow();
26
- },onClose:function(){
27
- this.onHide();
28
- },_onKey:function(evt){
29
- if(evt.keyCode==_4.ESCAPE){
30
- this.defer("onCancel");
31
- evt.stopPropagation();
32
- evt.preventDefault();
33
- }else{
34
- if(evt.keyCode==_4.TAB){
35
- var _13=evt.target;
36
- this._getFocusItems();
37
- if(this._firstFocusItem==this._lastFocusItem){
38
- evt.stopPropagation();
39
- evt.preventDefault();
40
- }else{
41
- if(_13==this._firstFocusItem&&evt.shiftKey){
42
- _6.focus(this._lastFocusItem);
43
- evt.stopPropagation();
44
- evt.preventDefault();
45
- }else{
46
- if(_13==this._lastFocusItem&&!evt.shiftKey){
47
- _6.focus(this._firstFocusItem);
48
- evt.stopPropagation();
49
- evt.preventDefault();
50
- }else{
51
- evt.stopPropagation();
52
- }
53
- }
54
- }
55
- }
56
- }
57
- }});
58
- if(_3("dojo-bidi")){
59
- _d.extend({_setTitleAttr:function(_14){
60
- this.containerNode.title=(this.textDir&&this.enforceTextDirWithUcc)?this.enforceTextDirWithUcc(null,_14):_14;
61
- this._set("title",_14);
62
- },_setTextDirAttr:function(_15){
63
- if(!this._created||this.textDir!=_15){
64
- this._set("textDir",_15);
65
- if(this.textDir&&this.title){
66
- this.containerNode.title=this.enforceTextDirWithUcc(null,this.title);
67
- }
68
- }
69
- }});
70
- }
71
- return _d;
72
- });
73
-
@@ -1,1216 +0,0 @@
1
-
2
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><HTML><HEAD><HEAD><TITLE>ODDB.org: Open Drug Database | Interaktionen | Interaktionen Suchen</TITLE><META name="apple-itunes-app" content="app-id=520038123"><META name="viewport" content="width=device-width"><META name="description" content="Open Drug Database Switzerland"><META name="theme-color" content="#8ddb45"><SCRIPT type="text/javascript" data-dojo-config="parseOnLoad: true,isDebug: false,preventBackButtonFix: true,bindEncoding: &#39;UTF-8&#39;,searchIds: [],urchin: &#39;&#39;,has: {
3
- &#39;dojo-firebug&#39;: false,
4
- &#39;dojo-debug-messages&#39;: false
5
- },packages: [ ]" src="http://192.168.0.75:8012/resources/dojo/dojo/dojo.js"></SCRIPT><SCRIPT type="text/javascript">require(['dojo/ready','dojo/parser','dojo/io/script','dojo/_base/window','dojox/data/JsonRestStore','dijit/form/ComboBox','dijit/ProgressBar','dijit/TooltipDialog'], function(ready,parser,script,window,JsonRestStore,ComboBox,ProgressBar,TooltipDialog) {ready(function() {require(["dojo/domReady!"], function(){
6
- if (document.getElementById('interaction_searchbar') != null) document.getElementById('interaction_searchbar').focus();
7
- });
8
-
9
- });});</SCRIPT><STYLE type="text/css"> @import "http://192.168.0.75:8012/resources/dojo/dojo/resources/dojo.css";
10
- @import "http://192.168.0.75:8012/resources/dojo/dojo/../dijit/themes/tundra/tundra.css";
11
- </STYLE><SCRIPT type="text/javascript">require(['dojo/ready','dojox/analytics/Urchin'], function(ready) {
12
- ready(function() {
13
- dojo.ready(function(){
14
- new dojox.analytics.Urchin({ acct: 'UA-118968446-1' });
15
- });
16
- });
17
- });
18
- </SCRIPT><STYLE type="text/css"> @import "http://192.168.0.75:8012/resources/dojo/dojo/../dijit/themes/tundra/ProgressBar.css";
19
- </STYLE><STYLE rel="stylesheet" type="text/css" async="true">@import "/resources/dojo/dijit/themes/tundra/tundra.css";
20
- @import "/resources/diff.css";
21
- /* Top-Level */
22
- body {
23
- font-family : Arial, Helvetica, sans-serif;
24
- font-size : 12px;
25
- border : 0px dotted;
26
- background-color : white;
27
- margin : 8px;
28
- }
29
- label {
30
- font-weight : bold;
31
- }
32
- ul {
33
- margin : 0px;
34
- padding-left : 14px;
35
- list-style-type : disc;
36
- }
37
- ol {
38
- margin : 0px;
39
- padding : 0px 0px 0px 20px;
40
- }
41
- ol li {
42
- margin : 5px 0px;
43
- }
44
-
45
- /* ErrorPage */
46
- body.appdown h1 {
47
- font-family : Arial, Helvetica, sans-serif;
48
- font-size : 12px;
49
- color : white;
50
- background : #2ba476;
51
- }
52
- body.appdown h1, body.appdown p {
53
- padding : 4px;
54
- }
55
-
56
- /* Fachinfo */
57
- h3 {
58
- font-family : Arial, Helvetica, sans-serif;
59
- font-size : 12px;
60
- margin-bottom : 2px;
61
- }
62
- p {
63
- padding : 0px;
64
- }
65
- pre {
66
- font-style : normal;
67
- font-family : Courier New, Courier, monospace;
68
- font-size : 12px;
69
- margin-top : 0px;
70
- text-align : left;
71
- white-space : pre;
72
- }
73
- table.chapter {
74
- border : 1px solid #999;
75
- margin : 4px;
76
- border-collapse : collapse;
77
- }
78
- table.chapter td {
79
- border : 1px solid #999;
80
- vertical-align : top;
81
- padding : 4px 6px;
82
- }
83
- span.link {
84
- color: blue;
85
- }
86
- a {
87
- text-decoration : none;
88
- }
89
- a img {
90
- border : 0px;
91
- }
92
- /* standard-result-classes */
93
- a.generic:hover, a.original:hover, a.unknown:hover {
94
- color : blue;
95
- }
96
- a.generic:active, a.original:active, a.unknown:active {
97
- color : #f5e84d;
98
- }
99
- /* other result-classes */
100
- a.small {
101
- color : blue;
102
- font-size : 11px;
103
- }
104
- a.small:hover {
105
- color : #2ba476;
106
- }
107
- a.feedback, span.feedback,
108
- a.feedback:link, a.feedback:visited {
109
- color : black;
110
- background-color : #ffbc6f;
111
- }
112
- span.google_search,
113
- a.google_search,
114
- a.google_search:link, a.google_search:visited {
115
- color : white;
116
- background-color : #184fca;
117
- }
118
- td.spaced a.twitter {
119
- padding-left : 0px;
120
- }
121
- td.spaced a.twitter img{
122
- padding-bottom : 2px;
123
- }
124
- a.twitter {
125
- padding : 2px;
126
- }
127
- a.twitter img {
128
- vertical-align : bottom;
129
- }
130
- td.bg a.feedback {
131
- background : #ffbc22;
132
- }
133
- a.infos {
134
- color : black;
135
- background : #FFF88F;
136
- }
137
-
138
- /* atc-chooser-classes */
139
- td.atcchooser1 {
140
- padding : 8px 4px 1px 4px;
141
- }
142
- td.atcchooser2 {
143
- padding : 6px 4px 1px 4px;
144
- }
145
- td.atcchooser3 {
146
- padding : 4px 4px 1px 4px;
147
- }
148
- td.atcchooser4 {
149
- padding : 2px 4px 1px 4px;
150
- }
151
- td.atcchooser5 {
152
- padding : 1px 4px 1px 4px;
153
- }
154
- a.atcchooser1 {
155
- font-weight : bold;
156
- }
157
- a.atcchooser1, a.atcchooser2,
158
- a.atcchooser3, a.atcchooser4,
159
- a.atcchooser5 {
160
- color: blue;
161
- }
162
- a.atcchooser2:hover, a.atcchooser2:hover,
163
- a.atcchooser3:hover, a.atcchooser4:hover,
164
- a.atcchooser5:hover {
165
- color : #2ba476;
166
- }
167
- a.atclink2, a.atclink3,
168
- a.atclink4, a.atclink5 {
169
- color : #2ba476;
170
- }
171
- a.atclink2:hover, a.atclink3:hover,
172
- a.atclink4:hover, a.atclink5:hover {
173
- color : #2ba476;
174
- }
175
- a.atcchooser2, a.atclink2 {
176
- margin-left : 26px;
177
- }
178
- a.atcchooser3, a.atclink3 {
179
- margin-left : 46px;
180
- }
181
- a.atcchooser4, a.atclink4 {
182
- margin-left : 66px;
183
- }
184
- a.atcchooser5, a.atclink5 {
185
- margin-left : 86px;
186
- }
187
- a.welcome {
188
- padding : 0px;
189
- padding-right : 0px;
190
- color : blue;
191
- }
192
- a.welcome:hover, a.text:hover {
193
- color : #2ba476;
194
- }
195
- a.text {
196
- color : blue;
197
- }
198
-
199
- /* standard-list-classes */
200
- a.list, a.list:hover, a.list:link:hover, a.list:visited:hover {
201
- color : #2ba476;
202
- }
203
- td.center a.list {
204
- white-space : nowrap;
205
- }
206
- a.list:link, a.list:visited {
207
- color : blue;
208
- }
209
- a.list:active {
210
- color : black;
211
- }
212
- td.subheading, th.subheading {
213
- background : #ccff99;
214
- color : black;
215
- font-weight : normal;
216
- padding : 4px;
217
- text-decoration : none;
218
- }
219
- a.subheading {
220
- padding : 0px;
221
- color : black;
222
- white-space : nowrap;
223
- }
224
- td.subheading a.bold {
225
- padding : 4px;
226
- }
227
- a.subheading:link, a.subheading:visited {
228
- color : blue;
229
- }
230
- table.navigation a.subheading:visited,
231
- table.navigation a.subheading:link {
232
- color : black;
233
- }
234
- a.subheading:link:hover, a.subheading:visited:hover,
235
- table.navigation a.subheading,
236
- table.navigation a.subheading:link:hover,
237
- table.navigation a.subheading:visited:hover {
238
- color : red;
239
- }
240
- a.subheading:active, table.navigation a.subheading:active {
241
- color : silver;
242
- }
243
-
244
- /* navigation-classes */
245
- a.navigation{
246
- color : blue;
247
- background : #2ba476;
248
- font-weight : normal;
249
- }
250
- a.navigation:link, a.navigation:visited {
251
- color : white;
252
- }
253
- a.navigation:hover {
254
- color : blue;
255
- }
256
- a.navigation:active {
257
- color : red;
258
- }
259
- a.tabnavigation
260
- {
261
- background : #ccff99;
262
- font-weight : bold;
263
- font-size : 13px;
264
- }
265
- a.tabnavigation:link, a.tabnavigation:visited {
266
- color : blue;
267
- }
268
- a.tabnavigation, a.tabnavigation:hover {
269
- color : black;
270
- }
271
- a.tabnavigation:active {
272
- color : black;
273
- }
274
- /*pager-class*/
275
- a.pager:link, a.pager:visit, a.fbpager:hover {
276
- color : blue;
277
- }
278
- a.pager:hover {
279
- color : red;
280
- }
281
- a.pager:active {
282
- color : #f5e84d;
283
- }
284
- a.fbpager {
285
- color : white;
286
- }
287
- /* explain-classes */
288
- td.explain a.original, td.explain a.generic {
289
- font-weight : bold;
290
- }
291
- a.legal-note:link, a.legal-note:visited {
292
- color : blue;
293
- }
294
- a.legal-note:hover {
295
- color : #2ba476;
296
- }
297
- a.legal-note:active {
298
- color : #f5e84d;
299
- }
300
- /* tab-classes */
301
- a.chapter-tab {
302
- background : #ccff99;
303
- color : red;
304
- -webkit-text-size-adjust: none;
305
- }
306
- a.chapter-tab:link, a.chapter-tab:visited {
307
- background : #ccff99;
308
- color : blue;
309
- -webkit-text-size-adjust: none;
310
- }
311
- /* misc */
312
- a.powerlink {
313
- color : blue;
314
- text-decoration : underline;
315
- }
316
- a.powerlink:hover {
317
- color : red;
318
- }
319
- a.powerlink:active {
320
- color : #f5e84d;
321
- }
322
- a.create-infos {
323
- color : black;
324
- border : 1px solid #ffbc6f;
325
- font-weight : bold;
326
- }
327
- a.patent {
328
- font-weight : bold;
329
- color : white;
330
- background-color : #C00;
331
- }
332
- a.create-infos:hover {
333
- background : #FFF88F;
334
- }
335
- /*table class*/
336
- table {
337
- border : 0px solid red;
338
- margin : 0px;
339
- }
340
- table.right {
341
- float : right;
342
- }
343
- table.tabnavigation {
344
- background : #ccff99;
345
- color : black;
346
- text-decoration : none;
347
- border-right : 0px;
348
- border-bottom : 0px;
349
- border-left : 1px solid #2ba476;
350
- border-top : 1px solid #2ba476;
351
- }
352
- table.tabnavigation td {
353
- padding : 4px 2px;
354
- }
355
- table.tabnavigation td:first-child {
356
- padding : 4px 2px 4px 5px;
357
- }
358
- table.tabnavigation td:last-child {
359
- padding : 4px 5px 4px 2px;
360
- }
361
- table.navigation-foot {
362
- background : #2ba476;
363
- color : white;
364
- width : 100%;
365
- padding : 3px;
366
- }
367
- table.explain {
368
- background : #ccff99;
369
- color : black;
370
- text-align : left;
371
- width : 100%;
372
- font-size : 11px;
373
- }
374
- table.legal-note {
375
- width : 100%;
376
- text-align : right;
377
- }
378
- table.interaction-basket td {
379
- padding-top : 4px;
380
- padding-left : 4px;
381
- padding-bottom : 4px;
382
- vertical-align : baseline;
383
- }
384
- table.wait {
385
- cell-spacing : 20px;
386
- }
387
- table.invoice {
388
- width : 300px;
389
- border : 1px solid #ccff99;
390
- }
391
- table.border, table.border td {
392
- border : 1px solid green;
393
- }
394
- table.composite {
395
- width : 100%;
396
- }
397
- /*td class*/
398
- td {
399
- border : 0px dashed green;
400
- padding : 0px;
401
- }
402
- tr td.list a.important {
403
- font-size: 14px;
404
- }
405
- td.bg a.infos, td.atc a.infos, td.migel-group a.infos,
406
- span.limitation, span.narc, span.fachinfo, span.patinfo, span.minifi {
407
- background : #FFF455;
408
- }
409
- /*td standard-result-classes */
410
- td.generic, a.generic {
411
- color : #2ba476;
412
- }
413
- td.original, a.original {
414
- color : red;
415
- }
416
- td.vaccine, a.vaccine {
417
- color : #a52a2a;
418
- }
419
- td.unknown, a.unknown {
420
- color : black;
421
- }
422
- td.bold, a.bold, span.bold {
423
- font-weight : bold;
424
- }
425
- td.italic, a.italic, span.italic {
426
- font-style : italic;
427
- }
428
- /* other result-classes */
429
- td.atc {
430
- background : #ccff99;
431
- color : black;
432
- }
433
- td.seq {
434
- background : #dbffc3;
435
- color : black;
436
- }
437
- td.indent {
438
- padding-left : 15px;
439
- }
440
- tr td.big {
441
- font-size : 14px;
442
- font-weight : bold;
443
- }
444
- td.small {
445
- width : 20px;
446
- font-size : 11px;
447
- }
448
- td.edit, td.edit a {
449
- color : blue;
450
- font-size : 11px;
451
- }
452
- td.result-found {
453
- padding-left : 4px;
454
- padding-top : 4px;
455
- font-weight : bold;
456
- }
457
- td.pubprice {
458
- font-weight : bold;
459
- padding-right : 10px;
460
- text-align : right;
461
- }
462
- img.logo, img.welcomeleft, img.welcomecenter {
463
- width: 350px;
464
- display: block;
465
- margin: 0 auto;
466
- }
467
- img.welcomeleft {
468
- float: left;
469
- }
470
- td.welcomeleft {
471
- width : 33%;
472
- }
473
- td.welcomecenter {
474
- width : 33%;
475
- }
476
- td.welcomeright {
477
- width : 33%;
478
- }
479
- td.personal_logo {
480
- width : 33%;
481
- vertical-align : top;
482
- position : relative;
483
- padding : 4px;
484
- padding-top : 12px;
485
- }
486
- td.logo {
487
- width : 33%;
488
- vertical-align : top;
489
- position : relative;
490
- padding : 4px;
491
- padding-top : 12px;
492
- }
493
- td.section-title {
494
- font-weight : bold;
495
- padding-top : 8px;
496
- }
497
- td.welcome {
498
- text-align : right;
499
- vertical-align : bottom;
500
- text-decoration : none;
501
- }
502
-
503
- /* validation-classes */
504
- td.error {
505
- background : #f9e7f3;
506
- color : red;
507
- font-weight : bold;
508
- padding : 8px;
509
- }
510
- td.list {
511
- padding : 4px;
512
- }
513
- td.title {
514
- font-weight : bold;
515
- }
516
- td.navigation {
517
- background : #2ba476;
518
- color : white;
519
- text-decoration : none;
520
- padding : 4px;
521
- font-size : 12px;
522
- }
523
- td.right table.tabnavigation {
524
- margin-bottom : 4px;
525
- float : right;
526
- border-right : 1px solid #2ba476;
527
- border-bottom : 1px solid #2ba476;
528
- border-left : 0px;
529
- border-top : 0px;
530
- }
531
- td.pager-head {
532
- padding-right : 12px;
533
- }
534
- td.pager {
535
- font-weight : bold;
536
- padding-left : 6px;
537
- padding-right : 6px;
538
- }
539
- td.search {
540
- text-align : right;
541
- padding : 0px;
542
- }
543
- td.searchbar {
544
- text-align : left;
545
- padding : 2px 0px;
546
- }
547
- td.center {
548
- text-align : center;
549
- }
550
- td.center table {
551
- margin : auto;
552
- }
553
- td.ddd-chart {
554
- padding : 12px 0px 0px 0px;
555
- }
556
- td.donate {
557
- text-align : center;
558
- }
559
- td.button {
560
- padding-bottom : 5px;
561
- }
562
- td.inner-button {
563
- padding : 5px 0 5px 5px;
564
- margin : 5px;
565
- }
566
- td.selection {
567
- padding : 5px 0;
568
- margin : 5px;
569
- }
570
- td.explain {
571
- padding : 4px;
572
- background : #ccff99;
573
- color : black;
574
- vertical-align : bottom;
575
- }
576
- td.legal-note{
577
- font-size : 8pt;
578
- text-align : center;
579
- padding : 4px;
580
- padding-bottom : 10px;
581
- }
582
- /* error_classes */
583
- label.error {
584
- color : red;
585
- }
586
- td.info {
587
- padding-bottom : 4px;
588
- padding-top : 4px;
589
- color : green;
590
- }
591
- td.processingerror {
592
- padding : 4px;
593
- color : red;
594
- }
595
- td.warning {
596
- padding-bottom : 4px;
597
- padding-top : 4px;
598
- color : #ff6600;
599
- }
600
- /* tab-classes */
601
- td.chapter-tab {
602
- background : #ccff99;
603
- border-style : solid;
604
- border-color : black;
605
- border-width : 0px 0px 1px 0px;
606
- padding : 4px;
607
- }
608
- /* print-classes */
609
- div.big {
610
- padding-top : 12px;
611
- font-weight : bold;
612
- font-size : 26px;
613
- }
614
- /* new style of formatting */
615
- /* use multiple classes to style! */
616
- td.interaction-connection {
617
- margin-top : 0px;
618
- list-style-type : circle;
619
- width : 20%;
620
- }
621
- td.bg {
622
- background : #ecffe6;
623
- }
624
- td.interaction-substance {
625
- font-size : 14px;
626
- width : 20%;
627
- }
628
- td.interaction-drug {
629
- margin-top : 0px;
630
- list-style-type : circle;
631
- }
632
- td.interaction-atc {
633
- margin-top : 0px;
634
- list-style-type : circle;
635
- }
636
- div.interaction-header {
637
- font-weight : bold;
638
- text-align : left;
639
- text-decoration : none;
640
- }
641
- tr.interaction-info {
642
- margin-top : 0px;
643
- list-style-type : circle;
644
- }
645
-
646
- td.sum {
647
- border-color : black;
648
- border-style : solid;
649
- border-width : 0px 0px 1px 0px;
650
- }
651
- td.total {
652
- border-color : black;
653
- border-style : double;
654
- border-width : 0px 0px 3px 0px;
655
- }
656
- td.top {
657
- vertical-align : top;
658
- }
659
- td.experience {
660
- width : 750px;
661
- }
662
- td.address-width {
663
- width : 180px;
664
- }
665
- td.border-top {
666
- border-top : 2.5px solid #2ba476;
667
- }
668
- td.border-left {
669
- float : right;
670
- border-left : 1.5px solid #2ba476;
671
- width : 400px;
672
- }
673
- td.radio {
674
- vertical-align : top;
675
- width : 5px;
676
- height : 12px;
677
- max-width : 5px;
678
- }
679
- td.list span.square, td.list a.square {
680
- padding : 2px 4px;
681
- font-size : 11px;
682
- }
683
- td.infos, td.infos span.square, td.infos a.square {
684
- padding : 0px 1px;
685
- font-size : 11px;
686
- }
687
- td.infos {
688
- height : auto;
689
- }
690
- td.wait {
691
- width : 25px;
692
- height : 25px;
693
- border : 1px solid #2ba476;
694
- background-color : #e9f7f3;
695
- }
696
- td.bg-red {
697
- background-color : #FF0000;
698
- }
699
- td.confirm {
700
- padding : 6px;
701
- background : #ecffe6;
702
- font-size : 14px;
703
- font-weight : bold;
704
- }
705
- td.migel-group {
706
- background : #7bcf88;
707
- color : black;
708
- }
709
- td.next-step {
710
- padding : 4px;
711
- border : 2px dotted red;
712
- width : auto;
713
- }
714
- td.active-item {
715
- padding-top : 15px;
716
- opacity : .75;
717
- filter : alpha(opacity=75);
718
- }
719
- td.right table {
720
- float : right;
721
- }
722
- td.date-chooser {
723
- border-bottom : 1px solid #2ba476;
724
- }
725
- td.tab {
726
- background-color : #ccff99;
727
- border-top : 2px solid #7bcf88;
728
- }
729
- td.nowrap {
730
- white-space : nowrap;
731
- }
732
- span.square, a.square {
733
- text-align : center;
734
- font-weight : bold;
735
- }
736
- span.vaccine, a.vaccine {
737
- color : white;
738
- background-color : #a52a2a;
739
- }
740
- span.anthroposophy {
741
- color : white;
742
- background-color : #ff00ff;
743
- }
744
- span.comarketing, a.comarketing {
745
- font-weight : bold;
746
- color : white;
747
- background-color : #f61;
748
- }
749
- span.complementary, a.complementary {
750
- color : white;
751
- background-color : #dd1cff;
752
- }
753
- span.homeopathy, a.homeopathy {
754
- color : white;
755
- background-color : #9900ff;
756
- }
757
- span.parallel_import, a.parallel_import {
758
- color : white;
759
- background-color : #0A0;
760
- }
761
- span.phytotherapy, a.phytotherapy {
762
- color : white;
763
- background-color : #60f;
764
- }
765
- span.deductible_g, span.deductible_o {
766
- font-weight : bold;
767
- text-align : center;
768
- text-decoration : none;
769
- padding : 2px 2px 2px 4px;
770
- }
771
- span.deductible_o {
772
- color : black;
773
- background-color : #ffc455;
774
- }
775
- span.deductible_g {
776
- color : black;
777
- background-color : #fff455;
778
- }
779
- div.square {
780
- max-width : 20px;
781
- height : 20px;
782
- text-align : center;
783
- vertical-align : middle;
784
- font-size : 16px;
785
- }
786
- div.plus {
787
- background-color : #cf9;
788
- }
789
- div.minus {
790
- background-color : #ffbc6f;
791
- }
792
- div.just-medical {
793
- background : #2ba476;
794
- color : white;
795
- font-weight : bold;
796
- padding : 4px;
797
- text-align : left;
798
- text-decoration : none;
799
- }
800
- div.drug {
801
- height : 20px;
802
- padding : 2px;
803
- }
804
- div.long-text {
805
- max-width : 400px;
806
- }
807
- /* input-classes */
808
- input, select {
809
- font-family : Arial, Helvetica, sans-serif;
810
- font-size : 12px;
811
- }
812
- input.button {
813
- background : none;
814
- color : black;
815
- font-size : 12px;
816
- font-family : Arial, Helvetica, sans-serif;
817
- }
818
- input.medium {
819
- width : 100px;
820
- }
821
- input.standard {
822
- width : 200px;
823
- }
824
- input.search {
825
- width : 160px;
826
- padding : 0px;
827
- }
828
- td.center input.search {
829
- width : 260px;
830
- margin : 7px;
831
- }
832
- input.xl {
833
- width : 350px;
834
- }
835
- input.xxl {
836
- width : 400px;
837
- }
838
- input.small {
839
- width : 40px;
840
- }
841
- input.mailinglist {
842
- width : 250px;
843
- padding : 0px;
844
- margin : 7px;
845
- margin-left : 0px;
846
- }
847
- /*th class*/
848
- th {
849
- background : #2ba476;
850
- color : white;
851
- font-weight : bold;
852
- padding : 4px;
853
- text-align : left;
854
- }
855
- th, td.th {
856
- background : #2ba476;
857
- color : white;
858
- font-weight : bold;
859
- padding : 4px;
860
- text-decoration : none;
861
- }
862
- th a, td.th a, th a:visited, td.th a:visited {
863
- color : white;
864
- }
865
- a.th:hover {
866
- color : blue;
867
- }
868
- a.th:active {
869
- color : red;
870
- }
871
- /* layout-classes */
872
- .sponsor {
873
- font-size : 11px;
874
- color : silver;
875
- }
876
- a.logo {
877
- display: block;
878
- margin: 0 auto;
879
- }
880
- .company_logo {
881
- display: block;
882
- margin: 0 auto;
883
- float: right;
884
- }
885
- .personal {
886
- font-weight : bold;
887
- font-size : 11px;
888
- margin-top : 40px;
889
- color : black;
890
- }
891
- .right {
892
- text-align : right;
893
- }
894
- tr.expired td, td.expired {
895
- filter : alpha(opacity=65);
896
- -moz-opacity : 0.65;
897
- opacity : 0.65;
898
- background-color : #CCC;
899
- }
900
- tr.disabled {
901
- opacity : .75;
902
- filter : alpha(opacity=75);
903
- }
904
- textarea {
905
- width : 400px;
906
- height : 100px;
907
- font-family : Arial, Helvetica, sans-serif;
908
- }
909
- textarea.huge {
910
- width : 800px;
911
- height : 100px;
912
- font-family : Arial, Helvetica, sans-serif;
913
- }
914
- textarea.wide {
915
- width : 750px;
916
- height : 100px;
917
- font-family : Arial, Helvetica, sans-serif;
918
- }
919
- textarea.big {
920
- width : 650px;
921
- height : 200px;
922
- font-family : Arial, Helvetica, sans-serif;
923
- font-size : 12px;
924
- }
925
- textarea.standard {
926
- width : 200px;
927
- height : 60px;
928
- font-family : Arial, Helvetica, sans-serif;
929
- font-size : 12px;
930
- }
931
- form {
932
- margin : 0px;
933
- }
934
- form.search {
935
- vertical-align : bottom;
936
- padding : 0px;
937
- margin : 0px;
938
- }
939
- span.iconContainer span.insertsymbol {
940
- background-image : url(/resources/javascript/dojo/sigma.gif);
941
- }
942
- td.sidebar {
943
- width : 20%;
944
- }
945
- td.sidebar div {
946
- padding : 2px;
947
- background-color : #ddffdd;
948
- }
949
- div.heading {
950
- font-weight : bold;
951
- padding-bottom : 6px;
952
- }
953
- div.heading img {
954
- float : right;
955
- }
956
- div.thumbnail,
957
- div.small {
958
- float : left;
959
- display : inline;
960
- margin : 5px 5px 0 5px;
961
- text-align : center;
962
- }
963
- div.thumbnail div {
964
- height : 100px;
965
- width : 100px;
966
- margin-bottom : 3px;
967
- text-align : center;
968
- }
969
- div.small div {
970
- width : 240px;
971
- margin-bottom : 3px;
972
- text-align : center;
973
- }
974
- span.highlight {
975
- background-color : yellow;
976
- }
977
- span.auc-factor-5 {
978
- border : 1px solid #F00;
979
- background-color : #FBB;
980
- }
981
- span.auc-factor-2 {
982
- border : 1px solid #FA0;
983
- background-color : #FDB;
984
- }
985
- span.auc-factor-175 {
986
- border : 1px solid #FF0;
987
- background-color : #FFB;
988
- }
989
- span.auc-factor-125 {
990
- border : 1px solid #0F0;
991
- background-color : #BFB;
992
- }
993
-
994
- span.breadcrumb {
995
- font-size : 12px;
996
- margin-left : 6px;
997
- margin-right : 6px;
998
- }
999
- td.breadcrumbs {
1000
- vertical-align : bottom;
1001
- padding : 4px;
1002
- }
1003
-
1004
- /* from de.oddb.org */
1005
- a.ajax {
1006
- cursor : pointer;
1007
- }
1008
- a.create {
1009
- color : #000;
1010
- cursor : pointer;
1011
- background-color : #AFA;
1012
- border : 1px solid #0F0;
1013
- }
1014
- a.delete {
1015
- color : #000;
1016
- cursor : pointer;
1017
- background-color : #FAA;
1018
- border : 1px solid #F00;
1019
- }
1020
- a.delete.square {
1021
- padding : 1px 5px;
1022
- margin : 1px;
1023
- }
1024
- a.create.square {
1025
- padding : 1px 4px;
1026
- margin : 1px;
1027
- }
1028
- div#composition-list div {
1029
- padding : 4px 0px 4px 4px;
1030
- margin-right : 8px;
1031
- float : left;
1032
- }
1033
- div#composition-list div.galenic-form {
1034
- padding : 4px 0px 4px 0px;
1035
- font-style : italic;
1036
- float : none;
1037
- }
1038
- div#composition-list label {
1039
- padding-right : 4px;
1040
- }
1041
- div#compositions {
1042
- overflow : auto;
1043
- }
1044
- div#composition-list th, div#composition-list label {
1045
- font-weight : bold;
1046
- background-color : transparent;
1047
- color : black;
1048
- }
1049
- div#composition-list a.ajax {
1050
- font-style : italic;
1051
- }
1052
- div#composition-list td, div#composition-list th {
1053
- padding : 4px 8px 4px 0px;
1054
- }
1055
- a.footnote {
1056
- font-weight : normal;
1057
- }
1058
- form#prescription_form label,
1059
-
1060
- .dijitTooltipContainer {
1061
- background-color : white;
1062
- border : 1px solid #2ba476;
1063
- font-size : 12px;
1064
- padding : 4px;
1065
- white-space : nowrap;
1066
- }
1067
- div#widget_searchbar,
1068
- div#widget_prescription_searchbar,
1069
- div#widget_interaction_searchbar,
1070
- div#widget_interaction_chooser_searchbar {
1071
- padding : 2px;
1072
- border : 1px solid ButtonShadow;
1073
- width : 260px;
1074
- }
1075
- div#widget_prescription_searchbar,
1076
- div#widget_interaction_searchbar,
1077
- div#widget_interaction_chooser_searchbar {
1078
- width : 400px;
1079
- }
1080
- #searchbar_popup,
1081
- #prescription_searchbar_popup,
1082
- #interaction_searchbar_popup,
1083
- #interaction_chooser_searchbar_popup {
1084
- border : 1px solid ButtonShadow;
1085
- }
1086
- #searchbar_popup .dijitMenuItemHover,
1087
- #searchbar_popup .dijitMenuItemSelected,
1088
- #prescription_searchbar_popup .dijitMenuItemHover,
1089
- #prescription_searchbar_popup .dijitMenuItemSelected,
1090
- #interaction_searchbar_popup .dijitMenuItemHover,
1091
- #interaction_searchbar_popup .dijitMenuItemSelected,
1092
- #interaction_chooser_searchbar_popup .dijitMenuItemHover,
1093
- #interaction_chooser_searchbar_popup .dijitMenuItemSelected {
1094
- background-color : #ccff99;
1095
- color : black;
1096
- }
1097
- </STYLE><SCRIPT language="JavaScript" type="text/javascript" src="http://192.168.0.75:8012/resources/javascript/admin.js"></SCRIPT><SCRIPT type="text/javascript" language="JavaScript">
1098
- function get_to(url) {
1099
- var url2 = url.replace('/,','/').replace(/\?$/,'').replace('\?,', ',').replace('ean,', 'ean/').replace(/\?$/, '');
1100
- console.log('get_to window.top.location.replace url '+ url + ' url2 ' + url2);
1101
- if (window.location.href == url2 || window.top.location.href == url2) { return; }
1102
- var form = document.createElement("form");
1103
- form.setAttribute("method", "GET");
1104
- form.setAttribute("action", url2);
1105
- document.body.appendChild(form);
1106
- form.submit();
1107
- }
1108
-
1109
-
1110
- function xhrGet(arg) {
1111
- var new_url = 'http://192.168.0.75:8012/de/gcc/home_interactions/ean/home_interactions';
1112
- var ean13 = arg.match(/(^\d{13})/);
1113
- console.log('xhrGet arg '+ arg + ' ean13 ' + ean13 + ' for new_url ' + new_url);
1114
- if(ean13) {
1115
- ean13 = ean13[0];
1116
- var id = 'drugs';
1117
- new_url = new_url + ',' + ean13;
1118
- console.log('xhrGet call replace_element id '+ id + ' new_url '+new_url);
1119
- replace_element(id, new_url)
1120
- }
1121
- }
1122
- function initMatches() {
1123
- var searchbar = dojo.byId('interaction_chooser_searchbar');
1124
- searchbar.value = 'Medikament hinzufügen';
1125
- dojo.connect(searchbar, 'onkeypress', function(e) {
1126
- var popup = dojo.byId('interaction_chooser_searchbar_popup');
1127
- if(popup && popup.style.overflowX.match(/auto/) && e.keyCode == dojo.keys.ENTER) {
1128
-
1129
- xhrGet(searchbar.value);
1130
- searchbar.value = '';
1131
- }
1132
- });
1133
- dojo.connect(searchbar, 'onfocus', function(e) {
1134
- if(searchbar.value == 'Medikament hinzufügen') { searchbar.value = ''; }
1135
- if(searchbar.value.match(/^(\d{13})$/)) { searchbar.value = ''; }
1136
- });
1137
- dojo.connect(searchbar, 'onblur', function(e) {
1138
- if(searchbar.value == '') { searchbar.value = 'Medikament hinzufügen'; }
1139
- });
1140
- }
1141
-
1142
- function selectXhrRequest() {
1143
- var popup = dojo.byId('interaction_chooser_searchbar_popup');
1144
- var searchbar = dojo.byId('interaction_chooser_searchbar');
1145
- if(popup && !popup.style.overflowX.match(/auto/) && searchbar.value != '') {
1146
-
1147
- if (searchbar && searchbar.value && window.location.href)
1148
- {
1149
- console.log('selectXhrRequest: window.location.href ' + window.location.href + ' searchbar: ' + searchbar.value);
1150
- var ean13 = (searchbar.value.match(/^(\d{13})$/)||[])[1];
1151
- var path = window.location.href;
1152
- if (path.match(/home_interactions/)) {
1153
- if (path.match(/\/$/)) {
1154
- path = path + ean13;
1155
- } else if (path.match(/home_interactions$/)) {
1156
- path = path + '/' + ean13;
1157
- } else {
1158
- path = path + ',' + ean13;
1159
- }
1160
- get_to(path.replace('?/','/') );
1161
- } else if (path.match(/rezept/))
1162
- {
1163
- if (path.match(/ean/) == null) {
1164
- if (path.match(/\/$/)) {
1165
- path = path + 'ean/' + ean13;
1166
- } else {
1167
- path = path + '/ean/' + ean13;
1168
- }
1169
- } else {
1170
- path = path + ',' + ean13;
1171
- }
1172
- searchbar.value = '';
1173
- get_to(path.replace('?/','/'));
1174
- } else { // neither home_interactions nor rezept
1175
- xhrGet(searchbar.value);
1176
- searchbar.value = '';
1177
- }
1178
- } else console.log('selectXhrRequest cannot find enough information');
1179
- }
1180
- }
1181
- require(['dojo/ready'], function(ready) {
1182
- ready(function() {
1183
- initMatches();
1184
- });
1185
- });
1186
- </SCRIPT></HEAD><BODY class="composite"><TABLE cellspacing="0" class="composite"><TR><TD colspan="2"><TABLE cellspacing="0" class="composite"><TR><TD><A href="http://192.168.0.75:8012/de/gcc/home/"><IMG class="welcomeleft" src="http://192.168.0.75:8012/resources/gcc/logo.png" alt="ch.oddb.org"></A></TD><TD class="right">
1187
- <style>
1188
- .search_result { width: 320px; height: 100px; }
1189
- @media(min-width: 500px) { .search_result { width: 468px; height: 60px; } }
1190
- @media(min-width: 800px) { .search_result { width: 728px; height: 90px; } }
1191
- </style>
1192
- <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
1193
- <!-- search_result -->
1194
- <ins class="adsbygoogle search_result"
1195
- style="display:block height 60px width {@width}px"
1196
- google_ad_channel ="6336403681";
1197
- data-matched-content-ui-type="image_sidebyside"
1198
- data-matched-content-rows-num=1
1199
- data-matched-content-columns-num=1
1200
- data-ad-client="ca-pub-6948570700973491"></ins>
1201
- <script>
1202
- (adsbygoogle = window.adsbygoogle || []).push({});
1203
- </script>
1204
- </TD></TR><TR><TD class="list">&nbsp;</TD><TD class="tabnavigation"><TABLE cellspacing="0" class="component tabnavigation right"><TR><TD><A class="tabnavigation" href="http://192.168.0.75:8012/de/gcc/home_pharmacies/" name="pharmacies">Apotheken</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="tabnavigation" href="http://192.168.0.75:8012/de/gcc/home_doctors/" name="doctors">Arzt</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="tabnavigation" name="interactions">Interaktionen</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="tabnavigation" href="http://192.168.0.75:8012/de/gcc/home_drugs/" name="drugs">Medikamente</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="tabnavigation" href="http://192.168.0.75:8012/de/gcc/home_migel/" name="migel">MiGeL</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="tabnavigation" href="http://192.168.0.75:8012/de/gcc/home_user/" name="user">Services</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="tabnavigation" href="http://192.168.0.75:8012/de/gcc/home_hospitals/" name="hospitals">Spital</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="tabnavigation" href="http://192.168.0.75:8012/de/gcc/home_companies/" name="companies">Zulassungsi.</A></TD></TR></TABLE></TD></TR></TABLE></TD></TR><TR><TD><A name="home_interactions" class="list" href="http://192.168.0.75:8012/de/gcc/home_interactions/">Home</A>&nbsp;-&nbsp;<SPAN class="bold">Interaktionen Suchen</SPAN></TD><TD class="right">&nbsp;</TD></TR><TR><TD colspan="2"><TABLE cellspacing="0" class="composite"><TR><TD colspan="12"><FORM NAME="stdform" METHOD="POST" ACTION="http://192.168.0.75:8012/de/gcc" ACCEPT-CHARSET="UTF-8" id="interaction_chooser_form" target="_blank" ENCTYPE="application/x-www-form-urlencoded"><TABLE cellspacing="0" class="composite"><TR><TD class="th bold" colspan="2"><LABEL for="interaction_chooser_description">Werden keine Interaktionen angezeigt, sind z.Z. keine Interaktionen bekannt. Interaktionen zur Verfügung gestellt durch Public Domain Daten von </LABEL><A name="epha_public_domain" class="navigation" href="https://github.com/epha/matrix">EPha.ch</A></TD></TR><TR><TD class="" colspan="2"><DIV></DIV></TD></TR><TR><TD class="inner-button"><TABLE cellspacing="0"><TR><TD class="searchbar" colspan="2"><DIV data-dojo-type="dojox.data.JsonRestStore" jsId="search_matches" idAttribute="drug" target="http://192.168.0.75:8012/de/gcc/ajax_matches/index_name/oddb_package_name_with_size_company_name_ean13_fi"></DIV><INPUT name="searchbar" type="text" data-dojo-type="dijit.form.ComboBox" jsId="interaction_chooser_searchbar" id="interaction_chooser_searchbar" store="search_matches" queryExpr="${0}" searchAttr="search_query" labelAttr="drug" hasDownArrow="false" autoComplete="false" onChange="selectXhrRequest"></TD></TR></TABLE></TD><TD>&nbsp;</TD></TR><TR><TD class="inner-button">&nbsp;</TD><TD>&nbsp;</TD></TR></TABLE><DIV style="display:none"><INPUT TYPE="hidden" NAME="flavor" VALUE="gcc"><INPUT TYPE="hidden" NAME="language" VALUE="de"><INPUT NAME="event" ID="event" VALUE="update" TYPE="hidden"><INPUT TYPE="hidden" NAME="state_id" VALUE="732780"><INPUT TYPE="hidden" NAME="zone" VALUE="interactions"></DIV></FORM></TD></TR><TR><TD colspan="12"><TABLE cellspacing="0" class="composite"><TR><TD class="explain right" colspan="12"><SPAN class="link" id="toggle_switch" onclick="(function () {
1205
- var span = document.getElementById(&#39;toggle_switch&#39;);
1206
- var legends = document.getElementById(&#39;interaction_codes&#39;);
1207
- var applyStyle = &#39;none&#39;;
1208
- if (span.innerHTML != &#39;Legende einblenden&#39;) {
1209
- span.innerHTML = &#39;Legende einblenden&#39;;
1210
- } else {
1211
- applyStyle = &#39;block&#39;;
1212
- span.innerHTML = &#39;Legende ausblenden&#39;;
1213
- }
1214
- if (legends != null) legends.style.display = applyStyle;
1215
- })();
1216
- ">Legende einblenden</SPAN></TD></TR><TR><TD class="explain left" colspan="12"><TABLE cellspacing="0" class="composite" id="interaction_codes" style="display: none;"><TR><TD class="composite"><DIV style="background-color: #caff70;">A: Keine Massnahmen erforderlich</DIV></TD></TR><TR><TD class="composite bg"><DIV style="background-color: #ffec8b;">B: Vorsichtsmassnahmen empfohlen</DIV></TD></TR><TR><TD class="composite"><DIV style="background-color: #ffb90f;">C: Regelmässige Überwachung</DIV></TD></TR><TR><TD class="composite bg"><DIV style="background-color: #ff82ab;">D: Kombination vermeiden</DIV></TD></TR><TR><TD class="composite"><DIV style="background-color: #ff6a6a;">X: Kontraindiziert</DIV></TD></TR></TABLE></TD></TR></TABLE></TD></TR></TABLE></TD></TR><TR><TD colspan="2"><TABLE cellspacing="0" class="composite"><TR><TD class="navigation"><DIV class="navigation">&nbsp;</DIV></TD><TD class="navigation right"><TABLE cellspacing="0" class="navigation right"><TR><TD><A class="navigation right" href="http://192.168.0.75:8012/de/gcc/sequences/" name="sequences">Arzneimittel A-Z</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="navigation right" href="http://192.168.0.75:8012/de/gcc/atc_chooser/" name="atc_chooser">ATC-Browser</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="navigation right" href="http://192.168.0.75:8012/de/gcc/recent_registrations/" name="recent_registrations">Neuregistrierungen</A></TD></TR></TABLE></TD></TR><TR><TD class="subheading"><TABLE cellspacing="0" class="subheading"><TR><TD><A name="oddb_version" href="http://www.ywesee.com" title="http://www.ywesee.com">2020</A></TD><TD><A name="oddb_version" href="https://github.com/zdavatz/oddb.org" title="https://github.com/zdavatz/oddb.org">&nbsp;©ywesee GmbH</A></TD></TR></TABLE></TD><TD class="subheading right"><TABLE cellspacing="0" class="subheading right"><TR><TD><A class="subheading" href="http://192.168.0.75:8012/de/gcc/preferences/" name="preferences">Einstellungen</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A name="help_link" href="http://wiki.oddb.org/wiki.php?pagename=ODDB.Hilfe" class="subheading">Hilfe</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A name="faq_link" href="http://wiki.oddb.org/wiki.php?pagename=ODDB.FragenUndAntworten" class="subheading">FAQ</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="subheading" href="http://192.168.0.75:8012/de/gcc/login_form/" name="login_form">Anmeldung</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="subheading" href="http://192.168.0.75:8012/de/gcc/ywesee_contact/" name="ywesee_contact">Kontakt</A></TD><TD>&nbsp;|&nbsp;</TD><TD><A class="subheading" href="http://192.168.0.75:8012/de/gcc/home_interactions/" name="home_interactions">Interaktionen-Home</A></TD></TR></TABLE></TD></TR></TABLE></TD></TR></TABLE></BODY></HTML>