pjs/xpfe/components/search/resources/internet.xul

79 строки
2.9 KiB
XML

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/xul.css" type="text/css"?>
<?xml-stylesheet href="internet.css" type="text/css"?>
<!DOCTYPE window
[
<!ENTITY window.title.label "Search Internet">
<!ENTITY words.label "Words: ">
<!ENTITY checkbox.column.label "On">
<!ENTITY engine.column.label "Search Engines">
<!ENTITY uncheckall.button.label "Uncheck All">
<!ENTITY savesearch.button.label "Save Search in Bookmarks">
]>
<window title="&window.title.label;" style="width:100%; height:100%; background-color:white" align="vertical"
xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<html:script src="internet.js" />
<html:script src="shared.js" />
<box align="horizontal" style="width: 100%;" >
<spring align="horizontal" flex="100%" />
<titledbutton value="&words.label;" />
<html:input id="searchtext" type="text" width="20" onkeyup="if (event.which == 13) { doSearch(); }" />
<html:input type="button" value="Search" onclick="return doSearch();" />
<spring align="horizontal" flex="100%" />
</box>
<box align="horizontal" style="height: 85%; width: 100%;" flex="100%" >
<spring align="horizontal" flex="100%" />
<tree align="horizontal" id="searchengines" border="1" style="height: 90%;" flex="100%" datasources="rdf:internetsearch" >
<treecol id="CheckboxColumn" />
<treecol id="NameColumn" rdf:resource="http://home.netscape.com/NC-rdf#Name" sortActive="true" sortDirection="ascending" />
<template rootcontainment="treechildren" subcontainment="treechildren">
<treeitem uri="...">
<treerow>
<treecell treeallowevents="true">
<checkbox value="0" />
</treecell>
<treecell>
<titledbutton value="rdf:http://home.netscape.com/NC-rdf#Name" align="right" style="list-style-image: none;" />
</treecell>
</treerow>
</treeitem>
</template>
<treehead>
<treerow>
<treecell>
&checkbox.column.label;
</treecell>
<treecell resource="http://home.netscape.com/NC-rdf#Name" onclick="return doSort('NameColumn');" sortActive="true" sortDirection="ascending" >
<observes element="NameColumn" attribute="sortActive"/>
<observes element="NameColumn" attribute="sortDirection"/>
&engine.column.label;
</treecell>
</treerow>
</treehead>
<treechildren id="NC:SearchEngineRoot" open="true" />
</tree>
<spring align="horizontal" flex="100%" />
</box>
<box align="horizontal" style="width: 100%;" >
<spring align="horizontal" flex="100%" />
<html:input type="button" value="&uncheckall.button.label;" onclick="return doUncheckAll();" />
<html:input id="SaveSearch" type="button" disabled="true" value="&savesearch.button.label;" onclick="return saveSearch();" />
<spring align="horizontal" flex="100%" />
</box>
</window>