src-wad/src/org/openbravo/wad/Template_ActionButton.html
author David Baz Fayos <david.baz@openbravo.com>
Tue, 27 May 2008 15:26:10 +0000
changeset 1044 8691bbc94032
parent 1010 4616ad83013b
child 1090 e90964e0cce9
permissions -rw-r--r--
Removed old frame parameter of windowTableId
carlos@0
     1
<?xml version="1.0" encoding="UTF-8"?>
carlos@0
     2
<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
carlos@0
     3
<!--
carlos@0
     4
 *************************************************************************
carlos@0
     5
 * The contents of this file are subject to the Openbravo  Public  License
carlos@0
     6
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
carlos@0
     7
 * Version 1.1  with a permitted attribution clause; you may not  use this
carlos@0
     8
 * file except in compliance with the License. You  may  obtain  a copy of
carlos@0
     9
 * the License at http://www.openbravo.com/legal/license.html 
carlos@0
    10
 * Software distributed under the License  is  distributed  on  an "AS IS"
carlos@0
    11
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
carlos@0
    12
 * License for the specific  language  governing  rights  and  limitations
carlos@0
    13
 * under the License. 
carlos@0
    14
 * The Original Code is Openbravo ERP. 
carlos@0
    15
 * The Initial Developer of the Original Code is Openbravo SL 
asier@83
    16
 * All portions are Copyright (C) 2001-2007 Openbravo SL 
carlos@0
    17
 * All Rights Reserved. 
carlos@0
    18
 * Contributor(s):  ______________________________________.
carlos@0
    19
 ************************************************************************
carlos@0
    20
-->
carlos@0
    21
<html>
carlos@0
    22
<head>
carlos@0
    23
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
carlos@0
    24
<title><TITLE_TMP id="tab">Window Title</TITLE_TMP></title>
carlos@0
    25
<LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico"/>
carlos@0
    26
<LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></LINK>
carlos@0
    27
<FIELD_TMP id="importCSS"></FIELD_TMP>
carlos@0
    28
<script language="JavaScript" type="text/javascript" id="paramDirection">
carlos@0
    29
var baseDirection = "../../../../../web/";
carlos@0
    30
</script>
carlos@0
    31
<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
carlos@0
    32
<SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
carlos@0
    33
<script language="JavaScript" type="text/javascript" id="paramLanguage">
carlos@0
    34
  LNG_POR_DEFECTO = "en_US";
carlos@0
    35
</script>
david@628
    36
<SCRIPT language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></SCRIPT>
carlos@0
    37
<SCRIPT language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></SCRIPT>
david@628
    38
<SCRIPT language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></SCRIPT>
david@689
    39
<script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script> 
carlos@0
    40
<SCRIPT language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></SCRIPT>
carlos@0
    41
<SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></SCRIPT>
carlos@0
    42
<FIELD_TMP id="importJS"></FIELD_TMP>
carlos@0
    43
<script language="JavaScript" type="text/javascript">
carlos@0
    44
function depurar(action, Formulario, valor) {
carlos@0
    45
  var frm = document.frmMain;
carlos@0
    46
  var key = frm.inpKey;
carlos@0
    47
  return depurarClient(action, Formulario, valor);
carlos@0
    48
}
carlos@0
    49
</script>
carlos@0
    50
<script language="JavaScript" type="text/javascript" id="keyMap"></script>
carlos@0
    51
<script language="JavaScript" type="text/javascript" id="fieldScript"></script>
carlos@0
    52
<script language="JavaScript" type="text/javascript" id="isGeneric">
carlos@0
    53
function submitThisPage(strCommand) {
carlos@0
    54
  if (depurar())
carlos@0
    55
    submitFormGetParams(strCommand, document.forms[0].action, getParamsScript(document.forms[0]));
carlos@0
    56
	return true;
carlos@0
    57
}
carlos@0
    58
</script>
carlos@0
    59
<script language="JavaScript" type="text/javascript" id="isNotGeneric">
carlos@0
    60
function submitThisPage(strCommand) {
asier@1010
    61
  submitCommandForm(strCommand, true, null, null, '_self');
carlos@0
    62
	return true;
carlos@0
    63
}
carlos@0
    64
</script>
carlos@0
    65
<script language="JavaScript" type="text/javascript">
carlos@0
    66
function submitThisPageJasper() {
carlos@0
    67
  var parameters = addArrayValue(parameters, "scrollbars", "1");
carlos@0
    68
  openPopUp('../utility/PrintJR.html', 'JREPORT' + document.forms[0].inpadProcessId.value, null, null, null, null, false, null, true, false, parameters);
carlos@0
    69
  //submitCommandForm('DEFAULT', false, null, '../utility/PrintJR.html', 'JREPORT' + document.forms[0].inpadProcessId.value);
carlos@0
    70
  return true;
carlos@0
    71
}
carlos@0
    72
