src/org/openbravo/erpCommon/businessUtility/TabAttachments_F1.html
author David Baz Fayos <david.baz@openbravo.com>
Thu, 22 May 2008 21:16:56 +0000
changeset 1007 3703f3eb111a
parent 1006 2395294173e2
child 1044 8691bbc94032
permissions -rw-r--r--
Changed TabAttachments_F1 Default Action
juanpablo@378
     1
<!--
juanpablo@378
     2
 *************************************************************************
juanpablo@378
     3
 * The contents of this file are subject to the Openbravo  Public  License
juanpablo@378
     4
 * Version  1.0  (the  "License"),  being   the  Mozilla   Public  License
juanpablo@378
     5
 * Version 1.1  with a permitted attribution clause; you may not  use this
juanpablo@378
     6
 * file except in compliance with the License. You  may  obtain  a copy of
juanpablo@378
     7
 * the License at http://www.openbravo.com/legal/license.html 
juanpablo@378
     8
 * Software distributed under the License  is  distributed  on  an "AS IS"
juanpablo@378
     9
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
juanpablo@378
    10
 * License for the specific  language  governing  rights  and  limitations
juanpablo@378
    11
 * under the License. 
juanpablo@378
    12
 * The Original Code is Openbravo ERP. 
juanpablo@378
    13
 * The Initial Developer of the Original Code is Openbravo SL 
juanpablo@378
    14
 * All portions are Copyright (C) 2001-2007 Openbravo SL 
juanpablo@378
    15
 * All Rights Reserved. 
juanpablo@378
    16
 * Contributor(s):  ______________________________________.
juanpablo@378
    17
 ************************************************************************
juanpablo@378
    18
-->
juanpablo@378
    19
<HTML>
juanpablo@378
    20
<HEAD>
juanpablo@378
    21
<TITLE>Attached files</TITLE>
juanpablo@378
    22
juanpablo@378
    23
<LINK rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Popup/Popup.css" id="paramCSS"></LINK>
juanpablo@378
    24
<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
juanpablo@378
    25
<SCRIPT language="JavaScript" src="../utility/MessagesJS.js" type="text/javascript"></SCRIPT>      
juanpablo@378
    26
juanpablo@378
    27
<SCRIPT language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></SCRIPT>
juanpablo@378
    28
<SCRIPT language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></SCRIPT>
juanpablo@378
    29
juanpablo@378
    30
juanpablo@378
    31
juanpablo@378
    32
<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></SCRIPT>
juanpablo@378
    33
      <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
juanpablo@378
    34
      <script language="JavaScript" src="../../../../../web/js/dojoConfig.js" type="text/javascript"></script>
juanpablo@378
    35
      <script language="JavaScript" src="../../../../../web/js/dojo/dojo.js" type="text/javascript"></script>
asier@528
    36
      <script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
asier@528
    37
      <script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
asier@528
    38
      <script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
juanpablo@378
    39
      <SCRIPT language="JavaScript" type="text/javascript" id="paramDirection">	var baseDirection = "localhost";</SCRIPT>
juanpablo@378
    40
      <SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">	LNG_POR_DEFECTO = "en_US";</SCRIPT>
juanpablo@378
    41
      <script type="text/javascript">
juanpablo@378
    42
        dojo.hostenv.writeIncludes(); //makes debugging in Venkman possible
juanpablo@378
    43
      </script>
juanpablo@378
    44
      <script type="text/javascript">
david@1006
    45
        var selectedRow = "";
juanpablo@378
    46
        function selectActual(obj) {
david@1006
    47
          if (selectedRow != "") {
david@1006
    48
            selectedRow.className = selectedRow.className.replace(' DataGrid_Body_Row_selected', '');
juanpablo@378
    49
          }
david@1006
    50
          selectedRow = obj;
david@1006
    51
          selectedRow.className += " DataGrid_Body_Row_selected";
david@1006
    52
          selectedCheck = selectedRow.id.toString().replace('funcEvenOddRow', 'CheckNum');
david@1006
    53
          document.getElementById(selectedCheck).checked = true;
david@1006
    54
          setWindowElementFocus(document.getElementById(selectedCheck));
david@1006
    55
        }
