<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
   "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
%let;maxl;%if;(evar.data = "src")300%else;200%end;%in;
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <!-- $Id: upddata.txt,v 0.01 2012-10-29 11:42:30 flh Exp $ -->
  <!-- Copyright (c) 2006-2007 INRIA -->
  <!-- Modified mickroue(a)yahoo.fr 20130109 templ=templm -->
  <title>%title;</title>
  <meta http-equiv="Content-Type" content="text/html; charset=%charset;"%/>
  <meta http-equiv="Content-Style-Type" content="text/css"%/>
  <meta name="robots" content="none"%/>
  <link rel="shortcut icon" href="%image_prefix;/favicon_gwd.png"%/>
  %include.css;
  %base_header;
  <script type="text/javascript">
  <!--

  function submitupd()
  {
   var x1 = document.getElementById('nx_a');
   var x2 = "%prefix;m=MOD_DATA_OK;data=%evar.data;;s=%encode.evar.s;;"
   var x3 = x1.title;
   var x4 = "nx_input="
   var x5 = document.getElementById('nx_input').value;
   var x6 = document.getElementById('nx_span');
   parent.ifr.location.href = x2 + x3 + x4 + x5;
   x1.firstChild.nodeValue = x5;
   x1.setAttribute("style","color:#C0C0C0;font-style:italic;","false");
   x1.focus();
   x6.setAttribute("style","visibility:hidden","false");
   return false;
  }
  function lhr()
   {
    var x1 = "%prefix;m=H;v=advanced;occu=";
    var x2 = document.getElementById('nx_input').value;
    parent.location.href = x1 + x2;
   }
  function upd(zz)
   {
    var x1 = document.getElementById('nx_a');
    x1.removeAttribute("id","false");
    zz.setAttribute("id","nx_a","false");
    var x2 = document.getElementById('nx_a');
    var x3 = x2.getAttribute("style","false");
    if (x3 == null)
    {
      document.getElementById('nx_span').outerHTML = "";
      var x4 = x2.innerHTML;
      var x5 = "<span id=\"nx_span\">"
                +"<input type=\"text\" id=\"nx_input\" name=\"nx_input\" size=\"80\" maxlength=\"%maxl;\" \/>"
                +"<input type=\"submit\" value=\"ok\"\/>"
                %if;(bvar.hide_advanced_request = "no" and evar.data = "occu")
                  +"<a class=\"button\" href=\"javascript:lhr()\"> [*advanced request] <\/a>"
                %end;
                +"<\/span>";
      x2.insertAdjacentHTML("AfterEnd",x5);
      var x6 = document.getElementById('nx_input');
      x6.setAttribute("value",x4,"false");
      x6.focus();
      return false;
    }
   }
  //-->
  </script>
</head>

%define;print_short()
  <p>[*select a letter] :</p>
  <p class="list_ini">
    %foreach;initial;
      <a href="%prefix;m=MOD_DATA;data=%evar.data;;s=%encode.ini;">%html_encode.ini;</a>
    %end;
  </p>
%end;

%define;print_long()
  <p>[*help modify data]</p>
  <p>
     %foreach;entry;
       <a href="#%entry_ini;">%html_encode.entry_ini;</a>
     %end;
  </p>
  <form id="updata" method="post" action="%action;" onsubmit="return submitupd()">
    <dl>
      %foreach;entry;
        <dt><a id="%entry_ini;">%html_encode.entry_ini;</a></dt>
        %foreach;value;
          <dd><a title="%keys;" href="javascript:void(0);"
                 onclick="javascript:upd(this)">%escape.entry_value;</a></dd>
        %end;
      %end;
    </dl>
  </form>
%end;

<body%body_prop;>
<div id="nx_span" style="display:none">a</div>
<div id="nx_a" style="display:none">a</div>

%if;not cancel_links;
  <table style="float:%right;">
    <tr><td>
      %if;(referer != "")
        <a href="%referer;">
          <img src="%image_prefix;/left.png" %wid_hei;left.png; alt="&lt;&lt;" title="&lt;&lt;"%/>
        </a>
      %end;
      <a href="%prefix;">
        <img src="%image_prefix;/up.png" %wid_hei;up.pnd; alt="^^" title="^^"%/>
      </a>
    </td></tr>
  </table>
%end;

<h1>%title;</h1>
<iframe style="position:fixed;bottom:0px;right:0px;width:400px;height:120px;" src="%prefix;m=MOD_DATA_OK" name="ifr">
<p>The browser does not like IFRAME ! Error $*^ù¤£ùµ€~èàçé</p>
</iframe>


%if;(nb_results > 1000)
  %apply;print_short()
%else;
  %apply;print_long()
%end;
%base_trailer;
%copyright;

</body>
</html>
