%doctype;
<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 -->
  <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;
</head>
<body%body_prop;>

%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>

%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()
  <div class="tips">
    <table><tr><td>[*help modify data]</td></tr></table>
  </div>
  <br%/>

  <table class="display_search">
    <tr>
      %foreach;entry;
        <td class="list_ini">
          <a href="#%entry_ini;">%html_encode.entry_ini;</a>
        </td>
      %end;
    </tr>
  </table>
  <br%/>

  <form method="POST" action="%action;">
    %hidden;
    <ul>
      %foreach;entry;
        <li><a id="%entry_ini;">%html_encode.entry_ini;</a></li>
        <ul class="mod_data_ul">
          %foreach;value;
            <li>
              %if;not is_modified;
                <a href="%prefix;m=MOD_DATA;data=%evar.data;;%keys;s=%encode.evar.s;#mod">
                  %escape.entry_value;
                </a>
              %else;
                <a name="mod">&nbsp;</a>
                %foreach;env_keys;
                  <input type="hidden" name="%key_name;" value="%key_value;">
                %end;
                <input type="hidden" name="m" value="MOD_DATA_OK">
                <input type="hidden" name="data" value="%evar.data;">
                <input type="hidden" name="s" value="%evar.s;">
                %if;(evar.data = "src")
                  <input type="text" id="nx_input" name="nx_input" size="80" maxlength="300" value="%escape.printable.entry_value;">
                %else;
                  <input type="text" id="nx_input" name="nx_input" size="80" maxlength="200" value="%escape.printable.entry_value;">
                %end;
                <input type="submit" value="Ok">
              %end;
            </li>
          %end;
        </ul>
      %end;
    </ul>
  </form>
%end;

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

%base_trailer;
%copyright;

</body>
</html>
