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
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD Xhtml 1.0 Transitional//EN" "http://www.w3.org/tr/xhtml1/Dtd/xhtml1-transitional.dtd">
<!--
 *************************************************************************
 * The contents of this file are subject to the Openbravo  Public  License
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
 * Version 1.1  with a permitted attribution clause; you may not  use this
 * file except in compliance with the License. You  may  obtain  a copy of
 * the License at http://www.openbravo.com/legal/license.html 
 * Software distributed under the License  is  distributed  on  an "AS IS"
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
 * License for the specific  language  governing  rights  and  limitations
 * under the License. 
 * The Original Code is Openbravo ERP. 
 * The Initial Developer of the Original Code is Openbravo SL 
 * All portions are Copyright (C) 2001-2007 Openbravo SL 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title><TITLE_TMP id="tab">Window Title</TITLE_TMP></title>
<LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico"/>
<LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></LINK>
<FIELD_TMP id="importCSS"></FIELD_TMP>
<script language="JavaScript" type="text/javascript" id="paramDirection">
var baseDirection = "../../../../../web/";
</script>
<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
<SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>
<script language="JavaScript" type="text/javascript" id="paramLanguage">
  LNG_POR_DEFECTO = "en_US";
</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/appStatus.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>
<FIELD_TMP id="importJS"></FIELD_TMP>
<script language="JavaScript" type="text/javascript">
function depurar(action, Formulario, valor) {
  var frm = document.frmMain;
  var key = frm.inpKey;
  return depurarClient(action, Formulario, valor);
}
</script>
<script language="JavaScript" type="text/javascript" id="keyMap"></script>
<script language="JavaScript" type="text/javascript" id="fieldScript"></script>
<script language="JavaScript" type="text/javascript" id="isGeneric">
function submitThisPage(strCommand) {
  if (depurar())
    submitFormGetParams(strCommand, document.forms[0].action, getParamsScript(document.forms[0]));
	return true;
}
</script>
<script language="JavaScript" type="text/javascript" id="isNotGeneric">
function submitThisPage(strCommand) {
  submitCommandForm(strCommand, true, null, null, '_self');
	return true;
}
</script>
<script language="JavaScript" type="text/javascript">
function submitThisPageJasper() {
  var parameters = addArrayValue(parameters, "scrollbars", "1");
  openPopUp('../utility/PrintJR.html', 'JREPORT' + document.forms[0].inpadProcessId.value, null, null, null, null, false, null, true, false, parameters);
  //submitCommandForm('DEFAULT', false, null, '../utility/PrintJR.html', 'JREPORT' + document.forms[0].inpadProcessId.value);
  return true;
}

function closeThisPage() {
	window.close();
	return true;
}
</script>
	<script language="JavaScript" type="text/javascript">
	function onLoadDo(){
	    setProcessingMode('popup', false);
		this.windowTables = new Array(
		  new windowTableId('client', 'linkButtonOk')
		);
		setWindowTableParentElement();
		enableShortcuts('popup');
		


		setWindowElementFocus('firstElement');
		onloadClient();
	}

</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="onLoadDo();">
<form id="form" method="POST" action="Window_Edition.html" name="frmMain">
<input type="hidden" name="Command">
<input type="hidden" name="inpLastFieldChanged">
<input type="hidden" name="inpKey" value="" id="key">
<input type="hidden" name="inpwindowId" value="" id="window">
<input type="hidden" name="inpprocessing" value="" id="processing">
<input type="hidden" name="inpadProcessId" value="" id="fieldAD_PROCESS_ID">
<div class="Popup_ContentPane_CircleLogo">
  <div class="Popup_WindowLogo">
    <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/>
  </div>
