<% /****************************************************************************** * Copyright (c) 2000-2004 e-Deal * * e-Deal S.A. * 55 rue Brillat Savarin * 75013 Paris * France * * T: +33 (0)1 53 80 80 30 * F: +33 (0)1 73 01 69 77 * http://www.e-deal.com * * La diffusion de ce code source sous quelque forme que ce soit sans * l'autorisation de E-DEAL est interdite. * * Vous êtes autorisés à modifier ce code source uniquement pour votre usage * propre et sous réserve que les mentions de copyright demeurent intactes. * * Ce code est fourni en l'état. Aucune garantie d'aucune sorte, explicite ou * implicite n'est donnée. En aucun cas E-DEAL ne pourra être tenu pour * responsable des dommages pouvant résulter de l'utilisation de ce code * source. * * ******************************************************************************/ %><%@ page contentType="text/plain;charset=ISO-8859-1"%><%@ page import="com.edeal.frontline.navigation.FlRequest" %><%@ page import="com.edeal.frontline.Utils" %><%@ taglib uri="http://www.e-deal.com/taglib/fl" prefix="fl" %><% String queryString = request.getQueryString(); final org.apache.commons.logging.Log logger = org.apache.commons.logging.LogFactory.getLog(getClass()); FlRequest flRequest = new FlRequest(request); String forwardPage = flRequest.getRequestParameterOrAttribute("forwardPage"); response.addHeader("EDEAL_login","true"); %> var div = document.getElementById('login_div'); if (div == null) { div = document.createElement('div'); div.setAttribute('id', 'login_div'); div.id = 'login_div'; document.body.appendChild(div); } else { while (div.hasChildNodes()) { div.removeChild(div.firstChild); } } var formNode = document.createElement('form'); formNode.name = 'login_form'; formNode.id = 'login_form'; formNode.onsubmit = login_ajax; div.appendChild(formNode); var hidden = document.createElement('input'); hidden.setAttribute('id', 'forwardPage'); hidden.setAttribute('name', 'forwardPage'); hidden.setAttribute('type', 'hidden'); hidden.setAttribute('value', '<%= Utils.formatToJavascript(forwardPage) %>'); formNode.appendChild(hidden); hidden = document.createElement('input'); hidden.setAttribute('id', 'resolutionX'); hidden.setAttribute('name', 'resolutionX'); hidden.setAttribute('type', 'hidden'); hidden.setAttribute('value', screen.width); formNode.appendChild(hidden); hidden = document.createElement('input'); hidden.setAttribute('id', 'resolutionY'); hidden.setAttribute('name', 'resolutionY'); hidden.setAttribute('type', 'hidden'); hidden.setAttribute('value', screen.height); formNode.appendChild(hidden); var tbl = document.createElement('table'); tbl.setAttribute('cellpadding', '0'); tbl.setAttribute('cellspacing', '0'); tbl.setAttribute('border', '0'); formNode.appendChild(tbl); var thead = document.createElement('thead'); tbl.appendChild(thead); var tbody = document.createElement('tbody'); tbl.appendChild(tbody); var tr = document.createElement('tr'); tbody.appendChild(tr); var td = document.createElement('td'); td.setAttribute('colspan', '4'); td.colSpan = '4'; tr.appendChild(td); var img = document.createElement('img'); img.src = 'icons/nav/spacer.gif'; img.height = '91'; img.width = '300'; img.border = '0'; td.appendChild(img); /* deuxième ligne */ tr = document.createElement('tr'); tbody.appendChild(tr); td = document.createElement('td'); tr.appendChild(td); var img = document.createElement('img'); img.src = 'icons/nav/spacer.gif'; img.width = '40'; img.height = '18'; img.border = '0'; td.appendChild(img); td = document.createElement('td'); td.setAttribute('class', 'tableLog'); tr.appendChild(td); var txt = document.createTextNode('Login'); td.appendChild(txt); td = document.createElement('td'); tr.appendChild(td); var input = document.createElement('input'); input.setAttribute('class', 'chpsTextNorm'); input.setAttribute('type', 'text'); input.setAttribute('name', 'login'); input.setAttribute('id', 'login'); td.appendChild(input); td = document.createElement('td'); tr.appendChild(td); var img = document.createElement('img'); img.src = 'icons/nav/spacer.gif'; img.width = '12'; img.height = '12'; img.border = '0'; td.appendChild(img); /* troisième ligne */ tr = document.createElement('tr'); tbody.appendChild(tr); td = document.createElement('td'); tr.appendChild(td); var img = document.createElement('img'); img.src = 'icons/nav/spacer.gif'; img.width = '40'; img.height = '38'; img.border = '0'; td.appendChild(img); td = document.createElement('td'); td.setAttribute('class', 'tableLog'); tr.appendChild(td); var txt = document.createTextNode('Password'); td.appendChild(txt); td = document.createElement('td'); tr.appendChild(td); var input = document.createElement('input'); input.setAttribute('class', 'chpsTextNorm'); input.setAttribute('type', 'password'); input.setAttribute('name', 'pwd'); input.setAttribute('id', 'pwd'); td.appendChild(input); td = document.createElement('td'); tr.appendChild(td); var img = document.createElement('input'); img.type = 'image'; img.src = 'icons/ico/valider.gif'; img.width = '17'; img.height = '17'; img.border = '0'; td.appendChild(img);