carlos@0
    73
function closeThisPage() {
carlos@0
    74
	window.close();
carlos@0
    75
	return true;
carlos@0
    76
}
carlos@0
    77
</script>
david@628
    78
	<script language="JavaScript" type="text/javascript">
david@628
    79
	function onLoadDo(){
david@689
    80
	    setProcessingMode('popup', false);
david@628
    81
		this.windowTables = new Array(
david@1044
    82
		  new windowTableId('client', 'linkButtonOk')
david@628
    83
		);
david@628
    84
		setWindowTableParentElement();
david@628
    85
		enableShortcuts('popup');
david@628
    86
		
david@628
    87
david@628
    88
david@628
    89
		setWindowElementFocus('firstElement');
david@628
    90
		onloadClient();
david@628
    91
	}
david@628
    92
david@628
    93
</script>
carlos@0
    94
</head>
david@628
    95
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="onLoadDo();">
carlos@0
    96
<form id="form" method="POST" action="Window_Edition.html" name="frmMain">
carlos@0
    97
<input type="hidden" name="Command">
carlos@0
    98
<input type="hidden" name="inpLastFieldChanged">
carlos@0
    99
<input type="hidden" name="inpKey" value="" id="key">
carlos@0
   100
<input type="hidden" name="inpwindowId" value="" id="window">
carlos@0
   101
<input type="hidden" name="inpprocessing" value="" id="processing">
carlos@0
   102
<input type="hidden" name="inpadProcessId" value="" id="fieldAD_PROCESS_ID">
carlos@0
   103
<div class="Popup_ContentPane_CircleLogo">
carlos@0
   104
  <div class="Popup_WindowLogo">
carlos@0
   105
    <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/>
carlos@0
   106
  </div>
carlos@0
   107
</div>
carlos@0
   108
<table cellspacing="0" cellpadding="0" width="100%">
carlos@0
   109
  <tr>
carlos@0
   110
    <td>
carlos@0
   111
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
carlos@0
   112
        <tr class="Popup_NavBar_bg"><td></td>
carlos@0
   113
          <td class="Popup_NavBar_separator_cell"></td>
carlos@0
   114
          <td class="Popup_NavBar_bg_logo_left"></td>
carlos@0
   115
          <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
   116
          <td class="Popup_NavBar_bg_logo_right"></td>
carlos@0
   117
          <td class="Popup_NavBar_Popup_title_cell"><span id="processDescription">xxProcess window</span></td>
carlos@0
   118
          <td class="Popup_NavBar_separator_cell"></td>
carlos@0
   119
        </tr>
carlos@0
   120
      </table>
carlos@0
   121
    </td>
carlos@0
   122
  </tr>
asier@83
   123
  
carlos@0
   124
  <tr>
carlos@0
   125
    <td>
carlos@0
   126
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
carlos@0
   127
        <tr>
carlos@0
   128
          <td class="Popup_SeparatorBar_bg"></td>
carlos@0
   129
        </tr>
carlos@0
   130
      </table>
carlos@0
   131
    </td>
carlos@0
   132
  </tr>
carlos@0
   133
  <tr>
carlos@0
   134
    <td>
carlos@0
   135
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_InfoBar">
carlos@0
   136
        <tr>
carlos@0
   137
          <td class="Popup_InfoBar_Icon_cell"><IMG src="../../../../../web/images/blank.gif" border="0" class="Popup_InfoBar_Icon_info" /></td>
carlos@0
   138
          <td class="Popup_InfoBar_text_table">
carlos@0
   139
            <table>
carlos@0
   140
              <tr>
carlos@0
   141
                <td class="Popup_InfoBar_text" id="processHelp"></td>
carlos@0
   142
              </tr>
carlos@0
   143
            </table>
carlos@0
   144
          </td>
carlos@0
   145
        </tr>
carlos@0
   146
      </table>
carlos@0
   147
    </td>
carlos@0
   148
  </tr>
asier@83
   149
    <tr>
asier@83
   150
    <td>
asier@83
   151
      <!-- MessageBox -->
asier@83
   152
       <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
asier@83
   153
            <TBODY>
asier@83
   154
            <tr class="MessageBox_TopMargin">
asier@83
   155
              <td class="MessageBox_LeftMargin"></td>
asier@83
   156
              <td></td>
asier@83
   157
              <td class="MessageBox_RightMargin"></td>
asier@83
   158
            </tr>
