src/org/openbravo/erpCommon/security/Login_F1.html
author David Baz Fayos <david.baz@openbravo.com>
Thu, 12 Aug 2010 13:37:32 +0200
changeset 8117 ba616948bd77
parent 8018 8bd78936b446
child 8155 68c8c4203f91
permissions -rw-r--r--
Related to issue 13887: Added MDI KS compatibility in classic ob tabs
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. 
ggi@6701
    13
 * The Initial Developer of the Original Code is Openbravo SLU 
ggi@6701
    14
 * All portions are Copyright (C) 2001-2010 Openbravo SLU 
carlos@0
    15
 * All Rights Reserved. 
carlos@0
    16
 * Contributor(s):  ______________________________________.
carlos@0
    17
 ************************************************************************
carlos@0
    18
-->
david@1989
    19
<html>
david@1989
    20
<head>
david@3131
    21
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
david@1989
    22
<title>Log in</title>
david@3113
    23
<link rel="shortcut icon" href="../../../../../web/images/favicon.ico" type="image/x-icon" />
david@1863
    24
<link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Openbravo_ERP_250.css" id="paramCSS"/>
david@1989
    25
<script language="JavaScript" src="../../../../../web/js/shortcuts.js" type="text/javascript"></script>
david@1989
    26
<script language="JavaScript" src="../../../../../web/js/utils.js" type="text/javascript"></script>
ivan@8018
    27
<script language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></script>
david@1989
    28
<script language="JavaScript" src="../../../../../web/js/windowKeyboard.js" type="text/javascript"></script>
david@1989
    29
<script language="JavaScript" type="text/javascript" id="paramDirectory">var baseDirectory = "../../../../../web/";</script>
asier@4577
    30
<script language="JavaScript" type="text/javascript" id="paramLanguage">    defaultLang = "en_US";</script>
stefan@4668
    31
<script language="JavaScript" src="../utility/CheckCleanCache.js?cache=true" type="text/javascript"></script>
stefan@4668
    32
<script language="JavaScript" src="../utility/CheckCleanCache.js?cache=false" type="text/javascript"></script>
david@6553
    33
<script language="JavaScript" type="text/javascript" id="cacheMsg">var cacheMsg = "xx";</script>
david@6553
    34
<script language="JavaScript" type="text/javascript" id="browserMsg">var browserMsg = "xx";</script>
david@1989
    35
<script language="JavaScript" type="text/javascript">
carlos@0
    36
juanpablo@1605
    37
function validate(action)
carlos@0
    38
{
asier@4577
    39
    var frm = document.forms[0];
asier@4577
    40
    //Se controla que haya rellenado todos los campos
asier@4577
    41
    if (frm.user.value==null || frm.password.value==null || frm.user.value=="" || frm.password.value=="") {
asier@4577
    42
        showJSMessage(1);
asier@4577
    43
        return false;
asier@4577
    44
    }
asier@4577
    45
    return true;
carlos@0
    46
}
carlos@0
    47
function onloadFunctions() {
carlos@0
    48
}
carlos@0
    49
function buttonOK_click() {
david@6527
    50
  var target;
david@6527
    51
  try {
david@6527
    52
    if (parent.frameMenu) {
david@6527
    53
      target = "_parent";
david@6527
    54
    } else {
david@6527
    55
      target = "_self";
david@6527
    56
    }
david@6527
    57
  } catch (e) {
david@6527
    58
    target = "_self";
david@6527
    59
  }
david@6527
    60
  submitCommandForm('DEFAULT', false, null, '../secureApp/LoginHandler.html', target, true);
david@6527
    61
  return false;
carlos@0
    62
}
carlos@0
    63
david@2803
    64
function redirectWhenPopup() {
david@2908
    65
  var permission = false;
david@2908
    66
  try {
david@6513
    67
    if (top.opener.parent.frames['appFrame']) {
david@2908
    68
      permission = true;
david@2908
    69
    }
david@2908
    70
  }
david@2908
    71
  catch (e) {}
david@2908
    72
  if (top.opener && permission) {
david@6513
    73
    top.opener.parent.location.href = top.document.location.href;
david@2793
    74
    top.window.close();
david@2793
    75
  }
david@2793
    76
}
david@2793
    77
david@1989
    78
</script>
david@1989
    79
<script language="JavaScript" type="text/javascript">
david@7878
    80
  function hideSFBanner() {
david@7878
    81
    try {
david@7878
    82
      addStyleRule(".Login_Logo_SourceForge", "background: none;");
david@7878
    83
    } catch (e) {
david@7878
    84
    }
david@7878
    85
  }
david@7878
    86
