src/org/openbravo/erpCommon/info/ImageInfo_F1.html
author Gorka Gil <gorka.gil@openbravo.com>
Mon, 26 May 2008 11:32:48 +0000
changeset 1028 8b85368639cc
parent 984 736fbb305c78
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>Image selector</TITLE>
carlos@0
    22
carlos@0
    23
<LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></LINK>
carlos@0
    24
carlos@0
    25
      <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
asier@528
    26
      <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
carlos@0
    27
      <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
asier@528
    28
      <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
carlos@0
    29
      <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
carlos@0
    30
      <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
carlos@0
    31
      <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
carlos@0
    32
      <SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
carlos@0
    33
      <SCRIPT language="JavaScript" src="../../../../../web/js/calculator.js" type="text/javascript"></SCRIPT>
carlos@0
    34
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/calendar.js" type="text/javascript"></SCRIPT>
carlos@0
    35
<SCRIPT language="JavaScript" src="../../../../../web/js/jscalendar/lang/calendar-es.js" type="text/javascript" id="fieldCalendar"></SCRIPT>
carlos@0
    36
<SCRIPT language="JavaScript" src="../../../../../web/js/searchs.js" type="text/javascript"></SCRIPT>
carlos@0
    37
carlos@0
    38
      <script type="text/javascript">
carlos@0
    39
        dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
carlos@0
    40
      </script>
carlos@0
    41
carlos@0
    42
<SCRIPT language="JavaScript" type="text/javascript">
carlos@0
    43
function depurar() {
carlos@0
    44
	var frm = document.frmSelector;
carlos@0
    45
	if ((frm.inpName.value==null || frm.inpName.value=="") && (frm.inpURL.value==null || frm.inpURL.value=="")) {
gorka@1028
    46
		setWindowElementFocus(frm.inpName);
carlos@0
    47
		mensaje(7);
carlos@0
    48
		return false;
carlos@0
    49
	}
carlos@0
    50
	return true;
carlos@0
    51
}
asier@528
    52
asier@528
    53
function onloadFunctions(){
asier@528
    54
	keyArray[keyArray.length] = new keyArrayItem("B", "submitCommandForm('FIND', false, null, null, 'medio');", null, "ctrlKey");
asier@528
    55
}
carlos@0
    56
</SCRIPT>
asier@528
    57
	<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    58
	function onLoadDo(){
asier@528
    59
		this.windowTables = new Array(
david@628
    60
		  new windowTableId('client', 'superior', 'buttonSearch', 'superior'),
david@628
    61
		  new windowTableId('client', 'medio', 'buttonOK', 'inferior'),
david@628
    62
		  new windowTableId('client', 'inferior', 'buttonOK', 'inferior')
asier@528
    63
		);
asier@528
    64
		setWindowTableParentElement();
asier@528
    65
		enableShortcuts('popup');
asier@528
    66
		
asier@528
    67
		try {
asier@528
    68
		  onloadFunctions();
asier@528
    69
		} catch (e) {}
asier@528
    70
asier@528
    71
		setWindowElementFocus('firstElement');
asier@528
    72
	}
asier@528
    73
asier@528
    74
	function onResizeDo(){
asier@528
    75
	}
asier@528
    76
	</SCRIPT>
carlos@0
    77
</HEAD>
asier@528
    78
<BODY leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();">
carlos@0
    79
<FORM name="frmSelector" method="POST" action="ImageInfo_F2.html" target="medio">
carlos@0
    80
  <INPUT type="hidden" name="Command">
carlos@0
    81
<INPUT type="hidden" name="IsPopUpCall" value="1"></INPUT>
carlos@0
    82
  
carlos@0
    83
  
carlos@0
    84
  
carlos@0
    85
  
carlos@0
    86
  <div class="Popup_ContentPane_CircleLogo">
carlos@0
    87
  <div class="Popup_WindowLogo">
carlos@0
    88
    <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_image" src="../../../../../web/images/blank.gif" border=0/></img>
carlos@0
    89
  </div>
carlos@0
    90
</div>
carlos@0
    91
carlos@0
    92
<table cellspacing="0" cellpadding="0" width="100%">
carlos@0
    93
carlos@0
    94
  <tr>
carlos@0
    95
    <td>
carlos@0
    96
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
carlos@0
    97
        <tr class="Popup_NavBar_bg"><td></td>
carlos@0
    98
          <td class="Popup_NavBar_separator_cell"></td>
carlos@0
    99
          <td class="Popup_NavBar_bg_logo_left"></td>
carlos@0
   100
          <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
   101
          <td class="Popup_NavBar_bg_logo_right"></td>
carlos@0
   102
          <td class="Popup_NavBar_Popup_title_cell"><span>Image Selector</span></a></td>
carlos@0
   103
          <td class="Popup_NavBar_separator_cell"></td>
carlos@0
   104
        </tr>
carlos@0
   105
      </table>