david@1006
    56
david@1006
    57
        function HoverCell(cell) {
david@1006
    58
          cell.className = cell.className + ' DataGrid_Body_Cell_hover';
david@1006
    59
        }
david@1006
    60
david@1006
    61
        function unHoverCell(cell) {
david@1006
    62
          cell.className = cell.className.replace(' DataGrid_Body_Cell_hover', '');
david@1006
    63
        }
juanpablo@378
    64
         </script>
asier@528
    65
  	<SCRIPT language="JavaScript" type="text/javascript">
asier@528
    66
	function onLoadDo(){
asier@528
    67
		this.windowTables = new Array(
david@1007
    68
		  new windowTableId('client', null, 'buttonDownload')
asier@528
    69
		);
asier@528
    70
		setWindowTableParentElement();
asier@528
    71
		enableShortcuts('popup');
asier@528
    72
asier@528
    73
		setWindowElementFocus('firstElement');
asier@528
    74
	}
asier@528
    75
asier@528
    76
	function onResizeDo(){
asier@528
    77
	}
asier@528
    78
	</SCRIPT>         
juanpablo@378
    79
</head>
juanpablo@378
    80
juanpablo@378
    81
asier@528
    82
<body onload="onLoadDo();" onresize="onResizeDo();">
juanpablo@378
    83
juanpablo@378
    84
<div class="Popup_ContentPane_CircleLogo">
juanpablo@378
    85
  <div class="Popup_WindowLogo">
juanpablo@378
    86
    <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_attachment" src="../../../../../web/images/blank.gif" border=0/></img>
juanpablo@378
    87
  </div>
juanpablo@378
    88
</div>
juanpablo@378
    89
juanpablo@378
    90
<table cellspacing="0" cellpadding="0" width="100%">
juanpablo@378
    91
 <form id="form" method="POST" action="TabAttachments_F1.html" name="frmMain">
juanpablo@378
    92
  <INPUT type="hidden" name="Command">
juanpablo@378
    93
<INPUT type="hidden" name="IsPopUpCall" value="1">
juanpablo@378
    94
  <INPUT type="hidden" name="inpTabId" value="xx" id="paramTabId">
juanpablo@378
    95
  <INPUT type="hidden" name="inpwindowId" value="xx" id="paramWindow"> 
juanpablo@378
    96
  <INPUT type="hidden" name="inpKey" value="xx" id="paramKey">
juanpablo@378
    97
  <tr>
juanpablo@378
    98
    <td>
juanpablo@378
    99
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
juanpablo@378
   100
        <tr class="Popup_NavBar_bg"><td></td>
juanpablo@378
   101
          <td class="Popup_NavBar_separator_cell"></td>
juanpablo@378
   102
          <td class="Popup_NavBar_bg_logo_left"></td>
juanpablo@378
   103
          <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>
juanpablo@378
   104
          <td class="Popup_NavBar_bg_logo_right"></td>
juanpablo@378
   105
          <td class="Popup_NavBar_Popup_title_cell"><span>Attachment</span></td>
juanpablo@378
   106
          <td class="Popup_NavBar_separator_cell"></td>
juanpablo@378
   107
        </tr>
juanpablo@378
   108
      </table>
juanpablo@378
   109
    </td>
juanpablo@378
   110
  </tr>
juanpablo@378
   111
juanpablo@378
   112
  <tr>
juanpablo@378
   113
    <td>
juanpablo@378
   114
      <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
juanpablo@378
   115
        <tr>
juanpablo@378
   116
          <td class="Popup_SeparatorBar_bg"></td>
juanpablo@378
   117
        </tr>
juanpablo@378
   118
      </table>
juanpablo@378
   119
    </td>
juanpablo@378
   120
  </tr>
juanpablo@378
   121
juanpablo@378
   122
  
juanpablo@378
   123
  <!-- MessageBox -->
juanpablo@378
   124
                            <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
juanpablo@378
   125
                              <TBODY>
juanpablo@378
   126
                              <tr class="MessageBox_TopMargin">
juanpablo@378
   127
                                <td class="MessageBox_LeftMargin"></td>