asier@83
   159
            <tr>
asier@83
   160
              <td class="MessageBox_LeftMargin"></td>
asier@83
   161
              <td>
asier@83
   162
                <table cellpadding="0" cellspacing="0" style="width: 100%;">
asier@83
   163
                  <TBODY>
asier@83
   164
                  <tr>
asier@83
   165
                    <td>
asier@83
   166
                      <div class="MessageBox_TopLeft"></div>
asier@83
   167
                      <div class="MessageBox_Left"></div>
asier@83
   168
                    </td>
asier@83
   169
                    <td class="MessageBox_bg">
asier@83
   170
                      <table class="MessageBox_Top">
asier@83
   171
                      <TBODY>
asier@83
   172
                        <tr>
asier@83
   173
                          <td>
asier@83
   174
                            <span>
asier@83
   175
                            <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
asier@83
   176
                              <TBODY>
asier@83
   177
                              <tr>
asier@83
   178
                                <td class="MessageBox_Icon_ContentCell">
asier@83
   179
                                  <div class="MessageBox_Icon"></div>
asier@83
   180
                                </td>
asier@83
   181
                                <td style="vertical-align: top;" id="messageBoxIDContent">
asier@83
   182
                                  <span>
asier@83
   183
                                    <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
asier@83
   184
                                      xxInfo: AccessTableWithNoView
asier@83
   185
                                    </div>
asier@83
   186
                                    <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
asier@83
   187
                                      xxThe current information is empty.
asier@83
   188
                                    </div>
asier@83
   189
                                    <div class="MessageBox_TextSeparator"></div>
asier@83
   190
                                  </span>
asier@83
   191
                                </td>
asier@83
   192
                              </tr>
asier@83
   193
                              </TBODY>
asier@83
   194
                            </table>
asier@83
   195
                            </span>
asier@83
   196
                          </td>
asier@83
   197
                        </tr>
asier@83
   198
                        </TBODY>
asier@83
   199
                      </table>
asier@83
   200
                    </td>
asier@83
   201
                    <td class="MessageBox_RightTrans">
asier@83
   202
                      <div class="MessageBox_TopRight"></div>
asier@83
   203
                      <div class="MessageBox_Right"></div>
asier@83
   204
                    </td>
asier@83
   205
                  </tr>
asier@83
   206
                  <tr>
asier@83
   207
                    <td rowspan="2" class="MessageBox_BottomLeft">
asier@83
   208
                    </td>
asier@83
   209
                    <td class="MessageBox_BottomTrans MessageBox_bg">
asier@83
   210
                    </td>
asier@83
   211
                    <td rowspan="2" class="MessageBox_BottomRight">
asier@83
   212
                    </td>
asier@83
   213
                  </tr>
asier@83
   214
                  <tr>
asier@83
   215
                    <td class="MessageBox_Bottom">
asier@83
   216
                    </td>
asier@83
   217
                  </tr>
asier@83
   218
                  </TBODY>
asier@83
   219
                </table>
asier@83
   220
              </td>
asier@83
   221
              <td class="MessageBox_RightMargin"></td>
asier@83
   222
            </tr>
asier@83
   223
            <tr class="MessageBox_BottomMargin">
asier@83
   224
              <td class="MessageBox_LeftMargin"></td>
asier@83
   225
              <td></td>
asier@83
   226
              <td class="MessageBox_RightMargin"></td>
asier@83
   227
            </tr>
asier@83
   228
            </TBODY>
asier@83
   229
          </table> 
asier@83
   230
    </td>
asier@83
   231
  </tr>
asier@83
   232
  
carlos@0
   233
  <tr>
carlos@0
   234
    <td>
david@628
   235
      <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client">
carlos@0
   236
        <table cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">
carlos@0
   237
carlos@0
   238
          <tr>
carlos@0
   239
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   240
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   241
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   242
            <td class="TableEdition_OneCell_width"></td>
carlos@0
   243
          </tr>
carlos@0
   244
          <PARAMETER_TMP id="additionalFields">xxfield</PARAMETER_TMP>
carlos@0
   245
          <FIELDS_TMP id="sectionDetailFields">xxfield</FIELDS_TMP>
carlos@0
   246
          <tr><td height="20px" colspan="4"></td></tr>
carlos@0
   247
          <tr>
carlos@0
   248
            <td></td>
carlos@0
   249
            <td class="Button_RightAlign_ContentCell" id="fieldDiscardProcess">
carlos@0
   250
              <div>
david@628
   251
                <a class="ButtonLink" href="#"
david@628
   252
                  onfocus="setWindowElementFocus(this); window.status='xx'; return true;"
