<?php
include "checklog.php";
?>
<html>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<base target="_self">
<link rel="stylesheet" href="backoffice.css" type="text/css">
<script>
<!--
function CheckForm() {
	dc = document.csv.delimitatore.selectedIndex;
	dd = document.csv.decimali.selectedIndex;
	if (dc==2 && dd==0) {
		alert ("Il delimtatore delle colonne e il separatore dei decimali non possono essere uguali:\nscegliere il formato corretto per effettuare l'esportazione");
		return false;
	} else {
		return true;
	}
}
//-->
</script>
</head>

<body topmargin="0" leftmargin="4" marginwidth="4" marginheight="0" class="pagina">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr> 
    <td width="50%"><span class="titolo">Gestione Giacenze - </span><span class="sottotitolo">Esportazione</span></td>
    <td width="25%"><span class="sottotitolo"><a href="bogiac1.php" target="_self">&gt;&gt;Articoli</a></span></td>
    <td width="25%"><span class="sottotitolo"><a href="bogiac2.php" target="_self">&gt;&gt;Varianti</a></span></td>
    <td width="25%"><span class="sottotitolo"><a href="bogiac3.php" target="_self">&gt;&gt;Importazione</a></span></td>
  </tr>
</table>
<form name="csv" method="post" action="csv.php" class="form" onSubmit="return CheckForm();">
  <table border="0" class="form" width="75%">
    <tr> 
      <td colspan="3" class="intestazione">Esporta da CSV:</td>
    </tr>
    <tr> 
      <td align="right" valign="top" nowrap>&nbsp;</td>
      <td align="left" valign="top" colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td align="right" valign="middle" nowrap><b>Delimitatore colonne:</b></td>
      <td align="left" valign="top" colspan="2"> 
        <table width="100%" border="0" cellspacing="0" cellpadding="0" class="form">
          <tr> 
            <td valign="middle"> 
              <select name="delimitatore" class="pulsante">
                <option value="0" selected>Punto e virgola (;)</option>
                <option value="1">Tabulazione</option>
                <option value="2">Virgola (,)</option>
              </select>
            </td>
            <td>&nbsp;</td>
            <td width="100%">La prima colonna conterr&agrave; il codice articolo, 
              la seconda il valore della giacenza</td>
          </tr>
        </table>
      </td>
    </tr>
    <tr> 
      <td align="right" valign="middle" nowrap>&nbsp;</td>
      <td align="left" valign="top" colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td align="right" valign="middle" nowrap><b>Separatore decimali:</b></td>
      <td align="left" valign="top" colspan="2"> 
        <select name="decimali" class="pulsante">
          <option value="0" selected>Virgola (,)</option>
          <option value="1">Punto (.)</option>
        </select>
      </td>
    </tr>
    <tr> 
      <td valign="top" align="right" nowrap>&nbsp;</td>
      <td align="left" valign="top" colspan="2">&nbsp;</td>
    </tr>
    <tr> 
      <td valign="top" align="right" nowrap>&nbsp;</td>
      <td align="left" valign="top" colspan="2"> 
        <input type="submit" name="Submit" value="Esporta" class="pulsante">
      </td>
    </tr>
  </table>
</form>

<form name="help"><input type="hidden" name="pagina" value="giacenze.htm"></form>
</body>
</html>
