<?xml version="1.0"?>
<ZopeData>
  <record id="1" aka="AAAAAAAAAAE=">
    <pickle>
      <global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
    </pickle>
    <pickle>
      <dictionary>
        <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>_text</string> </key>
            <value> <unicode encoding="cdata"><![CDATA[

<div class="listbox-tree-mode-selection"\n
     metal:define-macro="listbox_tree_mode_selection">\n
\n
  <!-- Flat List -->\n
  <input tal:condition="python: is_domain_tree_supported or is_report_tree_supported"\n
         type="image" \n
         class="listbox-tree-flat-list-mode"\n
         title="Flat List" \n
         name="setFlatListMode:method"\n
         value="1" \n
         alt="Flat List"\n
         tal:attributes="src string:${portal_url_string}/images/text_block.png;"\n
         i18n:domain="ui" i18n:attributes="title; alt" />\n
\n
  <!-- Report Tree -->\n
  <input tal:condition="python: not is_gadget_mode and is_report_tree_supported"\n
         type="image" \n
         class="listbox-tree-report-tree-mode"\n
         title="Report Tree" \n
         name="setReportTreeMode:method"\n
         value="1" \n
         alt="Report Tree"\n
         tal:attributes="src string:${portal_url_string}/images/view_tree.png;"\n
         i18n:domain="ui" i18n:attributes="title; alt" />\n
\n
  <!-- Domain Tree -->\n
  <input tal:condition="python: not is_gadget_mode and is_domain_tree_supported"\n
         type="image" \n
         class="listbox-tree-domain-tree-mode"\n
         title="Domain Tree" \n
         name="setDomainTreeMode:method"\n
         value="1" \n
         alt="Domain Tree"\n
         tal:attributes="src string:${portal_url_string}/images/view_choose.png;"\n
         i18n:domain="ui" i18n:attributes="title; alt" />\n
\n
</div>\n
\n
<div class="listbox-list-style-selection"\n
     metal:define-macro="listbox_display_style_selection">\n
\n
  <span i18n:translate="" i18n:domain="ui">Display:</span>\n
\n
  <ul>\n
    <li tal:repeat="style display_style_list">\n
      <a tal:condition="is_gadget_mode"\n
         tal:content="python: style[1]"\n
         tal:define="params python: {\'list_style\':style[0]}"\n
         tal:attributes="class python: test(style[0]==list_style, \'selected\',\'\');\n
                         onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id, box, dom_id, params);"\n
         i18n:translate="" i18n:domain="ui"/>\n
\n
      <a tal:condition="not: is_gadget_mode"\n
         tal:content="python: style[1]"\n
         tal:attributes="href python: \'%s?list_style=%s\' % (form_url, style[0]);\n
                         class python: test(style[0]==list_style, \'selected\',\'\');"\n
         i18n:translate="" i18n:domain="ui"/>\n
    </li>\n
  </ul>\n
</div>\n
\n
\n
<div class=" listbox-full-text-search"\n
     metal:define-macro="listbox_global_search"\n
     tal:define="search_text python: request.get(global_search_column, \n
                                       selection.params.get(global_search_column));">\n
  <tal:block tal:condition="not: is_gadget_mode">\n
    <!-- Normal mode -->\n
    <input type="text"\n
           title="Global Search"\n
           i18n:domain="ui" \n
           i18n:attributes="title" \n
           tal:attributes="value search_text;\n
                           name global_search_column;\n
                           onkeypress string: submitFormOnEnter(event, this.form, \'${global_search_column_script}\');"/>\n
    <input class="button" \n
           value="Search"  \n
           type="submit"\n
           title="Search"\n
           i18n:domain="ui" i18n:attributes="value; title" \n
           tal:attributes="name string:${global_search_column_script}:method"/>\n
  </tal:block>\n
\n
  <tal:block tal:condition="is_gadget_mode">\n
    <!-- Gadget mode -->\n
    <input tal:define="params python: {\'%s:method\' %global_search_column_script:\'\',\'%s\' %global_search_column:\'this.value\'};"\n
           type="text"\n
           title="Global Search"\n
           i18n:domain="ui" \n
           i18n:attributes="title"\n
           tal:attributes=\'value search_text;\n
                           name global_search_column;\n
                           onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(context_url+"/"+form_id,box,box_id,params).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n
  </tal:block>\n
\n
</div>\n
\n
<!-- Number of listbox records -->\n
<div class="listbox-number-of-records"\n
     metal:define-macro="listbox_number_of_records">\n
\n
  <!-- listbox start - stop number -->\n
  <tal:block tal:condition="python: total_line > 0">\n
    <span class="listbox-current-page-start-number"\n
          tal:content="current_page_start"/> - \n
    <span class="listbox-current-page-stop-number"\n
          tal:content="current_page_stop"/> \n
    <span i18n:translate="" i18n:domain="ui">of</span>\n
  </tal:block>\n
\n
  <!-- listbox total rows number -->\n
  <span class="listbox-current-page-total-number"\n
        tal:attributes="class python: test(is_default_listbox_field, \'listbox-current-page-total-number\', \'listbox-current-page-total-number %s-current-page-total-number\' %field_id)"\n
        i18n:translate="" i18n:domain="ui">\n
    <tal:block tal:condition="is_sample" tal:replace="python: \'sample of\'" i18n:translate="" i18n:domain="ui" i18n:name="sample"></tal:block>\n
    <tal:block tal:replace="total_line" i18n:name="number">0</tal:block> records\n
  </span>\n
\n
  <!-- listbox selected rows number -->\n
  <span class="listbox-current-item-number"\n
        tal:condition="show_select_column"\n
        tal:attributes="class string:${field_id}-current-item-number"\n
        i18n:translate="" i18n:domain="ui">\n
    - <tal:block tal:replace="python: len(here.getCheckedUidList())" i18n:name="number">0</tal:block> items selected\n
  </span>\n
\n
</div>\n
\n
<!-- Listbox title -->\n
<div class="listbox-title"\n
     metal:define-macro="listbox_title"\n
     tal:define="class string:${field_id}_title;">\n
\n
  <a tal:condition="show_list_action_link"\n
     tal:attributes="class class; \n
                     href here/getListActionUrl">\n
    <span i18n:translate="" \n
          i18n:domain="ui" tal:content="here/getTitle" /></a>\n
  <tal:block tal:condition="not: show_list_action_link">\n
    <span i18n:translate="" \n
          i18n:domain="ui"\n
          tal:attributes="class class"\n
          tal:content="here/getTitle" />\n
  </tal:block>\n
  <tal:block tal:condition="not: is_web_mode">:</tal:block>\n
\n
</div>\n
\n
<!-- Listbox navigation -->\n
<div metal:define-macro="listbox_navigation"\n
     tal:define="class python: test(is_slider_mode, \'listbox-page-navigation listbox-page-navigation-slider\',\'listbox-page-navigation listbox-page-navigation-text\');"\n
     tal:attributes="class class">\n
\n
  <tal:block metal:use-macro="python: getattr(real_context, page_navigation_template).macros[\'page_navigation\']" />\n
\n
</div>\n
\n
<!-- Listbox Macros -->\n
 <!-- First & Previous button navigation --> \n
  <tal:block metal:define-macro="first_previous_page_navigation">\n
\n
    <tal:block tal:condition="python: here.current_page > 0">\n
      <button type="submit"\n
              title="First Page" name="firstPage:method"\n
              class="listbox_first_page"\n
              tal:attributes="name string:${field_id}_firstPage:method;\n
                              class python: test(is_default_listbox_field, \'listbox_first_page\', \'listbox_first_page %s_first_page\' %field_id)"\n
              i18n:domain="ui" i18n:attributes="title">\n
        <span class="image"/>\n
      </button>\n
      <button type="submit"\n
              title="Previous Page" name="previousPage:method"\n
              class="listbox_previous_page"\n
              tal:attributes="name string:${field_id}_previousPage:method;\n
                              class python: test(is_default_listbox_field, \'listbox_previous_page\', \'listbox_previous_page %s_previous_page\' %field_id)"\n
              i18n:domain="ui" i18n:attributes="title">\n
        <span class="image"/>\n
      </button>\n
\n
    </tal:block>\n
\n
  </tal:block>\n
\n
  <!-- Next & Last button navigation --> \n
  <tal:block metal:define-macro="next_last_page_navigation">\n
\n
    <tal:block tal:condition="python: here.current_page < here.total_pages - 1">\n
      <button type="submit"\n
              title="Next Page" name="nextPage:method" class="listbox_next_page"\n
              tal:attributes="name string:${field_id}_nextPage:method;\n
                              class python: test(is_default_listbox_field, \'listbox_next_page\', \'listbox_next_page %s_next_page\' %field_id)"\n
              i18n:domain="ui" i18n:attributes="title">\n
        <span class="image"/>\n
      </button>\n
      <button type="submit"\n
              title="Last Page" name="lastPage:method" class="listbox_last_page"\n
              tal:attributes="name string:${field_id}_lastPage:method;\n
                              class python: test(is_default_listbox_field, \'listbox_last_page\', \'listbox_last_page %s_last_page\' %field_id)"\n
              i18n:domain="ui" i18n:attributes="title" >\n
        <span class="image"/>\n
      </button>\n
\n
    </tal:block>\n
\n
  </tal:block>\n
\n
  <!-- First & Previous button navigation (asynchronous mode) --> \n
  <tal:block metal:define-macro="first_previous_page_navigation_asynchronous">\n
\n
    <tal:block tal:condition="python: here.current_page > 0">\n
        <button tal:define ="params python: {field_id+\'_firstPage:method\':\'\', \'list_style\':list_style}"\n
                 title="First Page" \n
                 name="firstPage"\n
                 type = "button" \n
                 class = "listbox_first_page"\n
                 tal:attributes="value string:|&lt;;\n
                                 onclick python:\n
                                 real_context.KnowledgePad_generateAjaxCall(context_url,box,dom_id,params, field_prefix=field_prefix);\n
                                 class python: test(is_default_listbox_field, \'listbox_first_page\', \'listbox_first_page %s_first_page\' %field_id)"\n
                 i18n:domain="ui" i18n:attributes="title">\n
            <span class="image"/>\n
          </button>\n
          <button tal:define ="params python: {field_id+\'_previousPage:method\':\'\',\'page_start\':here.current_page+1,\'list_style\':list_style}"\n
                  title="Previous Page"\n
                  name="previousPage"\n
                  type="button"\n
                  class="listbox_previous_page"\n
                  tal:attributes="value string:&lt;&lt;;\n
                                  onclick python: real_context.KnowledgePad_generateAjaxCall(context_url,box,dom_id,params,field_prefix=field_prefix);\n
                                  class python: test(is_default_listbox_field, \'listbox_previous_page\', \'listbox_previous_page %s_previous_page\' %field_id)"\n
                  i18n:domain="ui" i18n:attributes="title">\n
            <span class="image"/>\n
          </button>\n
        </tal:block>\n
   \n
  </tal:block>\n
\n
  <!-- Next & Last button navigation (asynchronous mode) --> \n
  <tal:block metal:define-macro="next_last_page_navigation_asynchronous">\n
\n
    <tal:block tal:condition="python: current_page < total_page">\n
      <button tal:define ="params python: {field_id+\'_nextPage:method\':\'\',\'page_start\':here.current_page+1,\'list_style\':list_style}"\n
              title="Next Page"\n
              name="nextPage"\n
              type="button"\n
              class="listbox_next_page"\n
              tal:attributes="onclick python: real_context.KnowledgePad_generateAjaxCall(context_url,box,dom_id,params,field_prefix=field_prefix);\n
                              class python: test(is_default_listbox_field, \'listbox_next_page\', \'listbox_next_page %s_next_page\' %field_id)"\n
              i18n:domain="ui" i18n:attributes="title">\n
            <span class="image"/>\n
       </button>\n
       <button tal:define ="params python: {field_id+\'_lastPage:method\':\'\',\'total_size\':int(here.total_size), \'list_style\':list_style}"\n
               title="Last Page"\n
               name="lastPage"\n
               type="button"\n
               class="listbox_last_page"\n
               tal:attributes="onclick python: real_context.KnowledgePad_generateAjaxCall(context_url,box,dom_id,params,field_prefix=field_prefix);\n
                               class python: test(is_default_listbox_field, \'listbox_last_page\', \'listbox_last_page %s_last_page\' %field_id)"\n
               i18n:domain="ui" i18n:attributes="title">\n
            <span class="image"/>\n
       </button>\n
    </tal:block>\n
\n
  </tal:block>\n
\n
  <!-- Type in listbox navigation --> \n
  <tal:block metal:define-macro="type_in_page_navigation">\n
    <input class="listbox_set_page" \n
           name="page_start" onblur="this.value=this.defaultValue"\n
           tal:attributes="name string:${field_id}_page_start;\n
                           class python: test(is_default_listbox_field, \'listbox_set_page\', \'listbox_set_page %s_set_page\' %field_id);\n
                           value python:here.current_page + 1;\n
                           size python:len(str(here.total_pages));\n
                           onkeypress string:submitFormOnEnter(event, this.form, \'${field_id}_setPage\')" />\n
    / <tal:block content="here/total_pages" />\n
  </tal:block>\n
\n
  <!-- Type in listbox page number navigation (asyncronous) --> \n
  <tal:block metal:define-macro="type_in_page_navigation_asynchronous">\n
\n
    <input class="listbox_set_page" \n
           name="page_start" onblur="this.value=this.defaultValue"\n
           tal:define="params python: {field_id+\'_setPage:method\':\'\',field_id+\'_page_start\':\'this.value\',\'list_style\':list_style}"\n
           tal:attributes=\'name string:${field_id}_page_start;\n
                           class python: test(is_default_listbox_field, "listbox_set_page", "listbox_set_page %s_set_page" %field_id);\n
                           value python:here.current_page + 1;\n
                           size python:len(str(here.total_pages));\n
                           onkeypress python:"if(event.keyCode==13){" + real_context.KnowledgePad_generateAjaxCall(context_url,box,dom_id,params,field_prefix=field_prefix).replace("\\"this.value\\"","this.value")+ "return false;;}"\'/>\n
    / <tal:block content="here/total_pages" />\n
  </tal:block>\n
\n
  <!-- Show list of direct listbox page selection -->\n
  <tal:block metal:define-macro="text_link_page_navigation">\n
    <tal:block tal:repeat="page_index page_index_list ">\n
      <a tal:attributes="href python: \'%s_setPage?%s_page_start=%s&list_selection_name=%s&listbox_uid:list=[]\' %(field_id, field_id, page_index, selection_name);\n
                         class python: test(page_index==current_page, \'selected\', \'\');\n
                         title string:Page ${page_index}"\n
         tal:content="page_index"/>\n
    </tal:block>\n
  </tal:block>\n
\n
  <!-- Show list of direct listbox page selection (asynchronous) -->\n
  <tal:block metal:define-macro="text_link_page_navigation_asynchronous">\n
    <tal:block tal:repeat="page_index page_index_list ">\n
      <a tal:define="params python: {field_id+\'_setPage:method\':\'\',field_id+\'_page_start\':page_index,\'list_style\':list_style, \'list_selection_name\':selection_name, \'listbox_uid\':[]}"\n
         tal:attributes="onclick python: real_context.KnowledgePad_generateAjaxCall(context_url,box,dom_id,params,field_prefix=field_prefix);\n
                         class python: test(page_index==current_page, \'selected\', \'\');\n
                         title string:Page ${page_index}"\n
         tal:content="page_index"/>\n
    </tal:block>\n
  </tal:block>\n
<!-- Listbox Navigation Macros -->

]]></unicode> </value>
        </item>
        <item>
            <key> <string>content_type</string> </key>
            <value> <string>text/html</string> </value>
        </item>
        <item>
            <key> <string>expand</string> </key>
            <value> <int>1</int> </value>
        </item>
        <item>
            <key> <string>id</string> </key>
            <value> <string>ListBox_asHTMLLibrary</string> </value>
        </item>
        <item>
            <key> <string>output_encoding</string> </key>
            <value> <string>iso-8859-15</string> </value>
        </item>
        <item>
            <key> <string>title</string> </key>
            <value> <unicode></unicode> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
