no perchè pultroppo è collegata ad una banca dati e il database on-line ancora non viene creato
le checkbox prendono il loro valore da php ma guardando l'html il valore arriva...
la funzione
codice:
function prendi(){
var f = document.form1;
alert(f.elements['selezione'].value);
}
codice:
<form name="form1" method="get" action="" onSubmit="return calcola (this.base.value,this.pezzi.value,this.nrighe.value)">
<table width="200" border="0" cellpadding="4" cellspacing="4">
<tr bgcolor="#7AC137">
<td colspan="14" nowrap><div align="center"><span class="Stile2">LISTINO PREZZI TIMBRI</span></div></td>
</tr>
<tr bgcolor="#FF0000">
<td colspan="14" nowrap><span class="Stile2"><?php echo calcolaprezzo($_GET['base'],$_GET['nrighe'],$_GET['riquadro'],$_GET['marchio'],$_GET['manico'],$_GET['pezzi'],$_GET['percentuale'], $_GET['cliente']); ?></span></td>
</tr><tr bgcolor="#6699CC">
<td colspan="14" nowrap>AGGIUNGI UNA NUOVA RIGA <span class="Stile3"> - TORNA AL MENU</span> <div align="left"></div></td>
</tr>
<tr bgcolor="#6699CC">
<td colspan="14" nowrap><span class="Stile3">MISURE: CM </span><span class="Stile3">
<input name="base" type="text" id="base" value="<?php echo $_GET['base']; ?>" size="6" maxlength="5">
X
<input name="nrighe" type="text" id="nrighe" value="<?php echo $_GET['nrighe']; ?>" size="4" maxlength="3">
RIGHE </span><span class="Stile3">RIQUADRO:
<input name="riquadro" type="checkbox" id="riquadro" value="SI">
</span><span class="Stile3">MARCHIO:
<input name="marchio" type="checkbox" id="marchio" value="SI">
</span><span class="Stile3">MANICO IN LEGNO :
<input name="manico" type="checkbox" id="manico" value="SI">
</span><span class="Stile3">PEZZI:
<input name="pezzi" type="text" id="pezzi" value="<?php echo $_GET['pezzi']; ?>" size="4" maxlength="4">
</span><span class="Stile3"></span><span class="Stile3"></span></td>
</tr>
<tr bgcolor="#6699CC">
<td colspan="11" nowrap>
<div align="left">
<span class="Stile3">
<select name="cliente" id="cliente">
<?php
do {
?>
<option value="<?php echo $row_cliente['fascia_produzione']?>"><?php echo $row_cliente['ragionesociale']?></option>
<?php
} while ($row_cliente = mysql_fetch_assoc($cliente));
$rows = mysql_num_rows($cliente);
if($rows > 0) {
mysql_data_seek($cliente, 0);
$row_cliente = mysql_fetch_assoc($cliente);
}
?>
</select>
</span> </div></td>
<td nowrap><span class="Stile3">SCONTO:</span><span class="Stile3"></span><span class="Stile3"> </span><span class="Stile3"> </span></td>
<td nowrap><span class="Stile3">
<input name="percentuale" type="text" id="percentuale" value="<?php echo $_GET['percentuale']; ?>" size="4" maxlength="2">
% </span></td>
<td nowrap><span class="Stile3">
<input name="Submit" type="submit" value="CALCOLA">
</span></td>
</tr>
<tr bgcolor="#7AC137">
<td colspan="14" nowrap bgcolor="#FFFFFF"><div align="left">
<p class="Stile3">
<?php if ($totalRows_articolo > 0) { // Show if recordset not empty ?>
<?php do { ?>
','DETTAGLIO','scrollbars=yes,width=420,height=260')">[img]../../public/images/<?php echo $row_articolo['articolo']; ?>.jpg[/img]" border="0">
<span class="Stile10">€ <?php echo $row_articolo['pubblico']; ?></span>
<input name="selezione" type="checkbox" id="selezione" onClick="prendi()" value="<?php echo $row_articolo['pubblico']; ?>">
<?php } while ($row_articolo = mysql_fetch_assoc($articolo)); ?>
<?php } // Show if recordset not empty ?>
</p>
<p class="Stile10"></p>
</div> <div align="center"><span class="Stile3"></span></div></td>
</tr>
<?php if ($totalRows_articolo > 0) { // Show if recordset not empty ?>
<tr bgcolor="#7AC137">
<td colspan="12" nowrap>
<table border="0" width="50%" align="left">
<tr>
<td width="23%" align="center"><?php if ($pageNum_articolo > 0) { // Show if not first page ?>
">Primo
<?php } // Show if not first page ?>
</td>
<td width="31%" align="center"><?php if ($pageNum_articolo > 0) { // Show if not first page ?>
">Indietro
<?php } // Show if not first page ?>
</td>
<td width="23%" align="center"><?php if ($pageNum_articolo < $totalPages_articolo) { // Show if not last page ?>
">Avanti
<?php } // Show if not last page ?>
</td>
<td width="23%" align="center"><?php if ($pageNum_articolo < $totalPages_articolo) { // Show if not last page ?>
">Ultimo
<?php } // Show if not last page ?>
</td>
</tr>
</table></td>
<td colspan="2" nowrap bgcolor="#FFFFFF"><span class="Stile3"><span class="Stile2">[img]../../html/images/conf_ut.gif[/img]
<input name="sez" type="text" id="sez" size="6" maxlength="4">
</span></span></td>
</tr>
<?php } // Show if recordset not empty ?>
<tr bgcolor="#7AC137">
<td width="0" nowrap><div align="center" class="Stile2">
<div align="center"><span class="Stile3">MM</span></div>
</div></td>
<td width="0" nowrap><div align="center"><span class="Stile2">1</span></div></td>
<td width="0" nowrap><div align="center" class="Stile2 Stile3 Stile5">
<div align="center">2</div>
</div></td>
<td width="0" nowrap><div align="center" class="Stile2 Stile3 Stile6">
<div align="center">3</div>
</div></td>
<td width="0" nowrap><div align="center" class="Stile2 Stile3 Stile7">
<div align="center">4</div>
</div></td>
<td width="0" nowrap><div align="center" class="Stile2 Stile3 Stile8">
<div align="center">5</div>
</div></td>
<td width="0" nowrap><div align="center" class="Stile2 Stile3 Stile9">
<div align="center">6</div>
</div> </td>
<td width="0" nowrap><div align="center"><span class="Stile2">7</span></div></td>
<td width="0" nowrap><div align="center"><span class="Stile2">8</span></div></td>
<td width="0" nowrap><div align="center"><span class="Stile2">9</span></div></td>
<td width="0" nowrap><div align="center"><span class="Stile2">10</span></div></td>
<td width="0" nowrap><div align="center"><span class="Stile2">11</span></div></td>
<td width="0" nowrap><div align="center"><span class="Stile2">12</span></div></td>
<td nowrap><div align="center"><span class="Stile2">CANCELLA</span></div></td>
</tr>
<?php do { ?>
<tr>
<td width="0" nowrap bgcolor="#6699CC"><div align="center" class="Stile3">
<div align="center"><?php echo $row_lista['mm']; ?></div>
</div></td>
<td width="0" nowrap><div align="center" class="Stile3">
<div align="center" class="Stile4">
<div align="center"><?php echo $row_lista['1']; ?></div>
</div>
</div></td>
<td width="0" nowrap><div align="center" class="Stile4">
<div align="center"><?php echo $row_lista['2']; ?></div>
</div></td>
<td width="0" nowrap><div align="center" class="Stile4">
<div align="center"><?php echo $row_lista['3']; ?></div>
</div></td>
<td width="0" nowrap><div align="center" class="Stile3">
<div align="center" class="Stile4">
<div align="center"><?php echo $row_lista['4']; ?></div>
</div>
</div></td>
<td width="0" nowrap><div align="center" class="Stile3">
<div align="center" class="Stile4">
<div align="center"><?php echo $row_lista['5']; ?></div>
</div>
</div></td>
<td width="0" nowrap><div align="center" class="Stile3">
<div align="left" class="Stile4">
<div align="center"><?php echo $row_lista['6']; ?></div>
</div>
</div> <div align="center" class="Stile3"></div> <div align="center" class="Stile3"></div></td>
<td width="0" nowrap><div align="center"><?php echo $row_lista['7']; ?></div></td>
<td width="0" nowrap><div align="center"><?php echo $row_lista['8']; ?></div></td>
<td width="0" nowrap><div align="center"><?php echo $row_lista['9']; ?></div></td>
<td width="0" nowrap><div align="center"><?php echo $row_lista['10']; ?></div></td>
<td width="0" nowrap><div align="center"><?php echo $row_lista['11']; ?></div></td>
<td width="0" nowrap><div align="center"><?php echo $row_lista['12']; ?></div></td>
<td nowrap bgcolor="#6699CC"><div align="center">')">ELIMINA</div> <span class="Stile3">
</span></td>
</tr>
<?php } while ($row_lista = mysql_fetch_assoc($lista)); ?>
<tr bgcolor="#FFFFFF">
<td colspan="14"><div align="left">I prezzi indicati nel presente listino sono per timbri con righe di non oltre 6 mm. </div></td>
</tr>
<tr bgcolor="#FFFFFF">
<td colspan="14"><div align="left">I con misure intermedie vengono conteggiati con la misura successiva </div></td>
</tr>
</table>
</form>