src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.html
changeset 528 7aa737db257f
parent 482 21106cb12a14
child 552 890899f17c1e
--- a/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.html	Thu Mar 13 10:27:24 2008 +0000
+++ b/src/org/openbravo/erpCommon/ad_forms/InitialClientSetup.html	Thu Mar 13 14:33:37 2008 +0000
@@ -32,7 +32,9 @@
 <script language="JavaScript" type="text/javascript" id="paramLanguage">
   var LNG_POR_DEFECTO = "en_US";
 </script>
-<SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
+<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
+<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
 <SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></SCRIPT>
 <SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></SCRIPT>
@@ -47,7 +49,6 @@
 <SCRIPT language="JavaScript" type="text/javascript" id="paramArrayRegion">
 var arrRegion=null;
 </SCRIPT>
-<script language="JavaScript" type="text/javascript" id="keyMap"></script>
 <script type="text/javascript"> 
       //all dojo.require above this line
       dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
@@ -75,8 +76,33 @@
 	new TypeAheadCombo("inpRegion");
 }
 </SCRIPT>
+	<SCRIPT language="JavaScript" type="text/javascript">
+	function onLoadDo(){
+		this.windowTables = new Array(
+		  new windowTableId('client')
+		);
+		setWindowTableParentElement();
+		this.tabsTables = new Array(
+		  new tabTableId('tdtopTabs')
+		);
+		setTabTableParentElement();
+		enableShortcuts('edition');
+		
+		try {
+		  onloadFunctions();
+		} catch (e) {}
+		resizeArea();
+		updateMenuIcon('buttonMenu');
+
+		setWindowElementFocus('firstElement');
+	}
+
+	function onResizeDo(){
+		resizeArea();
+	}
+	</SCRIPT>
 </HEAD>
-<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onloadFunctions();resizeArea();updateMenuIcon('buttonMenu');setFocusFirstControl();" onresize="resizeArea();">
+<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
   <FORM name="frmMain" method="POST" action="InitialClientSetup.html" enctype="multipart/form-data" id="form"> 
   <INPUT type="hidden" name="Command"></INPUT>
   <input type="hidden" name="inpLastFieldChanged" value="">
@@ -205,9 +231,20 @@
                   <TD class="TextBox_ContentCell" colspan="2">
                     <INPUT dojoType="openbravo:ValidationTextbox" required="true" class="TextBox_TwoCells_width required" type="text" name="inpCliente" id="paramCliente" maxlength="30" value="Cliente"></INPUT><script>djConfig.searchIds.push("paramCliente");</script>
                   </TD>
-                  <TD class="TitleCell"><SPAN class="LabelText">Organization</SPAN></TD>
-                  <TD class="TextBox_ContentCell" colspan="2">
-                    <INPUT dojoType="openbravo:ValidationTextbox" required="true" class="TextBox_TwoCells_width required" type="text" name="inpOrganizacion" id="paramOrganizacion" size="20" maxlength="30" value="Org"></INPUT><script>djConfig.searchIds.push("paramOrganizacion");</script>
+                  <TD class="TitleCell"><SPAN class="LabelText">System Installation</SPAN></TD>
+                  <TD class="Radio_Check_ContentCell"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpSystem" id="fieldSystem" value="-1"></INPUT></SPAN></TD>
+                  <TD class="ContentCell">
+                </TR>
+                <TR>
+                  <TD class="TitleCell"><SPAN class="LabelText">Organization</SPAN></TD>
+                  <TD class="TextBox_ContentCell" colspan="2">
+                    <INPUT dojoType="openbravo:ValidationTextbox" required="true" class="TextBox_TwoCells_width required" type="text" name="inpOrganizacion" id="paramOrganizacion" size="20" maxlength="30" value="Org"></INPUT><script>djConfig.searchIds.push("paramOrganizacion");</script>
+                  </TD>
+                  <TD class="TitleCell"><SPAN class="LabelText">Currency</SPAN></TD>
+                  <TD class="Combo_ContentCell" colspan="2">
+                    <SELECT name="inpMoneda" id="inpMoneda" class="Combo Combo_TwoCells_width required" required="true">
+                      <OPTION value=""></OPTION><DIV id="reportCurrency_M"></DIV>
+                    </SELECT>
                   </TD>
                 </TR>
                 <TR>
@@ -263,28 +300,28 @@
                   </td>
                 </TR>
                 <TR>
