home *** CD-ROM | disk | FTP | other *** search
/ ftp.swcp.com / ftp.swcp.com.zip / ftp.swcp.com / mac / mozilla-macos9-1.3.1.sea.bin / Mozilla1.3.1 / Chrome / comm.jar / content / communicator / search / internetresults.xul < prev    next >
Extensible Markup Language  |  2003-06-08  |  6KB  |  127 lines

  1. <?xml version="1.0"?>
  2. <?xml-stylesheet href="chrome://communicator/skin/" type="text/css"?>
  3. <?xml-stylesheet href="chrome://communicator/skin/search/search.css" type="text/css"?>
  4. <?xml-stylesheet href="chrome://communicator/skin/search/internetresults.css" type="text/css"?>
  5.  
  6. <!DOCTYPE page SYSTEM "chrome://communicator/locale/search/internetresults.dtd">
  7.  
  8. <page onload="onLoadInternetResults();"
  9.       xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  10.       xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  11.       title="&internetresults.title;"
  12.       context="disallowcontext">
  13.  
  14.   <popupset>
  15.     <popup id="disallowcontext" onpopupshowing="return false;"/>
  16.   </popupset>
  17.  
  18.   <script type="application/x-javascript" src="chrome://global/content/nsUserSettings.js"/>
  19.   <script type="application/x-javascript" src="chrome://global/content/nsJSComponentManager.js"/>
  20.   <script type="application/x-javascript" src="chrome://communicator/content/search/internetresults.js"/>
  21.   <script type="application/x-javascript" src="chrome://communicator/content/search/shared.js"/>
  22.  
  23.   <hbox id="multi-results-header"> 
  24.     <label value="&results.header.label;"/>
  25.   </hbox>
  26.  
  27.   <hbox align="center"
  28.         style="overflow: none; min-width: 1px;">
  29.     <label value="&viewbyprovider.label;"/>
  30.     <menulist id="engineTabs" ref="NC:SearchResultsSitesRoot"
  31.               datasources="rdf:internetsearch" oncommand="switchTab(1);">
  32.       <template>
  33.         <menupopup>
  34.           <menuitem id="chooseCat" uri="..." oncommand="doEngineClick(event, this);"
  35.                     src="rdf:http://home.netscape.com/NC-rdf#Icon"
  36.                     value="rdf:http://home.netscape.com/NC-rdf#category"
  37.                     label="rdf:http://home.netscape.com/NC-rdf#Name"/>
  38.         </menupopup>
  39.       </template>
  40.       <menupopup id="categoryPopup">
  41.         <menuitem id="allEngines" value="NC:SearchEngineRoot" label="&allresults.title.label;"
  42.                   oncommand="doEngineClick(event, this);"/>
  43.         <menuseparator/>
  44.       </menupopup>
  45.     </menulist>
  46.   </hbox>
  47.  
  48.   <menupopup id="contextual" onpopupshowing="return fillContextMenu('contextual', 'resultsList');"/>
  49.   
  50.   <tree id="resultsList" flex="1" class="plain"
  51.            datasources="rdf:internetsearch" context="contextual"
  52.            onselect="listSelect(event);"
  53.            onclick="listClick(event);">
  54.  
  55.     <treecols onclick="doSort(event.target.id, 'http://home.netscape.com/NC-rdf#PageRank');">
  56.       <treecol id="NameColumn" primary="true" label="&name.column.label;"
  57.                resource="http://home.netscape.com/NC-rdf#Name" flex="1"/>
  58.       <splitter class="tree-splitter"/>
  59.       <treecol id="PageRankColumn" label="&pagerank.column.label;"
  60.                resource="http://home.netscape.com/NC-rdf#PageRank"
  61.                resource2="http://home.netscape.com/NC-rdf#Name" flex="1"/>
  62.       <splitter class="tree-splitter"/>
  63.       <treecol id="RelevanceColumn" label="&relevance.column.label;"
  64.                resource="http://home.netscape.com/NC-rdf#Relevance"
  65.                resource2="http://home.netscape.com/NC-rdf#Name"
  66.                hidden="true" flex="1"/>
  67.       <splitter class="tree-splitter"/>
  68.       <treecol id="PriceColumn" label="&price.column.label;"
  69.                resource="http://home.netscape.com/NC-rdf#Price"
  70.                resource2="http://home.netscape.com/NC-rdf#Availability"
  71.                hidden="true" flex="1"/>
  72.       <splitter class="tree-splitter"/>
  73.       <treecol id="AvailabilityColumn" label="&availability.column.label;"
  74.                resource="http://home.netscape.com/NC-rdf#Availability"
  75.                resource2="http://home.netscape.com/NC-rdf#Price"
  76.                hidden="true" flex="1"/>
  77.       <splitter class="tree-splitter"/>
  78.       <treecol id="DateColumn" label="&date.column.label;"
  79.                resource="http://home.netscape.com/NC-rdf#Date"
  80.                resource2="http://home.netscape.com/NC-rdf#Name"
  81.                hidden="true" flex="1"/>
  82.       <splitter class="tree-splitter"/>
  83.       <treecol id="SiteColumn" label="&site.column.label;"
  84.                resource="http://home.netscape.com/NC-rdf#Site"
  85.                resource2="http://home.netscape.com/NC-rdf#Name" flex="1"/>
  86.       <splitter class="tree-splitter"/>
  87.       <treecol id="EngineColumn" label="&engine.column.label;"
  88.                resource="http://home.netscape.com/NC-rdf#Engine"
  89.                resource2="http://home.netscape.com/NC-rdf#Name" flex="1"/>
  90.     </treecols>
  91.  
  92.     <template>
  93.       <rule rdf:type="http://home.netscape.com/NC-rdf#BookmarkSeparator">
  94.         <treeseparator uri="..."/>
  95.       </rule>
  96.       
  97.       <rule>
  98.         <treechildren>
  99.           <treeitem uri="...">
  100.             <treerow>
  101.               <treecell src="rdf:http://home.netscape.com/NC-rdf#Icon" 
  102.                         label="rdf:http://home.netscape.com/NC-rdf#Name" />
  103.               <treecell label="rdf:http://home.netscape.com/NC-rdf#PageRank"/>
  104.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Relevance"/>
  105.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Price"/>
  106.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Availability"/>
  107.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Date"/>
  108.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Site"/>
  109.               <treecell label="rdf:http://home.netscape.com/NC-rdf#Engine"/>
  110.             </treerow>
  111.           </treeitem>
  112.         </treechildren>
  113.       </rule>
  114.     </template>
  115.  
  116.   </tree>
  117.  
  118.   <splitter id="results-splitter" persist="state" collapse="after">
  119.     <grippy/>
  120.   </splitter>
  121.   
  122.   <hbox flex="1">
  123.     <iframe id="content" flex="1" src="chrome://communicator/locale/search/default.htm"/>
  124.   </hbox>
  125.   
  126. </page>
  127.