compages 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (257) hide show
  1. data/.project +18 -0
  2. data/README +180 -0
  3. data/Rakefile +10 -0
  4. data/app/controllers/application.rb +4 -0
  5. data/app/controllers/contents_controller.rb +116 -0
  6. data/app/controllers/pages_controller.rb +59 -0
  7. data/app/controllers/render_controller.rb +24 -0
  8. data/app/helpers/application_helper.rb +6 -0
  9. data/app/helpers/contents_helper.rb +5 -0
  10. data/app/helpers/pages_helper.rb +5 -0
  11. data/app/helpers/render_helper.rb +2 -0
  12. data/app/models/content.rb +26 -0
  13. data/app/models/meta_data.rb +3 -0
  14. data/app/models/page.rb +106 -0
  15. data/app/models/page_element.rb +9 -0
  16. data/app/views/contents/_content_preview.rhtml +1 -0
  17. data/app/views/contents/_contents_list.rhtml +3 -0
  18. data/app/views/contents/_show_library.rhtml +60 -0
  19. data/app/views/contents/_write_now.rhtml +42 -0
  20. data/app/views/layouts/pages.rhtml +24 -0
  21. data/app/views/layouts/render.rhtml +11 -0
  22. data/app/views/pages/_change_theme.rhtml +0 -0
  23. data/app/views/pages/_edit_menu.rhtml +62 -0
  24. data/app/views/pages/_page_listed.rhtml +13 -0
  25. data/app/views/pages/_select_theme.rhtml +4 -0
  26. data/app/views/pages/edit.rhtml +35 -0
  27. data/app/views/pages/index.rhtml +45 -0
  28. data/app/views/pages/list.rhtml +41 -0
  29. data/app/views/pages/list_a.rhtml +40 -0
  30. data/app/views/pages/welcome.rhtml +27 -0
  31. data/app/views/render/_blank.rhtml +3 -0
  32. data/app/views/render/show.rhtml +1 -0
  33. data/bin/compages +14 -0
  34. data/config/boot.rb +44 -0
  35. data/config/database.yml.home +35 -0
  36. data/config/environment.rb +53 -0
  37. data/config/environments/development.rb +21 -0
  38. data/config/environments/production.rb +18 -0
  39. data/config/environments/test.rb +19 -0
  40. data/config/routes.rb +32 -0
  41. data/db/Copia di schema.rb +48 -0
  42. data/db/migrate/001_create_pages.rb +12 -0
  43. data/db/migrate/002_create_contents.rb +12 -0
  44. data/db/migrate/003_create_meta_datas.rb +14 -0
  45. data/db/migrate/004_create_page_elements.rb +17 -0
  46. data/db/migrate/005_add_urlnames.rb +15 -0
  47. data/db/migrate/006_add_sessions.rb +15 -0
  48. data/db/schema.mysql.sql +65 -0
  49. data/db/schema.postgresql.sql +65 -0
  50. data/db/schema.rb +49 -0
  51. data/db/schema.sqlite.sql +65 -0
  52. data/db/schema.sqlserver.sql +71 -0
  53. data/db/schema_version +1 -0
  54. data/doc/ER-model/v1.dia +0 -0
  55. data/doc/ER-model/v2.dia +0 -0
  56. data/doc/ER-model/v3.dia +0 -0
  57. data/doc/README_FOR_APP +2 -0
  58. data/doc/esempi/doc-vir/ecds.htm +2362 -0
  59. data/doc/esempi/doc-vir/ecds_files/search.gif +0 -0
  60. data/doc/esempi/doc-vir/ecds_files/upld.gif +0 -0
  61. data/doc/esempi/doc-vir/ecds_files/upld.jpg +0 -0
  62. data/installer/apache13.conf.example.template +33 -0
  63. data/installer/apache20.conf.example.template +40 -0
  64. data/installer/lighttpd.conf.example.template +6 -0
  65. data/installer/rails_installer_defaults.yml +5 -0
  66. data/lib/redcloth.rb +1130 -0
  67. data/lib/render_engine.rb +94 -0
  68. data/lib/tasks/release.rake +46 -0
  69. data/public/.htaccess +41 -0
  70. data/public/404.html +8 -0
  71. data/public/500.html +8 -0
  72. data/public/_index.html +277 -0
  73. data/public/favicon.ico +0 -0
  74. data/public/images/body_bg.gif +0 -0
  75. data/public/images/body_bg_short.gif +0 -0
  76. data/public/images/ie_shadow.png +0 -0
  77. data/public/images/journal_reflex.gif +0 -0
  78. data/public/images/journal_shadow.gif +0 -0
  79. data/public/images/logo_journal_small.bmp +0 -0
  80. data/public/images/logo_journal_small.png +0 -0
  81. data/public/images/page_edit_shadow.png +0 -0
  82. data/public/images/restore_bar.png +0 -0
  83. data/public/images/spinner.gif +0 -0
  84. data/public/javascripts/application.js +23 -0
  85. data/public/javascripts/controls.js +815 -0
  86. data/public/javascripts/dragdrop.js +913 -0
  87. data/public/javascripts/effects.js +958 -0
  88. data/public/javascripts/lowpro.js +307 -0
  89. data/public/javascripts/prototype.js +2006 -0
  90. data/public/robots.txt +1 -0
  91. data/public/stylesheets/compages.css +196 -0
  92. data/public/stylesheets/editing.css +180 -0
  93. data/public/stylesheets/editing_ie_filth.css +36 -0
  94. data/public/themes/Doc_basic/_script.js +342 -0
  95. data/public/themes/Doc_basic/images/Thumbs.db +0 -0
  96. data/public/themes/Doc_basic/images/search.gif +0 -0
  97. data/public/themes/Doc_basic/images/upld.gif +0 -0
  98. data/public/themes/Doc_basic/images/upld.jpg +0 -0
  99. data/public/themes/Doc_basic/index.html +114 -0
  100. data/public/themes/Doc_basic/style.css +1743 -0
  101. data/public/themes/color7boxes/default2.css +42 -0
  102. data/public/themes/color7boxes/index.html +40 -0
  103. data/public/themes/prova/index.html +12 -0
  104. data/public/zDoc/images/search.gif +0 -0
  105. data/public/zDoc/images/upld.gif +0 -0
  106. data/public/zDoc/images/upld.jpg +0 -0
  107. data/public/zDoc/index.html +176 -0
  108. data/public/zDoc/script.js +342 -0
  109. data/public/zDoc/style.css +1741 -0
  110. data/script/about +3 -0
  111. data/script/breakpointer +3 -0
  112. data/script/console +3 -0
  113. data/script/destroy +3 -0
  114. data/script/generate +3 -0
  115. data/script/performance/benchmarker +3 -0
  116. data/script/performance/profiler +3 -0
  117. data/script/plugin +3 -0
  118. data/script/process/reaper +3 -0
  119. data/script/process/spawner +3 -0
  120. data/script/runner +3 -0
  121. data/script/server +3 -0
  122. data/test/fixtures/contents.yml +5 -0
  123. data/test/fixtures/meta_datas.yml +5 -0
  124. data/test/fixtures/page_elements.yml +5 -0
  125. data/test/fixtures/pages.yml +5 -0
  126. data/test/functional/contents_controller_test.rb +18 -0
  127. data/test/functional/pages_controller_test.rb +18 -0
  128. data/test/functional/render_controller_test.rb +18 -0
  129. data/test/test_helper.rb +28 -0
  130. data/test/unit/content_test.rb +10 -0
  131. data/test/unit/meta_data_test.rb +10 -0
  132. data/test/unit/page_element_test.rb +10 -0
  133. data/test/unit/page_test.rb +10 -0
  134. data/tmp/sessions/ruby_sess.0ced4c30e36477ab +0 -0
  135. data/tmp/sessions/ruby_sess.20fbe26671422e70 +0 -0
  136. data/tmp/sessions/ruby_sess.2c72521f3a7e2ba9 +0 -0
  137. data/tmp/sessions/ruby_sess.4107a69d982a2eb7 +0 -0
  138. data/tmp/sessions/ruby_sess.573ded9c7fdd9035 +0 -0
  139. data/tmp/sessions/ruby_sess.5a9767815bb96258 +0 -0
  140. data/tmp/sessions/ruby_sess.85d723b794005388 +0 -0
  141. data/tmp/sessions/ruby_sess.875b3b3e3529afdb +0 -0
  142. data/tmp/sessions/ruby_sess.936766f3a397c88b +0 -0
  143. data/tmp/sessions/ruby_sess.984e2e4c9a2e7891 +0 -0
  144. data/tmp/sessions/ruby_sess.a1faebd7448bc45d +0 -0
  145. data/tmp/sessions/ruby_sess.a415768c7635bc15 +0 -0
  146. data/tmp/sessions/ruby_sess.b2dadcbe6c1b0add +0 -0
  147. data/tmp/sessions/ruby_sess.ca9100beb103a428 +0 -0
  148. data/tmp/sessions/ruby_sess.d649c800a046efde +0 -0
  149. data/tmp/sessions/ruby_sess.db73bbfafd5a537c +0 -0
  150. data/tmp/sessions/ruby_sess.e32487b847524df1 +0 -0
  151. data/tmp/sessions/ruby_sess.f4e45d67828cc437 +0 -0
  152. data/tmp/sessions/ruby_sess.f5a3f064f2f7a26f +0 -0
  153. data/tmp/sessions/ruby_sess.ff0c47b35f238cda +0 -0
  154. data/vendor/plugins/acts_as_urlnameable.tar.gz +0 -0
  155. data/vendor/plugins/acts_as_urlnameable/LICENSE +19 -0
  156. data/vendor/plugins/acts_as_urlnameable/README +193 -0
  157. data/vendor/plugins/acts_as_urlnameable/Rakefile +25 -0
  158. data/vendor/plugins/acts_as_urlnameable/TODO +5 -0
  159. data/vendor/plugins/acts_as_urlnameable/db/00x_add_urlnames_table.rb +15 -0
  160. data/vendor/plugins/acts_as_urlnameable/db/urlnames_table.sql +7 -0
  161. data/vendor/plugins/acts_as_urlnameable/doc/classes/ActiveRecord/Acts/Urlnameable/ClassMethods.html +167 -0
  162. data/vendor/plugins/acts_as_urlnameable/doc/classes/ActiveRecord/Acts/Urlnameable/InstanceMethods.html +213 -0
  163. data/vendor/plugins/acts_as_urlnameable/doc/classes/ActiveRecord/Acts/Urlnameable/SingletonMethods.html +189 -0
  164. data/vendor/plugins/acts_as_urlnameable/doc/created.rid +1 -0
  165. data/vendor/plugins/acts_as_urlnameable/doc/files/LICENSE.html +129 -0
  166. data/vendor/plugins/acts_as_urlnameable/doc/files/README.html +333 -0
  167. data/vendor/plugins/acts_as_urlnameable/doc/files/TODO.html +121 -0
  168. data/vendor/plugins/acts_as_urlnameable/doc/files/lib/acts_as_urlnameable_rb.html +101 -0
  169. data/vendor/plugins/acts_as_urlnameable/doc/fr_class_index.html +29 -0
  170. data/vendor/plugins/acts_as_urlnameable/doc/fr_file_index.html +30 -0
  171. data/vendor/plugins/acts_as_urlnameable/doc/fr_method_index.html +34 -0
  172. data/vendor/plugins/acts_as_urlnameable/doc/index.html +24 -0
  173. data/vendor/plugins/acts_as_urlnameable/doc/rdoc-style.css +208 -0
  174. data/vendor/plugins/acts_as_urlnameable/init.rb +3 -0
  175. data/vendor/plugins/acts_as_urlnameable/lib/acts_as_urlnameable.rb +159 -0
  176. data/vendor/plugins/acts_as_urlnameable/lib/urlname.rb +3 -0
  177. data/vendor/plugins/acts_as_urlnameable/test/acts_as_urlnameable_test.rb +233 -0
  178. data/vendor/plugins/acts_as_urlnameable/test/connection.rb +8 -0
  179. data/vendor/plugins/acts_as_urlnameable/test/fixtures/article.rb +13 -0
  180. data/vendor/plugins/acts_as_urlnameable/test/fixtures/articles.yml +62 -0
  181. data/vendor/plugins/acts_as_urlnameable/test/fixtures/page.rb +14 -0
  182. data/vendor/plugins/acts_as_urlnameable/test/fixtures/pages.yml +35 -0
  183. data/vendor/plugins/acts_as_urlnameable/test/fixtures/people.yml +9 -0
  184. data/vendor/plugins/acts_as_urlnameable/test/fixtures/person.rb +26 -0
  185. data/vendor/plugins/acts_as_urlnameable/test/fixtures/schema.rb +24 -0
  186. data/vendor/plugins/acts_as_urlnameable/test/fixtures/section.rb +5 -0
  187. data/vendor/plugins/acts_as_urlnameable/test/fixtures/sections.yml +9 -0
  188. data/vendor/plugins/acts_as_urlnameable/test/fixtures/urlnames.yml +153 -0
  189. data/vendor/plugins/acts_as_urlnameable/test/test_helper.rb +42 -0
  190. data/vendor/plugins/gems/README +30 -0
  191. data/vendor/plugins/gems/init.rb +9 -0
  192. data/vendor/plugins/gems/tasks/gems_tasks.rake +32 -0
  193. data/vendor/plugins/unobtrusive_javascript/CHANGELOG +72 -0
  194. data/vendor/plugins/unobtrusive_javascript/README +73 -0
  195. data/vendor/plugins/unobtrusive_javascript/Rakefile +33 -0
  196. data/vendor/plugins/unobtrusive_javascript/about.yml +6 -0
  197. data/vendor/plugins/unobtrusive_javascript/assets/javascripts/lowpro.js +307 -0
  198. data/vendor/plugins/unobtrusive_javascript/init.rb +21 -0
  199. data/vendor/plugins/unobtrusive_javascript/install.rb +1 -0
  200. data/vendor/plugins/unobtrusive_javascript/lib/actionview_helpers_patches.rb +17 -0
  201. data/vendor/plugins/unobtrusive_javascript/lib/asset_tag_helper_patches.rb +33 -0
  202. data/vendor/plugins/unobtrusive_javascript/lib/behaviour_caching.rb +70 -0
  203. data/vendor/plugins/unobtrusive_javascript/lib/controllers/unobtrusive_javascript_controller.rb +52 -0
  204. data/vendor/plugins/unobtrusive_javascript/lib/prototype_helper_patches.rb +72 -0
  205. data/vendor/plugins/unobtrusive_javascript/lib/scriptaculous_helper_patches.rb +62 -0
  206. data/vendor/plugins/unobtrusive_javascript/lib/tag_helper_patches.rb +37 -0
  207. data/vendor/plugins/unobtrusive_javascript/lib/ujs.rb +32 -0
  208. data/vendor/plugins/unobtrusive_javascript/lib/ujs/behaviour_helper.rb +62 -0
  209. data/vendor/plugins/unobtrusive_javascript/lib/ujs/behaviour_script.rb +54 -0
  210. data/vendor/plugins/unobtrusive_javascript/lib/ujs/behaviour_script_converter.rb +23 -0
  211. data/vendor/plugins/unobtrusive_javascript/lib/ujs/controller_methods.rb +55 -0
  212. data/vendor/plugins/unobtrusive_javascript/lib/ujs/helpers.rb +152 -0
  213. data/vendor/plugins/unobtrusive_javascript/lib/ujs/javascript_proxies.rb +57 -0
  214. data/vendor/plugins/unobtrusive_javascript/tasks/unobtrusive_javascript_tasks.rake +15 -0
  215. data/vendor/plugins/unobtrusive_javascript/test/asset_tag_helper_patches_test.rb +32 -0
  216. data/vendor/plugins/unobtrusive_javascript/test/behaviour_helper_test.rb +180 -0
  217. data/vendor/plugins/unobtrusive_javascript/test/behaviour_script_converter_test.rb +72 -0
  218. data/vendor/plugins/unobtrusive_javascript/test/behaviour_script_test.rb +98 -0
  219. data/vendor/plugins/unobtrusive_javascript/test/config/environment.rb +8 -0
  220. data/vendor/plugins/unobtrusive_javascript/test/config/routes.rb +4 -0
  221. data/vendor/plugins/unobtrusive_javascript/test/config/schema.rb +3 -0
  222. data/vendor/plugins/unobtrusive_javascript/test/controller_methods_test.rb +48 -0
  223. data/vendor/plugins/unobtrusive_javascript/test/helpers_test.rb +186 -0
  224. data/vendor/plugins/unobtrusive_javascript/test/javascript_proxies_test.rb +3 -0
  225. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/boot.rb +26 -0
  226. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/gem/action_controller.rb +11 -0
  227. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/gem/action_mailer.rb +4 -0
  228. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/gem/active_record.rb +27 -0
  229. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/gem/rails.rb +31 -0
  230. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/ptk.rb +148 -0
  231. data/vendor/plugins/unobtrusive_javascript/test/lib/ptk/suite/difference.rb +23 -0
  232. data/vendor/plugins/unobtrusive_javascript/test/lib/stubs/controller_stub.rb +10 -0
  233. data/vendor/plugins/unobtrusive_javascript/test/ptk_helper.rb +29 -0
  234. data/vendor/plugins/unobtrusive_javascript/test/tag_helper_patches_test.rb +59 -0
  235. data/vendor/plugins/unobtrusive_javascript/test/test_helper.rb +25 -0
  236. data/vendor/plugins/unobtrusive_javascript/test/unobtrusive_javascript_controller_test.rb +95 -0
  237. data/vendor/plugins/unobtrusive_javascript/uninstall.rb +1 -0
  238. data/vendor/redcloth/bin/redcloth +3 -0
  239. data/vendor/redcloth/doc/CHANGELOG +160 -0
  240. data/vendor/redcloth/doc/COPYING +25 -0
  241. data/vendor/redcloth/doc/README +106 -0
  242. data/vendor/redcloth/doc/REFERENCE +216 -0
  243. data/vendor/redcloth/doc/make.rb +359 -0
  244. data/vendor/redcloth/lib/redcloth.rb +1130 -0
  245. data/vendor/redcloth/run-tests.rb +28 -0
  246. data/vendor/redcloth/setup.rb +1376 -0
  247. data/vendor/redcloth/tests/code.yml +105 -0
  248. data/vendor/redcloth/tests/hard_breaks.yml +26 -0
  249. data/vendor/redcloth/tests/images.yml +171 -0
  250. data/vendor/redcloth/tests/instiki.yml +39 -0
  251. data/vendor/redcloth/tests/links.yml +155 -0
  252. data/vendor/redcloth/tests/lists.yml +77 -0
  253. data/vendor/redcloth/tests/markdown.yml +218 -0
  254. data/vendor/redcloth/tests/poignant.yml +64 -0
  255. data/vendor/redcloth/tests/table.yml +198 -0
  256. data/vendor/redcloth/tests/textism.yml +406 -0
  257. metadata +432 -0
