<?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>_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> <string encoding="cdata"><![CDATA[

<tal:block metal:define-macro="main"\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="listbox_max_lines  python: int(here.getMaxLineNumber());\n
              total_line         python: int(here.total_size);\n
              current_page       python: int(here.current_page) + 1;\n
              current_page_max   python: listbox_max_lines * current_page;\n
              current_page_start python: (listbox_max_lines * (current_page - 1)) + 1;\n
              current_page_stop  python: (total_line < current_page_max) and total_line or current_page_max;\n
              your_search_text   python:here.getParamDict().get(\'your_search_text\', None)">\n
\n
  <!-- ListBox (search mode) starts here.  -->\n
  <input type="hidden" \n
         name="list_selection_name" \n
         value="default" \n
         tal:attributes="value selection_name" />\n
  <input tal:condition="md5_string" \n
         type="hidden" \n
         name="md5_object_uid_list" \n
         value="checksum" \n
         tal:attributes="value md5_string" />\n
  <input type="hidden" name="listbox_uid" value="1"/>\n
\n
  <input tal:condition="python:form_id and is_gadget_mode" type="hidden" name="gadget_form_id" tal:attributes="value form_id" />\n
  \n
  <tal:block tal:define="expand python: 1;\n
                         date_renderer python: context.getContext().ERP5Site_viewSearchResult.listbox_modification_date.render_pdf;">\n
    <tal:block metal:use-macro="template/macros/ListBoxContainer">\n
      <tal:block metal:fill-slot="ListBoxBody">\n
\n
        <div class="search result">\n
\n
          <!-- Advanced Search header -->\n
          <div class="centeredInner searchBar"\n
               tal:define="search_default_text python:context.getContext().Base_translateString(\'Search\')"\n
               tal:condition="python:not is_gadget_mode and show_search_line">\n
            <input name="top_your_search_text" size="40" value="" type="text"\n
                   value="Search" tal:attributes="value your_search_text | search_default_text;\n
                                                  onfocus string:if (this.value==\'${search_default_text}\') this.value=\'\';"\n
\n
                   onfocus="this.value=\'\';"\n
                   onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearch\');"/>\n
            <input class="button" i18n:domain="ui" i18n:attributes="value"\n
                   value="Search" name="ERP5Site_processAdvancedSearch:method" type="submit" />\n
          </div>\n
\n
          <!-- Result Header -->\n
          <div class="resultList">\n
            <div class="searchResultHeader" >\n
\n
                <span class="left" \n
                      tal:define="table_form_id request/current_form_id | form_id">\n
\n
                 <a tal:condition="not:is_gadget_mode"\n
                    tal:attributes="href string:${context_url}/${table_form_id}?list_style=table">\n
                    <img id="style_toggle_icon" \n
                         tal:attributes="src string:${portal_url_string}/images/search_style_icon.png" \n
                         alt="Search Icon"\n
                         height="16"\n
                         title="Table mode"\n
                         i18n:domain="ui" i18n:attributes="title"/>\n
                   </a>\n
\n
                  <input tal:condition="python:not is_gadget_mode and (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="python: not is_gadget_mode and 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="python: not is_gadget_mode and 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
\n
                  <input  tal:condition="python:not is_gadget_mode and (is_domain_tree_supported or is_report_tree_supported)"\n
                         type="image" src="images/showall.png" id="listbox_reset_selection"\n
                         title="Show All" name="Folder_show:method"\n
                         id="listbox_reset_selection"\n
                         value="1" alt="Flat List"\n
                         tal:attributes="src string:${portal_url_string}/images/showall.png;"\n
                         i18n:domain="ui" i18n:attributes="title" />\n
\n
                  <!-- supporting table mode for gadget mode -->\n
                  <button tal:condition="is_gadget_mode"\n
                          tal:define = "params python: {\'list_style\':\'table\'}"\n
                          title="Table mode"\n
                          type="button"\n
                          tal:attributes="onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+table_form_id,box,box_id,params);"\n
                          i18n:domain="ui" i18n:attributes="title">\n
                    <img id="style_toggle_icon"\n
                         alt="Table Mode Icon"\n
                         tal:attributes="src string:${portal_url_string}/images/search_style_icon.png" \n
                         height="16"/>\n
                  </button>\n
\n
                  <a tal:attributes="id string:${field_id}_title; href here/getListActionUrl"\n
                     tal:condition="python: here.field.get_value(\'list_action\')">\n
                    <em i18n:translate="" \n
                        i18n:domain="ui" tal:content="here/getTitle" />\n
                  </a>\n
                  <tal:block tal:condition="python: not here.field.get_value(\'list_action\')">\n
                    <em i18n:translate="" \n
                        i18n:domain="ui" tal:content="here/getTitle" />\n
                  </tal:block>\n
\n
                  <!-- supporting domain tree mode for gadget mode  (disabled)-->\n
                  <!--\n
                  <br tal:condition="is_gadget_mode"/>\n
                  <button tal:condition="python: is_gadget_mode and (is_domain_tree_supported or is_report_tree_supported)"\n
                          tal:define = "params python: {\'setFlatListMode:method\':1}"\n
                          id="listbox_flat_list_mode"\n
                          type="button"\n
                          title="Flat List"\n
                          alt="Flat List"\n
                          tal:attributes="id string:${field_id}_flat_list_mode;\n
                                          onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,box_id,params);"\n
                          i18n:domain="ui" i18n:attributes="title">\n
                    <img src="text_block.png"\n
                         tal:attributes="src string:${portal_url_string}/images/text_block.png;"/></button>\n
\n
                  <button tal:condition="python: is_gadget_mode and is_report_tree_supported"\n
                          tal:define = "params python: {\'setReportTreeMode:method\':1}"\n
                          style="cursor:pointer;" id="listbox_report_tree_mode"\n
                          type="button"\n
                          title="Report Tree"\n
                          alt="Report Tree"\n
                          tal:attributes="id string:${field_id}_report_tree_mode;\n
                                          onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,box_id,params);"\n
                          i18n:domain="ui" i18n:attributes="title">\n
                    <img src="view_tree.png"\n
                         tal:attributes="src string:${portal_url_string}/images/view_tree.png;"/></button>\n
\n
                  <button tal:condition="python: is_gadget_mode and is_domain_tree_supported"\n
                          tal:define = "params python: {\'setDomainTreeMode:method\':\'1\'}"\n
                          style="cursor:pointer;" id="listbox_domain_tree_mode"\n
                          type="button"\n
                          title="Domain Tree"\n
                          alt="Domain Tree"\n
                          tal:attributes="id string:${field_id}_domain_tree_mode;\n
                                          onclick python: real_context.KnowledgePad_generateAjaxCall(context_url+\'/\'+form_id,box,box_id,params);"\n
                          i18n:domain="ui" i18n:attributes="title">\n
                    <img src="view_choose.png"\n
                         tal:attributes="src string:${portal_url_string}/images/view_choose.png;"/></button>\n
                   -->\n
                </span>\n
\n
                <span class="right">\n
                  <tal:block tal:condition="python: total_line > 0"\n
                             tal:replace="structure python: real_context.Base_translateString(\'Results <em>${start} - ${stop}</em> of <em>${total}</em>.\', mapping=dict(start=current_page_start, stop=current_page_stop, total=total_line))"/>\n
\n
                  <span tal:condition="python: total_line == 0" \n
                        class="warning" \n
                        i18n:translate="" \n
                        i18n:domain="ui">No result !</span>\n
                </span>\n
              <div class="clear"></div>\n
            </div>\n
\n
            <!-- Found results -->\n
            <tal:block \n
            tal:condition="is_web_mode">\n
              <tal:block tal:define="global website python: real_context.getWebSiteValue()" />\n
            </tal:block>\n
            <table cellpadding="0" cellspacing="0" class="listbox search">\n
              <tal:block tal:repeat="line line_list">\n
                <tr tal:define="css python: test(repeat[\'line\'].index % 2, \'DataB\', \'DataA\');\n
                                obj line/getObject;\n
                                url obj/absolute_url;\n
                                portal_type obj/getPortalType;\n
                                is_document python:portal_type in\n
                                  real_context.getPortalDocumentTypeList() and portal_type != \'Web Page\';\n
                                hidden_pop_dom_id string:dom_popup_${field_id}_${repeat/line/index};\n
                                details_dom_id string:${field_id}_search_details_${repeat/line/index};"\n
                    tal:attributes="id string:${field_id}_data_line_${repeat/line/index}; \n
                                    class python: \'%s tbody\' % css;">\n
\n
                  <td class="icon">\n
                    <a tal:condition="is_document"\n
                       tal:attributes="href string: ${url}/Base_download"\n
                       i18n:translate="" \n
                       i18n:domain="ui" \n
                       title="Download Document">\n
                       <img tal:attributes="src obj/getIcon"\n
                        alt="Document Icon"/>\n
                    </a>\n
                    <img tal:condition="not: is_document"\n
                    tal:attributes="src obj/getIcon"\n
                    alt="Object Icon"\n
                    />\n
                  </td>\n
\n
                  <td>\n
                    <div class="item_nohighlight"\n
                         tal:attributes="onmouseover python: is_web_mode and \'showPopik(\\\'%s\\\', true)\' % hidden_pop_dom_id or None;\n
                                         onmouseout python: is_web_mode and \'showPopik(\\\'%s\\\', false)\' % hidden_pop_dom_id or None;">\n
\n
                      <div class="search_popup"  \n
                           style="z-index:100;"\n
                           tal:condition="is_web_mode" \n
                           tal:attributes="id hidden_pop_dom_id">\n
                          <span tal:replace="structure python: obj.Document_getPopupInfo(website)"/>\n
                      </div>\n
\n
                      <div>\n
                        <a tal:attributes="href string:${url}/view">\n
                          <span class="search_result_title" tal:content="python: obj.getTitle() or (hasattr(obj, \'getReference\') and obj.getReference()) or obj.getId()" />\n
                          <span class="search_result_portal_type" tal:condition="python:portal_type != \'Web Page\'" tal:content="obj/getTranslatedPortalType" />\n
                        </a>\n
                      </div>\n
\n
                      <span class="searchDetails found" \n
                            tal:content="structure python: obj.Base_showFoundText(selection=selection)"/>\n
\n
                      <div tal:condition="is_web_mode"\n
                           class="searchDetails coordinates">\n
                        <tal:block tal:condition="obj/getReference|nothing">\n
                          <a tal:attributes="href python: \'%s/view\' % website.getPermanentURL(obj)"\n
                             tal:content="obj/getReference|nothing"/>&nbsp;-&nbsp;\n
                        </tal:block>\n
\n
                        <tal:block tal:repeat="section python: website.getWebSectionValueList(obj)">\n
                          <a href="#" \n
                             tal:content="section/getCompactTranslatedTitle"\n
                             tal:attributes="href python: \'%s/view\' %section.absolute_url()"/>\n
                          &nbsp;-&nbsp;\n
                        </tal:block>\n
\n
\n
                        <tal:block tal:repeat="owner obj/Base_getOwnerInfoList">\n
                            <a tal:content="owner/title" \n
                               tal:attributes="href owner/url"/>\n
                           &nbsp;-&nbsp;\n
                        </tal:block>\n
                        <a tal:content="python: date_renderer(obj.getModificationDate())" \n
                           tal:attributes="href string: ${url}/Base_viewHistory"/>\n
                      </div>\n
                      <div tal:condition="not: is_web_mode"\n
                           class="searchDetails coordinates">\n
                        <tal:block tal:condition="obj/getReference|nothing">\n
                          <a tal:attributes="href string: ${url}/view"\n
                             tal:content="obj/getReference|nothing"/>&nbsp;-&nbsp;\n
                        </tal:block>\n
                        <a tal:content="python: date_renderer(obj.getModificationDate())" \n
                           tal:attributes="href string: ${url}/Base_viewHistory"/>\n
                      </div>\n
                    </div>\n
                  </td>\n
                </tr>\n
              </tal:block>\n
              <tr>\n
                <td class="pageNavigation" colspan="2" style="white-space: nowrap; vertical-align: middle; text-align: right;">\n
                  <tal:block metal:use-macro="real_context/page_navigation_render/macros/page_navigation" />\n
                </td>\n
              </tr>\n
            </table>\n
          </div>\n
\n
          <!-- Advanced Search footer -->\n
          <div class="centeredInner extendedSearchBar" tal:condition="python: not is_gadget_mode and show_search_line">\n
            <input name="bottom_your_search_text" size="40" value="" type="text"\n
                   onkeypress="submitFormOnEnter(event, this.form, \'ERP5Site_processAdvancedSearchBottom\');"\n
                   tal:attributes="value your_search_text" />\n
            <input class="button" i18n:domain="ui" i18n:attributes="value"\n
                   value="Search" name="ERP5Site_processAdvancedSearchBottom:method" type="submit" />\n
          </div>\n
\n
          <!-- Advanced Search footer for gadgets -->\n
          <div class="centeredInner extendedSearchBar" tal:condition="python: is_gadget_mode and show_search_line">\n
            <input tal:define ="params python: {\'ERP5Site_processAdvancedSearchBottom:method\':\'\',\'bottom_your_search_text\':\'this.value\'};"\n
                   name="bottom_your_search_text" size="25" value="" type="text"\n
                   tal:attributes=\'value your_search_text;\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
          </div>\n
\n
        </div>\n
      </tal:block>\n
    </tal:block>\n
  </tal:block>\n
  <!-- ListBox ends here.  -->\n
\n
</tal:block>\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_asSearchStyleHTML</string> </value>
        </item>
        <item>
            <key> <string>title</string> </key>
            <value> <string>Listboxes in search engine style</string> </value>
        </item>
      </dictionary>
    </pickle>
  </record>
</ZopeData>