juanpablo@378
   128
                                <td></td>
juanpablo@378
   129
                                <td class="MessageBox_RightMargin"></td>
juanpablo@378
   130
                              </tr>
juanpablo@378
   131
                              <tr>
juanpablo@378
   132
                                <td class="MessageBox_LeftMargin"></td>
juanpablo@378
   133
                                <td>
juanpablo@378
   134
juanpablo@378
   135
                                  <table cellpadding="0" cellspacing="0" style="width: 100%;">
juanpablo@378
   136
                                    <TBODY>
juanpablo@378
   137
                                    <tr>
juanpablo@378
   138
                                      <td>
juanpablo@378
   139
                                        <div class="MessageBox_TopLeft"></div>
juanpablo@378
   140
                                        <div class="MessageBox_Left"></div>
juanpablo@378
   141
                                      </td>
juanpablo@378
   142
                                      <td class="MessageBox_bg">
juanpablo@378
   143
juanpablo@378
   144
                                        <table class="MessageBox_Top">
juanpablo@378
   145
                                        <TBODY>
juanpablo@378
   146
                                          <tr>
juanpablo@378
   147
                                            <td>
juanpablo@378
   148
                                              <span>
juanpablo@378
   149
                                              <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
juanpablo@378
   150
                                                <TBODY>
juanpablo@378
   151
                                                <tr>
juanpablo@378
   152
                                                  <td class="MessageBox_Icon_ContentCell">
juanpablo@378
   153
                                                    <div class="MessageBox_Icon"></div>
juanpablo@378
   154
                                                  </td>
juanpablo@378
   155
                                                  <td style="vertical-align: top;" id="messageBoxIDContent">
juanpablo@378
   156
                                                    <span>
juanpablo@378
   157
                                                      <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
juanpablo@378
   158
                                                        xxInfo: AccessTableWithNoView
juanpablo@378
   159
                                                      </div>
juanpablo@378
   160
                                                      <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
juanpablo@378
   161
                                                        xxThe current information is empty.
juanpablo@378
   162
                                                      </div>
juanpablo@378
   163
                                                      <div class="MessageBox_TextSeparator"></div>
juanpablo@378
   164
                                                    </span>
juanpablo@378
   165
                                                  </td>
juanpablo@378
   166
                                                </tr>
juanpablo@378
   167
                                                </TBODY>
juanpablo@378
   168
                                              </table>
juanpablo@378
   169
                                              </span>
juanpablo@378
   170
                                            </td>
juanpablo@378
   171
                                          </tr>
juanpablo@378
   172
                                          </TBODY>
juanpablo@378
   173
                                        </table>
juanpablo@378
   174
juanpablo@378
   175
                                      </td>
juanpablo@378
   176
                                      <td class="MessageBox_RightTrans">
juanpablo@378
   177
                                        <div class="MessageBox_TopRight"></div>
juanpablo@378
   178
                                        <div class="MessageBox_Right"></div>
juanpablo@378
   179
                                      </td>
juanpablo@378
   180
                                    </tr>
juanpablo@378
   181
                                    <tr>
juanpablo@378
   182
                                      <td rowspan="2" class="MessageBox_BottomLeft">
juanpablo@378
   183
                                      </td>
juanpablo@378
   184
                                      <td class="MessageBox_BottomTrans MessageBox_bg">
juanpablo@378
   185
                                      </td>
juanpablo@378
   186
                                      <td rowspan="2" class="MessageBox_BottomRight">
juanpablo@378
   187
                                      </td>
juanpablo@378
   188
                                    </tr>
juanpablo@378
   189
                                    <tr>
juanpablo@378
   190
                                      <td class="MessageBox_Bottom">
juanpablo@378
   191
                                      </td>
juanpablo@378
   192
                                    </tr>
juanpablo@378
   193
                                    </TBODY>
juanpablo@378
   194
                                  </table>
juanpablo@378
   195
juanpablo@378
   196
                                </td>
juanpablo@378
   197
                                <td class="MessageBox_RightMargin"></td>
juanpablo@378
   198
                              </tr>
