gecko-dev/suite/common/pref/pref-proxies.xul

160 строки
6.7 KiB
XML

<?xml version="1.0"?>
<!--
The contents of this file are subject to the Netscape Public
License Version 1.1 (the "License"); you may not use this file
except in compliance with the License. You may obtain a copy of
the License at http://www.mozilla.org/NPL/
Software distributed under the License is distributed on an "AS
IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
implied. See the License for the specific language governing
rights and limitations under the License.
The Original Code is Mozilla Communicator client code, released
March 31, 1998.
The Initial Developer of the Original Code is Netscape
Communications Corporation. Portions created by Netscape are
Copyright (C) 1998-1999 Netscape Communications Corporation. All
Rights Reserved.
Contributor(s):
-->
<?xml-stylesheet href="chrome://pref/skin/" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://pref/locale/pref-proxies.dtd" >
<window xmlns:html="http://www.w3.org/TR/REC-html40"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
class="dialog" title="Sample Prefs Panel"
align="vertical"
onload="if( parent.handle ) parent.handle.onpageload( 'pref-proxies' ); else parent.queuedTag = 'pref-proxies';">
<html:script language="javascript" src="chrome://global/content/strres.js" />
<html:script language="javascript" src="chrome://pref/content/prefutilities.js"/>
<html:script language="JavaScript" src="chrome://pref/content/pref-proxies.js"/>
<box class="header" align="horizontal">
<titledbutton class="left-header-text" value="&lHeader;"/>
<spring class="header-spring" flex="1"/>
<titledbutton class="right-header-text" value="&rHeader;"/>
</box>
<box align="vertical" style="width: 100%;">
<titledbox orient="vertical">
<html:div>&networkHeader.label;</html:div>
<spring class="vgap"/>
<box>
<html:div>
<html:input name="directManualOrAuto" type="radio" id="networkProxyType0"
onclick="DoEnabling();"
pref="true" preftype="int" prefindex="0" prefstring="network.proxy.type"/>
<html:label for="networkProxyType0" accesskey="d" tabindex="0">
&directTypeRadio.label;
</html:label>
</html:div>
</box>
<box align="horizontal" flex="1">
<html:div>
<html:input name="directManualOrAuto" type="radio" id="networkProxyType1"
onclick="DoEnabling();"
pref="true" preftype="int" prefindex="1" prefstring="network.proxy.type"/>
<html:label for="networkProxyType1" accesskey="m" tabindex="0">
&manualTypeRadio.label;
</html:label>
</html:div>
<spring flex="1"/>
<!--<titledbutton id="viewhideManual" class="dialog push" value="&view.label;" onclick="showManualProxyConfig();"/>-->
</box>
<html:div align="horizontal" id="manual-proxy" style="width: 100px; height: 100px; padding-left: 21px">
<html:table>
<html:tr>
<html:td>&ftp.label;</html:td>
<html:td>
<html:input name="ftpproxy" type="text" id="networkProxyFTP"
pref="true" preftype="string" prefstring="network.proxy.ftp" size="20"/>
</html:td>
<html:td>&port.label;</html:td>
<html:td>
<html:input name="ftpproxyport" type="text" id="networkProxyFTP_Port"
pref="true" preftype="int" prefstring="network.proxy.ftp_port" size="5"/>
</html:td>
</html:tr>
<html:tr>
<html:td>&http.label;</html:td>
<html:td>
<html:input name="httpproxy" type="text" id="networkProxyHTTP"
pref="true" preftype="string" prefstring="network.proxy.http" size="20"/>
</html:td>
<html:td>&port.label;</html:td>
<html:td>
<html:input name="httpproxyport" type="text" id="networkProxyHTTP_Port"
pref="true" preftype="int" prefstring="network.proxy.http_port" size="5"/>
</html:td>
</html:tr>
<html:tr>
<html:td>&noproxy.label;</html:td>
<html:td>
<html:input name="noproxy" type="text" id="networkProxyNone"
pref="true" preftype="string" prefstring="network.proxy.no_proxies_on" size="20"/>
</html:td>
</html:tr>
</html:table>
</html:div>
<!-- Not supporting gopher -->
<!--
<box align="horizontal">
<html:div>&gopher.label;</html:div>
<html:div>&port.label;</html:div>
<html:input name="gopherproxyport" type="text" id="pref:string:network.proxy.gopher_port" size="5" />
</box>
-->
<!-- Not supporting wais right now -->
<!--
<box align="horizontal">
<html:div>&wais.label;</html:div>
<html:input name="waisproxy" type="text" id="pref:string:network.proxy.wais" size="20" />
<spring flex="100%"/>
<html:div>&port.label;</html:div>
<html:input name="waisproxyport" type="text" id="pref:string:network.proxy.wais_port" size="5" />
</box>
-->
<!--
<box align="put name="gopherproxy" type="text" id="pref:string:network.proxy.gopher" size="20" />
<spring flex="100%"/>
<html:div>&direct.label;</html:div>
</box>
-->
<!-- No supporting at this point -->
<!--
<box align="horizontal">
<html:div>&sockhost.label;</html:div>
<html:input name="sockshost" type="text" id="pref:string:network.socks.host" size="20" />
<spring flex="100%"/>
<html:div>&port.label;</html:div>
<html:input name="socksport" type="text" id="pref:string:network.socks.port" size="5" />
</box>
-->
<html:div>
<html:input name="directManualOrAuto" type="radio" id="networkProxyType2"
onclick="DoEnabling();"
pref="true" preftype="int" prefindex="2" prefstring="network.proxy.type"/>
<html:label for="networkProxyType2" accesskey="a" tabindex="0">&autoTypeRadio.label;</html:label>
</html:div>
<box align="horizontal">
&configAutoconfigText.label;
</box>
<box align="horizontal" flex="100%" style="width: 100%;">
<spring flex="25%"/>
<html:input name="" type="text" flex="100%" id="networkProxyAutoconfigURL"
pref="true" preftype="string" prefstring="network.proxy.autoconfig_url"/>
<titledbutton class="dialog push" id="autoReload" value="&reload.label;"/>
</box>
</titledbox>
</box>
</window>