src/org/openbravo/erpCommon/security/Login_F1.html
author Gorka Gil <gorka.gil@openbravo.com>
Fri, 08 Oct 2010 12:51:46 +0200
changeset 7936 9910242bf439
parent 7916 69209bdbdd0d
child 8539 b699dc071e86
permissions -rw-r--r--
[demo] Customization of demo to work with 2.50MP20
<!--
 *************************************************************************
 * 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 SLU 
 * All portions are Copyright (C) 2001-2010 Openbravo SLU 
 * All Rights Reserved. 
 * Contributor(s):  ______________________________________.
 ************************************************************************
-->
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">

<title>Log in</title>
<LINK rel="SHORTCUT ICON" href="../../../../../web/images/favicon.ico"></LINK> 
<link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Login/Login.css" id="paramCSS"/>
<link rel="stylesheet" type="text/css" href="../../../../../web/skins/Default/Demo/Demo.css" id="paramCSS"/>
<SCRIPT language="JavaScript" src="../../../../../web/js/messages.js" type="text/javascript"></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" type="text/javascript" id="paramDirection">var baseDirection = "../../../../../web/";</SCRIPT>
<SCRIPT language="JavaScript" type="text/javascript" id="paramLanguage">  LNG_POR_DEFECTO = "en_US";</SCRIPT>
<script language="JavaScript" src="../utility/CheckCleanCache.js?cache=true" type="text/javascript"></script>
<script language="JavaScript" src="../utility/CheckCleanCache.js?cache=false" type="text/javascript"></script>
  <script language="javascript" type="text/javascript">
    function validate(action)
    {
      var frm = document.forms[0];
      if (frm.user.value==null || frm.password.value==null || frm.user.value=="" || frm.password.value=="") {
        showJSMessage(1);
        return false;
      }
      return true;
    }
    function onloadFunctions() {
    }
    function buttonOK_click() {
        submitCommandForm('DEFAULT', false, null, '../secureApp/LoginHandler.html', '_top', true);
        return false;
    }
    function redirectWhenPopup() {
      var permission = false;
      try {
        if (top.opener.top.frames['appFrame']) {
          permission = true;
        }
      }
      catch (e) {}
      if (top.opener && permission) {
        top.opener.top.location.href = top.document.location.href;
        top.window.close();
      }
    }

    function resizeFrames() {
      if (!top.frameMenu) window.open(baseFrameServlet, "_blank");
      else {
        var frame = top.document;
        var frameset = frame.getElementById("framesetMenu");
        if (!frameset) return false;
        frameset.cols = "0%,0%,*";
        return true;
      }
    }

    function enterUsername(username,pwd, language) {
      if (parent.appFrame.document.frmIdentificacion.user) {
        parent.appFrame.document.frmIdentificacion.user.value = username;
        parent.appFrame.document.frmIdentificacion.password.value = pwd;
  var selectLanguage = parent.appFrame.document.frmIdentificacion.languageLogin;
        for (var i=0; i < selectLanguage.length; i++) {
          if (selectLanguage[i].value == language) {
      selectLanguage.selectedIndex = i;
      break;
    }
  }
      } else alert('You have already logged in');
    }

    function showAll() {
      var body = document.getElementById("body");
      body.style.display = "";
    }
  </script>
  <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
  </script>
  <script type="text/javascript">
    _uacct = "UA-880726-4";
    urchinTracker();
  </script>

  <script language="JavaScript" type="text/javascript">
    function ie6check()
    {
      var IE6 = false /*@cc_on || @_jscript_version < 5.7 @*/;
      if (IE6)
      {
        alert('Warning. Internet Explorer 6 does not fully handle PNG transparencies and it is not supported with Openbravo. You can proceed but you might have a suboptimal user experience. Openbravo recommends using Firefox 2.x or Internet Explorer 7');
      }
    }
  </script>

  <script language="JavaScript" type="text/javascript">
    function onLoadDo() {
      redirectWhenPopup();
      this.windowTables = new Array(
        new windowTableId('client', 'buttonOK')
      );
      setWindowTableParentElement();
      enableShortcuts('edition');
      resizeFrames();
      resizeArea();
      ie6check();
      try {
        onloadFunctions();
//        limpiar();
      } catch (e) {}
      showAll();
      enterUsername('Openbravo','openbravo', "en_US");
      setWindowElementFocus('languageLogin', 'id');
      if ((!revisionControl('7886')) || (isOpsInstance() != isOpsInstanceCached())) {
      alert("Your browser's cache has outdated files. Please clean it and reload the page.");
      }
    }

    function onResizeDo() {
      resizeArea();
    }
  </script>
