<?xml version="1.0"?>
<!DOCTYPE dialog PUBLIC "-//MOZILLA//DTD XUL V1.0//EN" "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">

<?xml-stylesheet href="chrome://global/skin/global.css" type="text/css"?>

<dialog id="dialog-name"
        xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        persist="screenX screenY"
        title="Codes Postaux"
				buttons="cancel"
        buttonlabelcancel="Fermer"
        ondialogaccept="return false"
        onload="init(); setTimeout('sizeToContent()', 200);">

<script type="application/x-javascript" src="js/global.js" />
<script type="application/x-javascript" src="js/dlg_cp_be.js" />

<commandset>
	<command id="cmd_submit" oncommand="_submit()" />	
</commandset>

<keyset>
	<key keycode="VK_RETURN" command="cmd_submit" />
</keyset>

<hbox align="center">
  <label value="Filtre" control="filtre" accesskey="f" />
  <textbox type="search" id="filtre" flex="1" searchbutton="false" oncommand="remplir_liste(this.value);" />
</hbox>

<listbox width="180" id="liste"
				 onselect="listebox_onselect($('liste'));"
				 ondblclick="listbox_valider($('liste'));"
				 
				datasources="datas/datas.sqlite"
				querytype="storage"
				ref="*"
>
<listcols>
  <listcol />
  <listcol flex="1" />
</listcols>
<listhead>
  <listheader label="CP" />
  <listheader label="Villes" />
</listhead>

</listbox>
<vbox align="right">
<description id="Tliste" />
</vbox>
<separator class="groove" />

	<hbox>
		<vbox>
			<label value="CP" control="cp" />
			<textbox id="cp" size="8" />
		</vbox>
		
		<vbox flex="1">
			<label value="Ville" control="ville" />
			<textbox id="ville" />
		</vbox>
	</hbox>
	
	<separator class="thin" />

	<hbox>
		<button accesskey="r" label="Reset" oncommand="init()" />
		<button accesskey="s" label="Supprimer" oncommand="_delete();" />
		<button accesskey="o" label="Ajouter" id="btn_submit" default="true" command="cmd_submit" />
	</hbox>
</dialog>