<?xml version="1.0"?>
<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>
<!DOCTYPE window SYSTEM "chrome://openerp_plugin/locale/config.dtd">

<window xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
	xmlns:html="http://www.w3.org/1999/xhtml"
	title="&title.label;" onload="myPrefObserver.register();"  unload="myPrefObserver.unregister()" height="410" width="900">
<script type="text/javascript" src="chrome://openerp_plugin/content/tiny_xmlrpc.js"></script>
<script type="text/javascript" src="chrome://openerp_plugin/content/config.js"></script>
<script type="text/javascript" src="chrome://openerp_plugin/content/loaddata.js"></script>
<script type="text/javascript" src="chrome://openerp_plugin/content/overlay.js"></script>
<tabbox>
  <tabs>
    <tab label="Configuration Settings"/>
    <tab label="Document Settings"/>
    <tab label="About"/>
  </tabs>
  <tabpanels>
    <tabpanel id="configtab">
    	<vbox >
	      	<groupbox id="gpConnection" width="770" height="300" align ="center" >
			  <caption label="&gpConnection.label;"/>
				<hbox>
					<label  align="right" id="url"  value="&txturl.label;" width="80" />
					<textbox id="txturl" width="200" readonly="true" />
					<button label="&getdblist.label;" oncommand="openConfigChange();" image="&imagesearch.value;" width="90"/>
				</hbox>
				<hbox align="center" id="database_option">
				</hbox>
				<hbox id="first">
					<label align="right" id="lbldb_list1" control="DBlist" value="&database.label;" width="80"/> 
					<textbox id="DBlist_text" width="300"/>
				</hbox>

				<hbox >
					<label align="right"  control="txtusername" value="&username.label;" width="80"/>
					<textbox id="txtusername" width="300"/>
				</hbox>
				<hbox>
					<label align="right" control="txtpassword" value="&password.label;" width="80"/>
					<textbox id="txtpassword" type="password" width="300"/>
				</hbox>
				<hbox >
					<spacer width="290"/>
					<button align="center" id="btconnection" label="&connection.label;" oncommand="testConnection();" image="&imageok.value;" width="100"/>
				</hbox>
			</groupbox>
		</vbox>
    </tabpanel>
    <tabpanel id="objecttab">
		<groupbox id="gpObject" width="700" >
		<caption label="&listDocument.header;"/>
			<hbox>
				<vbox>
					<hbox>
						<label control="txtobject" value="Title : " />
						<textbox id="txtobj" width="100"/>
						<label control="txtobject" value="&document.label;"/>
						<textbox id="txtobject" width="100"/>
						<label control="txtimagename" value="&image.label;"/>
						<textbox id="txtimagename" width="100" readonly="true" />
						<button id="btaddfile" label="&addfile.label;" oncommand="addFile();" image="&imagemoveleft.value;"/>
				
						<button id="btobjectcreate" label="&documentcreate.label;" oncommand="searchDocument();" image="&imagemovedown.value;"/>
                        <button id="btobjectdelete" label="&documentdelete.label;" oncommand="deleteDocument();" image="&imagecancel.value;"/>
					</hbox>
					
					<listbox id="listObjectListBox" flex="1" rows="10">
				        <listhead>
						<listheader label="Title"/>
				        	<listheader label="&listDocumentListBox.header;"/>
				        	<listheader label="Image"/>
				        </listhead>
				        <listcols>
				        	<listcol flex="1"/>
				        	<listcol flex="2"/>
				        	<listcol flex="3"/>
				        </listcols>
				    </listbox>
				</vbox>
				<vbox>
					<description>       </description>
				</vbox>
			</hbox>
		</groupbox>
    </tabpanel>
    <tabpanel id="abouttab">
		<groupbox id="gpAbout" width="770" align="center">
			<caption label="&gpAbout.label;"/>
			<image src="chrome://openerp_plugin/skin/developped_by.png" sizemode="stretch" align="center"/>
			<description> </description>
			<description> </description>
			<description>&develop.value;</description>
			<description> </description>
			<description> </description>
			<description>&information.value;</description>
			<description><html:a href="&openerp.value;">&openerp.value;</html:a></description>
			<description><html:a href="&axelor.value;">&axelor.value;</html:a></description>
			<description><html:a href="&tinyerp.value;">&tinyerp.value;</html:a></description>
			<description> </description>
			<description> </description>
			<description>Copyright © 2006-TODAY OpenERP SA All Rights Reserved.</description>
			<description>OpenERP is a trademark of the OpenERP SA Company. OpenERP Web is jointly developed by OpenERP SA and Axelor.</description>
			<description>Licenced under the terms of <html:a href="https://tiny.odoo.com/LICENSE.txt"> OpenERP Public License (OEPL) v1.1 (https://tiny.odoo.com/LICENSE.txt)</html:a> </description>
		</groupbox>
    </tabpanel>
  </tabpanels>
</tabbox>
<hbox align="center">
	<spacer width="800"/>
	<button label="&close.label;" oncommand="close();" image="&imagecancel.value;"/>
</hbox>
</window>
