src/org/openbravo/erpCommon/info/UserContact_F1.html
author Gorka Gil <gorka.gil@openbravo.com>
Mon, 26 May 2008 11:32:48 +0000
changeset 1028 8b85368639cc
parent 961 e244d7005cd9
child 1044 8691bbc94032
permissions -rw-r--r--
Manual windows of bug 0000436 Blank required fields don't take the focus
carlos@0
     1
<!--
carlos@0
     2
 *************************************************************************
carlos@0
     3
 * The contents of this file are subject to the Openbravo  Public  License
carlos@0
     4
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
carlos@0
     5
 * Version 1.1  with a permitted attribution clause; you may not  use this
carlos@0
     6
 * file except in compliance with the License. You  may  obtain  a copy of
carlos@0
     7
 * the License at http://www.openbravo.com/legal/license.html 
carlos@0
     8
 * Software distributed under the License  is  distributed  on  an "AS IS"
carlos@0
     9
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
carlos@0
    10
 * License for the specific  language  governing  rights  and  limitations
carlos@0
    11
 * under the License. 
carlos@0
    12
 * The Original Code is Openbravo ERP. 
carlos@0
    13
 * The Initial Developer of the Original Code is Openbravo SL 
carlos@0
    14
 * All portions are Copyright (C) 2001-2007 Openbravo SL 
carlos@0
    15
 * All Rights Reserved. 
carlos@0
    16
 * Contributor(s):  ______________________________________.
carlos@0
    17
 ************************************************************************
carlos@0
    18
-->
carlos@0
    19
<HTML>
carlos@0
    20
<HEAD>
carlos@0
    21
<TITLE>User selector</TITLE>
carlos@0
    22
<LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></LINK>
carlos@0
    23
carlos@0
    24
      <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
asier@528
    25
      <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
carlos@0
    26
      <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
asier@528
    27
      <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
carlos@0
    28
      <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
carlos@0
    29
      <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
carlos@0
    30
      <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
carlos@0
    31
      <SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
carlos@0
    32
      <SCRIPT language="JavaScript" src="../../../../../web/js/calculator.js" type="text/javascript"></SCRIPT>
carlos@0
    33
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
carlos@0
    34
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
carlos@0
    35
<SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
carlos@0
    36
carlos@0
    37
      <script type="text/javascript">
carlos@0
    38
        dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
carlos@0
    39
      </script>
carlos@0
    40
carlos@0
    41
<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    42
function onloadFunctions() {
asier@528
    43
	keyArray[keyArray.length] = new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey");
asier@528
    44
}
carlos@0
    45
carlos@0
    46
</SCRIPT>
carlos@0
    47
<SCRIPT language="JavaScript" type="text/javascript">
carlos@0
    48
function depurar() {
carlos@0
    49
	var frm = document.frmSelector;
carlos@0
    50
	if ((frm.inpKey.value==null || frm.inpKey.value=="") && (frm.inpLastResult.value==null || frm.inpLastResult.value=="") && (frm.inpFax.value==null || frm.inpFax.value=="") && (frm.inpTelephone.value==null || frm.inpTelephone.value=="")) {
gorka@1028
    51
		setWindowElementFocus(frm.inpKey);
carlos@0
    52
		mensaje(7);
carlos@0
    53
		return false;
carlos@0
    54
	}
carlos@0
    55
	return true;
carlos@0
    56
}
carlos@0
    57
</SCRIPT>
asier@528
    58
	<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    59
	function onLoadDo(){
asier@528
    60
		this.windowTables = new Array(
david@628
    61
		  new windowTableId('client', 'superior', 'buttonSearch', 'superior'),
david@628
    62
		  new windowTableId('client', 'medio', 'buttonOK', 'inferior'),
david@628
    63
		  new windowTableId('client', 'inferior', 'buttonOK', 'inferior')
asier@528
    64
		);
asier@528
    65
		setWindowTableParentElement();
asier@528
    66
		enableShortcuts('popup');
asier@528
    67
		
asier@528
    68
		try {
asier@528
    69
		  onloadFunctions();
asier@528
    70
		} catch (e) {}
asier@528
    71
asier@528
    72
		setWindowElementFocus('firstElement');
asier@528
    73
	}