david@7878
    87
  function showSFBanner() {
david@7878
    88
    try {
david@7878
    89
      var classPositionArray = getStyleRulePosition(".Login_Logo_SourceForge");
david@7878
    90
      var classPosition = classPositionArray[classPositionArray.length-1];
david@7878
    91
      if (classPositionArray.length > 0) {
david@7878
    92
        removeStyleRule(classPosition);
david@7878
    93
      }
david@7878
    94
    } catch (e) {
david@7878
    95
    }
david@7878
    96
  }
david@7878
    97
david@7878
    98
  hideSFBanner();
david@7878
    99
</script>
david@7878
   100
<script language="JavaScript" type="text/javascript">
asier@528
   101
  function onLoadDo() {
david@2803
   102
    redirectWhenPopup();
asier@528
   103
    this.windowTables = new Array(
david@1044
   104
      new windowTableId('client', 'buttonOK')
asier@528
   105
    );
asier@528
   106
    setWindowTableParentElement();
asier@528
   107
    enableShortcuts('edition');
asier@528
   108
    resizeArea();
asier@528
   109
    try {
asier@528
   110
      onloadFunctions();
juanpablo@1605
   111
      clearForm();
asier@528
   112
    } catch (e) {}
asier@528
   113
    setWindowElementFocus('firstElement');
david@8117
   114
    if ((!revisionControl('8117')) || (isOpsInstance() != isOpsInstanceCached())) {
david@6553
   115
      alert(cacheMsg);
david@6441
   116
    }
david@6441
   117
david@6440
   118
    if (!checkBrowserCompatibility()) {
david@6553
   119
      alert(browserMsg);
david@6440
   120
    }
david@7878
   121
david@7878
   122
    showSFBanner();
asier@528
   123
  }
asier@528
   124
asier@528
   125
  function onResizeDo() {
asier@528
   126
    resizeArea();
asier@528
   127
  }
david@1989
   128
</script>
david@1989
   129
</head>
david@1989
   130
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onload="onLoadDo();" onresize="onResizeDo();" style="background-color: #505050 !important;">
carlos@0
   131
carlos@0
   132
carlos@0
   133
david@1989
   134
<form method="post" action="../secureApp/LoginHandler.html" name="frmIdentificacion" id="frmFormulario" autocomplete="off">
david@1989
   135
  <input type="hidden" name="Command"></input>
carlos@0
   136
carlos@0
   137
carlos@0
   138
  <table height="100%" border="0" cellpadding="0" cellspacing="0" id="main">
carlos@0
   139
    <tr>
carlos@0
   140
      <td valign="top">
carlos@0
   141
        <div class="Main_ContentPane_NavBar" id="tdtopButtons">
david@1989
   142
          <table cellpadding="0" cellspacing="0" class="Main_ContentPane_NavBar" id="tdtopNavButtons">
david@1989
   143
            <tr class="Main_NavBar_bg">
david@1989
   144
              <td width="100%"></td>
david@1989
   145
              <td><div class="Main_NavBar_bg_logo_left" /></td>
david@1989
   146
              <td class="Main_NavBar_bg_logo" width="1" onclick="openNewBrowser('http://www.openbravo.com', 'Openbravo');return false;"><div class="Main_NavBar_logo" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo" /></td>
david@1989
   147
              <td><div class="Main_NavBar_bg_logo_right" /></td>
david@1989
   148
            </tr>
david@1989
   149
          </table>
carlos@0
   150
        </div>
carlos@0
   151
        <div class="Login_ContentPane_ToolBar" id="paramToolBar">
carlos@0
   152
        
carlos@0
   153
          <table class="Login_ContentPane_ToolBar Login_ToolBar_bg" id="tdToolBar">
carlos@0
   154
            <tr>
carlos@0
   155
              <td width="100%"></td>
carlos@0
   156
            </tr>
carlos@0
   157
          </table>
carlos@0
   158
        
carlos@0
   159
        </div>
carlos@0
   160
carlos@0
   161
      <div class="Login_ContentPane" style="overflow: auto;" id="client">
carlos@0
   162
david@6531
   163
        <table class="Login_ContentPane_Container_Table">
carlos@0
   164
carlos@0
   165
          <tr class="Login_Block_Separator_Top"><td></td></tr>
carlos@0
   166
carlos@0
   167
          <tr>
carlos@0
   168
carlos@0
   169
            <td class="Login_ContentCell">
carlos@0
   170
carlos@0
   171
              <table cellspacing="0" cellpadding="0" class="Login_TableEdition">
carlos@0
   172
carlos@0
   173
                <tr>
carlos@0
   174
                  <td class="TableEdition_OneCell_width"></td>
