RecuperaDati($query) ; // print_r($d) ; exit ; for ($i=0; $i<$n; $i++) { $idfor = $d['IdFornitori'][$i] ; $Prodotto = $d['NomeProdotto'][$i] ; if (!@array_key_exists($idfor, $arrFor)) @$arrFor[$idfor] = $d["NomeFornitore"][$i] ; if ( (isset($prodotto) and $prodotto != '' and (strpos(strtoupper($Prodotto), strtoupper($prodotto)) === false)) or (isset($fornitore) and ($fornitore != 'tutti') and ($fornitore != $idfor)) ) continue ; $act_fil ++ ; $TotBott += ($d['NumBottV'][$i] + $d['NumBottSM'][$i]) ; $TotBottV += $d['NumBottV'][$i] ; $TotBottSM += $d['NumBottSM'][$i] ; } $header = "CODICE - NOME PRODOTTO,FORNITORE,Totale,Venduto,Sconto Merce" ; $attHeaderStyle = "background-color:#ffffaa;border-bottom:1px solid silver;padding:2px 2px 0px 2px" ; $attH = "
,
, , , " ; $attHS = "$attHeaderStyle,$attHeaderStyle,$attHeaderStyle,$attHeaderStyle,$attHeaderStyle" ; $footer = "TOTALE:-#cspan-" . nfl($TotBott) . "-" . nfl($TotBottV) . "-" . nfl($TotBottSM) . "" ; $strSort = "str,str,int,int,int" ; $iniWP = "36,34,10,9,9" ; $setColType = "ro,ro,ro,ro,ro" ; $setColAlign = "left,left,right,right,right" ; @asort($arrFor) ; ?> <? echo TITLE ?>
Numero Prodotti: ; Attualmente filtrati: (per selezionare un prodotto clicca sulla riga corrispondente)