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,42 @@
1
+ body{font:76%/150% Verdana,sans-serif;padding:0px;margin:0px;}
2
+ h1{font-size:30px;line-height:34px;letter-spacing:-1px;font-weight:500;display:inline;}
3
+ h2{font-size:17px;font-weight:600;letter-spacing:-1px;}
4
+ h3{font-size:12px;font-weight:600;margin:15px 0px 8px 0px;}
5
+ h1,h2,h3{font-family:"lucida console","courier new",sans-serif;}
6
+ a:link,a:visited{text-decoration:none;font-weight:500;font-size:8pt;}
7
+ a:hover,a:active{text-decoration:line-through;}
8
+ #top{position:relative;top:5px;border:1px solid #000;margin:0px 236px 0px 5px;height:70px;}
9
+ #header{position:relative;top:18px;left:252px;}
10
+ #main{position:relative;top:10px;border:1px solid #000;margin:0px 236px 4px 5px;}
11
+ #right{position:absolute;top:5px;right:10px;width:220px;font-size:10px;line-height:16px;}
12
+ #rblock1{border:1px solid #000;position:relative;}
13
+ #rblock2{border:1px solid #000;position:relative;margin-top:5px;}
14
+ .pad {padding:10px;}
15
+ ul{list-style-type:square;margin-top:0px;}
16
+ #box1{position:absolute;top:10px;left:11px;width:28px;height:60px;}
17
+ #box2{position:absolute;top:10px;left:43px;width:28px;height:28px;}
18
+ #box3{position:absolute;top:42px;left:43px;width:28px;height:28px;}
19
+ #box4{position:absolute;top:10px;left:75px;width:60px;height:28px;}
20
+ #box5{position:absolute;top:42px;left:75px;width:60px;height:28px;}
21
+ #box6{position:absolute;top:10px;left:139px;width:28px;height:28px;}
22
+ #box7{position:absolute;top:42px;left:139px;width:28px;height:28px;}
23
+
24
+ /* set template colors here */
25
+
26
+ body{color:#061208;background:#bfb8a6;}
27
+ a:link,a:visited{color:#ffe;}
28
+ ul{color:#ffe;}
29
+ h1{color:#ffe;}
30
+ h2{color:#c17f6f;}
31
+ h3{color:#5c5f80;}
32
+ #top{background:#5c5f80;}
33
+ #main{background:#e1d8c9;}
34
+ #rblock1{background:#bdcde4;}
35
+ #rblock2{background:#5c5f80;}
36
+ .box1{background:#7599c0;border:1px solid #333;} /* box colors */
37
+ .box2{background:#b5f0ff;border:1px solid #333;}
38
+ .box3{background:#87bce4;border:1px solid #333;}
39
+ .box4{background:#6890b4;border:1px solid #333;}
40
+ .box5{background:#556d87;border:1px solid #333;}
41
+ .box6{background:#9dd2fc;border:1px solid #333;}
42
+ .box7{background:#c17f6f;border:1px solid #333;}
@@ -0,0 +1,40 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
2
+ <html xmlns="http://www.w3.org/1999/xhtml">
3
+ <head>
4
+ <meta http-equiv="Content-Type" content="text/html; charset=windows-1252" />
5
+ <title>%%page:title%%</title>
6
+ <link rel="stylesheet" href="%%theme:path%%/default2.css" type="text/css" />
7
+ </head><body>
8
+ <div id="top"><div id="header">
9
+
10
+ <h1>%%page:title%%</h1>
11
+
12
+ </div></div><div id="right">
13
+ <div id="rblock1" class="pad">
14
+
15
+ <!-- right side -->
16
+ <h3>Navigation</h3>
17
+ %%area:navigation%%
18
+ <h3>Other Sites</h3>
19
+ %%area:links%%
20
+ <p>%%area:right%%
21
+ </p>
22
+ <!-- end right side -->
23
+
24
+ </div><div id="rblock2" class="pad">
25
+ <a href="http://www.19jump.com">Animated Templates: 19jump</a><br />
26
+ </div></div><div id="main"><div style="padding:20px 30px">
27
+
28
+ <!-- BEGIN text -->
29
+ %%area:main%%
30
+ <!-- END text -->
31
+
32
+ </div></div>
33
+ <div id="box1" class="box1"></div>
34
+ <div id="box2" class="box2"></div>
35
+ <div id="box3" class="box3"></div>
36
+ <div id="box4" class="box4"></div>
37
+ <div id="box5" class="box5"></div>
38
+ <div id="box6" class="box6"></div>
39
+ <div id="box7" class="box7"></div>
40
+ </body></html>
@@ -0,0 +1,12 @@
1
+ <html><head></head><body>
2
+
3
+ <h1>area title</h1>
4
+ %%area:title%%
5
+
6
+ <h1>area main</h1>
7
+ %%area:main%%
8
+
9
+
10
+
11
+ <h1>wow</h1>
12
+ </body></html>
@@ -0,0 +1,176 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
2
+ <html lang="it"><head>
3
+
4
+ <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
5
+ <title>%%page:title%%</title>
6
+
7
+ <link href="%%theme:path%%/style.css" media="screen" rel="Stylesheet" type="text/css" />
8
+ <script src="%%theme:path%%/script.js" type="text/javascript"></script>
9
+ </script></head><body>
10
+ <div class="testata">
11
+ <div class="spacer"></div>
12
+ <div class="upper">
13
+ <div class="spacer"></div>
14
+ <div class="left">
15
+ <div class="logo">
16
+ <!-- LOGO -->
17
+ <a class="logo" href="http://filosofia.dipafilo.unimi.it/%7Eaevum/ecds/p/ecds/r/ecds">
18
+ <img class="logo" src="%%theme:path%%/images/upld.gif" alt="Doctor Virtualis - Filosofia medievale" border="0" height="80" vspace="0" width="134"></a>
19
+ <!-- END LOGO -->
20
+ </div>
21
+ </div>
22
+ <div class="center">
23
+ <div class="title">
24
+ <h1>%%area:title%%</h1>
25
+ </div>
26
+ <div class="subtitle">
27
+ <h2>%%area:subtitle%%</h2>
28
+ </div>
29
+ </div>
30
+ <div class="right">
31
+ <div class="auth">
32
+ <a href="http://filosofia.dipafilo.unimi.it/%7Eaevum/ecds/ing/1/p/ecds/r/ecds">login</a><a href="http://filosofia.dipafilo.unimi.it/%7Eaevum/ecds/a/login/corpo/reminder">memo</a><a href="http://filosofia.dipafilo.unimi.it/%7Eaevum/ecds/a/login/corpo/register">register</a>
33
+ </div>
34
+ </div>
35
+ <div class="spacer"></div>
36
+ </div>
37
+ <div class="middle">
38
+ <div class="spacer"></div>
39
+ <div class="left">
40
+ <div class="menu">
41
+ %%area:menu:start%%
42
+ <table class="mainmenu" cellpadding="0" cellspacing="0"><tbody><tr>
43
+ %%shape:menu:start%%
44
+ <td>
45
+ &nbsp;<a class="amainmenu" href="%%content:url%%">%%content%%</a>&nbsp;
46
+ </td>
47
+ %%shape:menu:end%%
48
+ </tr></tbody></table>
49
+ %%area:menu:end%%
50
+ </div>
51
+ </div>
52
+ <div class="right">
53
+ <div class="search">
54
+ <form action="/~aevum/ecds/a/mgtdig/p/ecds/r/ecds" method="get">
55
+ <label></label>
56
+ <input name="mgtdig[words]" value="" size="10" type="text">
57
+ <input title="search" class="butt" src="%%theme:path%%/images/search.gif" height="25" type="image" width="56">
58
+ <input name="mgtdig[page]" value="1" type="hidden">
59
+ </form>
60
+ </div><!-- end div search -->
61
+ </div>
62
+ <div class="spacer"></div>
63
+ </div>
64
+ <div class="spacer"></div>
65
+ </div>
66
+ <table class="page" cellpadding="0" cellspacing="0">
67
+ <tbody><tr valign="top">
68
+ <td class="sinistra">
69
+ <div class="sinistra">
70
+ <div class="left">
71
+ <!-- non display kind:context:: -->
72
+ %%area:left_content:start%%
73
+ %%shape::start%%
74
+ <!-- INIZIO SEZIONE DI OUTPUT -->
75
+ <div class="spacer"></div>
76
+ <div class="topic">
77
+ <p class="description">%%content%%</p>
78
+ <div class="spacer"></div>
79
+ </div>
80
+ <div class="spacer"></div>
81
+ <!-- FINE SEZIONE DI OUTPUT -->
82
+ %%shape::end%%
83
+
84
+ %%area:left_content:end%%
85
+ <!-- non display kind:context:: -->
86
+
87
+ </div></div>
88
+ </td>
89
+ <td class="centro">
90
+ <div class="centro">
91
+ <div class="center">
92
+ <!-- non display kind:context:: -->
93
+ %%area:main_content_title:start%%
94
+ %%shape::start%%
95
+ <!-- INIZIO SEZIONE DI OUTPUT -->
96
+ <div class="spacer"></div>
97
+ <div class="channel"><h1>%%content:title%%</h1>
98
+ <h2><br><b>%%content:subtitle%%</b></h2>
99
+ <div class="sep"></div>
100
+ <div class="spacer"></div>
101
+ </div>
102
+ <div class="spacer"></div>
103
+ <!-- FINE SEZIONE DI OUTPUT -->
104
+ %%shape::end%%
105
+ %%area:main_content_title:end%%
106
+ <!-- non display kind:context:: -->
107
+
108
+ </div><div class="center">
109
+ <!-- non display kind:context:: -->
110
+ %%area:main_content:start%%
111
+ %%shape::start%%
112
+ <!-- INIZIO SEZIONE DI OUTPUT -->
113
+ <div class="spacer"></div>
114
+ <div class="item"><h1><a href="%%content:url%%">%%content:title%%</a></h1>
115
+ <div class="sep"></div>
116
+ <p>%%content:subtitle</p>
117
+ <div class="spacer"></div>
118
+ <p class="close">
119
+ <span class="link"><a href="%%content:url%%">vedi...</a></span>
120
+ </p>
121
+ <div class="spacer"></div>
122
+ </div>
123
+ <div class="spacer"></div>
124
+ <!-- FINE SEZIONE DI OUTPUT -->
125
+ %%shape::end
126
+
127
+ %%area:main_content:end%%
128
+ <!-- non display kind:context:: -->
129
+
130
+ </div></div>
131
+ </td>
132
+ <td class="destra">
133
+ <div class="destra">
134
+ <div class="right">
135
+ <!-- non display kind:context:: -->
136
+ %%area:right_content:start%%
137
+
138
+ %%shape::start%%
139
+ <!-- INIZIO SEZIONE DI OUTPUT -->
140
+ <div class="spacer"></div>
141
+ <div class="topic"><h1>%%content:title%%</h1>
142
+ <div class="sep"></div>
143
+ <p>%%content%%</p>
144
+ <div class="spacer"></div>
145
+ </div>
146
+ <div class="spacer"></div>
147
+ <!-- FINE SEZIONE DI OUTPUT -->
148
+ %%shape::end%%
149
+ %%area:right_content:end%%
150
+ <!-- non display kind:context:: -->
151
+
152
+ </div></div>
153
+ </td>
154
+ </tr>
155
+ </tbody>
156
+ </table>
157
+ <div class="footer">
158
+ <div class="spacer"></div>
159
+ <div class="upper">
160
+ <div class="spacer"></div>
161
+ <div class="left">
162
+ <div class="menu">
163
+ %%area:menu:sync%%
164
+ </div>
165
+ </div>
166
+ <div class="right">
167
+ <div class="authorship">
168
+ <a class="authorship" target="_blank" href="http://www.preciso.net/ecds/p/authoring">Preciso Web Crafts</a>
169
+ <a class="authorship" target="_blank" href="http://eliae.org">Elia&aelig; Elia Schito</a>
170
+ </div>
171
+ </div>
172
+ <div class="spacer"></div>
173
+ </div>
174
+ <div class="spacer"></div>
175
+ </div>
176
+ </body></html>
@@ -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
+ }