asier@528
    74
asier@528
    75
	function onResizeDo(){
asier@528
    76
	}
asier@528
    77
	</SCRIPT>
carlos@0
    78
</HEAD>
asier@528
    79
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
carlos@0
    80
<FORM name="frmSelector" method="POST" action="UserContact_F2.html" target="medio">
carlos@0
    81
  <INPUT type="hidden" name="Command">
carlos@0
    82
<INPUT type="hidden" name="IsPopUpCall" value="1">
carlos@0
    83
  
carlos@0
    84
  
carlos@0
    85
  
carlos@0
    86
  
carlos@0
    87
  
carlos@0
    88
  <div class="Popup_ContentPane_CircleLogo">
carlos@0
    89
  <div class="Popup_WindowLogo">
carlos@0
    90
    <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_userContact" src="../../../../../web/images/blank.gif" border=0/></img>
carlos@0
    91
  </div>
carlos@0
    92
</div>
carlos@0
    93
carlos@0
    94
<table cellspacing="0" cellpadding="0" width="100%">
carlos@0
    95
carlos@0
    96
  <tr>
carlos@0
    97
    <td>
carlos@0
    98
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
carlos@0
    99
        <tr class="Popup_NavBar_bg"><td></td>
carlos@0
   100
          <td class="Popup_NavBar_separator_cell"></td>
carlos@0
   101
          <td class="Popup_NavBar_bg_logo_left"></td>
carlos@0
   102
          <td class="Popup_NavBar_bg_logo" width="1" onclick="abrirNuevoBrowser('http://www.openbravo.com', 'Openbravo');return false;"><IMG src="../../../../../web/images/blank.gif" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" class="Popup_NavBar_logo" /></td>
carlos@0
   103
          <td class="Popup_NavBar_bg_logo_right"></td>
carlos@0
   104
          <td class="Popup_NavBar_Popup_title_cell"><span>User Selector</span></a></td>
carlos@0
   105
          <td class="Popup_NavBar_separator_cell"></td>
carlos@0
   106
        </tr>
carlos@0
   107
      </table>
carlos@0
   108
    </td>
carlos@0
   109
  </tr>
carlos@0
   110
carlos@0
   111
  <tr>
carlos@0
   112
    <td>
carlos@0
   113
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
carlos@0
   114
        <tr>
carlos@0
   115
          <td class="Popup_SeparatorBar_bg"></td>
carlos@0
   116
        </tr>
carlos@0
   117
      </table>
carlos@0
   118
    </td>
carlos@0
   119
  </tr>
carlos@0
   120
  
carlos@0
   121
   <tr>
carlos@0
   122
    <td>
asier@528
   123
      <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client">
carlos@0
   124
        <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
carlos@0
   125
carlos@0
   126
          <tr>
carlos@0
   127
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   128
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   129
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   130
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   131
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   132
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   133
          </tr>
carlos@0
   134
carlos@0
   135
          <TR>
carlos@0
   136
          <TD colspan="6">
carlos@0
   137
            <TABLE class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
carlos@0
   138
              <TR class="FieldGroup_TopMargin"></TR>
carlos@0
   139
              <TR>
carlos@0
   140
                <TD class="FieldGroupTitle_Left"><IMG class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"></IMG></TD>
carlos@0
   141
                <TD class="FieldGroupTitle">Primary Filters</TD>
carlos@0
   142
                <TD class="FieldGroupTitle_Right"><IMG class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"></IMG></TD>
carlos@0
   143
                <TD class="FieldGroupContent"></TD>
carlos@0
   144
carlos@0
   145
              </TR>