</div>
<table cellspacing="0" cellpadding="0" width="100%">
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
        <tr class="Popup_NavBar_bg"><td></td>
          <td class="Popup_NavBar_separator_cell"></td>
          <td class="Popup_NavBar_bg_logo_left"></td>
          <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>
          <td class="Popup_NavBar_bg_logo_right"></td>
          <td class="Popup_NavBar_Popup_title_cell"><span id="processDescription">xxProcess window</span></td>
          <td class="Popup_NavBar_separator_cell"></td>
        </tr>
      </table>
    </td>
  </tr>
  
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
        <tr>
          <td class="Popup_SeparatorBar_bg"></td>
        </tr>
      </table>
    </td>
  </tr>
  <tr>
    <td>
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_InfoBar">
        <tr>
          <td class="Popup_InfoBar_Icon_cell"><IMG src="../../../../../web/images/blank.gif" border="0" class="Popup_InfoBar_Icon_info" /></td>
          <td class="Popup_InfoBar_text_table">
            <table>
              <tr>
                <td class="Popup_InfoBar_text" id="processHelp"></td>
              </tr>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
    <tr>
    <td>
      <!-- MessageBox -->
       <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
            <TBODY>
            <tr class="MessageBox_TopMargin">
              <td class="MessageBox_LeftMargin"></td>
              <td></td>
              <td class="MessageBox_RightMargin"></td>
            </tr>
            <tr>
              <td class="MessageBox_LeftMargin"></td>
              <td>
                <table cellpadding="0" cellspacing="0" style="width: 100%;">
                  <TBODY>
                  <tr>
                    <td>
                      <div class="MessageBox_TopLeft"></div>
                      <div class="MessageBox_Left"></div>
                    </td>
                    <td class="MessageBox_bg">
                      <table class="MessageBox_Top">
                      <TBODY>
                        <tr>
                          <td>
                            <span>
                            <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
                              <TBODY>
                              <tr>
                                <td class="MessageBox_Icon_ContentCell">
                                  <div class="MessageBox_Icon"></div>
                                </td>
                                <td style="vertical-align: top;" id="messageBoxIDContent">
                                  <span>
                                    <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
                                      xxInfo: AccessTableWithNoView
                                    </div>
                                    <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
                                      xxThe current information is empty.
                                    </div>
                                    <div class="MessageBox_TextSeparator"></div>
                                  </span>
                                </td>
                              </tr>
                              </TBODY>
                            </table>
                            </span>
                          </td>
                        </tr>
                        </TBODY>
                      </table>
                    </td>
                    <td class="MessageBox_RightTrans">
                      <div class="MessageBox_TopRight"></div>
                      <div class="MessageBox_Right"></div>
                    </td>
                  </tr>
                  <tr>
                    <td rowspan="2" class="MessageBox_BottomLeft">
                    </td>
                    <td class="MessageBox_BottomTrans MessageBox_bg">
                    </td>
                    <td rowspan="2" class="MessageBox_BottomRight">
                    </td>
                  </tr>
                  <tr>
                    <td class="MessageBox_Bottom">
                    </td>
                  </tr>
                  </TBODY>
                </table>
              </td>
              <td class="MessageBox_RightMargin"></td>
            </tr>
            <tr class="MessageBox_BottomMargin">
              <td class="MessageBox_LeftMargin"></td>
              <td></td>
              <td class="MessageBox_RightMargin"></td>
            </tr>
            </TBODY>
          </table> 
    </td>
  </tr>
  
  <tr>
    <td>
      <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client">
        <table cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">

          <tr>
            <td class="TableEdition_OneCell_width"></td>
            <td class="TableEdition_OneCell_width"></td>
            <td class="TableEdition_OneCell_width"></td>
            <td class="TableEdition_OneCell_width"></td>
          </tr>
          <PARAMETER_TMP id="additionalFields">xxfield</PARAMETER_TMP>
          <FIELDS_TMP id="sectionDetailFields">xxfield</FIELDS_TMP>
          <tr><td height="20px" colspan="4"></td></tr>
          <tr>
            <td></td>
            <td class="Button_RightAlign_ContentCell" id="fieldDiscardProcess">
              <div>
                <a class="ButtonLink" href="#"
                  onfocus="setWindowElementFocus(this); window.status='xx'; return true;"
                  onblur="window.status=''; return true;"
                  onkeypress="this.className='ButtonLink_active'; return true;"
                  onkeyup="this.className='ButtonLink_focus'; return true;"
                  onclick="submitThisPageJasper();return false;"
                  id="linkButtonOk">
                  <table class="Button"
                    onmousedown="this.className='Button_active'; return true;"
                    onmouseup="this.className='Button'; return true;"
                    onmouseover="this.className='Button_hover';window.status='OK';return true;"
                    onmouseout="this.className='Button'; window.status=''; return true;">
                    <tr>
                      <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>
                      <td class="Button_text Button_width" id="tdButtonOk">OK</td>
                      <td class="Button_right"></td>
                    </tr>
                  </table>
                </a>
              </div>
            </td>
            <td class="Button_RightAlign_ContentCell" id="fieldDiscardJasper">
              <div>
                <a class="ButtonLink" href="#"
                  onfocus="setWindowElementFocus(this); window.status='OK'; return true;"
                  onblur="window.status=''; return true;"
                  onkeypress="this.className='ButtonLink_active'; return true;"
                  onkeyup="this.className='ButtonLink_focus'; return true;"
                  onclick="submitThisPage('SAVE_BUTTONxx');return false;"
                  id="linkButtonOk">
                  <table class="Button"
                    onmousedown="this.className='Button_active'; return true;"
                    onmouseup="this.className='Button'; return true;"
                    onmouseover="this.className='Button_hover';window.status='OK';return true;"
                    onmouseout="this.className='Button'; window.status=''; return true;">
                    <tr>
                      <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>
                      <td class="Button_text Button_width" id="tdButtonOk">OK</td>
                      <td class="Button_right"></td>
                    </tr>
                  </table>
                </a>
              </div>
            </td>
            <td class="Button_LeftAlign_ContentCell">
              <div>
                <a class="ButtonLink" href="#"
                  onfocus="setWindowElementFocus(this); window.status='xx'; return true;"
                  onblur="window.status=''; return true;"
                  onkeypress="this.className='ButtonLink_active'; return true;"
                  onkeyup="this.className='ButtonLink_focus'; return true;"
                  onclick="closeThisPage();return false;"
                  id="linkButtonCancel">
                  <table class="Button"
                    onmousedown="this.className='Button_active'; return true;"
                    onmouseup="this.className='Button'; return true;"
                    onmouseover="this.className='Button_hover';window.status='Cancel';return true;"
                    onmouseout="this.className='Button'; window.status=''; return true;">
                    <tr>
                      <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>
                      <td class="Button_text Button_width" id="tdButtonCancel">Cancel</td>
                      <td class="Button_right"></td>
                    </tr>
                  </table>
                </a>
              </div>
            </td>
            <td></td>
          </tr>
        </table>
      </div>
    </td>
  </tr>
</table>
</form>
</body>
</html>