[Erp5-report] r19906 - /experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_ski...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Mar 14 15:04:06 CET 2008
Author: mikolaj
Date: Fri Mar 14 15:04:06 2008
New Revision: 19906
URL: http://svn.erp5.org?rev=19906&view=rev
Log:
2008-03-14 Mikolaj
* moved listbox marking and boxing support to separate BT (erp5_xhtml_style_experimental)
Removed:
experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/ListBox_asHTML.xml
experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/boxover.css.xml
experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/boxover.js.xml
Removed: experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/ListBox_asHTML.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/ListBox_asHTML.xml?rev=19905&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/ListBox_asHTML.xml (original)
+++ experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/ListBox_asHTML.xml (removed)
@@ -1,424 +1,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>__ac_local_roles__</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_bind_names</string> </key>
- <value>
- <object>
- <klass>
- <global name="NameAssignments" module="Shared.DC.Scripts.Bindings"/>
- </klass>
- <tuple/>
- <state>
- <dictionary>
- <item>
- <key> <string>_asgns</string> </key>
- <value>
- <dictionary>
- <item>
- <key> <string>name_subpath</string> </key>
- <value> <string>traverse_subpath</string> </value>
- </item>
- </dictionary>
- </value>
- </item>
- </dictionary>
- </state>
- </object>
- </value>
- </item>
- <item>
- <key> <string>_owner</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_text</string> </key>
- <value> <string encoding="cdata"><![CDATA[
-
-<tal:block\n
- xmlns:tal="http://xml.zope.org/namespaces/tal"\n
- xmlns:metal="http://xml.zope.org/namespaces/metal"\n
- xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
- tal:define="field_id here/getId;\n
- form_id python: here.getForm().id;\n
- selection_name here/getSelectionName;\n
- requested_selection_name here/getRequestedSelectionName;\n
- selection_index here/getSelectionIndex;\n
- selection here/getSelection;\n
- portal_url_string here/getPortalUrlString;\n
- real_context here/getContext;\n
- context_url real_context/absolute_url;\n
- md5_string here/getMD5Checksum;\n
- line_list here/query;\n
- is_domain_tree_mode here/isDomainTreeMode;\n
- is_report_tree_mode here/isReportTreeMode;\n
- is_domain_tree_supported here/isDomainTreeSupported;\n
- is_report_tree_supported here/isReportTreeSupported;\n
- show_select_column here/showSelectColumn;\n
- show_search_line here/showSearchLine;\n
- ">\n
- <!-- ListBox starts here. -->\n
- <input type="hidden" name="list_selection_name" value="default" tal:attributes="value selection_name" />\n
- <input type="hidden" name="list_selection_name" value="default"\n
- tal:attributes="value selection_name;\n
- name string:${field_id}_list_selection_name" />\n
- <input tal:condition="md5_string" type="hidden" name="md5_object_uid_list" value="checksum" tal:attributes="value md5_string" />\n
-\n
- <tal:replace tal:content="nothing">\n
- Because TAL cannot accept unbalanced tags, the support for a domain tree is realized by a macro.\n
- The macro ListBoxContainer is a no-op, if not in domain tree mode. Otherwise, the macro constructs\n
- a domain tree and extracts the body in an extra table.\n
- </tal:replace>\n
-\n
- <tal:block tal:define="expand python: 0">\n
- <tal:block metal:define-macro="ListBoxContainer">\n
- <tal:block tal:condition="expand">\n
- <table tal:condition="is_domain_tree_mode"\n
- style="width: 100%;" cellpadding="0" cellspacing="0"\n
- summary="This table contains the domain tree with the switch button"\n
- tal:define="selected_domain_path here/getSelectedDomainPath">\n
- <tr>\n
- <td valign="top">\n
- <select name="domain_root_url"\n
- tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setDomainRoot\')">\n
- <tal:block tal:repeat="c here/getDomainRootList">\n
- <option value="base_domain"\n
- tal:define="path python: c[0]; title python: c[1]"\n
- tal:attributes="selected python: path == selected_domain_path; value path"\n
- tal:content="title"\n
- i18n:translate="" i18n:domain="ui">Base Domain</option>\n
- </tal:block>\n
- </select>\n
- <table id="listbox_domain_tree_table" cellpadding="0"\n
- summary="This table contains the domain tree"\n
- tal:attributes="id string:${field_id}_domain_tree_table"\n
- tal:define="report_tree_list python: here.makeReportTreeList(report_path = selected_domain_path, unfolded_list = selection.getDomainList(), is_report_opened = False);\n
- total_depth python: max([report_tree.depth for report_tree in report_tree_list] + [-1])">\n
- <tr tal:repeat="report_tree report_tree_list">\n
- <tal:block tal:repeat="i python: range(report_tree.depth)">\n
- <td width="16" nowrap="nowrap"> </td>\n
- </tal:block>\n
-\t\t <td colspan="1" style="text-align: left; vertical-align: top; white-space: nowrap;"\n
- tal:attributes="colspan python: total_depth - report_tree.depth + 1">\n
- <a href="method"\n
- tal:condition="report_tree/is_open"\n
- tal:attributes="href string:foldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">- <b tal:content="report_tree/obj/getTranslatedTitleOrId">Domain</b></a>\n
- <a href="method"\n
- tal:condition="not: report_tree/is_open"\n
- tal:attributes="href string:unfoldDomain?domain_url=${report_tree/domain_url}&form_id=${form_id}&list_selection_name=${selection_name}&domain_depth:int=${report_tree/depth}">+ <tal:block tal:content="report_tree/obj/getTranslatedTitleOrId">Domain</tal:block></a>\n
- </td>\n
- </tr>\n
- </table>\n
- </td>\n
- <td style="vertical-align: top">\n
- <tal:block metal:define-slot="ListBoxBody" />\n
- </td>\n
- </tr>\n
- </table>\n
- <tal:block tal:condition="not: is_domain_tree_mode">\n
- <tal:block metal:define-slot="ListBoxBody" />\n
- </tal:block>\n
- </tal:block>\n
- </tal:block>\n
- </tal:block>\n
-\n
- <tal:block tal:define="expand python: 1">\n
- <tal:block metal:use-macro="template/macros/ListBoxContainer">\n
- <tal:block metal:fill-slot="ListBoxBody">\n
- <div class="ListSummary">\n
- <table cellpadding="0" cellspacing="0"\n
- summary="This table contains the listbox headers">\n
- <tr>\n
- <td style="height: 10px">\n
- <img src="Left.png" alt="left"\n
- tal:attributes="src string:${portal_url_string}/images/Left.png" />\n
- </td>\n
- <td class="Top" colspan="2" style="height: 10px">\n
- <img src="spacer.png" style="width: 5px; height: 10px;" alt="spacer"\n
- tal:attributes="src string:${portal_url_string}/images/spacer.png" />\n
- </td>\n
- <td class="Top" colspan="3" style="height: 10px">\n
- <img src="spacer.png" style="width: 5px; height: 10px" alt="spacer"\n
- tal:attributes="src string:${portal_url_string}/images/spacer.png" />\n
- </td>\n
- </tr>\n
- <tr id="listbox_title_line" tal:attributes="id string:${field_id}_title_line">\n
- <td class="Left" style="width: 17px">\n
- <img src="spacer.png" style="width: 5px; height: 5px" alt="spacer"\n
- tal:attributes="src string:${portal_url_string}/images/spacer.png" />\n
- </td>\n
-\t <td style="white-space: nowrap; vertical-align: middle">\n
- <input tal:condition="python: is_domain_tree_supported or is_report_tree_supported"\n
- type="image" src="text_block.png" id="listbox_flat_list_mode"\n
- title="Flat List" name="setFlatListMode:method"\n
- value="1" alt="Flat List"\n
- tal:attributes="src string:${portal_url_string}/images/text_block.png;\n
- id string:${field_id}_flat_list_mode"\n
- i18n:domain="ui" i18n:attributes="title" />\n
- <input tal:condition="is_report_tree_supported"\n
- type="image" src="view_tree.png" id="listbox_report_tree_mode"\n
- title="Report Tree" name="setReportTreeMode:method"\n
- value="1" alt="Report Tree"\n
- tal:attributes="src string:${portal_url_string}/images/view_tree.png;\n
- id string:${field_id}_report_tree_mode"\n
- i18n:domain="ui" i18n:attributes="title" />\n
- <input tal:condition="is_domain_tree_supported"\n
- type="image" src="view_choose.png" id="listbox_domain_tree_mode"\n
- title="Domain Tree" name="setDomainTreeMode:method"\n
- value="1" alt="Domain Tree"\n
- tal:attributes="src string:${portal_url_string}/images/view_choose.png;\n
- id string:${field_id}_domain_tree_mode"\n
- i18n:domain="ui" i18n:attributes="title" />\n
- </td>\n
- <td style="width: 100%; vertical-align: middle">\n
- \n
- <a id="listbox_title" href="list"\n
- tal:attributes="id string:${field_id}_title; href here/getListActionUrl">\n
- <tal:block tal:content="here/getTitle" i18n:domain="ui" i18n:translate=""/>:</a>\n
- <span id="listbox_record_number"\n
- tal:attributes="id string:${field_id}_record_number"\n
- i18n:translate="" i18n:domain="ui"><tal:block tal:replace="here/total_size" i18n:name="number">0</tal:block> record(s)</span>\n
- <span id="listbox_item_number"\n
- tal:attributes="id string:${field_id}_item_number"\n
- i18n:translate="" i18n:domain="ui"> - <tal:block tal:replace="python: len(here.getCheckedUidList())" i18n:name="number">0</tal:block> item(s) selected</span>\n
- </td>\n
-\t <td style="white-space: nowrap; vertical-align: middle; text-align: center;">\n
- <input tal:condition="python: here.current_page > 0"\n
- id="listbox_previous_page" type="image" src="1leftarrowv.png"\n
- title="Previous Page" name="previousPage:method"\n
- tal:attributes="id string:${field_id}_previous_page;\n
- name string:${field_id}_previousPage:method;\n
- src string:${portal_url_string}/images/1leftarrowv.png"\n
- i18n:domain="ui" i18n:attributes="title" />\n
- </td>\n
-\t <td style="white-space: nowrap; vertical-align: middle; text-align: center">\n
- <select id="listbox_page_selection" name="list_start" title="Change Page" size="1"\n
- tal:define="lines here/getMaxLineNumber"\n
- tal:attributes="id string:${field_id}_page_selection;\n
- name string:${field_id}_list_start;\n
- onChange string:submitAction(this.form, \'${context_url}/${field_id}_setPage\')"\n
- i18n:domain="ui" i18n:attributes="title">\n
- <option value="0"\n
- tal:repeat="p python: range(0, here.total_pages)"\n
- tal:attributes="selected python: p == here.current_page;\n
- value python: p * lines"\n
- i18n:domain="ui" i18n:translate=""><tal:block tal:replace="python: p + 1" i18n:name="page">0</tal:block> of <tal:block tal:replace="here/total_pages" i18n:name="total_pages">1</tal:block></option>\n
- </select>\n
- </td>\n
-\t <td style="white-space: nowrap; vertical-align: middle; text-align: center">\n
- <input tal:condition="python: here.current_page < here.total_pages - 1"\n
- id="listbox_next_page" type="image" src="1rightarrowv.png"\n
- title="Next Page" name="nextPage:method"\n
- tal:attributes="id string:${field_id}_next_page;\n
- name string:${field_id}_nextPage:method;\n
- src string:${portal_url_string}/images/1rightarrowv.png"\n
- i18n:domain="ui" i18n:attributes="title" />\n
- </td>\n
- </tr>\n
- </table>\n
- </div>\n
- <div class="ListContent">\n
- <table cellpadding="0" cellspacing="0"\n
- summary="This table contains the listbox content">\n
- <tr id="listbox_label_line" tal:attributes="id string:${field_id}_label_line">\n
- <td tal:condition="is_report_tree_mode"\n
- class="Data" style="width: 50px; text-align: left; vertical-align: middle">\n
- <select name="report_root_url"\n
- tal:attributes="onChange string:submitAction(this.form, \'${context_url}/setReportRoot\')">\n
- <tal:block tal:repeat="c here/getReportRootList">\n
- <option value="base_domain"\n
- tal:define="path python: c[0]; title python: c[1]"\n
- tal:attributes="selected python: path == here.getSelectedReportPath(); value path"\n
- tal:content="title" i18n:domain="ui" i18n:translate="">Domain</option>\n
- </tal:block>\n
- </select>\n
- </td>\n
- <td tal:condition="show_select_column"\n
- class="Data" style="width: 50px; text-align: center; vertical-align: middle">\n
- <input id="listbox_check_all" type="image"\n
- name="checkAll:method" value="1"\n
- src="checkall.png" alt="Check All" title="Check All"\n
- tal:attributes="id string:${field_id}_check_all;\n
- name string:${field_id}_checkAll:method;\n
- src string:${portal_url_string}/images/checkall.png"\n
- i18n:domain="ui" i18n:attributes="title" /> <input id="listbox_uncheck_all" type="image" name="uncheckAll:method" value="1"\n
- src="%(portal_url_string)s/images/decheckall.png" style="border: 0" alt="Uncheck All" title="Uncheck All"\n
- tal:attributes="id string:${field_id}_uncheck_all;\n
- name string:${field_id}_uncheckAll:method;\n
- src string:${portal_url_string}/images/decheckall.png"\n
- i18n:domain="ui" i18n:attributes="title" />\n
- </td>\n
- <tal:block tal:repeat="value here/getLabelValueList">\n
- <tal:block tal:define="sql python: value[0];\n
- title python: value[1];\n
- sort_order python: value[2]">\n
- <td tal:condition="sql" class="Data">\n
- <button type="submit" class="sort_button"\n
- name="setSelectionQuickSortOrder:method"\n
- tal:attributes="title string:${title}; \n
- value string:${field_id}.${sql}"\n
- i18n:domain="ui" i18n:attributes="title">\n
- <span tal:content="title" i18n:domain="ui" i18n:translate="">ID</span>\n
- </button>\n
- <img tal:condition="python: sort_order == \'ascending\'"\n
- src="1bottomarrow.png" alt="Ascending Display" title="Ascending Display"\n
- tal:attributes="src string:${portal_url_string}/images/1bottomarrow.png"\n
- i18n:domain="ui" i18n:attributes="title" />\n
- <img tal:condition="python: sort_order == \'descending\'"\n
- src="1toparrow.png" alt="Descending Display" title="Descending Display"\n
- tal:attributes="src string:${portal_url_string}/images/1toparrow.png"\n
- i18n:domain="ui" i18n:attributes="title" />\n
- </td>\n
- <td tal:condition="not: sql" class="Data" tal:content="title"\n
- i18n:domain="ui" i18n:translate="">\n
- ID\n
- </td>\n
- </tal:block>\n
- </tal:block>\n
- </tr>\n
-\n
- <tr tal:condition="python: show_search_line or is_report_tree_mode"\n
- id="listbox_search_line"\n
- tal:attributes="id python: show_search_line and (\'%s_search_line\' % field_id) or (\'%s_report_depth_line\' % field_id)">\n
- <tal:block tal:condition="is_report_tree_mode">\n
- <td class="Data" style="width: 50px; text-align: left; vertical-align: middle" colspan="1"\n
- tal:attributes="colspan python: show_search_line and 1 or (len(here.getSelectedColumnList()) + show_select_column + 1)"\n
- tal:define="index python: selection_index is not None and \'&selection_index=%s\' % selection_index or \'\';\n
- is_report_opened python: int(not here.getSelection().isReportOpened());\n
- url here/getUrl"><tal:block tal:repeat="i python: range(0, 6)"> <a href="?selection_name=default&selection_index=0&report_depth:int=0"\n
- tal:attributes="href string:${url}?selection_name=${requested_selection_name}${index}&report_depth:int=${i}"\n
- tal:content="i">0</a></tal:block> - <a href="?selection_name=default&selection_index=0&is_report_opened:int=0"\n
- tal:attributes="href string:${url}?selection_name=${requested_selection_name}${index}&is_report_opened:int=${is_report_opened}"\n
- tal:content="python: is_report_opened and \'Show\' or \'Hide\'"\n
- i18n:domain="ui" i18n:translate="">Show</a>\n
- </td>\n
- </tal:block>\n
- <td tal:condition="python: show_select_column and show_search_line"\n
- class="Data" style="width: 50px; text-align: center; vertical-align: middle">\n
- <input id="listbox_select" type="image" src="exec16.png"\n
- title="Action" alt="Action" name="Base_doSelect:method"\n
- tal:attributes="id string:${field_id}_select;\n
- src string:${portal_url_string}/images/exec16.png"\n
- i18n:domain="ui" i18n:attributes="title" />\n
- </td>\n
- <tal:block tal:condition="show_search_line"\n
- tal:repeat="value here/getSearchValueList">\n
- <td class="DataB"\n
- tal:define="alias python: value[0];\n
- param python: value[1];\n
- search_field python: value[2]">\n
- <span tal:condition="alias" style="font-size: -3">\n
- <tal:block tal:condition="python: search_field is not None"\n
- tal:replace="structure python: search_field.render(value = param, key = alias)" />\n
- <input tal:condition="python: search_field is None" name="id" size="8" value=""\n
- tal:attributes="name alias; value param" />\n
- </span>\n
- </td>\n
- </tal:block>\n
- </tr>\n
-\n
- <tal:block tal:repeat="line line_list" tal:define="checked_uid_set here/getCheckedUidSet">\n
- <tr id="listbox_data_line_0" class="DataA" \n
- tal:define="marked_css python: line.getMarkingCssName();\n
- css python: test(repeat[\'line\'].index % 2, \' \'.join((marked_css,\'DataB\')),\n
- \' \'.join((marked_css,\'DataA\')) )" \n
- tal:attributes="id string:${field_id}_data_line_${repeat/line/index}; class css;\n
- title python: line.getBoxover();">\n
- <td tal:condition="is_report_tree_mode" class="DataA" align="left" valign="middle"\n
- tal:attributes="class css"\n
- tal:define="section_name python: line.getDomainTitle()">\n
- <a tal:condition="section_name"\n
- tal:define="method_id python: line.isOpen() and \'foldReport\' or \'unfoldReport\'"\n
- tal:attributes="href string:${method_id}?report_url=${line/getDomainUrl}&form_id=${form_id}&list_selection_name=${selection_name}"\n
- tal:content="structure python: \'%s%s %s\' % (\' \' * line.getDepth(), line.isOpen() and \'-\' or \'+\', section_name)" />\n
- </td>\n
- <td tal:condition="here/showSelectColumn"\n
- class="DataA" style="width: 50px; text-align: center; vertical-align: middle"\n
- tal:attributes="class css">\n
- <input tal:condition="python: not line.isSummary() and line.getObject() is not None"\n
- type="checkbox" value="checked" id="listbox_cb_1" name="uids:list"\n
- tal:attributes="checked python: line.getUid() in checked_uid_set;\n
- value line/getUid;\n
- id string:${field_id}_cb_${line/getUid}" />\n
- <tal:block tal:condition="python: line.isSummary() or line.getObject() is None"></tal:block>\n
- </td>\n
- <tal:block tal:repeat="value line/render">\n
- <td tal:define="html python: value[0];\n
- original_value python: value[1];\n
- error python: value[2]"\n
- class="DataA" align="left"\n
- tal:attributes="class python: error and (css + \'Error\') or css;\n
- align python: isinstance(original_value, (float, int, long)) and \'right\' or \'left\'">\n
- <input tal:condition="not: repeat/value/index"\n
- type="hidden" value="1" name="listbox_uid:list"\n
- tal:attributes="value python: line.getUid() or \'\';\n
- name string:${field_id}_uid:list" />\n
- <span tal:replace="structure html">value</span>\n
- </td>\n
- </tal:block>\n
- </tr>\n
- </tal:block>\n
-\n
- <tr tal:condition="here/showStat" id="listbox_stat_line"\n
- tal:attributes="id string:${field_id}_stat_line">\n
- <td tal:condition="is_report_tree_mode" class="Data"> </td>\n
- <td tal:condition="show_select_column" class="Data"> </td>\n
- <tal:block tal:repeat="value here/getStatValueList">\n
- <td class="Data" align="left"\n
- tal:define="original_value python: value[0]; processed_value python: value[1]"\n
- tal:attributes="align python: isinstance(original_value, (float, int, long)) and \'right\' or \'left\'"\n
- tal:content="structure processed_value" />\n
- </tal:block>\n
- </tr>\n
- </table>\n
- </div>\n
- </tal:block>\n
- </tal:block>\n
- </tal:block>\n
- <!-- ListBox ends here. -->\n
-\n
-</tal:block>\n
-\n
-<!--\n
-# vim: filetype=dtml\n
--->\n
-
-
-]]></string> </value>
- </item>
- <item>
- <key> <string>content_type</string> </key>
- <value> <string>text/html</string> </value>
- </item>
- <item>
- <key> <string>expand</string> </key>
- <value> <int>0</int> </value>
- </item>
- <item>
- <key> <string>id</string> </key>
- <value> <string>ListBox_asHTML</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/boxover.css.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/boxover.css.xml?rev=19905&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/boxover.css.xml (original)
+++ experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/boxover.css.xml (removed)
@@ -1,123 +1,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="DTMLDocument" module="OFS.DTMLDocument"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>__ac_local_roles__</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>__name__</string> </key>
- <value> <string>boxover.css</string> </value>
- </item>
- <item>
- <key> <string>_owner</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_vars</string> </key>
- <value>
- <dictionary/>
- </value>
- </item>
- <item>
- <key> <string>globals</string> </key>
- <value>
- <dictionary/>
- </value>
- </item>
- <item>
- <key> <string>raw</string> </key>
- <value> <string>.thdrcell {\n
- background:#F3F0E7;\n
- font-family:arial;\n
- font-size:12px;\n
- font-weight:bold;\n
- padding:5px;\n
- border-bottom:1px solid #C8BA92;\n
-}\n
-\n
-.tdatacell {\n
- font-family:arial;\n
- font-size:12px;\n
- padding:5px;\n
- background:#FFFFFF\n
-}\n
-\n
-.dvhdr1 {\n
- background:#F3F0E7;\n
- font-family:arial;\n
- font-size:12px;\n
- font-weight:bold;\n
- border:1px solid #C8BA92;\n
- padding:5px;\n
- width:150px;\n
-}\n
-\n
-.dvbdy1 {\n
- background:#FFFFFF;\n
- font-family:arial;\n
- font-size:12px;\n
- border-left:1px solid #C8BA92;\n
- border-right:1px solid #C8BA92;\n
- border-bottom:1px solid #C8BA92;\n
- padding:5px;\n
- width:150px;\n
-}\n
-\n
-p {\n
-margin-top:20px;\n
-}\n
-\n
-h1 {\n
-font-size:13px;\n
-}\n
-\n
-.dogvdvhdr {\n
- width:300;\n
- background:#C4D5E3;\n
- border:1px solid #C4D5E3;\n
- font-weight:bold;\n
- padding:10px;\n
-}\n
-\n
-.dogvdvbdy {\n
- width:300;\n
- background:#FFFFFF;\n
- border-left:1px solid #C4D5E3;\n
- border-right:1px solid #C4D5E3;\n
- border-bottom:1px solid #C4D5E3;\n
- padding:10px;\n
-}\n
-\n
-.pgdiv {\n
-width:320;\n
-height:250;\n
-background:#E9EFF4;\n
-border:1px solid #C4D5E3;\n
-padding:10px;\n
-margin-bottom:20;\n
-font-family:arial;\n
-font-size:12px;\n
-}\n
-</string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
Removed: experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/boxover.js.xml
URL: http://svn.erp5.org/experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/boxover.js.xml?rev=19905&view=auto
==============================================================================
--- experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/boxover.js.xml (original)
+++ experimental/bt5/erp5_core_experimental/SkinTemplateItem/portal_skins/erp5_core_experimental/boxover.js.xml (removed)
@@ -1,427 +1,0 @@
-<?xml version="1.0"?>
-<ZopeData>
- <record id="1" aka="AAAAAAAAAAE=">
- <pickle>
- <tuple>
- <global name="DTMLDocument" module="OFS.DTMLDocument"/>
- <tuple/>
- </tuple>
- </pickle>
- <pickle>
- <dictionary>
- <item>
- <key> <string>__ac_local_roles__</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>__name__</string> </key>
- <value> <string>boxover.js</string> </value>
- </item>
- <item>
- <key> <string>_owner</string> </key>
- <value>
- <none/>
- </value>
- </item>
- <item>
- <key> <string>_vars</string> </key>
- <value>
- <dictionary/>
- </value>
- </item>
- <item>
- <key> <string>globals</string> </key>
- <value>
- <dictionary/>
- </value>
- </item>
- <item>
- <key> <string>raw</string> </key>
- <value> <string encoding="cdata"><![CDATA[
-
-/* --- BoxOver ---\n
-/* --- v 2.1 17th June 2006\n
-By Oliver Bryant with help of Matthew Tagg\n
-http://boxover.swazz.org */\n
-\n
-if (typeof document.attachEvent!=\'undefined\') {\n
- window.attachEvent(\'onload\',init);\n
- document.attachEvent(\'onmousemove\',moveMouse);\n
- document.attachEvent(\'onclick\',checkMove); }\n
-else {\n
- window.addEventListener(\'load\',init,false);\n
- document.addEventListener(\'mousemove\',moveMouse,false);\n
- document.addEventListener(\'click\',checkMove,false);\n
-}\n
-\n
-var oDv=document.createElement("div");\n
-var dvHdr=document.createElement("div");\n
-var dvBdy=document.createElement("div");\n
-var windowlock,boxMove,fixposx,fixposy,lockX,lockY,fixx,fixy,ox,oy,boxLeft,boxRight,boxTop,boxBottom,evt,mouseX,mouseY,boxOpen,totalScrollTop,totalScrollLeft;\n
-boxOpen=false;\n
-ox=10;\n
-oy=10;\n
-lockX=0;\n
-lockY=0;\n
-\n
-function init() {\n
-\toDv.appendChild(dvHdr);\n
-\toDv.appendChild(dvBdy);\n
-\toDv.style.position="absolute";\n
-\toDv.style.visibility=\'hidden\';\n
-\tdocument.body.appendChild(oDv);\t\n
-}\n
-\n
-function defHdrStyle() {\n
-\tdvHdr.innerHTML=\'<img style="vertical-align:middle" src="info.gif"> \'+dvHdr.innerHTML;\n
-\tdvHdr.style.fontWeight=\'bold\';\n
-\tdvHdr.style.width=\'150px\';\n
-\tdvHdr.style.fontFamily=\'arial\';\n
-\tdvHdr.style.border=\'1px solid #A5CFE9\';\n
-\tdvHdr.style.padding=\'3\';\n
-\tdvHdr.style.fontSize=\'11\';\n
-\tdvHdr.style.color=\'#4B7A98\';\n
-\tdvHdr.style.background=\'#D5EBF9\';\n
-\tdvHdr.style.filter=\'alpha(opacity=85)\'; // IE\n
-\tdvHdr.style.opacity=\'0.85\'; // FF\n
-}\n
-\n
-function defBdyStyle() {\n
-\tdvBdy.style.borderBottom=\'1px solid #A5CFE9\';\n
-\tdvBdy.style.borderLeft=\'1px solid #A5CFE9\';\n
-\tdvBdy.style.borderRight=\'1px solid #A5CFE9\';\n
-\tdvBdy.style.width=\'150px\';\n
-\tdvBdy.style.fontFamily=\'arial\';\n
-\tdvBdy.style.fontSize=\'11\';\n
-\tdvBdy.style.padding=\'3\';\n
-\tdvBdy.style.color=\'#1B4966\';\n
-\tdvBdy.style.background=\'#FFFFFF\';\n
-\tdvBdy.style.filter=\'alpha(opacity=85)\'; // IE\n
-\tdvBdy.style.opacity=\'0.85\'; // FF\n
-}\n
-\n
-function checkElemBO(txt) {\n
-if (!txt || typeof(txt) != \'string\') return false;\n
-if ((txt.indexOf(\'header\')>-1)&&(txt.indexOf(\'body\')>-1)&&(txt.indexOf(\'[\')>-1)&&(txt.indexOf(\'[\')>-1)) \n
- return true;\n
-else\n
- return false;\n
-}\n
-\n
-function scanBO(curNode) {\n
-\t if (checkElemBO(curNode.title)) {\n
- curNode.boHDR=getParam(\'header\',curNode.title);\n
- curNode.boBDY=getParam(\'body\',curNode.title);\n
-\t\t\tcurNode.boCSSBDY=getParam(\'cssbody\',curNode.title);\t\t\t\n
-\t\t\tcurNode.boCSSHDR=getParam(\'cssheader\',curNode.title);\n
-\t\t\tcurNode.IEbugfix=(getParam(\'hideselects\',curNode.title)==\'on\')?true:false;\n
-\t\t\tcurNode.fixX=parseInt(getParam(\'fixedrelx\',curNode.title));\n
-\t\t\tcurNode.fixY=parseInt(getParam(\'fixedrely\',curNode.title));\n
-\t\t\tcurNode.absX=parseInt(getParam(\'fixedabsx\',curNode.title));\n
-\t\t\tcurNode.absY=parseInt(getParam(\'fixedabsy\',curNode.title));\n
-\t\t\tcurNode.offY=(getParam(\'offsety\',curNode.title)!=\'\')?parseInt(getParam(\'offsety\',curNode.title)):10;\n
-\t\t\tcurNode.offX=(getParam(\'offsetx\',curNode.title)!=\'\')?parseInt(getParam(\'offsetx\',curNode.title)):10;\n
-\t\t\tcurNode.fade=(getParam(\'fade\',curNode.title)==\'on\')?true:false;\n
-\t\t\tcurNode.fadespeed=(getParam(\'fadespeed\',curNode.title)!=\'\')?getParam(\'fadespeed\',curNode.title):0.04;\n
-\t\t\tcurNode.delay=(getParam(\'delay\',curNode.title)!=\'\')?parseInt(getParam(\'delay\',curNode.title)):0;\n
-\t\t\tif (getParam(\'requireclick\',curNode.title)==\'on\') {\n
-\t\t\t\tcurNode.requireclick=true;\n
-\t\t\t\tdocument.all?curNode.attachEvent(\'onclick\',showHideBox):curNode.addEventListener(\'click\',showHideBox,false);\n
-\t\t\t\tdocument.all?curNode.attachEvent(\'onmouseover\',hideBox):curNode.addEventListener(\'mouseover\',hideBox,false);\n
-\t\t\t}\n
-\t\t\telse {// Note : if requireclick is on the stop clicks are ignored \t\t\t\n
- \t\t\tif (getParam(\'doubleclickstop\',curNode.title)!=\'off\') {\n
- \t\t\t\tdocument.all?curNode.attachEvent(\'ondblclick\',pauseBox):curNode.addEventListener(\'dblclick\',pauseBox,false);\n
- \t\t\t}\t\n
- \t\t\tif (getParam(\'singleclickstop\',curNode.title)==\'on\') {\n
- \t\t\t\tdocument.all?curNode.attachEvent(\'onclick\',pauseBox):curNode.addEventListener(\'click\',pauseBox,false);\n
- \t\t\t}\n
- \t\t}\n
-\t\t\tcurNode.windowLock=getParam(\'windowlock\',curNode.title).toLowerCase()==\'off\'?false:true;\n
-\t\t\tcurNode.title=\'\';\n
-\t\t\tcurNode.hasbox=1;\n
-\t }\n
-\t else\n
-\t curNode.hasbox=2; \n
-}\n
-\n
-\n
-function getParam(param,list) {\n
-\tvar reg = new RegExp(\'([^a-zA-Z]\' + param + \'|^\' + param + \')\\\\s*=\\\\s*\\\\[\\\\s*(((\\\\[\\\\[)|(\\\\]\\\\])|([^\\\\]\\\\[]))*)\\\\s*\\\\]\');\n
-\tvar res = reg.exec(list);\n
-\tvar returnvar;\n
-\tif(res)\n
-\t\treturn res[2].replace(\'[[\',\'[\').replace(\']]\',\']\');\n
-\telse\n
-\t\treturn \'\';\n
-}\n
-\n
-function Left(elem){\t\n
-\tvar x=0;\n
-\tif (elem.calcLeft)\n
-\t\treturn elem.calcLeft;\n
-\tvar oElem=elem;\n
-\twhile(elem){\n
-\t\t if ((elem.currentStyle)&& (!isNaN(parseInt(elem.currentStyle.borderLeftWidth)))&&(x!=0))\n
-\t\t \tx+=parseInt(elem.currentStyle.borderLeftWidth);\n
-\t\t x+=elem.offsetLeft;\n
-\t\t elem=elem.offsetParent;\n
-\t } \n
-\toElem.calcLeft=x;\n
-\treturn x;\n
-\t}\n
-\n
-function Top(elem){\n
-\t var x=0;\n
-\t if (elem.calcTop)\n
-\t \treturn elem.calcTop;\n
-\t var oElem=elem;\n
-\t while(elem){\t\t\n
-\t \t if ((elem.currentStyle)&& (!isNaN(parseInt(elem.currentStyle.borderTopWidth)))&&(x!=0))\n
-\t\t \tx+=parseInt(elem.currentStyle.borderTopWidth); \n
-\t\t x+=elem.offsetTop;\n
-\t elem=elem.offsetParent;\n
- \t } \n
- \t oElem.calcTop=x;\n
- \t return x;\n
- \t \n
-}\n
-\n
-var ah,ab;\n
-function applyStyles() {\n
-\tif(ab)\n
-\t\toDv.removeChild(dvBdy);\n
-\tif (ah)\n
-\t\toDv.removeChild(dvHdr);\n
-\tdvHdr=document.createElement("div");\n
-\tdvBdy=document.createElement("div");\n
-\tCBE.boCSSBDY?dvBdy.className=CBE.boCSSBDY:defBdyStyle();\n
-\tCBE.boCSSHDR?dvHdr.className=CBE.boCSSHDR:defHdrStyle();\n
-\tdvHdr.innerHTML=CBE.boHDR;\n
-\tdvBdy.innerHTML=CBE.boBDY;\n
-\tah=false;\n
-\tab=false;\n
-\tif (CBE.boHDR!=\'\') {\t\t\n
-\t\toDv.appendChild(dvHdr);\n
-\t\tah=true;\n
-\t}\t\n
-\tif (CBE.boBDY!=\'\'){\n
-\t\toDv.appendChild(dvBdy);\n
-\t\tab=true;\n
-\t}\t\n
-}\n
-\n
-var CSE,iterElem,LSE,CBE,LBE, totalScrollLeft, totalScrollTop, width, height ;\n
-var ini=false;\n
-\n
-// Customised function for inner window dimension\n
-function SHW() {\n
- if (document.body && (document.body.clientWidth !=0)) {\n
- width=document.body.clientWidth;\n
- height=document.body.clientHeight;\n
- }\n
- if (document.documentElement && (document.documentElement.clientWidth!=0) && (document.body.clientWidth + 20 >= document.documentElement.clientWidth)) {\n
- width=document.documentElement.clientWidth; \n
- height=document.documentElement.clientHeight; \n
- } \n
- return [width,height];\n
-}\n
-\n
-\n
-var ID=null;\n
-function moveMouse(e) {\n
- //boxMove=true;\n
-\te?evt=e:evt=event;\n
-\t\n
-\tCSE=evt.target?evt.target:evt.srcElement;\n
-\t\n
-\tif (!CSE.hasbox) {\n
-\t // Note we need to scan up DOM here, some elements like TR don\'t get triggered as srcElement\n
-\t iElem=CSE;\n
-\t while ((iElem.parentNode) && (!iElem.hasbox)) {\n
-\t scanBO(iElem);\n
-\t iElem=iElem.parentNode;\n
-\t }\t \n
-\t}\n
-\t\n
-\tif ((CSE!=LSE)&&(!isChild(CSE,dvHdr))&&(!isChild(CSE,dvBdy))){\t\t\n
-\t if (!CSE.boxItem) {\n
-\t\t\titerElem=CSE;\n
-\t\t\twhile ((iterElem.hasbox==2)&&(iterElem.parentNode))\n
-\t\t\t\t\titerElem=iterElem.parentNode; \n
-\t\t\tCSE.boxItem=iterElem;\n
-\t\t\t}\n
-\t\titerElem=CSE.boxItem;\n
-\t\tif (CSE.boxItem&&(CSE.boxItem.hasbox==1)) {\n
-\t\t\tLBE=CBE;\n
-\t\t\tCBE=iterElem;\n
-\t\t\tif (CBE!=LBE) {\n
-\t\t\t\tapplyStyles();\n
-\t\t\t\tif (!CBE.requireclick)\n
-\t\t\t\t\tif (CBE.fade) {\n
-\t\t\t\t\t\tif (ID!=null)\n
-\t\t\t\t\t\t\tclearTimeout(ID);\n
-\t\t\t\t\t\tID=setTimeout("fadeIn("+CBE.fadespeed+")",CBE.delay);\n
-\t\t\t\t\t}\n
-\t\t\t\t\telse {\n
-\t\t\t\t\t\tif (ID!=null)\n
-\t\t\t\t\t\t\tclearTimeout(ID);\n
-\t\t\t\t\t\tCOL=1;\n
-\t\t\t\t\t\tID=setTimeout("oDv.style.visibility=\'visible\';ID=null;",CBE.delay);\t\t\t\t\t\t\n
-\t\t\t\t\t}\n
-\t\t\t\tif (CBE.IEbugfix) {hideSelects();} \n
-\t\t\t\tfixposx=!isNaN(CBE.fixX)?Left(CBE)+CBE.fixX:CBE.absX;\n
-\t\t\t\tfixposy=!isNaN(CBE.fixY)?Top(CBE)+CBE.fixY:CBE.absY;\t\t\t\n
-\t\t\t\tlockX=0;\n
-\t\t\t\tlockY=0;\n
-\t\t\t\tboxMove=true;\n
-\t\t\t\tox=CBE.offX?CBE.offX:10;\n
-\t\t\t\toy=CBE.offY?CBE.offY:10;\n
-\t\t\t}\n
-\t\t}\n
-\t\telse if (!isChild(CSE,dvHdr) && !isChild(CSE,dvBdy) && (boxMove))\t{\n
-\t\t\t// The conditional here fixes flickering between tables cells.\n
-\t\t\tif ((!isChild(CBE,CSE)) || (CSE.tagName!=\'TABLE\')) { \t\t\t\n
- \t\t\tCBE=null;\n
- \t\t\tif (ID!=null)\n
- \t\t\t\t\tclearTimeout(ID);\n
- \t\t\tfadeOut();\n
- \t\t\tshowSelects();\n
-\t\t\t}\n
-\t\t}\n
-\t\tLSE=CSE;\n
-\t}\n
-\telse if (((isChild(CSE,dvHdr) || isChild(CSE,dvBdy))&&(boxMove))) {\n
-\t\ttotalScrollLeft=0;\n
-\t\ttotalScrollTop=0;\n
-\t\t\n
-\t\titerElem=CSE;\n
-\t\twhile(iterElem) {\n
-\t\t\tif(!isNaN(parseInt(iterElem.scrollTop)))\n
-\t\t\t\ttotalScrollTop+=parseInt(iterElem.scrollTop);\n
-\t\t\tif(!isNaN(parseInt(iterElem.scrollLeft)))\n
-\t\t\t\ttotalScrollLeft+=parseInt(iterElem.scrollLeft);\n
-\t\t\titerElem=iterElem.parentNode;\t\t\t\n
-\t\t}\n
-\t\tif (CBE!=null) {\n
-\t\t\tboxLeft=Left(CBE)-totalScrollLeft;\n
-\t\t\tboxRight=parseInt(Left(CBE)+CBE.offsetWidth)-totalScrollLeft;\n
-\t\t\tboxTop=Top(CBE)-totalScrollTop;\n
-\t\t\tboxBottom=parseInt(Top(CBE)+CBE.offsetHeight)-totalScrollTop;\n
-\t\t\tdoCheck();\n
-\t\t}\n
-\t}\n
-\t\n
-\tif (boxMove&&CBE) {\n
-\t\t// This added to alleviate bug in IE6 w.r.t DOCTYPE\n
-\t\tbodyScrollTop=document.documentElement&&document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;\n
-\t\tbodyScrollLet=document.documentElement&&document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;\n
-\t\tmouseX=evt.pageX?evt.pageX-bodyScrollLet:evt.clientX-document.body.clientLeft;\n
-\t\tmouseY=evt.pageY?evt.pageY-bodyScrollTop:evt.clientY-document.body.clientTop;\n
-\t\tif ((CBE)&&(CBE.windowLock)) {\n
-\t\t\tmouseY < -oy?lockY=-mouseY-oy:lockY=0;\n
-\t\t\tmouseX < -ox?lockX=-mouseX-ox:lockX=0;\n
-\t\t\tmouseY > (SHW()[1]-oDv.offsetHeight-oy)?lockY=-mouseY+SHW()[1]-oDv.offsetHeight-oy:lockY=lockY;\n
-\t\t\tmouseX > (SHW()[0]-dvBdy.offsetWidth-ox)?lockX=-mouseX-ox+SHW()[0]-dvBdy.offsetWidth:lockX=lockX;\t\t\t\n
-\t\t}\n
-\t\toDv.style.left=((fixposx)||(fixposx==0))?fixposx:bodyScrollLet+mouseX+ox+lockX+"px";\n
-\t\toDv.style.top=((fixposy)||(fixposy==0))?fixposy:bodyScrollTop+mouseY+oy+lockY+"px";\t\t\n
-\t\t\n
-\t}\n
-}\n
-\n
-function doCheck() {\t\n
-\tif ( (mouseX < boxLeft) || (mouseX >boxRight) || (mouseY < boxTop) || (mouseY > boxBottom)) {\n
-\t\tif (!CBE.requireclick)\n
-\t\t\tfadeOut();\n
-\t\tif (CBE.IEbugfix) {showSelects();}\n
-\t\tCBE=null;\n
-\t}\n
-}\n
-\n
-function pauseBox(e) {\n
- e?evt=e:evt=event;\n
-\tboxMove=false;\n
-\tevt.cancelBubble=true;\n
-}\n
-\n
-function showHideBox(e) {\n
-\toDv.style.visibility=(oDv.style.visibility!=\'visible\')?\'visible\':\'hidden\';\n
-}\n
-\n
-function hideBox(e) {\n
-\toDv.style.visibility=\'hidden\';\n
-}\n
-\n
-var COL=0;\n
-var stopfade=false;\n
-function fadeIn(fs) {\n
-\t\tID=null;\n
-\t\tCOL=0;\n
-\t\toDv.style.visibility=\'visible\';\n
-\t\tfadeIn2(fs);\n
-}\n
-\n
-function fadeIn2(fs) {\n
-\t\tCOL=COL+fs;\n
-\t\tCOL=(COL>1)?1:COL;\n
-\t\toDv.style.filter=\'alpha(opacity=\'+parseInt(100*COL)+\')\';\n
-\t\toDv.style.opacity=COL;\n
-\t\tif (COL<1)\n
-\t\t setTimeout("fadeIn2("+fs+")",20);\t\t\n
-}\n
-\n
-\n
-function fadeOut() {\n
-\toDv.style.visibility=\'hidden\';\n
-\t\n
-}\n
-\n
-function isChild(s,d) {\n
-\twhile(s) {\n
-\t\tif (s==d) \n
-\t\t\treturn true;\n
-\t\ts=s.parentNode;\n
-\t}\n
-\treturn false;\n
-}\n
-\n
-var cSrc;\n
-function checkMove(e) {\n
-\te?evt=e:evt=event;\n
-\tcSrc=evt.target?evt.target:evt.srcElement;\n
-\tif ((!boxMove)&&(!isChild(cSrc,oDv))) {\n
-\t\tfadeOut();\n
-\t\tif (CBE&&CBE.IEbugfix) {showSelects();}\n
-\t\tboxMove=true;\n
-\t\tCBE=null;\n
-\t}\n
-}\n
-\n
-function showSelects(){\n
- var elements = document.getElementsByTagName("select");\n
- for (i=0;i< elements.length;i++){\n
- elements[i].style.visibility=\'visible\';\n
- }\n
-}\n
-\n
-function hideSelects(){\n
- var elements = document.getElementsByTagName("select");\n
- for (i=0;i< elements.length;i++){\n
- elements[i].style.visibility=\'hidden\';\n
- }\n
-}\n
-
-
-]]></string> </value>
- </item>
- <item>
- <key> <string>title</string> </key>
- <value> <string></string> </value>
- </item>
- </dictionary>
- </pickle>
- </record>
-</ZopeData>
More information about the Erp5-report
mailing list