@@ -0,0 +1 @@
1
+ # See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
@@ -0,0 +1,196 @@
1
+ body {
2
+ background: #B7BCC3 url(/images/body_bg_short.gif) repeat-x;
3
+ font-family: 'verdana', 'tahoma', sans-serif;
4
+ font-family: georgia, serif;
5
+ font-size: 12pt;
6
+ text-align: left;
7
+ color: black;
8
+ }
9
+ h1, h2, h3 {
10
+ font-weight: normal;
11
+ text-align: center;
12
+ margin: 0px;
13
+ padding:0px;
14
+ }
15
+
16
+ input {
17
+ font-family: georgia, serif;
18
+ border: none;
19
+ background-color:white;
20
+ margin-right: 5px;
21
+ text-decoration: underline;
22
+ cursor:pointer;
23
+ }
24
+ input:hover {
25
+ font-family: georgia, serif;
26
+ border: none;
27
+ background-color:#ffffaa;
28
+ margin-right: 5px;
29
+ }
30
+
31
+ form {
32
+ display:inline;
33
+ }
34
+
35
+ a {
36
+ color:black;
37
+ text-decoration: underline;
38
+ }
39
+ a:hover {
40
+ background: #ffffaa;
41
+ }
42
+ /*************** journal layout ************/
43
+ .main_title {
44
+ font-size:70pt;
45
+ font-family: georgia, serif;
46
+ margin-bottom: -5px;
47
+ margin-top: 0px;
48
+ padding-top:0px;
49
+ }
50
+ .subtitle {
51
+ border: 1px solid black;
52
+ border-width: 1px 0;
53
+ margin: 0 ;
54
+ text-transform: uppercase;
55
+ text-align: center;
56
+ padding-right:2.7em;
57
+ }
58
+ .subtitle .left{
59
+ float:left;
60
+ /*position: absolute;*/
61
+ }
62
+
63
+ .subtitle a{
64
+ text-decoration: none;
65
+ color: black;
66
+ }
67
+
68
+ .column{
69
+ vertical-align:top;
70
+ /*float:left;*/
71
+ text-align: left;
72
+ padding: 0px;
73
+ width: 313px;
74
+ display:table-cell;
75
+ }
76
+ .lborder {
77
+ border-left: 1px solid black;
78
+ }
79
+ .rborder {
80
+ border-right: 1px solid black;
81
+ }
82
+ .column p{
83
+ text-align: justify;
84
+ margin-bottom: 0px;
85
+ margin-top:5px;
86
+ }
87
+ .column em{
88
+ background: #ffffaa;
89
+ font-style:normal;
90
+ }
91
+ .column ol li{
92
+ margin:1ex;
93
+ background-color:white;
94
+ }
95
+
96
+ .column h2{
97
+ text-align: center;
98
+ margin: 5px 1em 0px 1em;
99
+ font-family: Impact, sans-serif;
100
+ font-weight: lighter;
101
+ letter-spacing: 2px;
102
+ color:darkblue;
103
+ padding-bottom: 5px;
104
+ border-bottom: 1px black solid;
105
+ }
106
+
107
+ .column .signature{
108
+ text-align: right;
109
+ font-weight: bold;
110
+ }
111
+ .wide_column{
112
+ /*width: 647px;*/
113
+ }
114
+ .wide_column h1{
115
+ font-size:40px;
116
+ font-weight: lighter;
117
+ }
118
+
119
+
120
+ .right_column {
121
+ /* border-left: 1px solid black; */
122
+ padding-left: 10px;
123
+ /* float:right;*/
124
+ }
125
+ .right_column h2{
126
+ color:darkred;
127
+ }
128
+
129
+ .left_column {
130
+ padding-right: 10px;
131
+ }
132
+ /*************** wrapper *******************/
133
+ #wrapper {
134
+ margin: 100px auto;
135
+ width: 687px;
136
+ text-align: justify;
137
+ padding:0;
138
+ }
139
+ #journal-page {
140
+ background: white;
141
+ width: 647px;
142
+ margin-bottom: 0px;
143
+ padding: 20px;
144
+ /*min-height:170px;*/
145
+ overflow:hidden;
146
+ }
147
+ #journal-shadow {
148
+ background: url(/images/journal_reflex.gif) repeat-x top left;
149
+ width: 687px;
150
+ margin-top: 0px;
151
+ padding-top: 25px;
152
+ font-size: xx-small;
153
+ color: grey;
154
+ text-align: center;
155
+ }
156
+
157
+ /*************** page_listed ***************/
158
+ .page_listed {
159
+ /*
160
+ border: 1px solid lightgrey;
161
+ margin: 5px 0;
162
+ padding:5px;
163
+ */
164
+ margin-bottom: 10px;
165
+ text-align: left;
166
+ }
167
+
168
+ .page_listed .title {
169
+
170
+ }
171
+
172
+ .page_listed .edit_title {
173
+ position: relative;
174
+ left:-12ex;
175
+ font-size:x-small;
176
+ margin-left:10px;
177
+ float: left;
178
+ }
179
+ .page_listed .actions {
180
+ font-size: x-small;
181
+ color: grey;
182
+ }
183
+
184
+ /*************** general *******************/
185
+
186
+ p.align_right {
187
+ text-align: right;
188
+ }
189
+
190
+ .clear {
191
+ border: 1px solid black;
192
+ border-width: 0;
193
+ clear: both;
194
+ height: 0px;
195
+ font-size:0px;
196
+ }
@@ -0,0 +1,180 @@
1
+ body {
2
+ padding:0;
3
+ margin:0;
4
+ }
5
+ .dragging {
6
+ /* outline: 3px solid #ffffaa; */
7
+ margin:0;
8
+ padding:0;
9
+ background: #ffffaa;
10
+ opacity: 0.7;
11
+ }
12
+
13
+ /******************************** AREAS & ELEMENTS ****************************/
14
+ .compages_area, .compages_element {
15
+ border:none;
16
+ padding:2px !important;
17
+ margin:0 !important;
18
+ cursor:move !important;
19
+ z-index: 100 !important;
20
+ }
21
+
22
+ .compages_element a{
23
+ cursor:move !important;
24
+ }
25
+ .compages_element:hover{
26
+ outline: dotted 1px black !important;
27
+ }
28
+ /********************************** RESTORE BAR *******************************/
29
+ #compages #restore_bar {
30
+ padding: 8px 12px 12px 3px;
31
+ position: absolute;
32
+ background: white;
33
+ left: 45%;
34
+ top: 45%;
35
+ height: 100px !important;
36
+ width: 161px !important;
37
+ color:black;
38
+ font-family: georgia, serif;
39
+ background: url('/images/restore_bar.png') no-repeat 7px 4px;
40
+ text-align:center;
41
+ z-index: 500;
42
+ }
43
+ .drag_handle {
44
+ position:relative;
45
+ cursor:move;
46
+ color:lightgrey;
47
+ padding:0 !important;
48
+ margin:0 !important;
49
+ }
50
+ #restore_bar a {
51
+ margin:0 !important;
52
+ z-index: 500 !important;
53
+ }
54
+ #remove_element {
55
+ color:red !important;
56
+ cursor:pointer;
57
+ }
58
+ /********************************* BASE ***************************************/
59
+ #compages {
60
+ font-family: georgia, serif;
61
+ color: black;
62
+ font-size: 12pt;
63
+ z-index: 1500;
64
+ }
65
+ #compages div { z-index: 1500; }
66
+ #compages a {
67
+ color:black;
68
+ text-decoration: none;
69
+ margin: 0;
70
+ letter-spacing: normal;
71
+ text-decoration: none;
72
+ font-weight: normal;
73
+ border: none;
74
+ color: black;
75
+ }
76
+
77
+ #compages a:hover {
78
+ background: #ffffaa;
79
+ }
80
+ #compages .menu a {
81
+ margin: 0 2em;
82
+ white-space: nowrap;
83
+ }
84
+ #compages img {
85
+ border: 0;
86
+ }
87
+
88
+ #compages h1, #compages h2{
89
+ font-size:14pt;
90
+ margin:0 0 10px 0;
91
+ font-family: georgia, serif;
92
+ color: black;
93
+ }
94
+
95
+ /******************************** STRUCTURE ***********************************/
96
+ #compages #hide_bar {
97
+ margin:auto;
98
+ margin-bottom: 5px;
99
+ text-align: center;
100
+ font-size:small;
101
+ }
102
+
103
+ #compages #compages_bar_wrapper {
104
+ position: absolute;
105
+ top: 0;
106
+ left: 0;
107
+ margin: 0;
108
+ background: url('/images/page_edit_shadow.png') repeat-x bottom;
109
+ width: 100%;
110
+ padding: 0 0 27px 0;
111
+ }
112
+
113
+ #compages #options_bar {
114
+ background:white;
115
+ padding: 0;
116
+ margin: 0;
117
+ position:relative;
118
+ top:0;
119
+ }
120
+ #compages #options_bar div{
121
+ background:white;
122
+ }
123
+ #compages #options_bar .menu {
124
+ list-style: none;
125
+ margin: 0;
126
+ padding:0;
127
+ text-align: center;
128
+ background-color: white;
129
+ border: 1px solid black;
130
+ border-width: 1px 0;
131
+ }
132
+
133
+ #compages #widgets {
134
+ background:#fff;
135
+ z-index:1501;
136
+ margin:0;
137
+ padding-bottom:10px;
138
+ width:100%;
139
+ }
140
+ #compages #options_bar ul li {
141
+ display:inline;
142
+ margin: 0;
143
+ padding: 0;
144
+ }
145
+
146
+ #compages #options_bar small a { display: inline; }
147
+
148
+ /******************************* WIDGETS **************************************/
149
+ #compages .clear { clear:both; }
150
+ #compages .widget {
151
+ text-align:center;
152
+ margin-top:5px;
153
+ }
154
+ #compages .widget table{
155
+ margin:auto;
156
+ display:block;
157
+ text-align:center;
158
+ }
159
+ #compages .widget table td{
160
+ width:30%;
161
+ text-align:right;
162
+ }
163
+
164
+ #compages #widget_instructions p {
165
+ margin-bottom:0.8em;
166
+ }
167
+ #compages #widget_instructions {
168
+ text-align: center;
169
+ padding:0 20px;
170
+ }
171
+
172
+ /************************************ WRITING *********************************/
173
+
174
+ #compages #write_widget #write_area textarea{
175
+ height: 5em;
176
+ padding:0;
177
+ margin:0;
178
+ }
179
+
180
+ /************************************ LIBRARY *********************************/
@@ -0,0 +1,36 @@
1
+ table, tbody, tr, td, th {
2
+ position: relative;
3
+ }
4
+ #compages_bar #options_bar {
5
+ background:white;
6
+ margin:0;
7
+ padding:0;
8
+ }
9
+ #compages #compages_bar_wrapper {
10
+ width:100%;
11
+ background: none;
12
+ padding:0;
13
+ padding-top:6px;
14
+ margin:0;
15
+ position:relative;
16
+ top:-8px;
17
+ }
18
+ #compages #ie_shadow {
19
+ width:100%;
20
+ height:27px;
21
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, src='/images/ie_shadow.png', sizingMethod='scale');
22
+ }
23
+ #compages #widgets {
24
+ padding-bottom:0;
25
+ }
26
+ #compages #restore_bar {
27
+ background:none;
28
+ top: 100px;
29
+ left: 200px;
30
+ }
31
+ #restore_bar_ie {
32
+ width: 161px;
33
+ height: 100px;
34
+ padding-top: 8px;
35
+ filter:progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=false, src='/images/restore_bar.png', sizingMethod='fit');
36
+ }
@@ -0,0 +1,342 @@
1
+ /* including:ecds_script */var isNav4, isNav6, isIE4;
2
+
3
+ /*
4
+ * Browser version snooper; determines your browser
5
+ * (Navigator 4, Navigator 6, or Internet Explorer 4/5)
6
+ */
7
+ function setBrowser()
8
+ {
9
+ if (navigator.appVersion.charAt(0) == "4")
10
+ {
11
+ if (navigator.appName.indexOf("Explorer") >= 0)
12
+ {
13
+ isIE4 = true;
14
+ }
15
+ else
16
+ {
17
+ isNav4 = true;
18
+ }
19
+ }
20
+ else if (navigator.appVersion.charAt(0) > "4")
21
+ {
22
+ isNav6 = true;
23
+ }
24
+ }
25
+
26
+ /*
27
+ *
28
+ * Given a selector string, return a style object
29
+ * by searching through stylesheets. Return null if
30
+ * none found
31
+ *
32
+ */
33
+ function getStyleBySelector( selector )
34
+ {
35
+ if (!isNav6)
36
+ {
37
+ return null;
38
+ }
39
+ var sheetList = document.styleSheets;
40
+ var ruleList;
41
+ var i, j;
42
+
43
+ /* look through stylesheets in reverse order that
44
+ they appear in the document */
45
+ for (i=sheetList.length-1; i >= 0; i--)
46
+ {
47
+ ruleList = sheetList[i].cssRules;
48
+ for (j=0; j<ruleList.length; j++)
49
+ {
50
+ if (ruleList[j].type == CSSRule.STYLE_RULE &&
51
+ ruleList[j].selectorText == selector)
52
+ {
53
+ return ruleList[j].style;
54
+ }
55
+ }
56
+ }
57
+ return null;
58
+ }
59
+
60
+ /*
61
+ *
62
+ * Given an id and a property (as strings), return
63
+ * the given property of that id. Navigator 6 will
64
+ * first look for the property in a tag; if not found,
65
+ * it will look through the stylesheet.
66
+ *
67
+ * Note: do not precede the id with a # -- it will be
68
+ * appended when searching the stylesheets
69
+ *
70
+ */
71
+ function getIdProperty( id, property )
72
+ {
73
+ if (isNav6)
74
+ {
75
+ var styleObject = document.getElementById( id );
76
+ if (styleObject != null)
77
+ {
78
+ styleObject = styleObject.style;
79
+ if (styleObject[property])
80
+ {
81
+ return styleObject[ property ];
82
+ }
83
+ }
84
+ styleObject = getStyleBySelector( "#" + id );
85
+ return (styleObject != null) ?
86
+ styleObject[property] :
87
+ null;
88
+ }
89
+ else if (isNav4)
90
+ {
91
+ return document[id][property];
92
+ }
93
+ else
94
+ {
95
+ return document.all[id].style[property];
96
+ }
97
+ }
98
+
99
+ /*
100
+ *
101
+ * Given an id and a property (as strings), set
102
+ * the given property of that id to the value provided.
103
+ *
104
+ * The property is set directly on the tag, not in the
105
+ * stylesheet.
106
+ *
107
+ */
108
+ function setIdProperty( id, property, value )
109
+ {
110
+ if (isNav6)
111
+ {
112
+ var styleObject = document.getElementById( id );
113
+ if (styleObject != null)
114
+ {
115
+ styleObject = styleObject.style;
116
+ styleObject[ property ] = value;
117
+ }
118
+
119
+ /*
120
+ styleObject = getStyleBySelector( "#" + id );
121
+ if (styleObject != null)
122
+ {
123
+ styleObject[property] = value;
124
+ }
125
+ */
126
+ }
127
+ else if (isNav4)
128
+ {
129
+ document[id][property] = value;
130
+ }
131
+ else if (isIE4)
132
+ {
133
+ document.all[id].style[property] = value;
134
+ }
135
+ }
136
+
137
+ /*
138
+ *
139
+ * Move a given id. If additive is true,
140
+ * then move it by xValue dots horizontally and
141
+ * yValue units vertically. If additive is
142
+ * false, then move it to (xValue, yValue)
143
+ *
144
+ * Note: do not precede the id with a # -- it will be
145
+ * appended when searching the stylesheets
146
+ *
147
+ * Note also: length units are preserved in Navigator 6
148
+ * and Internet Explorer. That is, if left is 2cm and
149
+ * top is 3cm, and you move to (4, 5), the left will
150
+ * become 4cm and the top 5cm.
151
+ *
152
+ */
153
+ function generic_move( id, xValue, yValue, additive )
154
+ {
155
+ var left = getIdProperty(id, "left");
156
+ var top = getIdProperty(id, "top");
157
+ var leftMatch, topMatch;
158
+
159
+ if (isNav4)
160
+ {
161
+ leftMatch = new Array( 0, left, "");
162
+ topMatch = new Array( 0, top, "");
163
+ }
164
+ else if (isNav6 || isIE4 )
165
+ {
166
+ var splitexp = /([-0-9.]+)(\w+)/;
167
+ leftMatch = splitexp.exec( left );
168
+ topMatch = splitexp.exec( top );
169
+ if (leftMatch == null || topMatch == null)
170
+ {
171
+ leftMatch = new Array(0, 0, "px");
172
+ topMatch = new Array(0, 0, "px");
173
+ }
174
+ }
175
+ left = ((additive) ? parseFloat( leftMatch[1] ) : 0) + xValue;
176
+ top = ((additive) ? parseFloat( topMatch[1] ) : 0) + yValue;
177
+ setIdProperty( id, "left", left + leftMatch[2] );
178
+ setIdProperty( id, "top", top + topMatch[2] );
179
+ }
180
+
181
+ /*
182
+ *
183
+ * Move a given id to position (xValue, yValue)
184
+ *
185
+ */
186
+ function moveTo( id, x, y )
187
+ {
188
+ generic_move( id, x, y, false );
189
+ }
190
+
191
+ /*
192
+ *
193
+ * Move a given id to (currentX + xValue, currentY + yValue)
194
+ *
195
+ */
196
+ function moveBy( id, x, y)
197
+ {
198
+ generic_move( id, x, y, true );
199
+ }
200
+
201
+ /*
202
+ *
203
+ * Function used when converting rgb format colors
204
+ * from Navigator 6 to a hex format
205
+ *
206
+ */
207
+ function hex( n )
208
+ {
209
+ var hexdigits = "0123456789abcdef";
210
+ return ( hexdigits.charAt(n >> 4) + hexdigits.charAt(n & 0x0f) );
211
+ }
212
+
213
+ /*
214
+ *
215
+ * Retrieve background color for a given id.
216
+ * The value returned will be in hex format (#rrggbb)
217
+ *
218
+ */
219
+ function getBackgroundColor( id )
220
+ {
221
+ var color;
222
+
223
+ if (isNav4)
224
+ {
225
+ color = document[id].bgColor;
226
+ }
227
+ else if (isNav6)
228
+ {
229
+ var parseExp = /rgb.(\d+),(\d+),(\d+)./;
230
+ var rgbvals;
231
+ color = getIdProperty( id, "backgroundColor" );
232
+ if (color)
233
+ {
234
+ rgbvals = parseExp.exec( color );
235
+ if (rgbvals)
236
+ {
237
+ color = "#" + hex( rgbvals[1] ) + hex( rgbvals[2] ) +
238
+ hex( rgbvals[3] );
239
+ }
240
+ }
241
+ return color;
242
+ }
243
+ else if (isIE4)
244
+ {
245
+ return document.all[id].backgroundColor;
246
+ }
247
+ return "";
248
+ }
249
+
250
+ /*
251
+ *
252
+ * Return a division's document
253
+ *
254
+ */
255
+ function getDocument( divName )
256
+ {
257
+ var doc;
258
+
259
+ if (isNav4)
260
+ {
261
+ doc = window.document[divName].document;
262
+ }
263
+ else if (isNav6)
264
+ {
265
+ doc = document;
266
+ }
267
+ else if (isIE4)
268
+ {
269
+ doc = document;
270
+ }
271
+ return doc;
272
+ }
273
+
274
+ function mgtChangeVis(id, vmode){
275
+ theNode = document.getElementById( id);
276
+ if (theNode){
277
+ setIdProperty( id, "display", vmode );
278
+ }
279
+ }
280
+
281
+ function mgtSetVisible(id, force){
282
+ theNode = document.getElementById( id);
283
+ if (theNode){
284
+ if (force == 1){
285
+ if (mgtsticknote != id){
286
+ //alert ('setting invisible '+id);
287
+ mgtSetInvisible(mgtsticknote, 1);
288
+ mgtsticknote = id;
289
+ setIdProperty( id, "display", "block" );
290
+ }
291
+ else {
292
+ mgtSetInvisible(id, 1);
293
+ }
294
+ }
295
+ else {
296
+ setIdProperty( id, "display", "block" );
297
+ }
298
+ }
299
+ }
300
+
301
+ function mgtSetInvisible(id, force){
302
+ theNode = document.getElementById( id);
303
+ if (theNode){
304
+ if (mgtsticknote != id || force == 1){
305
+ //alert ('setting invisible '+id);
306
+ setIdProperty( id, "display", "none" );
307
+ if (force == 1){
308
+ //alert ('forcing invisible '+id);
309
+ mgtsticknote = null;
310
+ }
311
+ }
312
+ }
313
+ }
314
+
315
+ setBrowser();
316
+ mgtsticknote = 0;
317
+
318
+ function mgtSetIframe (perc, opt) {
319
+ var iframe=document.getElementById("ecdsiframe");
320
+ var theDiv=iframe.parentNode;
321
+ if (opt == "win") {
322
+ if (window.innerHeight) {
323
+ var innerH=window.innerHeight;
324
+ var heightVal=(innerH/100)*perc;
325
+ iframe.height=heightVal;
326
+ }
327
+ if (!window.innerHeight && window.screen.availHeight) {
328
+ var innerH=window.screen.availHeight;
329
+ var heightVal=(innerH/100)*perc;
330
+ iframe.height=heightVal;
331
+ }
332
+ if (!document.body.clientHeight && document.documentElement.clientHeight) {
333
+ var innerH=document.documentElement.clientHeight;
334
+ var heightVal=(innerH/100)*perc;
335
+ iframe.height=heightVal;
336
+ }
337
+ }
338
+ if (opt == "div") {
339
+ iframe.height=theDiv.offsetHeight;
340
+ iframe.width=theDiv.offsetWidth;
341
+ }
342
+ }