david@628
   253
                  onblur="window.status=''; return true;"
david@628
   254
                  onkeypress="this.className='ButtonLink_active'; return true;"
david@628
   255
                  onkeyup="this.className='ButtonLink_focus'; return true;"
david@628
   256
                  onclick="submitThisPageJasper();return false;"
david@628
   257
                  id="linkButtonOk">
david@628
   258
                  <table class="Button"
david@628
   259
                    onmousedown="this.className='Button_active'; return true;"
david@628
   260
                    onmouseup="this.className='Button'; return true;"
david@628
   261
                    onmouseover="this.className='Button_hover';window.status='OK';return true;"
david@628
   262
                    onmouseout="this.className='Button'; window.status=''; return true;">
david@628
   263
                    <tr>
david@628
   264
                      <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="xx" title="xx" src="../../../../../web/images/blank.gif" border=0 id="buttonOk"/></td>
david@628
   265
                      <td class="Button_text Button_width" id="tdButtonOk">OK</td>
david@628
   266
                      <td class="Button_right"></td>
david@628
   267
                    </tr>
david@628
   268
                  </table>
david@628
   269
                </a>
carlos@0
   270
              </div>
carlos@0
   271
            </td>
carlos@0
   272
            <td class="Button_RightAlign_ContentCell" id="fieldDiscardJasper">
carlos@0
   273
              <div>
david@628
   274
                <a class="ButtonLink" href="#"
david@628
   275
                  onfocus="setWindowElementFocus(this); window.status='OK'; return true;"
david@628
   276
                  onblur="window.status=''; return true;"
david@628
   277
                  onkeypress="this.className='ButtonLink_active'; return true;"
david@628
   278
                  onkeyup="this.className='ButtonLink_focus'; return true;"
david@628
   279
                  onclick="submitThisPage('SAVE_BUTTONxx');return false;"
david@628
   280
                  id="linkButtonOk">
david@628
   281
                  <table class="Button"
david@628
   282
                    onmousedown="this.className='Button_active'; return true;"
david@628
   283
                    onmouseup="this.className='Button'; return true;"
david@628
   284
                    onmouseover="this.className='Button_hover';window.status='OK';return true;"
david@628
   285
                    onmouseout="this.className='Button'; window.status=''; return true;">
david@628
   286
                    <tr>
david@628
   287
                      <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="xx" title="xx" src="../../../../../web/images/blank.gif" border=0 id="buttonOk"/></td>
david@628
   288
                      <td class="Button_text Button_width" id="tdButtonOk">OK</td>
david@628
   289
                      <td class="Button_right"></td>
david@628
   290
                    </tr>
david@628
   291
                  </table>
david@628
   292
                </a>
carlos@0
   293
              </div>
carlos@0
   294
            </td>
carlos@0
   295
            <td class="Button_LeftAlign_ContentCell">
carlos@0
   296
              <div>
david@628
   297
                <a class="ButtonLink" href="#"
david@628
   298
                  onfocus="setWindowElementFocus(this); window.status='xx'; return true;"
david@628
   299
                  onblur="window.status=''; return true;"
david@628
   300
                  onkeypress="this.className='ButtonLink_active'; return true;"
david@628
   301
                  onkeyup="this.className='ButtonLink_focus'; return true;"
david@628
   302
                  onclick="closeThisPage();return false;"
david@628
   303
                  id="linkButtonCancel">
david@628
   304
                  <table class="Button"
david@628
   305
                    onmousedown="this.className='Button_active'; return true;"
david@628
   306
                    onmouseup="this.className='Button'; return true;"
david@628
   307
                    onmouseover="this.className='Button_hover';window.status='Cancel';return true;"
david@628
   308
                    onmouseout="this.className='Button'; window.status=''; return true;">
david@628
   309
                    <tr>
david@628
   310
                      <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="xx" title="PDF_Report" src="../../../../../web/images/blank.gif" border=0 title="xx" id="buttonCancel"/></td>
david@628
   311
                      <td class="Button_text Button_width" id="tdButtonCancel">Cancel</td>
david@628
   312
                      <td class="Button_right"></td>
david@628
   313
                    </tr>
david@628
   314
                  </table>
david@628
   315
                </a>
carlos@0
   316
              </div>
carlos@0
   317
            </td>
carlos@0
   318
            <td></td>
carlos@0
   319
          </tr>
carlos@0
   320
        </table>
carlos@0
   321
      </div>
carlos@0
   322
    </td>
carlos@0
   323
  </tr>
carlos@0
   324
</table>
carlos@0
   325
</form>
carlos@0
   326
</body>
carlos@0
   327
</html>