carlos@0
   146
              <TR class="FieldGroup_BottomMargin"></TR>
carlos@0
   147
            </TABLE>
carlos@0
   148
          </TD>
carlos@0
   149
          </TR>
carlos@0
   150
         
carlos@0
   151
       </tr>
carlos@0
   152
       <tr>
asier@528
   153
         <TD class="TitleCell"><SPAN class="LabelText">Name</SPAN></TD>
carlos@0
   154
         <TD class="TextBox_ContentCell"> <INPUT type="text" name="inpKey" value="" id="fieldKey"/></TD>
carlos@0
   155
         
carlos@0
   156
         <td/>
carlos@0
   157
         <td/>
carlos@0
   158
         
asier@528
   159
         <TD class="TitleCell"><SPAN class="LabelText">Last result</SPAN></TD>
carlos@0
   160
         <TD class="TextBox_ContentCell"> <INPUT name="inpLastResult" value="" type="text"/></TD>             
carlos@0
   161
       </tr>
carlos@0
   162
       <tr>
asier@528
   163
         <TD class="TitleCell"><SPAN class="LabelText">Fax</SPAN></TD>
carlos@0
   164
         <TD class="TextBox_ContentCell"> <INPUT type="text" name="inpFax" value=""/></TD>
carlos@0
   165
         
carlos@0
   166
         <td/>
carlos@0
   167
         <td/>
carlos@0
   168
         
asier@528
   169
         <TD class="TitleCell"><SPAN class="LabelText">Phone:</SPAN></TD>
carlos@0
   170
         <TD class="TextBox_ContentCell"> <INPUT name="inpTelephone" value="" type="text"/></TD>             
carlos@0
   171
       </tr>
carlos@0
   172
       
carlos@0
   173
       <tr>
carlos@0
   174
            <td></td>
carlos@0
   175
            <td class="Button_LeftAlign_ContentCell">
carlos@0
   176
              <div>
carlos@0
   177
                <a class="ButtonLink" href="#"
asier@528
   178
                  onfocus="setWindowElementFocus(this); window.status='Search'; return true;"
asier@528
   179
                  onblur="window.status=''; return true;"
carlos@0
   180
                  onkeypress="this.className='ButtonLink_active'; return true;"
asier@528
   181
                  onkeyup="this.className='ButtonLink_focus'; return true;"
david@628
   182
                  onclick="submitCommandForm('FIND', false, null, null, 'medio');return false;"
david@628
   183
                  id="buttonSearch">
carlos@0
   184
                  <table class="Button"
carlos@0
   185
                    onmousedown="this.className='Button_active'; return true;"
carlos@0
   186
                    onmouseup="this.className='Button'; return true;"
carlos@0
   187
                    onmouseover="this.className='Button_hover'; window.status='Search'; return true;"
carlos@0
   188
                    onmouseout="this.className='Button'; window.status=''; return true;">
carlos@0
   189
                    <tr>
carlos@0
   190
                      <td class="Button_left"><img class="Button_Icon Button_Icon_search" alt="Search" title="Search" src="../../../../../web/images/blank.gif" border=0/></td>
carlos@0
   191
                      <td class="Button_text Button_width">Search</td>
carlos@0
   192
                      <td class="Button_right"></td>
carlos@0
   193
                    </tr>
carlos@0
   194
                  </table>
carlos@0
   195
                </a>
carlos@0
   196
              </div>
carlos@0
   197
            </td>
carlos@0
   198
            <td></td>
carlos@0
   199
            <td></td>
carlos@0
   200
            <td></td>
carlos@0
   201
            <td></td>
carlos@0
   202
          </tr>
carlos@0
   203
       </table>
carlos@0
   204
       </div>
carlos@0
   205
       </td>
carlos@0
   206
       
carlos@0
   207
       
carlos@0
   208
       </table>
carlos@0
   209
       
carlos@0
   210
</FORM>
carlos@0
   211
</BODY>
carlos@0
   212
</HTML>