carlos@0
   175
                  <td class="TableEdition_OneCell_width"></td>
carlos@0
   176
                  <td class="TableEdition_OneCell_width"></td>
carlos@0
   177
                </tr>
carlos@0
   178
carlos@0
   179
                <tr>
carlos@0
   180
                  <td rowspan="2"><div class="Login_UserPicture"></div>
carlos@0
   181
                  </td>
carlos@0
   182
                  <td colspan="2" class="Login_Logo_Company_Container_Cell">
carlos@0
   183
                    <div class="Login_Logo_Company_Container"><img class="Login_Logo_Company" src="../../../../../web/images/blank.gif"></img></div>
carlos@0
   184
                  </td>
carlos@0
   185
                </tr>
carlos@0
   186
carlos@0
   187
carlos@0
   188
                <tr><td height="25px"></td></tr>
carlos@0
   189
carlos@0
   190
                <tr>
david@1989
   191
                  <td class="TitleCell"><span class="LabelText">Username</span></td>
carlos@0
   192
                  <td class="TextBox_ContentCell" colspan="2">
galder@322
   193
                    <input class="dojoValidateValid TextBox_TwoCells_width" type="text" size="40" maxlength="60" name="user"></input> 
carlos@0
   194
                  </td>
carlos@0
   195
                </tr>
carlos@0
   196
carlos@0
   197
                <tr>
david@1989
   198
                  <td class="TitleCell"><span class="LabelText">Password</span></td>
carlos@0
   199
                  <td class="TextBox_ContentCell" colspan="2">
galder@322
   200
                    <input class="dojoValidateValid TextBox_TwoCells_width" type="password" size="40" maxlength="40" name="password"></input> 
carlos@0
   201
                  </td>
carlos@0
   202
                </tr>
carlos@0
   203
carlos@0
   204
                <tr><td height="20px"></td></tr>
carlos@0
   205
carlos@0
   206
                <tr>
carlos@0
   207
                  <td></td>
carlos@0
   208
                  <td class="Button_CenterAlign_ContentCell">
carlos@0
   209
                    <div>
david@3466
   210
                      <button type="button" 
david@3466
   211
                        id="buttonOK" 
david@3466
   212
                        class="ButtonLink" 
david@3466
   213
                        onclick="buttonOK_click();" 
david@3466
   214
                        onfocus="buttonEvent('onfocus', this); window.status='Login'; return true;" 
david@3466
   215
                        onblur="buttonEvent('onblur', this);" 
david@3466
   216
                        onkeyup="buttonEvent('onkeyup', this);" 
david@3466
   217
                        onkeydown="buttonEvent('onkeydown', this);" 
david@3466
   218
                        onkeypress="buttonEvent('onkeypress', this);" 
david@3466
   219
                        onmouseup="buttonEvent('onmouseup', this);" 
david@3466
   220
                        onmousedown="buttonEvent('onmousedown', this);" 
david@3466
   221
                        onmouseover="buttonEvent('onmouseover', this); window.status='Login'; return true;" 
david@3466
   222
                        onmouseout="buttonEvent('onmouseout', this);">
david@3466
   223
                        <table class="Button" id="fieldTable">
carlos@0
   224
                          <tr>
david@3466
   225
                            <td class="Button_left"><img class="Button_Icon Button_Icon_ok" alt="Login" title="Login" src="../../../../../web/images/blank.gif" border="0" id="fieldButton" /></td>
carlos@0
   226
                            <td class="Button_text Button_width">Login</td>
carlos@0
   227
                            <td class="Button_right"></td>
carlos@0
   228
                          </tr>
carlos@0
   229
                        </table>
david@3466
   230
                      </button>
carlos@0
   231
                    </div>
carlos@0
   232
                  </td>
carlos@0
   233
                  <td>
carlos@0
   234
                  </td>
carlos@0
   235
                </tr>
carlos@0
   236
carlos@0
   237
              </table>
carlos@0
   238
            </div>
carlos@0
   239
carlos@0
   240
            </td>
carlos@0
   241
            <td></td>
carlos@0
   242
carlos@0
   243
          </tr>
carlos@0
   244
carlos@0
   245
          <tr class="Login_Block_Separator_Middle"><td></td></tr>
carlos@0
   246
carlos@0
   247
          <tr class="Login_Logo_Support_Field">
carlos@0
   248
carlos@0
   249
            <td class="Login_ContentCell">
carlos@0
   250
carlos@0
   251
              <table cellspacing="0" cellpadding="0" class="Login_TableEdition">
carlos@0
   252
carlos@0
   253
                <tr>
carlos@0
   254
                  <td class="TableEdition_OneCell_width"></td>