carlos@0
   106
    </td>
carlos@0
   107
  </tr>
carlos@0
   108
carlos@0
   109
  <tr>
carlos@0
   110
    <td>
carlos@0
   111
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
carlos@0
   112
        <tr>
carlos@0
   113
          <td class="Popup_SeparatorBar_bg"></td>
carlos@0
   114
        </tr>
carlos@0
   115
      </table>
carlos@0
   116
    </td>
carlos@0
   117
  </tr>
carlos@0
   118
  
carlos@0
   119
   <tr>
carlos@0
   120
    <td>
asier@528
   121
      <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client">
carlos@0
   122
        <table cellspacing="0" cellpadding="0" class="Popup_Client_TableSelector">
carlos@0
   123
carlos@0
   124
          <tr>
carlos@0
   125
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   126
            <td class="TableEdition_OneCell_width"></td>
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
          </tr>
carlos@0
   132
carlos@0
   133
          <TR>
carlos@0
   134
          <TD colspan="6">
carlos@0
   135
            <TABLE class="FieldGroup" cellspacing="0" cellpadding="0" border="0">
carlos@0
   136
              <TR class="FieldGroup_TopMargin"></TR>
carlos@0
   137
              <TR>
carlos@0
   138
                <TD class="FieldGroupTitle_Left"><IMG class="FieldGroupTitle_Left_bg" border="0" src="../../../../../web/images/blank.gif"></IMG></TD>
carlos@0
   139
                <TD class="FieldGroupTitle">Primary Filters</TD>
carlos@0
   140
                <TD class="FieldGroupTitle_Right"><IMG class="FieldGroupTitle_Right_bg" border="0" src="../../../../../web/images/blank.gif"></IMG></TD>
carlos@0
   141
                <TD class="FieldGroupContent"></TD>
carlos@0
   142
carlos@0
   143
              </TR>
carlos@0
   144
              <TR class="FieldGroup_BottomMargin"></TR>
carlos@0
   145
            </TABLE>
carlos@0
   146
          </TD>
carlos@0
   147
          </TR>
carlos@0
   148
         
carlos@0
   149
       </tr>
carlos@0
   150
  
carlos@0
   151
       <tr>
asier@528
   152
         <TD class="TitleCell"><SPAN class="LabelText">Name</SPAN></TD>
david@984
   153
         <TD class="TextBox_ContentCell"><INPUT class="dojoValidateValid TextBox_OneCell_width" type="text" name="inpName" value="" id="fieldName"/></TD>
carlos@0
   154
         <td></td>
asier@528
   155
         <TD class="TitleCell"><SPAN class="LabelText">URL</SPAN></TD>
david@984
   156
         <TD class="TextBox_ContentCell" rowspan="2"><INPUT class="dojoValidateValid TextBox_btn_TwoCells_width" name="inpURL" type="text"/></TD>
carlos@0
   157
       </tr>
carlos@0
   158
       <tr>
carlos@0
   159
            <td></td>
carlos@0
   160
            <td class="Button_LeftAlign_ContentCell">
carlos@0
   161
              <div>
carlos@0
   162
                <a class="ButtonLink" href="#"
asier@528
   163
                  onfocus="setWindowElementFocus(this); window.status='Search'; return true;"
asier@528
   164
                  onblur="window.status=''; return true;"
carlos@0
   165
                  onkeypress="this.className='ButtonLink_active'; return true;"
asier@528
   166
                  onkeyup="this.className='ButtonLink_focus'; return true;"
david@628
   167
                  onclick="submitCommandForm('FIND', true);return false;"
david@628
   168
                  id="buttonSearch">
carlos@0
   169
                  <table class="Button"
carlos@0
   170
                    onmousedown="this.className='Button_active'; return true;"
carlos@0
   171
                    onmouseup="this.className='Button'; return true;"
carlos@0
   172
                    onmouseover="this.className='Button_hover'; window.status='Search'; return true;"
carlos@0
   173
                    onmouseout="this.className='Button'; window.status=''; return true;">
carlos@0
   174
                    <tr>
carlos@0
   175
                      <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
   176
                      <td class="Button_text Button_width">Search</td>
carlos@0
   177
                      <td class="Button_right"></td>
carlos@0
   178
                    </tr>
carlos@0
   179
                  </table>
carlos@0
   180
                </a>
carlos@0
   181
              </div>
carlos@0
   182
            </td>
carlos@0
   183
            <td></td>
carlos@0
   184
            <td></td>
carlos@0
   185
            <td></td>
carlos@0
   186
            <td></td>
carlos@0
   187
          </tr>
carlos@0
   188
       
carlos@0
   189
  
carlos@0
   190
  </table>
carlos@0
   191
  </div>
carlos@0
   192
  </td>
carlos@0
   193
  
carlos@0
   194
  </table>
carlos@0
   195
</FORM>
carlos@0
   196
</BODY>
carlos@0
   197
</HTML>