juanpablo@378
   199
                              <tr class="MessageBox_BottomMargin">
juanpablo@378
   200
                                <td class="MessageBox_LeftMargin"></td>
juanpablo@378
   201
                                <td></td>
juanpablo@378
   202
                                <td class="MessageBox_RightMargin"></td>
juanpablo@378
   203
                              </tr>
juanpablo@378
   204
                              </TBODY>
juanpablo@378
   205
                            </table>
juanpablo@378
   206
  
juanpablo@378
   207
  
juanpablo@378
   208
  <tr>
juanpablo@378
   209
    <td>
asier@528
   210
      <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client">
juanpablo@378
   211
        <table cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">
juanpablo@378
   212
juanpablo@378
   213
          <tr>
juanpablo@378
   214
            <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   215
            <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   216
            <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   217
            <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   218
          </tr>
juanpablo@378
   219
juanpablo@378
   220
          <tr>
asier@528
   221
            <td class="TitleCell"><SPAN class="LabelText">Attached to</SPAN></td>
juanpablo@378
   222
            <td class="ContentCell" colspan="2"> <span class="Label_ReadOnly_Text" id="paramRecordIdentifier">xxAtachedRecord</span></td>
juanpablo@378
   223
            <td/>
juanpablo@378
   224
          </tr>
juanpablo@378
   225
juanpablo@378
   226
          
juanpablo@378
   227
juanpablo@378
   228
          <tr id="noData">
juanpablo@378
   229
            <td/>
asier@528
   230
            <td colspan="2"class="TitleCell"><SPAN class="LabelText">No files attached</SPAN></td>
juanpablo@378
   231
            <td>
juanpablo@378
   232
            <td/>
juanpablo@378
   233
          </tr>
david@1006
   234
          <tr><td height="20px"></td></tr>
juanpablo@378
   235
          <tr id="widthData">
juanpablo@378
   236
            <td colspan="4">
david@1006
   237
david@1006
   238
              <table cellspacing="0" cellpadding="0" width="100%" class="DataGrid_Header_Table DataGrid_Body_Table" style="table-layout: auto;">
david@1006
   239
                <tr class="DataGrid_Body_Row"> 
david@1006
   240
                  <th width="3%"  class="DataGrid_Header_LineNoCell">&nbsp;</th>
david@1006
   241
                  <th width="3%"  class="DataGrid_Header_Cell">File name</th>
david@1006
   242
                  <th width="36%" class="DataGrid_Header_Cell">Text</th>
david@1006
   243
                  <th width="58%" class="DataGrid_Header_Cell">type</th>
david@1006
   244
                </tr>
david@1006
   245
david@1006
   246
                <div id="sectionDetail"> 
david@1007
   247
                  <tr class="DataGrid_Body_Row DataGrid_Body_Row_yy" onclick="selectActual(this); return true;" ondblclick="executeWindowButton('buttonDownload'); return true;" id="funcEvenOddRowxx">
david@1006
   248
                    <td class="DataGrid_Body_LineNoCell DataGrid_Body_Cell_RadioButton">
david@1006
   249
                      <input type="radio" name="inpcFileId" value="xx" id="CheckNumxx" class="DataGrid_RadioButton" pos="pp">
david@1006
   250
                    </td>
david@1006
   251
                    <td class="DataGrid_Body_Cell" onmouseover="HoverCell(this);" onmouseout="unHoverCell(this);" id="fieldName">xx</td>
david@1006
   252
                    <td class="DataGrid_Body_Cell" onmouseover="HoverCell(this);" onmouseout="unHoverCell(this);" id="fieldText">xx</td>
david@1006
   253
                    <td class="DataGrid_Body_Cell" onmouseover="HoverCell(this);" onmouseout="unHoverCell(this);" id="fieldDataType">xx</td>
david@1006
   254
                  </tr>
juanpablo@378
   255
                </div>
juanpablo@378
   256
              </table>
david@1006
   257
juanpablo@378
   258
             </td>
juanpablo@378
   259
          </tr>
juanpablo@378
   260
          <tr><td height="20px"></td></tr>
juanpablo@378
   261