carlos@0
   255
                  <td class="TableEdition_OneCell_width"></td>
carlos@0
   256
                  <td class="TableEdition_OneCell_width"></td>
carlos@0
   257
                </tr>
carlos@0
   258
carlos@0
   259
                <tr>
carlos@0
   260
                  <td class="TitleCell"style="vertical-align: middle;"><span class="LabelText">For Support Contact:</span></td>
carlos@0
   261
carlos@0
   262
                  <td colspan="2" rowspan="2" class="Login_Logo_Support_Container_Cell">
carlos@0
   263
                    <div class="Login_Logo_Support_Container"><img class="Login_Logo_Support" src="../../../../../web/images/blank.gif"></img></div>
carlos@0
   264
                  </td>
carlos@0
   265
                </tr>
carlos@0
   266
carlos@0
   267
                <tr>
asier@5173
   268
                  <td class="TitleCell"style="vertical-align: middle;"><span class="LabelText" id="itService">www.your-it-service.com</span></td>
carlos@0
   269
                </tr>
carlos@0
   270
carlos@0
   271
              </table>
carlos@0
   272
carlos@0
   273
            </td>
carlos@0
   274
carlos@0
   275
          </tr>
carlos@0
   276
carlos@0
   277
          <tr class="Login_Block_Separator_Middle"><td></td></tr>
carlos@0
   278
carlos@0
   279
          <tr class="Login_Logo_SourceForge_Field">
carlos@0
   280
carlos@0
   281
            <td class="Login_ContentCell" >
carlos@0
   282
carlos@0
   283
              
carlos@0
   284
              <table cellspacing="0" cellpadding="0" class="Login_TableEdition">
carlos@0
   285
carlos@0
   286
                <tr>
carlos@0
   287
                  <td class="TableEdition_OneCell_width"></td>
carlos@0
   288
                  <td class="TableEdition_OneCell_width"></td>
carlos@0
   289
                  <td class="TableEdition_OneCell_width"></td>
carlos@0
   290
                </tr>
carlos@0
   291
carlos@0
   292
                <tr>
carlos@0
   293
                  <td class="TitleCell"style="vertical-align: middle;"><span class="LabelText">Project hosted at</span></td>
carlos@0
   294
carlos@0
   295
                  <td colspan="2" rowspan="2" class="Login_Logo_SourceForge_Container_Cell">
carlos@0
   296
                    <a href="http://sourceforge.net/projects/openbravo/" target="_blank" title="Openbravo&#39;s SourceForge"><img src="../../../../../web/images/blank.gif" border="0" alt="SourceForge.net Logo" class="Login_Logo_SourceForge"/></a>
carlos@0
   297
                  </td>
carlos@0
   298
                </tr>
carlos@0
   299
carlos@0
   300
                <tr>
carlos@0
   301
                  <td class="TitleCell"style="vertical-align: middle;"><span class="LabelText">www.sourceforge.net</span></td>
carlos@0
   302
                </tr>
carlos@0
   303
carlos@0
   304
              </table>
carlos@0
   305
carlos@0
   306
carlos@0
   307
            </td>
carlos@0
   308
carlos@0
   309
          </tr>
carlos@0
   310
carlos@0
   311
carlos@0
   312
          <tr class="Login_Block_Separator_Middle"><td></td></tr>
david@5821
   313
          <tr><td class="Login_Copyright_Container_Cell"><span class="Login_Copyright_text">Copyright Openbravo 2001-2010</span></td></tr>
carlos@0
   314
carlos@0
   315
        </table>
carlos@0
   316
carlos@0
   317
      </div>
carlos@0
   318
david@1989
   319
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Bottom" id="tdbottomSeparator">
david@1989
   320
          <tr>
david@1989
   321
            <td class="Main_Bottom_bg"><img src="../../../../../web/images/blank.gif" border="0"></td>
david@1989
   322
          </tr>
david@1989
   323
        </table></td>
carlos@0
   324
      <td valign="top">
david@1989
   325
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="Main_ContentPane_Right" id="tdrightSeparator">
david@1989
   326
          <tr><td class="Main_NavBar_bg_right"></td></tr>
david@1989
   327
          <tr><td class="Main_ToolBar_bg_right" valign="top"></td></tr>
david@1989
   328
          <tr><td class="Main_Client_bg_right"></td></tr>
david@1989
   329
          <tr><td class="Main_Bottom_bg_right"></td></tr>
david@1989
   330
        </table>
carlos@0
   331
      </td>
carlos@0
   332
    </tr>
carlos@0
   333
  </table>
carlos@0
   334
david@1989
   335
</form>
david@1989
   336
</body>
david@1989
   337
</html>