-                  <TD class="TitleCell"> <SPAN class="LabelText">Business Partner</SPAN></TD>
-                  <TD class="Radio_Check_ContentCell"> <INPUT type="checkbox" name="inpTercero" id="fieldTercero" value="-1"></INPUT></TD>
+                  <TD class="TitleCell"><SPAN class="LabelText">Business Partner</SPAN></TD>
+                  <TD class="Radio_Check_ContentCell"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpTercero" id="fieldTercero" value="-1"></INPUT></SPAN></TD>
                   <TD class="TitleCell"></TD>
                   <TD class="ContentCell"></TD>
-                  <TD class="TitleCell"> <SPAN class="LabelText">Product</SPAN></TD>
-                  <TD class="Radio_Check_ContentCell"> <INPUT type="checkbox" name="inpProducto" id="fieldProducto" value="-1"></INPUT></TD>
+                  <TD class="TitleCell"><SPAN class="LabelText">Product</SPAN></TD>
+                  <TD class="Radio_Check_ContentCell"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpProducto" id="fieldProducto" value="-1"></INPUT></SPAN></TD>
                 </TR>
                 <TR>
-                  <TD class="TitleCell"> <SPAN class="LabelText">Project</SPAN></TD>
-                  <TD class="Radio_Check_ContentCell"> <INPUT type="checkbox" name="inpProyecto" id="fieldProyecto" value="-1"></INPUT></TD>
+                  <TD class="TitleCell"><SPAN class="LabelText">Project</SPAN></TD>
+                  <TD class="Radio_Check_ContentCell"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpProyecto" id="fieldProyecto" value="-1"></INPUT></SPAN></TD>
                   <TD class="TitleCell"></TD>
                   <TD class="ContentCell"></TD>
                   <TD class="TitleCell"></TD>
                   <TD class="ContentCell"></TD>
                 </TR>
                 <TR>
-                  <TD class="TitleCell"> <SPAN class="LabelText">Campaign</SPAN></TD>
-                  <TD class="Radio_Check_ContentCell"> <INPUT type="checkbox" name="inpCampana" id="fieldCampana" value="-1"></INPUT></TD>
+                  <TD class="TitleCell"><SPAN class="LabelText">Campaign</SPAN></TD>
+                  <TD class="Radio_Check_ContentCell"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpCampana" id="fieldCampana" value="-1"></INPUT></SPAN></TD>
                   <TD class="TitleCell"></TD>
                   <TD class="ContentCell"></TD>
-                  <TD class="TitleCell"> <SPAN class="LabelText">Sales Region</SPAN></TD>
-                  <TD class="Radio_Check_ContentCell"> <INPUT type="checkbox" name="inpZonaVentas" id="fieldZonaVentas" value="-1"></INPUT></TD>
+                  <TD class="TitleCell"><SPAN class="LabelText">Sales Region</SPAN></TD>
+                  <TD class="Radio_Check_ContentCell"><SPAN class="Checkbox_container_NOT_Focused"><INPUT type="checkbox" name="inpZonaVentas" id="fieldZonaVentas" value="-1"></INPUT></SPAN></TD>
                 </TR>
                 <TR>
                   <TD class="TitleCell"><SPAN class="LabelText">Accounting File</SPAN></TD>
@@ -300,7 +337,7 @@
                   <TD class="ContentCell"></TD>
                   <TD class="Button_RightAlign_ContentCell">
                     <div>
-                      <a class="ButtonLink" href="#" onfocus="this.className='ButtonLink_hover'; window.status='Accept'; return true;" onblur="this.className='ButtonLink'; window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_hover'; return true;" onclick="submitCommandForm('ACEPTAR',true);return false;">
+                      <a class="ButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Accept'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_focus'; return true;" onclick="submitCommandForm('ACEPTAR',true);return false;">
                         <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Accept';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
                         <tr>
                           <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Accept" title="Accept" src="../../../../../web/images/blank.gif" border=0/></td>
@@ -313,7 +350,7 @@
                   </TD>
                   <TD class="Button_LeftAlign_ContentCell">
                     <div>
-                      <a class="ButtonLink" href="#" onfocus="this.className='ButtonLink_hover'; window.status='Cancel'; return true;" onblur="this.className='ButtonLink'; window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_hover'; return true;" onclick="submitCommandForm('CANCELAR');return false;">
+                      <a class="ButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Cancel'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_focus'; return true;" onclick="submitCommandForm('CANCELAR');return false;">
                         <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Cancel';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
                         <tr>
                           <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border=0/></td>