</head>
<body leftmargin="0" topmargin="0" onload="onLoadDo();" onresize="onResizeDo();" style="background-color: rgb(80, 80, 80) ! important;" marginheight="0" marginwidth="0">

<form method="post" action="../secureApp/LoginHandler.html" name="frmIdentificacion" id="frmFormulario" autocomplete="off">
 <input name="Command" type="hidden">
 <div id="body" style="">
  <table id="main" border="0" cellpadding="0" cellspacing="0" height="100%">
   <tbody>
  <tr>
   <td valign="top">
    <div class="Main_ContentPane_NavBar" id="tdtopButtons">
     <table class="Main_ContentPane_NavBar" id="tdtopNavButtons" cellpadding="0" cellspacing="0">
    <tbody>
     <tr class="Main_NavBar_bg">
      <td style="text-align: left; text-indent: 10px; font-size: 22px; color: #FFFFFF; padding-bottom: 5px;" width="100%"><span style="display:none;">Openbravo ERP : Online Demo</span></td>
      <td><div class="Main_NavBar_bg_logo_left"></div></td>
      <td class="Main_NavBar_bg_logo" onclick="abrirNuevoBrowser('http://www.openbravo.com', 'Openbravo');return false;" width="1"><div class="Main_NavBar_logo" alt="Openbravo" title="Openbravo" border="0" id="openbravoLogo"></div></td>
      <td><div class="Main_NavBar_bg_logo_right"></div></td>
     </tr>
    </tbody>
     </table>
    </div>
    <div class="Login_ContentPane_ToolBar" id="paramToolBar">
     <table class="Login_ContentPane_ToolBar Login_ToolBar_bg" id="tdToolBar">
    <tbody>
     <tr><td width="100%"></td></tr>
    </tbody>
     </table>
    </div>
    <div class="Login_ContentPane" style="overflow: auto; width: 1670px; height: 505px;" id="client">
     <table border="0" cellpadding="0" cellspacing="0">
    <tbody>
     <tr class="Login_Demo_Separator_Top"><td colspan="5"></td></tr>
     <tr>
      <td></td>
      <td width="420"></td>
      <td class="Login_Demo_Separator_Middle_Ver"></td>
      <td width="430"></td>
      <td></td>
     </tr>
     <tr>
      <td></td>
      <td class="Login_Demo_ContentCell" valign="top">
       <div style="font-family: trebuchet ms, arial, sans-serif; letter-spacing: -1px; padding-bottom: 10px; color: #808080; font-size: 15pt; font-weight: bolder; text-indent: 0px; text-align: left;">Welcome to our Openbravo ERP online demo</div>
       <div style="width: 400px; text-align: justify;">
      <p class="Regular_Paragraph" style="font-size: 13px; padding-left: 8px; padding-right: 8px; line-height: 20px;">Now you can easily tryout the latest Openbravo ERP version by starting your experience off with our fully functional demo. This demo is preconfigured with data for a fictious company called "BigBazaar". You will have access to all available product features with the exception of system administrator privileges used to configure the system.</p>
       </div>
       <table border="0" cellpadding="0" cellspacing="0" width="100%">
      <tbody>
       <tr>
        <td style="padding-top: 10px;" colspan="3" height="34">
         <table border="0" cellpadding="0" cellspacing="0">
        <tbody>
         <tr>
          <td><a class="LabelLink_noicon" href="http://wiki.openbravo.com/wiki/ERP/2.50/User_Manual" title="Openbravo User Manual" target="_blank"><img src="../../../../../web/images/blank.gif" class="Login_Demo_Help" border="0"></a></td>
          <td><a class="LabelLink_noicon" style="font-size: 8pt; padding-left: 6px; padding-right: 6px; height: 14px; margin-left: 2px;" href="http://wiki.openbravo.com/wiki/ERP/2.50/User_Manual" title="Openbravo's User Manual" target="_blank"> Need help? Check Openbravo's User Manual</a></td>
         </tr>
        </tbody>
         </table>
        </td>
       </tr>
      </tbody>
       </table>
      </td>
      <td></td>
      <td class="Login_Demo_ContentCell">
       <table class="Login_TableEdition" border="0" cellpadding="0" cellspacing="0">
      <tbody>
       <tr>
        <td class="TableEdition_OneCell_width"></td>
        <td class="TableEdition_OneCell_width"></td>
        <td class="TableEdition_OneCell_width"></td>
       </tr>
       <tr>
        <td><div class="Login_UserPicture" style="margin-top: -42px;"></div></td>
        <td colspan="2" class="Login_Logo_Company_Container_Cell">
         <div class="Login_Logo_Company_Container" style="border: medium none; background: transparent none repeat scroll 0% 0%; text-align: left; font-size: 45px; font-weight: bolder; color: rgb(180, 180, 180); float: left; width: 174px; padding-top: 20px;">Login</div>
         <table class="Login_Demo_BottomBanner_Table11" border="0" cellpadding="0" cellspacing="0">
        <tbody>
         <tr>
          <td class="Login_Demo_BottomBanner_Table11_td1" style="padding: 20px 0px 0px;"><b><span style="font-size: 10pt;"></span></b></td>
         </tr>
         <tr>
          <td class="Login_Demo_BottomBanner_Table11_td1" style="padding: 0px 0px 28px; line-height: 20px !important;"><b><div style="font-size: 18pt;">2.50<span style="display:block; font-size:10pt">MP20</span></div></b></td>
         </tr>
        </tbody>
         </table>
        </td>
       </tr>
       <tr>
        <td class="TitleCell"><span class="LabelText">Language</span></td>
        <td colspan="2" class="Combo_ContentCell">
         <select id="sectionLang" name="languageLogin" class="Combo Combo_OneCell_width">
           <option value="en_US" id="fieldClaveLanguage"></option>
   <!-- <option value="en_US" selected="selected">English</option>
   <option value="bg_BG">Bulgarian</option>
   <option value="fr_FR">French</option>
   <option value="it_IT">Italian</option>
   <option value="pl_PL">Polish</option>
   <option value="pt_PT">Portuguese</option>
   <option value="ro_RO">Romanian</option>
   <option value="es_ES">Spanish</option> -->
         </select>