juanpablo@378
   262
          <tr>
juanpablo@378
   263
            <td class="Button_RightAlign_ContentCell">
asier@857
   264
              <div id="editable">
david@1007
   265
                <a class="ButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Add'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_focus'; return true;" onclick="submitCommandForm('NEW', false, null, 'TabAttachments_F1.html', '_self');return false;">
asier@528
   266
                  <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Add';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
asier@528
   267
                    <tr>
asier@528
   268
                      <td class="Button_left"></td>
asier@528
   269
                      <td class="Button_text Button_width">Add</td>
asier@528
   270
                      <td class="Button_right"></td>
asier@528
   271
                    </tr>
asier@528
   272
                  </table>
asier@528
   273
                </a>
juanpablo@378
   274
              </div>
juanpablo@378
   275
            </td>
juanpablo@378
   276
            <td class="Button_RightAlign_ContentCell">
asier@857
   277
              <div id="editable">
asier@857
   278
	              <div id="widthData">
asier@857
   279
	                <a class="ButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Edit'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_focus'; return true;" onclick="submitCommandForm('EDIT', false, null, 'TabAttachments_F1.html', '_self');return false;">
asier@857
   280
	                  <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Edit';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
asier@857
   281
	                    <tr>
asier@857
   282
	                      <td class="Button_left"></td>
asier@857
   283
	                      <td class="Button_text Button_width">Edit</td>
asier@857
   284
	                      <td class="Button_right"></td>
asier@857
   285
	                    </tr>
asier@857
   286
	                  </table>
asier@857
   287
	                </a>
asier@857
   288
                </div>
juanpablo@378
   289
              </div>
juanpablo@378
   290
            </td>
juanpablo@378
   291
            <td class="Button_LeftAlign_ContentCell">
juanpablo@378
   292
              <div id="widthData">
david@1007
   293
                <a class="ButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Download'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_focus'; return true;" onclick="submitCommandForm('DISPLAY_DATA', false, null, 'TabAttachments_F1.html', '_self');return false;" id="buttonDownload">
asier@528
   294
                  <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Download';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
asier@528
   295
                    <tr>
asier@528
   296
                      <td class="Button_left"></td>
asier@528
   297
                      <td class="Button_text Button_width">Download</td>
asier@528
   298
                      <td class="Button_right"></td>
asier@528
   299
                    </tr>
asier@528
   300
                  </table>
asier@528
   301
                </a>
juanpablo@378
   302
              </div>
juanpablo@378
   303
            </td>
juanpablo@378
   304
            <td class="Button_RightAlign_ContentCell">
asier@857
   305
              <div id="editable">
asier@857
   306
	              <div id="widthData">
asier@857
   307
	                <a class="ButtonLink" href="#" onfocus="setWindowElementFocus(this); window.status='Delete'; return true;" onblur="window.status=''; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onkeyup="this.className='ButtonLink_focus'; return true;" onclick="submitCommandForm('DELETE', false, null, 'TabAttachments_F1.html', '_self');return false;">
asier@857
   308
	                  <table class="Button" onmouseout="this.className='Button';window.status='';return true;" onmouseover="this.className='Button_hover';window.status='Delete';return true;" onmousedown="this.className='Button_active';return true;" onmouseup="this.className='Button';return true;">
asier@857
   309
	                    <tr>
asier@857
   310
	                      <td class="Button_left"></td>
asier@857
   311
	                      <td class="Button_text Button_width">Delete</td>
asier@857
   312
	                      <td class="Button_right"></td>
asier@857
   313
	                    </tr>
asier@857
   314
	                  </table>
asier@857
   315
	                </a>
asier@857
   316
	              </div>
juanpablo@378
   317
              </div>
juanpablo@378
   318
            </td>
juanpablo@378
   319
          </tr>
juanpablo@378
   320
juanpablo@378
   321
        </table>
juanpablo@378
   322
      </div>
juanpablo@378
   323
    </td>
juanpablo@378
   324
  </tr>
juanpablo@378
   325
  </form>
juanpablo@378
   326
</table>
juanpablo@378
   327
juanpablo@378
   328
</body>
juanpablo@378
   329
</html>