home *** CD-ROM | disk | FTP | other *** search
/ PC World 2003 May / PCWorld_2003-05_cd.bin / Komunik / phoenix / chrome / browser.jar / content / browser / pref / pref-connection.xul < prev    next >
Extensible Markup Language  |  2002-10-10  |  7KB  |  135 lines

  1. <?xml version="1.0"?> 
  2.  
  3. <?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
  4.  
  5. <!DOCTYPE window SYSTEM "chrome://browser/locale/pref/pref-connection.dtd" >
  6. <page xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
  7.       onload="parent.initPanel('chrome://browser/content/pref/pref-connection.xul');"
  8.       headertitle="&lHeader;">
  9.  
  10.   <script type="application/x-javascript">
  11.   <![CDATA[
  12.     var _elementIDs = ["networkProxyType",
  13.                        "networkProxyFTP", "networkProxyFTP_Port",
  14.                        "networkProxyGopher", "networkProxyGopher_Port",
  15.                        "networkProxyHTTP", "networkProxyHTTP_Port", 
  16.                        "networkProxySOCKS", "networkProxySOCKS_Port",
  17.                        "networkProxySOCKSVersion",
  18.                        "networkProxySSL", "networkProxySSL_Port", 
  19.                        "networkProxyNone", "networkProxyAutoconfigURL"];
  20.   ]]>
  21.   </script>
  22.         
  23.   <stringbundle id="bundle_prefutilities"
  24.                 src="chrome://pref/locale/prefutilities.properties"/>
  25.   <script type="application/x-javascript" src="chrome://browser/content/pref/pref-connection.js"/>
  26.   
  27.   <groupbox flex="1">
  28.     <caption label="&proxyTitle.label;"/>
  29.  
  30.     <radiogroup id="networkProxyType" prefstring="network.proxy.type">
  31.         <radio value="0" label="&directTypeRadio.label;" accesskey="&directTypeRadio.accesskey;" oncommand="DoEnabling();"/>
  32.         <radio value="1" label="&manualTypeRadio.label;" accesskey="&manualTypeRadio.accesskey;" oncommand="DoEnabling();"/>
  33.       <grid class="indent" flex="1">
  34.         <columns>
  35.           <column/>
  36.           <column flex="1"/>
  37.         </columns>
  38.         
  39.         <rows>
  40.           <row align="center">
  41.             <hbox align="center" pack="end">
  42.               <label value="&http.label;" accesskey="&http.accesskey;" control="networkProxyHTTP"/>
  43.             </hbox>
  44.             <hbox align="center">
  45.               <textbox id="networkProxyHTTP" preftype="string" prefstring="network.proxy.http"
  46.                        flex="1"/>
  47.               <label value="&port.label;" accesskey="&HTTPport.accesskey;" control="networkProxyHTTP_Port"/>
  48.               <textbox id="networkProxyHTTP_Port" preftype="int" prefstring="network.proxy.http_port"
  49.                        size="5"/>
  50.             </hbox>
  51.           </row>
  52.           <row align="center">
  53.             <hbox align="center" pack="end">
  54.               <label value="&ssl.label;" accesskey="&ssl.accesskey;" control="networkProxySSL"/>
  55.             </hbox>
  56.             <hbox align="center">
  57.               <textbox id="networkProxySSL" preftype="string" prefstring="network.proxy.ssl"
  58.                        flex="1"/>
  59.               <label value="&port.label;" accesskey="&SSLport.accesskey;" control="networkProxySSL_Port"/>
  60.               <textbox id="networkProxySSL_Port" preftype="int" prefstring="network.proxy.ssl_port"
  61.                        size="5"/>
  62.             </hbox>
  63.           </row>
  64.           <row align="center">
  65.             <hbox align="center" pack="end">
  66.               <label value="&ftp.label;" accesskey="&ftp.accesskey;" control="networkProxyFTP"/>
  67.             </hbox>
  68.             <hbox align="center">
  69.               <textbox id="networkProxyFTP" preftype="string" prefstring="network.proxy.ftp"
  70.                        flex="1"/>
  71.               <label value="&port.label;" accesskey="&FTPport.accesskey;" control="networkProxyFTP_Port"/>
  72.               <textbox id="networkProxyFTP_Port" preftype="int" prefstring="network.proxy.ftp_port"
  73.                        size="5"/>
  74.             </hbox>
  75.           </row>
  76.           <row align="center">
  77.             <hbox align="center" pack="end">
  78.               <label value="&gopher.label;" accesskey="&gopher.accesskey;" control="networkProxyGopher"/>
  79.             </hbox>
  80.             <hbox align="center">
  81.               <textbox id="networkProxyGopher" preftype="string" prefstring="network.proxy.gopher"
  82.                        flex="1"/>
  83.               <!-- gopher port doesn't have an accesskey because the window needs a redesign - bbaetz -->
  84.               <label value="&port.label;" accesskey="&gopherPort.accesskey;" control="networkProxyGopher_Port"/>
  85.               <textbox id="networkProxyGopher_Port" preftype="int" prefstring="network.proxy.gopher_port"
  86.                          prefattribute="value" size="5"/>
  87.             </hbox>
  88.           </row>
  89.           <row align="center">
  90.             <hbox align="center" pack="end">
  91.               <label value="&socks.label;" accesskey="&socks.accesskey;" control="networkProxySOCKS"/>
  92.             </hbox>
  93.             <hbox align="center">
  94.               <textbox id="networkProxySOCKS" preftype="string" prefstring="network.proxy.socks"
  95.                        flex="1"/>
  96.             <label value="&port.label;" accesskey="&SOCKSport.accesskey;" control="networkProxySOCKS_Port"/>
  97.               <textbox id="networkProxySOCKS_Port" preftype="int" prefstring="network.proxy.socks_port"
  98.                        size="5"/>
  99.             </hbox>
  100.           </row>
  101.           <row>
  102.             <spacer/>
  103.             <radiogroup id="networkProxySOCKSVersion" orient="horizontal"
  104.                         prefstring="network.proxy.socks_version">
  105.                 <radio id="networkProxySOCKSVersion4" value="4" label="&socks4.label;" accesskey="&socks4.accesskey;" />
  106.                 <radio id="networkProxySOCKSVersion5" value="5" label="&socks5.label;" accesskey="&socks5.accesskey;" />
  107.             </radiogroup>
  108.           </row>
  109.  
  110.           <row align="center"> 
  111.             <hbox align="center" pack="end">
  112.               <label value="&noproxy.label;" accesskey="&noproxy.accesskey;" control="networkProxyNone"/>
  113.             </hbox>
  114.             <textbox id="networkProxyNone" preftype="string" prefstring="network.proxy.no_proxies_on"/>
  115.           </row>
  116.           <row>
  117.             <spacer/>
  118.             <label value="&noproxyExplain.label;" control="networkProxyNone"/>
  119.           </row>
  120.         </rows>
  121.       </grid>
  122.       <radio value="2" label="&autoTypeRadio.label;" accesskey="&autoTypeRadio.accesskey;" oncommand="DoEnabling();"/>
  123.       <hbox class="indent" flex="1" align="center">
  124.         <textbox id="networkProxyAutoconfigURL" flex="1" 
  125.                  preftype="string" prefstring="network.proxy.autoconfig_url"/>
  126.         <button id="autoReload" label="&reload.label;" accesskey="&reload.accesskey;"
  127.                 oncommand="ReloadPAC();"
  128.                 prefstring="pref.advanced.proxies.disable_button.reload"/>
  129.       </hbox>
  130.     </radiogroup>
  131.  
  132.   </groupbox>
  133. </page>
  134.  
  135.