<!--       <input type="button" value="Go!" onClick="location=this.form.languageLogin.value" name="button">-->
        </td>
       </tr>
       <tr>
        <td class="TitleCell"><span class="LabelText">Username</span></td>
        <td colspan="2" class="TextBox_ContentCell"><input id="username" name="user" maxlength="20" class="dojoValidateValid TextBox_TwoCells_width" type="text" /></td>
       </tr>
       <tr>
        <td class="TitleCell"><span class="LabelText">Password</span></td>
        <td colspan="2" class="TextBox_ContentCell"><input name="password" maxlength="20" class="dojoValidateValid TextBox_TwoCells_width" type="password" /></td>
       </tr>
       <tr><td colspan="3" height="15"></td></tr>
       <tr>
        <td></td>
        <td class="Button_CenterAlign_ContentCell">
         <div>
        <a id="buttonOK" onclick="buttonOK_click();" onkeyup="this.className='ButtonLink_focus'; return true;" onkeypress="this.className='ButtonLink_active'; return true;" onblur="window.status=''; return true;" onfocus="setWindowElementFocus(this); window.status='Login'; return true;" href="#" class="ButtonLink">
         <table onmouseout="this.className='Button'; window.status=''; return true;" onmouseover="this.className='Button_hover'; window.status='Login'; return true;" onmouseup="this.className='Button'; return true;" onmousedown="this.className='Button_active'; return true;" class="Button">
          <tbody>
           <tr>
          <td class="Button_left"><img src="../../../../../web/images/blank.gif" title="Login" alt="Logn" class="Button_Icon Button_Icon_ok" border="0"></td>
          <td class="Button_text Button_width">Login</td>
          <td class="Button_right"></td>
           </tr>
          </tbody>
         </table>
        </a>
         </div>
        </td>
        <td></td>
       </tr>
       <tr><td colspan="3" height="15"></td></tr>
      </tbody>
       </table>
      </td>
      <td></td>
     </tr>
     <tr class="Login_Demo_Separator_Middle_Hor"><td></td></tr>
     <tr>
      <td></td>
      <td colspan="3">
       <table border="0" cellpadding="0" cellspacing="0" width="100%" style="background-color: #E8E8E8;">
      <tbody>
       <tr>
        <td colspan="3" height="30">
         <div style="font-family: trebuchet ms,arial,sans-serif; letter-spacing: -1px; padding: 15px 15px 20px; color: #808080; font-size: 15pt; font-weight: bolder; text-indent: 0px; text-align: center;">Did you know that Openbravo offers multiple additional resources that have been developed to facilitate your evaluation of our leading ERP solution?</div>
        </td>
       </tr>
       <tr>
        <td width="33%" align="center" style="padding-bottom: 20px;">
        <a href="http://www.openbravo.com/about-us/events/webinars/" target="_blank"><img src="../../../../../web/skins/ltr/Default/Demo/img/demo-online-banners.png" title="Openbravo Webinars" alt="Openbravo Webinars" border="0" width="210" height="150" /></a>
         </td>
        </td>
        <td width="34%" align="center" style="padding-bottom: 20px;">
          <a href="http://www.openbravo.com/product/demo-center/erp/#video" target="_blank"><img src="../../../../../web/skins/ltr/Default/Demo/img/cat-videodemos-en.png" title="Video Demonstrations" alt="Video Demonstrations" border="0" width="210" height="150" /></a></td>
        </td>
        <td width="33%" align="center" style="padding-bottom: 20px;">
      <a href="http://www.openbravo.com/product/demo-center/erp/#screen" target="_blank"><img src="../../../../../web/skins/ltr/Default/Demo/img/cat-screenshots-en.png" title="Screenshots" alt="Screenshots" border="0" width="210" height="150" /></a>
       </td>
        </td>
       </tr>
      </tbody>
       </table>
      <td></td>
     </tr>
     <tr class="Login_Demo_Separator_Middle_Hor"><td></td></tr>
     <tr>
      <td></td>
      <td><a class="" href="http://www.openbravo.com/product/erp/acquire/" target="_blank"><img src="../../../../../web/skins/ltr/Default/Demo/img/call-to-action-howtobuy.png" alt="How to buy Openbravo" border="0" width="420"></a></td>
      <td></td>
      <td class="Login_TableEdition" style="height: 30px;"><a href="http://www.openbravo.com/partners/become-partner/" target="_blank" class=""><img src="../../../../../web/skins/ltr/Default/Demo/img/call-to-action-becomepartner.png" alt="Become a partner of Openbravo" border="0" width="431"></a></td>
      <td></td>
     </tr>
    </tbody>
     </table>
    </div>
    <table class="Main_ContentPane_Bottom" id="tdbottomSeparator" border="0" cellpadding="0" cellspacing="0" width="100%">
     <tbody>
    <tr>
     <td class="Main_Bottom_bg" id="tdbottomButtons"><img src="../../../../../web/images/blank.gif" border="0"></td>
    </tr>
     </tbody>
    </table>
   </td>
   <td valign="top">
    <table class="Main_ContentPane_Right" id="tdrightSeparator" border="0" cellpadding="0" cellspacing="0" width="100%">
     <tbody>
    <tr><td class="Main_NavBar_bg_right"></td></tr>
    <tr><td class="Main_ToolBar_bg_right" valign="top"></td></tr>
    <tr><td class="Main_Client_bg_right"></td></tr>
    <tr><td class="Main_Bottom_bg_right"></td></tr>
     </tbody>
    </table>
   </td>
  </tr>
   </tbody>
  </table>
 </div>
</form>
</body>
</html>