src/org/openbravo/erpCommon/ad_actionButton/InsertAcces.html
author Carlos Aristu <carlos.aristu@openbravo.com>
Wed, 23 Oct 2019 11:48:44 +0200
changeset 36711 eb88530c786b
parent 33108 7591a8d34841
permissions -rw-r--r--
related to issue 41483: fix test

Avoid random failure by limiting the number of executions
juanpablo@378
     1
<!--
juanpablo@378
     2
 *************************************************************************
juanpablo@378
     3
 * The contents of this file are subject to the Openbravo  Public  License
priya@9072
     4
 * Version  1.1  (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. 
ggi@6701
    13
 * The Initial Developer of the Original Code is Openbravo SLU 
naiara@17770
    14
 * All portions are Copyright (C) 2001-2012 Openbravo SLU 
juanpablo@378
    15
 * All Rights Reserved. 
juanpablo@378
    16
 * Contributor(s):  ______________________________________.
juanpablo@378
    17
 ************************************************************************
juanpablo@378
    18
-->
david@1989
    19
<html>
david@1989
    20
<head>
david@3131
    21
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
david@3113
    22
  <title>Insert roles</title>
david@3113
    23
  <link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
david@1989
    24
  <link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS"></link>
stefan@4740
    25
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
stefan@4740
    26
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
juanpablo@378
    27
  <script language="JavaScript" src="../../../../../web/js/ajax.js" type="text/javascript"></script>
david@1989
    28
<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
david@3473
    29
  <script language="JavaScript" src="../utility/DynamicJS.js" type="text/javascript"></script>
david@1989
    30
  <script language="JavaScript" src="../../../../../web/js/default/MessageBox.js" type="text/javascript"></script>
david@1989
    31
<script language="JavaScript" type="text/javascript" id="paramLanguage">defaultLang = "en_US";</script>
asier@528
    32
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
naiara@17770
    33
<script language="JavaScript" src="../../../../../web/js/appStatus.js" type="text/javascript"></script>
david@1989
    34
<script language="JavaScript" type="text/javascript" id="paramDirectory">
juanpablo@1605
    35
var baseDirectory="../../../../../web/";
david@1989
    36
</script>
david@1989
    37
<script language="JavaScript" type="text/javascript">
juanpablo@378
    38
function closeThisPage() {
asier@11607
    39
    closePage();
asier@11607
    40
    return true;
juanpablo@378
    41
}
juanpablo@378
    42
juanpablo@378
    43
function submitThisPage(strCommand) {
naiara@17770
    44
    setProcessingMode('popup', true);
asier@11607
    45
    submitCommandForm(strCommand, false, null, null);
asier@11607
    46
    return true;
juanpablo@378
    47
}
david@1989
    48
</script>
asier@11607
    49
    <script language="JavaScript" type="text/javascript">
asier@11607
    50
    function onLoadDo(){
asier@11607
    51
        this.windowTables = new Array(
asier@11607
    52
          new windowTableId('client', 'buttonOK')
asier@11607
    53
        );
asier@11607
    54
        setWindowTableParentElement();
asier@11607
    55
        enableShortcuts('popup');
asier@11607
    56
        setBrowserAutoComplete(false);
asier@11607
    57
        
asier@11607
    58
        xx();
asier@528
    59
asier@11607
    60
        setWindowElementFocus('firstElement');
asier@11607
    61
    }
asier@528
    62
asier@11607
    63
    function onResizeDo(){
asier@11607
    64
    }
asier@11607
    65
    </script>
david@1989
    66
</head>
david@1989
    67
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"  onload="onLoadDo();" onresize="onResizeDo();" id="paramMessage">
asier@11607
    68
<form id="form" method="post" action="InsertAcces.html" name="frmMain">
david@1989
    69
  <input type="hidden" name="Command">
david@1989
    70
<input type="hidden" name="IsPopUpCall" value="1"></input>
david@1989
    71
  <input type="hidden" name="inpLastFieldChanged"></input>
david@1989
    72
  <input type="hidden" name="inpadRoleId" value="" id="paramadRoleId"></input> 
david@1989
    73
  <input type="hidden" name="inpwindowId" value="" id="window"></input>
david@1989
    74
  <input type="hidden" name="inpTabId" value="" id="tab"></input>
juanpablo@378
    75
  <div class="Popup_ContentPane_CircleLogo">
juanpablo@378
    76
    <div class="Popup_WindowLogo">
juanpablo@378
    77
      <img class="Popup_WindowLogo_Icon Popup_WindowLogo_Icon_process" src="../../../../../web/images/blank.gif" border=0/></img>
juanpablo@378
    78
    </div>
juanpablo@378
    79
  </div>
juanpablo@378
    80
juanpablo@378
    81
  <table cellspacing="0" cellpadding="0" width="100%">
juanpablo@378
    82
juanpablo@378
    83
    <tr>
juanpablo@378
    84
      <td>
juanpablo@378
    85
        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_NavBar">
juanpablo@378
    86
          <tr class="Popup_NavBar_bg"><td></td>
juanpablo@378
    87
            <td class="Popup_NavBar_separator_cell"></td>
juanpablo@378
    88
            <td class="Popup_NavBar_bg_logo_left"></td>
david@1989
    89
            <td class="Popup_NavBar_bg_logo" width="1" onclick="openNewBrowser('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
    90
            <td class="Popup_NavBar_bg_logo_right"></td>
juanpablo@378
    91
            <td class="Popup_NavBar_Popup_title_cell"><span>Insert Access</span></td>
juanpablo@378
    92
            <td class="Popup_NavBar_separator_cell"></td>
juanpablo@378
    93
          </tr>
juanpablo@378
    94
        </table>
juanpablo@378
    95
      </td>
juanpablo@378
    96
    </tr>
juanpablo@378
    97
juanpablo@378
    98
    <tr>
juanpablo@378
    99
      <td>
juanpablo@378
   100
        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_SeparatorBar">
juanpablo@378
   101
          <tr>
juanpablo@378
   102
            <td class="Popup_SeparatorBar_bg"></td>
juanpablo@378
   103
          </tr>
juanpablo@378
   104
        </table>
juanpablo@378
   105
      </td>
juanpablo@378
   106
    </tr>
juanpablo@378
   107
juanpablo@378
   108
    <tr>
juanpablo@378
   109
      <td>
juanpablo@378
   110
        <table cellspacing="0" cellpadding="0" class="Popup_ContentPane_InfoBar">
juanpablo@378
   111
          <tr>
david@1989
   112
            <td class="Popup_InfoBar_Icon_cell"><img src="../../../../../web/images/blank.gif" border="0" class="Popup_InfoBar_Icon_info" /></td>
juanpablo@378
   113
            <td class="Popup_InfoBar_text_table">
juanpablo@378
   114
              <table>
juanpablo@378
   115
                <tr>
david@1989
   116
                  <td class="Popup_InfoBar_text" id="helpDiscard"> <div id="processHelp">&nbsp;</div></td>
juanpablo@378
   117
                </tr>
juanpablo@378
   118
              </table>
juanpablo@378
   119
            </td>
juanpablo@378
   120
          </tr>
juanpablo@378
   121
        </table>
juanpablo@378
   122
      </td>
juanpablo@378
   123
    </tr>
juanpablo@378
   124
juanpablo@378
   125
    <tr>
juanpablo@378
   126
      <td>
asier@528
   127
        <div class="Popup_ContentPane_Client" style="overflow: auto;" id="client">
juanpablo@378
   128
juanpablo@378
   129
           <!-- MessageBox -->
juanpablo@378
   130
                <table cellpadding="0" cellspacing="0" id="messageBoxID" class="MessageBoxyy">
david@1989
   131
  <tbody>
juanpablo@378
   132
  <tr class="MessageBox_TopMargin">
juanpablo@378
   133
    <td class="MessageBox_LeftMargin"></td>
juanpablo@378
   134
    <td></td>
juanpablo@378
   135
    <td class="MessageBox_RightMargin"></td>
juanpablo@378
   136
  </tr>
juanpablo@378
   137
  <tr>
juanpablo@378
   138
    <td class="MessageBox_LeftMargin"></td>
juanpablo@378
   139
    <td>
juanpablo@378
   140
david@6543
   141
      <table cellpadding="0" cellspacing="0" class="MessageBox_Container">
david@1989
   142
        <tbody>
juanpablo@378
   143
        <tr>
david@5109
   144
          <td class="MessageBox_LeftTrans">
david@5109
   145
            <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
david@5109
   146
              <tbody>
david@5109
   147
              <tr>
david@5109
   148
                <td class="MessageBox_TopLeft"></td>
david@5109
   149
              </tr>
david@5109
   150
              <tr>
david@5109
   151
                <td class="MessageBox_Left"></td>
david@5109
   152
              </tr>
david@5109
   153
              </tbody>
david@5109
   154
            </table>
juanpablo@378
   155
          </td>
juanpablo@378
   156
          <td class="MessageBox_bg">
juanpablo@378
   157
juanpablo@378
   158
            <table class="MessageBox_Top">
david@1989
   159
            <tbody>
juanpablo@378
   160
              <tr>
juanpablo@378
   161
                <td>
juanpablo@378
   162
                  <span>
juanpablo@378
   163
                  <table cellpadding="0" cellspacing="0" class="MessageBox_Body_ContentCell">
david@1989
   164
                    <tbody>
juanpablo@378
   165
                    <tr>
juanpablo@378
   166
                      <td class="MessageBox_Icon_ContentCell">
juanpablo@378
   167
                        <div class="MessageBox_Icon"></div>
juanpablo@378
   168
                      </td>
juanpablo@378
   169
                      <td style="vertical-align: top;" id="messageBoxIDContent">
juanpablo@378
   170
                        <span>
juanpablo@378
   171
                          <div class="MessageBox_TextTitle" id="messageBoxIDTitle">
juanpablo@378
   172
                            xxInfo: AccessTableWithNoView
juanpablo@378
   173
                          </div>
juanpablo@378
   174
                          <div class="MessageBox_TextDescription" id="messageBoxIDMessage">
juanpablo@378
   175
                            xxThe current information is empty.
juanpablo@378
   176
                          </div>
juanpablo@378
   177
                          <div class="MessageBox_TextSeparator"></div>
juanpablo@378
   178
                        </span>
juanpablo@378
   179
                      </td>
juanpablo@378
   180
                    </tr>
david@1989
   181
                    </tbody>
juanpablo@378
   182
                  </table>
juanpablo@378
   183
                  </span>
juanpablo@378
   184
                </td>
juanpablo@378
   185
              </tr>
david@1989
   186
              </tbody>
juanpablo@378
   187
            </table>
juanpablo@378
   188
juanpablo@378
   189
          </td>
juanpablo@378
   190
          <td class="MessageBox_RightTrans">
david@5109
   191
            <table style="width: 100%; height: 100%" cellpadding="0" cellspacing="0">
david@5109
   192
              <tbody>
david@5109
   193
              <tr>
david@5109
   194
                <td class="MessageBox_TopRight"></td>
david@5109
   195
              </tr>
david@5109
   196
              <tr>
david@5109
   197
                <td class="MessageBox_Right"></td>
david@5109
   198
              </tr>
david@5109
   199
              </tbody>
david@5109
   200
            </table>
juanpablo@378
   201
          </td>
juanpablo@378
   202
        </tr>
juanpablo@378
   203
        <tr>
juanpablo@378
   204
          <td rowspan="2" class="MessageBox_BottomLeft">
juanpablo@378
   205
          </td>
juanpablo@378
   206
          <td class="MessageBox_BottomTrans MessageBox_bg">
juanpablo@378
   207
          </td>
juanpablo@378
   208
          <td rowspan="2" class="MessageBox_BottomRight">
juanpablo@378
   209
          </td>
juanpablo@378
   210
        </tr>
juanpablo@378
   211
        <tr>
juanpablo@378
   212
          <td class="MessageBox_Bottom">
juanpablo@378
   213
          </td>
juanpablo@378
   214
        </tr>
david@1989
   215
        </tbody>
juanpablo@378
   216
      </table>
juanpablo@378
   217
juanpablo@378
   218
    </td>
juanpablo@378
   219
    <td class="MessageBox_RightMargin"></td>
juanpablo@378
   220
  </tr>
juanpablo@378
   221
  <tr class="MessageBox_BottomMargin">
juanpablo@378
   222
    <td class="MessageBox_LeftMargin"></td>
juanpablo@378
   223
    <td></td>
juanpablo@378
   224
    <td class="MessageBox_RightMargin"></td>
juanpablo@378
   225
  </tr>
david@1989
   226
  </tbody>
juanpablo@378
   227
</table>
juanpablo@378
   228
    <!-- MessageBox END -->
juanpablo@378
   229
juanpablo@378
   230
          <table cellspacing="0" cellpadding="0" class="Popup_Client_TablePopup">
juanpablo@378
   231
juanpablo@378
   232
            <tr>
juanpablo@378
   233
              <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   234
              <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   235
              <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   236
              <td class="TableEdition_OneCell_width"></td>
juanpablo@378
   237
            </tr>
juanpablo@378
   238
juanpablo@378
   239
            <tr>
juanpablo@378
   240
              <td class="TitleCell">
juanpablo@378
   241
                <span class="LabelText" id="Delete_lbl">Module</span>
juanpablo@378
   242
              <td colspan="2" class="Combo_ContentCell">
david@1989
   243
                <select name="inpModules" class="Combo Combo_TwoCells_width"><div id="reportModules_S"></div>
david@1989
   244
                </select>
juanpablo@378
   245
              </td>
juanpablo@378
   246
              <td class="TitleCell"></td>
juanpablo@378
   247
            </tr>
juanpablo@378
   248
juanpablo@378
   249
            <tr>
juanpablo@378
   250
              <td class="TitleCell">
juanpablo@378
   251
                <span class="LabelText">Access To</span>
juanpablo@378
   252
              <td colspan="2" class="Combo_ContentCell">
david@1989
   253
                <select name="inpType" class="Combo Combo_TwoCells_width">
david@1989
   254
                  <option value=""> <span>All</span></option>
david@1989
   255
                  <option value="W"> <span>Window</span></option>
david@1989
   256
                  <option value="P"> <span>Process</span></option>
david@1989
   257
                  <option value="R"> <span>Report</span></option>
david@1989
   258
                  <option value="X"> <span>Form</span></option>
david@1989
   259
                </select>
juanpablo@378
   260
              </td>
juanpablo@378
   261
              <td class="TitleCell"></td>
juanpablo@378
   262
            </tr>
juanpablo@378
   263
juanpablo@378
   264
            <tr>
juanpablo@378
   265
              <td></td>
juanpablo@378
   266
              <td class="Button_RightAlign_ContentCell">
juanpablo@378
   267
                <div>
david@3466
   268
                  <button type="button" 
david@3466
   269
                    id="buttonOK" 
david@3466
   270
                    class="ButtonLink" 
david@3466
   271
                    onclick="submitThisPage('GENERATE');return false;" 
david@3466
   272
                    onfocus="buttonEvent('onfocus', this); window.status='Accept'; return true;" 
david@3466
   273
                    onblur="buttonEvent('onblur', this);" 
david@3466
   274
                    onkeyup="buttonEvent('onkeyup', this);" 
david@3466
   275
                    onkeydown="buttonEvent('onkeydown', this);" 
david@3466
   276
                    onkeypress="buttonEvent('onkeypress', this);" 
david@3466
   277
                    onmouseup="buttonEvent('onmouseup', this);" 
david@3466
   278
                    onmousedown="buttonEvent('onmousedown', this);" 
david@3466
   279
                    onmouseover="buttonEvent('onmouseover', this); window.status='Accept'; return true;" 
david@3466
   280
                    onmouseout="buttonEvent('onmouseout', this);">
david@3466
   281
                    <table class="Button">
david@3466
   282
                      <tr>
david@3466
   283
                        <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Accept" title="Accept" src="../../../../../web/images/blank.gif" border="0" /></td>
david@3466
   284
                        <td class="Button_text Button_width">OK</td>
david@3466
   285
                        <td class="Button_right"></td>
david@3466
   286
                      </tr>
david@3466
   287
                    </table>
david@3466
   288
                  </button>
juanpablo@378
   289
                </div>
juanpablo@378
   290
              </td>
juanpablo@378
   291
              <td class="Button_LeftAlign_ContentCell">
juanpablo@378
   292
                <div>
david@3466
   293
                  <button type="button" 
david@3466
   294
                    id="buttonCancel" 
david@3466
   295
                    class="ButtonLink" 
david@3466
   296
                    onclick="closeThisPage();return false;" 
david@3466
   297
                    onfocus="buttonEvent('onfocus', this); window.status='Cancel'; return true;" 
david@3466
   298
                    onblur="buttonEvent('onblur', this);" 
david@3466
   299
                    onkeyup="buttonEvent('onkeyup', this);" 
david@3466
   300
                    onkeydown="buttonEvent('onkeydown', this);" 
david@3466
   301
                    onkeypress="buttonEvent('onkeypress', this);" 
david@3466
   302
                    onmouseup="buttonEvent('onmouseup', this);" 
david@3466
   303
                    onmousedown="buttonEvent('onmousedown', this);" 
david@3466
   304
                    onmouseover="buttonEvent('onmouseover', this); window.status='Cancel'; return true;" 
david@3466
   305
                    onmouseout="buttonEvent('onmouseout', this);">
david@3466
   306
                    <table class="Button">
david@3466
   307
                      <tr>
david@3466
   308
                        <td class="Button_left"><img class="Button_Icon Button_Icon_cancel" alt="Cancel" title="Cancel" src="../../../../../web/images/blank.gif" border="0" /></td>
david@3466
   309
                        <td class="Button_text Button_width">Cancel</td>
david@3466
   310
                        <td class="Button_right"></td>
david@3466
   311
                      </tr>
david@3466
   312
                    </table>
david@3466
   313
                  </button>
david@3466
   314
                </div>
juanpablo@378
   315
              </td>
juanpablo@378
   316
              <td></td>
juanpablo@378
   317
            </tr>
juanpablo@378
   318
juanpablo@378
   319
        </table>
juanpablo@378
   320
juanpablo@378
   321
  <!--TABLE width="100%" cellspacing="0" cellpadding="0" border="1" >
david@1989
   322
    <tr> 
david@1989
   323
      <td id="processDescription">&nbsp;</td>
david@1989
   324
    </tr>
david@1989
   325
    <tr></tr>
david@1989
   326
    <tr> 
david@1989
   327
      <td id="helpDiscard" > <div  id="processHelp">&nbsp;</div></td>
david@1989
   328
    </tr>
david@1989
   329
  </table>
david@1989
   330
  <br></br>
david@1989
   331
  <br></br>
david@1989
   332
  <table width="50%" cellspacing="0" cellpadding="0" border="0">
david@1989
   333
    <tr> 
david@1989
   334
      <td width="20%"> <span >Module</span></td>
david@1989
   335
      <td width="30%" > <select name="inpModules"><div id="reportModules_S"></div>
david@1989
   336
        </select></td>
david@1989
   337
    </tr>
david@1989
   338
    <tr> 
david@1989
   339
      <td width="20%"> <span >Access to</span></td>
david@1989
   340
      <td width="30%" > <select name="inpType">
david@1989
   341
          <option value=""> <span>All</span></option>
david@1989
   342
          <option value="W"> <span>Window</span></option>
david@1989
   343
          <option value="P"> <span>Process</span></option>
david@1989
   344
          <option value="R"> <span>Report</span></option>
david@1989
   345
          <option value="X"> <span>Form</span></option>
david@1989
   346
          <option value="F"> <span>WorkFlow</span></option>
david@1989
   347
          <option value="T"> <span>Task</span></option>
david@1989
   348
        </select></td>
david@1989
   349
    </tr>
david@1989
   350
  </table>
david@1989
   351
  <br></br>
david@1989
   352
  <table summary="" cellpadding="0" cellspacing="0" border="0" width="100%">
david@1989
   353
    <tr> 
juanpablo@378
   354
      <td>&nbsp;</td>
david@1989
   355
      <td width="30px"> <a href="#" onclick="closeThisPage();return false;" onmouseover="window.status='Cancel';return true;" onmouseout="window.status='';return true;" > 
david@1989
   356
        <img width="16" height="16" src="../../../../../web/images/Cancel.jpg"  alt="Cancel" title="Cancel" border="0" id="buttonCancel"></img></a></td>
david@1989
   357
      <td width="30px"> <a href="#" onclick="submitThisPage('GENERATE');return false;" onmouseover="window.status='Accept';return true;" onmouseout="window.status='';return true;" > 
david@1989
   358
        <img width="16" height="16" src="../../../../../web/images/Ok.jpg"  alt="Accept" title="Accept" border="0" id="buttonOk"></img></a></td>
juanpablo@378
   359
      <td>&nbsp;</td>
david@1989
   360
    </tr>
juanpablo@378
   361
  </TABLE-->
david@1989
   362
</form>
david@1989
   363
</body>
david@1989
   364
</html>