• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP gaz_format_number函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中gaz_format_number函数的典型用法代码示例。如果您正苦于以下问题:PHP gaz_format_number函数的具体用法?PHP gaz_format_number怎么用?PHP gaz_format_number使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了gaz_format_number函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: gaz_format_number

     } else {
        $movSaldo -= $row['import'];
        $avere = gaz_format_number($row['import']);
        $dare = '';
      }
      $aRiportare['top'][1]['nam'] = gaz_format_number($movSaldo);
      $aRiportare['bot'][1]['nam'] = gaz_format_number($movSaldo);
      $pdf->Cell(18,4,$datareg,1,0,'C');
      if (!empty($row['partner']) || !empty($row['numdoc'])){
          $row['tesdes'].=' ('.$row['partner'];
          if (!empty($row['numdoc'])){
             $row['tesdes'] .= ' n.'.$row['numdoc'].' del '.$datadoc;
             if ($row['protoc']>0) {
                $row['tesdes'] .= ' sez.'.$row['seziva'].' p.'.$row['protoc'];
             }
          }
          $row['tesdes'].=')';
      }
      $pdf->Cell(108,4,$row['tesdes'],'LTB',0,'L',0,'',1);
      $pdf->SetFont('helvetica','',7);
      $pdf->Cell(20,4,$dare,1,0,'R');
      $pdf->Cell(20,4,$avere,1,0,'R');
      $pdf->Cell(20,4,gaz_format_number($movSaldo),1,1,'R');
      $ctrlConto = $row['codcon'];
}
$pdf->SetFont('helvetica','B',8);
$pdf->Cell($aRiportare['top'][0]['lun'],4,'SALDO al '.$descrDatafin.' : ',1,0,'R');
$pdf->Cell($aRiportare['top'][1]['lun'],4,$aRiportare['top'][1]['nam'],1,0,'R');
$pdf->setRiporti('');
$pdf->Output();
?>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:stampa_partit.php


示例2: while

        while (list($key, $mv) = each($m)) {
            $saldo += $mv['dare'];
            $saldo -= $mv['avere'];
            echo "<tr><td class=\"FacetDataTD\">".gaz_format_date($mv["datreg"])." &nbsp;</td>";
            echo "<td align=\"center\" class=\"FacetDataTD\"><a href=\"admin_movcon.php?id_tes=".$mv["id_tes"]."&Update\">".$mv["id_tes"]."</a> &nbsp</td>";
            echo "<td class=\"FacetDataTD\">".$mv["tesdes"]." &nbsp;</td>";
            if (!empty($mv['numdoc'])){
                echo "<td align=\"center\" class=\"FacetDataTD\">".$mv["protoc"]." &nbsp;</td>";
                echo "<td align=\"center\" class=\"FacetDataTD\">".$mv["numdoc"]." &nbsp;</td>";
                echo "<td align=\"center\" class=\"FacetDataTD\">".gaz_format_date($mv["datdoc"])." &nbsp;</td>";
            } else {
                echo "<td class=\"FacetDataTD\" colspan=\"3\"></td>";
            }
            echo "<td align=\"right\" class=\"FacetDataTD\">".gaz_format_number($mv['dare'])." &nbsp;</td>";
            echo "<td align=\"right\" class=\"FacetDataTD\">".gaz_format_number($mv['avere'])." &nbsp;</td>";
            echo "<td align=\"right\" class=\"FacetDataTD\">".gaz_format_number($saldo)." &nbsp;</td></tr>";
        }
     }
     echo "\t<tr class=\"FacetFieldCaptionTD\">\n";
     echo '<td colspan="'.$span.'" align="right"><input type="submit" name="print" value="';
     echo $script_transl['print'];
     echo '">';
     echo "\t </td>\n";
     echo "\t </tr>\n";
  } else {
     echo "<tr><td class=\"FacetDataTDred\" align=\"center\">".$script_transl['errors'][4]."</TD></TR>\n";
  }
  echo "</table></form>";
}
?>
</body>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:select_partit.php


示例3: foreach

 $pdf->Cell(130,5,
            $paymov->docData[$k]['descri'].' n.'.
            $paymov->docData[$k]['numdoc'].'/'.
            $paymov->docData[$k]['seziva'].' '.
            $paymov->docData[$k]['datdoc']
            ,1,1);
 foreach ($v as $ki=>$vi){
    $pdf->SetFillColor(170,255,170);
    $v_op='';
    $cl_exp='';
    if ($vi['op_val']>=0.01){
       $v_op=gaz_format_number($vi['op_val']);
    }
    $v_cl='';
    if ($vi['cl_val']>=0.01){
        $v_cl=gaz_format_number($vi['cl_val']);
        $cl_exp=gaz_format_date($vi['cl_exp']);
    }
    $expo='';
    if ($vi['expo_day']>=1){ 
       $expo=$vi['expo_day'];
       if ($vi['cl_val']==$vi['op_val']){
          $vi['status']=2; // la partita è chiusa ma è esposta a rischio insolvenza 
          $pdf->SetFillColor(255,245,185);
          $class_paymov='FacetDataTDevidenziaOK';
       }
    } else {
       if ($vi['cl_val']==$vi['op_val']){ // chiusa e non esposta
          $cl_exp='';
          $pdf->SetFillColor(230,255,230);
       } elseif($vi['status']==3){ // SCADUTA
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:print_partner_status.php


示例4: gaz_dbi_get_row

if ($chk_add_iva_tes == 0){// se le spese della testata non sono state aggiunte perchè non si è incontrato uno stesso codice IVA
   $result = gaz_dbi_get_row($gTables['aliiva'],"codice",$form['ivaspe']);
   $impcast = $form['traspo'] + $form['speban']*$form['numrat'] + $form['spevar'];
   $ivacast =  round($impcast * $result['aliquo'])/ 100;
   $totimpfat += $impcast;
   $totivafat += $ivacast;
   if ($i > 0) {
        echo "<tr><td align=\"right\">".number_format ($impcast,2, '.', '')."</td><td align=\"right\">".$result['descri']." ".number_format ($ivacast,2, '.', '')."</td>\n";
   }
   $chk_add_iva_tes = 1;
}

if ($i > 0) {
        echo "<td align=\"right\">".number_format ($totimpmer,2, '.', '')."</td>
               <td align=\"right\">".gaz_format_number (($totimpfat-$totimpmer-$form['traspo']-($form['speban']*$form['numrat'])-$form['spevar']),2, '.', '')."</td>
               <td align=\"right\">".number_format ($totimpfat,2, '.', '')."</td>
               <td align=\"right\">".number_format ($totivafat,2, '.', '')."</td>
               <td align=\"right\">".$quatot."</td>
               <td align=\"right\">".number_format (($totimpfat+$totivafat),2, '.', '')."</td>\n";
        if ($toDo == 'update') {
           echo '<td class="FacetFieldCaptionTD" align="right"><input type="submit" accesskey="m" name="ins" id="preventDuplicate" onClick="chkSubmit();" value="MODIFICA !"></td></tr>';
        } else {
           echo '<td class="FacetFieldCaptionTD" align="right"><input type="submit" accesskey="i" name="ins" id="preventDuplicate" onClick="chkSubmit();" value="INSERISCI !"></td></tr>';
        }
}
echo "</table><br />";
?>
</form>
</body>
</html>
开发者ID:andreabia,项目名称:gazie,代码行数:30,代码来源:admin_docacq.php


示例5: pageFooter

 function pageFooter()
 {
     $this->Cell(186, 6, '', 'T', 1);
     //stampo il castelletto
     $this->SetY(180);
     $this->SetFont('helvetica', 'B', 48);
     $this->SetTextColor(255, 150, 150);
     $this->Cell(186, 20, 'N O N   F I S C A L E', 0, 1, 'C');
     $this->SetTextColor(0, 0, 0);
     $this->SetY(212);
     $this->SetFont('helvetica', '', 8);
     $this->Cell(62, 6, 'Pagamento', 'LTR', 0, 'C', 1);
     $this->Cell(68, 6, 'Castelletto I.V.A.', 'LTR', 0, 'C', 1);
     $this->Cell(56, 6, 'T O T A L E    F A T T U R A', 'LTR', 1, 'C', 1);
     $this->Cell(62, 6, $this->pagame['descri'], 'LBR', 0, 'L');
     $this->Cell(18, 4, 'Imponibile', 'LR', 0, 'C', 1);
     $this->Cell(32, 4, 'Aliquota', 'LR', 0, 'C', 1);
     $this->Cell(18, 4, 'Imposta', 'LR', 1, 'C', 1);
     $this->docVars->setTotal();
     foreach ($this->docVars->cast as $key => $value) {
         $this->Cell(62);
         $this->Cell(18, 4, gaz_format_number($value['impcast']) . ' ', 'LR', 0, 'R');
         $this->Cell(32, 4, $value['descriz'], 0, 0, 'C');
         $this->Cell(18, 4, gaz_format_number($value['ivacast']) . ' ', 'LR', 1, 'R');
     }
     //azzero il castelletto
     foreach ($this->docVars->castel as $i => $value) {
         unset($this->docVars->castel[$i]);
     }
     $totimpmer = $this->docVars->totimpmer;
     $speseincasso = $this->docVars->speseincasso;
     $totimpfat = $this->docVars->totimpfat;
     $totivafat = $this->docVars->totivafat;
     $vettor = $this->docVars->vettor;
     $impbol = $this->docVars->impbol;
     $totriport = $this->docVars->totriport;
     $taxstamp = $this->docVars->taxstamp;
     //effettuo il calcolo degli importi delle scadenze
     $totpag = $totimpfat + $impbol + $totriport + $totivafat;
     $ratpag = CalcolaScadenze($totpag, $this->giorno, $this->mese, $this->anno, $this->pagame['tipdec'], $this->pagame['giodec'], $this->pagame['numrat'], $this->pagame['tiprat'], $this->pagame['mesesc'], $this->pagame['giosuc']);
     if ($ratpag) {
         //allungo l'array fino alla 4^ scadenza
         $ratpag['import'] = array_pad($ratpag['import'], 4, '');
         $ratpag['giorno'] = array_pad($ratpag['giorno'], 4, '');
         $ratpag['mese'] = array_pad($ratpag['mese'], 4, '');
         $ratpag['anno'] = array_pad($ratpag['anno'], 4, '');
     } else {
         for ($i = 0; $i <= 3; $i++) {
             $ratpag['import'][$i] = "";
             $ratpag['giorno'][$i] = "";
             $ratpag['mese'][$i] = "";
             $ratpag['anno'][$i] = "";
         }
     }
     //stampo i totali
     $this->SetY(200);
     $this->SetFillColor(hexdec(substr($this->colore, 0, 2)), hexdec(substr($this->colore, 2, 2)), hexdec(substr($this->colore, 4, 2)));
     $this->SetFont('helvetica', '', 9);
     $this->Cell(36, 6, 'Totale merce', 'LTR', 0, 'C', 1);
     $this->Cell(16, 6, '% Sconto', 'LTR', 0, 'C', 1);
     $this->Cell(24, 6, 'Spese Incasso', 'LTR', 0, 'C', 1);
     $this->Cell(26, 6, 'Trasporto', 'LTR', 0, 'C', 1);
     $this->Cell(36, 6, 'Tot.Imponibile', 'LTR', 0, 'C', 1);
     $this->Cell(26, 6, 'Tot. I.V.A.', 'LTR', 0, 'C', 1);
     $this->Cell(22, 6, 'Bolli', 'LTR', 1, 'C', 1);
     if ($totimpmer > 0) {
         $this->Cell(36, 6, gaz_format_number($totimpmer), 'LBR', 0, 'C');
     } else {
         $this->Cell(36, 6, '', 'LBR');
     }
     if ($this->tesdoc['sconto'] > 0) {
         $this->Cell(16, 6, gaz_format_number($this->tesdoc['sconto']), 'LBR', 0, 'C');
     } else {
         $this->Cell(16, 6, '', 'LBR');
     }
     if ($speseincasso > 0) {
         $this->Cell(24, 6, gaz_format_number($speseincasso), 'LBR', 0, 'C');
     } else {
         $this->Cell(24, 6, '', 'LBR');
     }
     if ($this->trasporto > 0) {
         $this->Cell(26, 6, gaz_format_number($this->trasporto), 'LBR', 0, 'C');
     } else {
         $this->Cell(26, 6, '', 'LBR');
     }
     if ($totimpfat > 0) {
         $this->Cell(36, 6, gaz_format_number($totimpfat), 'LBR', 0, 'C');
     } else {
         $this->Cell(36, 6, '', 'LBR');
     }
     if ($totivafat > 0) {
         $this->Cell(26, 6, gaz_format_number($totivafat), 'LBR', 0, 'C');
     } else {
         $this->Cell(26, 6, '', 'LBR');
     }
     if ($impbol > 0) {
         $this->Cell(22, 6, gaz_format_number($impbol), 'LBR', 1, 'C');
     } else {
         $this->Cell(22, 6, '', 'LBR');
     }
//.........这里部分代码省略.........
开发者ID:andreabia,项目名称:gazie,代码行数:101,代码来源:fattura_acquisto.php


示例6: elseif

    } else {
       $title = "";
    }
    print "<tr>";
    print "<td class=\"FacetDataTD\" align=\"right\"><a class=\"btn btn-xs btn-default btn-edit\" href=\"admin_movcon.php?id_tes=".$a_row["id_tes"]."&Update\" title=\"Modifica\"><i class=\"glyphicon glyphicon-edit\"></i>&nbsp;".$a_row["id_tes"]."</a> &nbsp</td>";
    print "<td class=\"FacetDataTD\" align=\"center\">".gaz_format_date($a_row["datreg"])." &nbsp;</td>";
    print "<td class=\"FacetDataTD\" title= \"$title\" align=\"center\">".$a_row["caucon"]." &nbsp;</td>";
    print "<td class=\"FacetDataTD\" title= \"$title\">".$a_row["descri"]." &nbsp;</td>";
    if ($a_row["protoc"] > 0) {
       print "<td class=\"FacetDataTD\" align=\"center\">".$a_row["protoc"]."/".$a_row["seziva"]."";
       print "</td>";
    } else {
       print "<td class=\"FacetDataTD\"></td>";
    }
    print "<td class=\"FacetDataTD\" align=\"center\">".$a_row["numdoc"]."</td>";
    print "<td class=\"FacetDataTD\" title= \"$title\" align=\"right\">".gaz_format_number($a_row['dare'])." </td>";
    print "<td class=\"FacetDataTD\" align=\"center\">";
    $docref=getDocRef($a_row);
    if (!empty($docref)){
      echo "<a class=\"btn btn-xs btn-default btn-default\" title=\"".$script_transl['sourcedoc']."\" href=\"$docref\"><i class=\"glyphicon glyphicon-print\"></i></a>";
    } elseif($paymov)  {
      echo "<a class=\"btn btn-xs btn-default btn-default\" title=\"".$script_transl['customer_receipt']."\" href=\"../vendit/print_customer_payment_receipt.php?id_rig=".$paymov."\"><i class=\"glyphicon glyphicon-check\"></i>&nbsp;<i class=\"glyphicon glyphicon-euro\"></i>&nbsp;<i class=\"glyphicon glyphicon-print\"></i></a>";
    }
    print "</td>";
    print "<td class=\"FacetDataTD\" align=\"center\"><a class=\"btn btn-xs btn-default btn-elimina\" href=\"delete_movcon.php?id_tes=".$a_row["id_tes"]."\"><i class=\"glyphicon glyphicon-remove\"></i></a></td>";
    print "</tr>\n";
}
?>
</table>
</body>
</html>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:report_movcon.php


示例7: pageFooter

 function pageFooter()
 {
     $y = $this->GetY();
     $this->Rect(10, $y, 186, 200 - $y);
     //questa marca le linee dx e sx del documento
     //stampo il castelletto
     $this->SetY(212);
     $this->Cell(62, 6, 'Pagamento', 'LTR', 0, 'C', 1);
     $this->Cell(68, 6, 'Castelletto I.V.A.', 'LTR', 0, 'C', 1);
     $this->Cell(56, 6, 'T O T A L E  P A R C E L L A', 'LTR', 1, 'C', 1);
     $this->SetFont('helvetica', '', 8);
     $this->Cell(62, 6, $this->pagame['descri'], 'LBR', 0, 'L');
     $this->Cell(18, 4, 'Imponibile', 'LR', 0, 'C', 1);
     $this->Cell(32, 4, 'Aliquota', 'LR', 0, 'C', 1);
     $this->Cell(18, 4, 'Imposta', 'LR', 1, 'C', 1);
     $this->docVars->setTotal();
     foreach ($this->docVars->cast as $key => $value) {
         if ($this->tesdoc['id_tes'] > 0) {
             $this->Cell(62);
             $this->Cell(18, 4, gaz_format_number($value['impcast']) . ' ', 'LR', 0, 'R');
             $this->Cell(32, 4, $value['descriz'], 0, 0, 'C');
             $this->Cell(18, 4, gaz_format_number($value['ivacast']) . ' ', 'LR', 1, 'R');
         } else {
             $this->Cell(62);
             $this->Cell(68, 4, '', 'LR', 1);
         }
     }
     //azzero il castelletto
     foreach ($this->docVars->castel as $i => $value) {
         unset($this->docVars->castel[$i]);
     }
     //azzero il trasporto
     $this->tottraspo = 0.0;
     $totimpmer = $this->docVars->totimpmer;
     $speseincasso = $this->docVars->speseincasso;
     $totimpfat = $this->docVars->totimpfat;
     $totivafat = $this->docVars->totivafat;
     $totivasplitpay = $this->docVars->totivasplitpay;
     $vettor = $this->docVars->vettor;
     $impbol = $this->docVars->impbol;
     $totriport = $this->docVars->totriport;
     $ritenuta = $this->docVars->tot_ritenute;
     $taxstamp = $this->docVars->taxstamp;
     if ($this->virtual_taxstamp == 0 || $this->virtual_taxstamp == 3) {
         // azzero i bolli in caso di non addebito al cliente
         $taxstamp = 0;
     }
     //effettuo il calcolo degli importi delle scadenze
     $totpag = $totimpfat + $impbol + $totriport + $totivafat - $ritenuta + $taxstamp - $totivasplitpay;
     $ratpag = CalcolaScadenze($totpag, $this->giorno, $this->mese, $this->anno, $this->pagame['tipdec'], $this->pagame['giodec'], $this->pagame['numrat'], $this->pagame['tiprat'], $this->pagame['mesesc'], $this->pagame['giosuc']);
     if ($ratpag) {
         //allungo l'array fino alla 4^ scadenza
         $ratpag['import'] = array_pad($ratpag['import'], 4, '');
         $ratpag['giorno'] = array_pad($ratpag['giorno'], 4, '');
         $ratpag['mese'] = array_pad($ratpag['mese'], 4, '');
         $ratpag['anno'] = array_pad($ratpag['anno'], 4, '');
     } else {
         for ($i = 0; $i <= 3; $i++) {
             $ratpag['import'][$i] = "";
             $ratpag['giorno'][$i] = "";
             $ratpag['mese'][$i] = "";
             $ratpag['anno'][$i] = "";
         }
     }
     //stampo i totali
     $this->SetY(200);
     $this->SetFillColor(hexdec(substr($this->colore, 0, 2)), hexdec(substr($this->colore, 2, 2)), hexdec(substr($this->colore, 4, 2)));
     $this->SetFont('helvetica', '', 9);
     $this->Cell(36, 6, 'Tot. Corpo', 'LTR', 0, 'C', 1);
     $this->Cell(16, 6, '% Sconto', 'LTR', 0, 'C', 1);
     $this->Cell(24, 6, 'Spese Incasso', 'LTR', 0, 'C', 1);
     $this->Cell(26, 6, 'Trasporto', 'LTR', 0, 'C', 1);
     $this->Cell(36, 6, 'Tot.Imponibile', 'LTR', 0, 'C', 1);
     $this->Cell(26, 6, 'Tot. I.V.A.', 'LTR', 0, 'C', 1);
     $this->Cell(22, 6, 'Bolli (tratte)', 'LTR', 1, 'C', 1);
     if ($totimpmer > 0) {
         $this->Cell(36, 6, gaz_format_number($totimpmer), 'LBR', 0, 'C');
     } else {
         $this->Cell(36, 6, '', 'LBR');
     }
     if ($this->tesdoc['sconto'] > 0) {
         $this->Cell(16, 6, gaz_format_number($this->tesdoc['sconto']), 'LBR', 0, 'C');
     } else {
         $this->Cell(16, 6, '', 'LBR');
     }
     if ($speseincasso > 0) {
         $this->Cell(24, 6, gaz_format_number($speseincasso), 'LBR', 0, 'C');
     } else {
         $this->Cell(24, 6, '', 'LBR');
     }
     $this->Cell(26, 6, '', 'LBR');
     if ($totimpfat > 0) {
         $this->Cell(36, 6, gaz_format_number($totimpfat), 'LBR', 0, 'C');
     } else {
         $this->Cell(36, 6, '', 'LBR');
     }
     if ($totivafat > 0) {
         $this->Cell(26, 6, gaz_format_number($totivafat), 'LBR', 0, 'C');
     } else {
         $this->Cell(26, 6, '', 'LBR');
//.........这里部分代码省略.........
开发者ID:andreabia,项目名称:gazie,代码行数:101,代码来源:parcella.php


示例8: mergeTable

    echo "</td></tr>\n";
}
//recupero tutti i movimenti contabili del conto insieme alle relative testate...
$result = mergeTable($gTables['rigmoc'],"*",$gTables['tesmov'],"*","id_tes","codcon = ".$conto['codice']." ORDER BY datreg asc");
$nummov = gaz_dbi_num_rows($result);
if ($nummov > 0) {
    echo "</table><br \><table class=\"Tlarge\"><tr><td colspan=\"6\">Questi sono i movimenti contabili relativi al fornitore ".$conto['ragso1']." ".$conto['ragso2'].":<td></tr>\n";
    echo "<tr><th class=\"FacetFieldCaptionTD\">Mov.</th><th class=\"FacetFieldCaptionTD\">Descrizione</th><th class=\"FacetFieldCaptionTD\">N.Doc.</th><th class=\"FacetFieldCaptionTD\">Data Doc.</th><th class=\"FacetFieldCaptionTD\">Importo</th><th class=\"FacetFieldCaptionTD\">D/A</th></tr>\n";
    while ($movimenti = gaz_dbi_fetch_array($result)) {
        $cl="FacetDataTD";
        if ($movimenti["id_tes"] == $testata["id_con"]) {
        $cl="FacetDataTDred";
        }
        echo "<tr><td class=\"$cl\">n.<a href=\"../contab/admin_movcon.php?Update&id_tes=".$movimenti["id_tes"]."\" title=\"Modifica il movimento\">".$movimenti["id_tes"]."</a> del ".gaz_format_date($movimenti["datreg"])." &nbsp;</td>\n";
        echo "<td class=\"$cl\">".$movimenti["descri"]." &nbsp;</td>";
        echo "<td align=\"center\" class=\"$cl\">".$movimenti["numdoc"]." &nbsp;</td>";
        if ( $movimenti['datdoc'] > 0 ){
           echo "<td align=\"center\" class=\"$cl\">".gaz_format_date($movimenti['datdoc'])." &nbsp;</td>";
        } else {
           echo "<td class=\"$cl\"></td>";
        }
        echo "<td align=\"right\" class=\"$cl\">".gaz_format_number($movimenti["import"])." &nbsp;</td>";
        echo "<td align=\"center\" class=\"$cl\">".$movimenti["darave"]." &nbsp;</td></tr>\n";
    }
} else {
    echo "<tr><td colspan=\"6\" class=\"FacetDataTDred\">Non ci sono movimenti contabili relativi al fornitore ".$conto['ragso1']." ".$conto['ragso2']." !<td></tr>\n";
}
echo "</table></form>";
?>
</body>
</html>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:salcon_debiti.php


示例9:

if ($next_row > 0) {
        if ($form['stamp'] > 0) {
          $calc->payment_taxstamp($calc->total_imp+$calc->total_vat+$carry-$rit+$form['taxstamp'],$form['stamp'],$form['round_stamp']*$form['numrat']);
          $stamp=$calc->pay_taxstamp;  
        } else {
          $stamp = 0;
        }
        echo "<td align=\"right\">".gaz_format_number($totimp_body)."</td>
              <td align=\"right\">".gaz_format_number(($totimp_body-$totimpfat+$somma_spese),2, '.', '')."</td>
              <td align=\"right\">".gaz_format_number($calc->total_imp)."</td>
              <td align=\"right\">".gaz_format_number($calc->total_vat)."</td>
              <td align=\"right\">".gaz_format_number($stamp)."</td>
              <td align=\"right\" style=\"font-weight:bold;\">".gaz_format_number($calc->total_imp+$calc->total_vat+$stamp+$form['taxstamp'])."</td>\n";
		echo '<td colspan ="2" class="FacetFieldCaptionTD" align="center"><input name="ins" id="preventDuplicate" onClick="chkSubmit();" onClick="chkSubmit();" type="submit" value="'.strtoupper($script_transl[$toDo]).'!"></td></tr>';
        if ($rit > 0) {
            echo "<tr>";
            echo "<td colspan=\"7\" align=\"right\">".$script_transl['ritenuta']."</td>";
            echo "<td align=\"right\">".gaz_format_number($rit)."</td>";
            echo "</tr>\n";
            echo "<tr>";
            echo "<td colspan=\"7\" align=\"right\">".$script_transl['netpay']."</td>";
            echo "<td align=\"right\">".gaz_format_number($totimpfat+$totivafat+$stamp-$rit+$form['taxstamp'])."</td>";
            echo "</tr>\n";
        }
}
echo "</table>";
?>
</form>
</body>
</html>
开发者ID:andreabia,项目名称:gazie,代码行数:30,代码来源:admin_broven.php


示例10: foreach

    $pdf->Cell(30,5,gaz_format_number($pdf->tax),1,0,'R',1);
    $pdf->Cell(30,5,gaz_format_number($pdf->taxable+$pdf->tax),1,1,'R',1);
    if (count($pdf->acc_castle)>0) {
        $pdf->Ln(6);
        $pdf->SetFont('helvetica','B',10);
        $pdf->Cell(35);
        $pdf->Cell(120,6,$pdf->script_transl['acc_castle_title'],1,2,'C',1);
        $pdf->Cell(20,5,'cod.',1,0,'C');
        $pdf->Cell(75,5,$pdf->script_transl['descri'],1,0,'C');
        $pdf->Cell(25,5,$pdf->script_transl['amount'],1,1,'R');
        $pdf->SetFont('helvetica','',8);
        foreach($pdf->acc_castle as $k=>$v) {
            $pdf->Cell(35);
            $pdf->Cell(20,5,$k,1,0,'C');
            $pdf->Cell(75,5,$v['descri'],1,0,'L');
            $pdf->Cell(25,5,gaz_format_number($v['value']),1,1,'R');
        }
    }
}
if ($_GET['sd']=='sta_def') {
    switch($pdf->typbook) { 	 
        case 2: 	 
            $azireg='upgve'.intval($_GET['vs']); 	 
        break; 	 
        case 4: 	 
            $azireg='upgco'.intval($_GET['vs']); 	 
        break; 	 
        case 6: 	 
            $azireg='upgac'.intval($_GET['vs']); 	 
        break; 	 
    }    
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:stampa_regiva.php


示例11: while

$tot=0;
while ($r = gaz_dbi_fetch_array($rs_castel)) {
      if ($r['saldo'] != 0) {
         echo "<tr>";
         echo "<td class=\"FacetDataTD\">".$r['codcon']."&nbsp;</td>";
         echo "<td class=\"FacetDataTD\"><a title=\"Dettagli cliente\" href=\"report_client.php?auxil=".$r["ragso1"]."&search=Cerca\">".$r["ragso1"]."</a> &nbsp;</td>";
         echo "<td class=\"FacetDataTD\">".$r['telefo']." &nbsp;</td>";
         echo "<td class=\"FacetDataTD\" align=\"center\">".$r['nummov']." &nbsp;</td>";
         echo "<td class=\"FacetDataTD\" align=\"right\">".gaz_format_number($r['dare'])." &nbsp;</td>";
         echo "<td class=\"FacetDataTD\" align=\"right\">".gaz_format_number($r['avere'])." &nbsp;</td>";
         echo "<td class=\"FacetDataTD\" align=\"right\">".gaz_format_number($r['saldo'])." &nbsp;</td>";
         echo "<td class=\"FacetDataTD\" align=\"center\"><a class=\"btn btn-xs btn-default btn-pagamento\" title=\"Effettuato un pagamento da ".$r["ragso1"]."\"  href=\"salcon_credit.php?codice=".$r['codcon']."\"><i class=\"glyphicon glyphicon-euro\"></i></a></td>";
         echo "<td class=\"FacetDataTD\" align=\"center\"><a class=\"btn btn-xs btn-default\" title=\"Stampa l'Estratto Conto di {$r['ragso1']}\" href=\"stampa_estcon.php?codice=".$r['codcon']."&annini=".$annini."&annfin=".$annfin."\"><i class=\"glyphicon glyphicon-print\"></i></a></td>";
    // Colonna "Mail"
    echo "<td class=\"FacetDataTD\" align=\"center\">";
    if (!empty($r["e_mail"])) {
        echo '<a class="btn btn-xs btn-default" onclick="confirMail(this);return false;" id="doc'.$r["codcon"].'" url="stampa_estcon.php?codice='.$r["codcon"].'&annini='.$annini.'&annfin='.$annfin.'&dest=E" href="#" title="mailto: '.$r["e_mail"].'"
        mail="'.$r["e_mail"].'" namedoc="Estratto conto '.$annini.'-'.$annfin.'"><i class="glyphicon glyphicon-envelope"></i></a>';
    } else {
		echo '<a title="Non hai memorizzato l\'email per questo cliente, inseriscila ora" href="admin_client.php?codice='.substr($r["codice"],3).'&Update"><i class="glyphicon glyphicon-edit"></i></a>';
	} 
    echo "</td>";
         echo "</tr>";
         $tot += $r['saldo'];
      }
}
echo "<tr><td colspan=\"6\"></td><td class='FacetDataTD' style='border: 2px solid #666; text-align: center;'>".gaz_format_number($tot)."</td><td></td><td></td></tr>\n";
?>
</table>
</body>
</html>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:report_credit.php


示例12: gaz_dbi_dyn_query

$pdf->Cell(150,8,'TOTALE RISCOSSO',1,0,'R');
$pdf->Cell(40,8,gaz_format_number($importo),1,1,'R',1);

if ($pdf->GetY() <= 135)
    {
    $pdf->SetY(140);
    $pdf->SetFont('helvetica','',8);
    $pdf->MultiCell(190,4,'Copia per il cliente',0,'C',0);
    $pdf->Ln(8);
    $pdf->Line(0,145,210,145);
    $pdf->Header();
    }
 else   $pdf->AddPage();
$rs_rig = gaz_dbi_dyn_query("*", $gTables['rigbro'], "id_tes like '$testat'","id_tes desc");
$importo = 0;
while ($rigo = gaz_dbi_fetch_array($rs_rig)) {
    if ($pdf->GetY() <= 280) {
          $pdf->Cell(150,8,$rigo['descri'],1,0,'L');
          $pdf->Cell(40,8,gaz_format_number($rigo['prelis']),1,1,'R');
          $importo += $rigo['prelis'];
    } else {
       $pdf->SetY(285);
       $pdf->Cell(190,12,'>>> --- SEGUE SU PAGINA SUCCESSIVA --- >>>',1,1,'C');
       $pdf->AddPage();
    }
}
$piede='ad uso amministrativo';
$pdf->Cell(150,8,'TOTALE RISCOSSO',1,0,'R');
$pdf->Cell(40,8,gaz_format_number($importo),1,1,'R',1);
$pdf->Output();
?>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:stampa_salcon.php


示例13: gaz_format_number

      }
      echo "<tr class=\"FacetDataTD\">
            <td align=\"center\">".gaz_format_date($v['tes']['datemi'])."</td>
            <td align=\"center\">".$v['tes']['numdoc']."</td>
            <td align=\"center\">".$v['tes']['seziva']."</td>
            <td>".$v['tes']['ragsoc'].$v['tes']['citta']."</td>
            <td align=\"right\">".gaz_format_number($v['tot'])."</td>
            </tr>\n";
   }
   echo "<tr class=\"FacetFieldCaptionTD\">\n";
   echo '<td colspan="4" align="right"><input type="submit" name="submit" value="';
   echo $script_transl['submit'];
   echo '">';
   echo "</td>\n";
   echo '<td align="right" style="font-weight=bolt;">';
   echo gaz_format_number($rs['tot']);
   echo "\t </td>\n";
   echo "</tr>\n";
} else {
   echo "\t<tr>\n";
   echo '<td colspan="3" align="center" class="FacetDataTDred">';
   echo $script_transl['message'];
   echo "\t </td>\n";
   echo '<td colspan="2" align="center" class="FacetDataTDred">';
   echo "<input type=\"submit\" name=\"return\" value=\"".$script_transl['return']."\" />\n";
   echo "\t </td>\n";
   echo "\t </tr>\n";
}
?>
</form>
</body>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:close_ecr.php


示例14: printTransact

function printTransact($transact,$error)
{
          global $script_transl,$admin_aziend;
          $nrec=0;
          echo "<td align=\"center\" class=\"FacetDataTD\" >N.Rec.</td>";
          echo "<td align=\"center\" class=\"FacetDataTD\" >N.Mov.</td>";
          echo "<td align=\"center\" class=\"FacetDataTD\" >".$script_transl['sourcedoc']."</td>";
          echo "<td class=\"FacetDataTD\" >".$script_transl['soggetto']."</td>";
          echo "<td align=\"center\" class=\"FacetDataTD\" >".$script_transl['pariva']."</td>";
          echo "<td align=\"center\" class=\"FacetDataTD\" >".$script_transl['codfis']."</td>";
          echo "<td align=\"center\" class=\"FacetDataTD\" >".$script_transl['quadro']."</td>";
          echo "<td align=\"right\" class=\"FacetDataTD\" >".$script_transl['amount']."</td>";
          echo "<td align=\"right\" class=\"FacetDataTD\" >".$script_transl['tax']."</td>";
          echo "</tr>\n";
          foreach ($transact as $key=>$value ) {
               $nrec++;
               $totale = gaz_format_number($value['operazioni_imponibili']+$value['operazioni_nonimp']+$value['operazioni_esente']);
               $class = ' ';
               switch ($value['quadro']) {
                      case 'FE':
                          $class = 'style="color:#000000; background-color: #FFDDDD;"';
                      break;
                      case 'NE':
                          $class = 'style="color:#000000; background-color: #DDFFDD;"';
                      break;
                      case 'FR':
                          $class = 'style="color:#000000; background-color: #AFC8D8"';
                      break;
                      case 'NR':
                          $class = 'style="color:#000000; background-color: #D3CFA8;"';
                      break;
                      case 'DF':
                          $class = 'style="color:#000000; background-color: #DDDDFF;"';
                      break;
               }
               if (isset($error[$key])){
                  $class = ' class="FacetDataTDred" ';
               }
               echo "<tr>";
               echo "<td align=\"right\" $class>$nrec</a></td>";
               echo "<td align=\"center\" $class><a href=\"../contab/admin_movcon.php?id_tes=".$value['id_tes']."&Update\">n.".$value['id_tes']." - ".gaz_format_date($value['datreg'])."</a></td>";
               echo "<td align=\"center\" $class> sez.".$value['seziva']." n.".$value['numdoc'].' del '.gaz_format_date($value['datdoc'])."</td>";
               echo "<td $class>".$value['ragso1'].' '.$value['ragso2']."</td>";
               if ($value['riepil']== 1 ){ // è un riepilogativo quindi il tracciato dovrà prevedere l'apposito flag
                   echo "<td align=\"center\" colspan=\"2\" style=\"color:#000000; background-color: #DDADAF;\">".$script_transl['riepil']."</td>";
               } else {
                   echo "<td align=\"center\" $class>".$value['iso']." ".$value['pariva']."</td>";
                   echo "<td align=\"center\" $class>".$value['codfis']."</td>";
               }
               echo "<td align=\"center\" $class>".$value['quadro']."</td>";
               echo "<td align=\"right\" $class>$totale</td>";
               echo "<td align=\"right\" $class>".gaz_format_number($value['imposte_addebitate'])."</td>";
               echo "</tr>\n";
               if (isset($error[$key])) {
                  foreach ($error[$key] as $val_err ) {
                          echo "<tr>";
                          echo "<td class=\"FacetDataTDred\" colspan=\"10\">".$val_err;
                          if (substr($value['clfoco'],0,3) == $admin_aziend['mascli']) {
                             echo ", <a href='../vendit/admin_client";
                          } else {
                             echo ", <a href='../acquis/admin_fornit";
                          }
                          echo ".php?codice=".substr($value['clfoco'],3,6)."&Update' target='_NEW'>". $script_transl['errors'][0]."</a><br /></td>
                               </tr>\n";
                  }
               }
          }
}
开发者ID:andreabia,项目名称:gazie,代码行数:68,代码来源:select_comopril.php


示例15:

                           $pdf->Cell(8,4,$key.' - ','L',0,'R');
                           $pdf->Cell(72,4,$descricon.' non riclassificato','R');
                           $pdf->Cell(10,4,$admin_aziend['curr_name'],'LR',0,'C');
                           $pdf->Cell(31,4,$stampaval,'LR',1,'R');
                        }
                }
                if ($totrom > 0) $stampaval = gaz_format_number($totrom); else $stampaval = "(".gaz_format_number(-$totrom).")";
                $pdf->Cell(15,4,'','LR');
                $pdf->Cell(50,4,'','B');
                $pdf->Cell(80,4,"Totale ".$nromani[intval($keyrom)],'BTR',0,'R');
                $pdf->Cell(10,4,$admin_aziend['curr_name'],1,0,'C');
                $pdf->Cell(31,4,$stampaval,1,1,'R');
                $totrom=0.00;
     }
     if($totlet > 0) $stampaval = gaz_format_number($totlet); else $stampaval = "(".gaz_format_number(-$totlet).")";
     $pdf->SetFont('helvetica','B',8);
     $pdf->Cell(145,4,"Totale ".$keylet,'LB',0,'R');
     $pdf->Cell(10,4,$admin_aziend['curr_name'],1,0,'C');
     $pdf->Cell(31,4,$stampaval,1,1,'R');
     $pdf->SetFont('helvetica','',8);
     $totlet=0.00;
}
$pdf->SetFont('helvetica','B',12);
$pdf->SetTextColor(255,150,50);
$pdf->Cell(155,6,"UTILE (PERDITA) D'ESERCIZIO ",1,0,'R');
if($totale > 0) $stampaval = gaz_format_number($totale); else $stampaval = "(".gaz_format_number(-$totale).")";
$pdf->Cell(31,6,$stampaval,1,1,'R');
$totale=0.00;
$pdf->SetTextColor(0,0,0);
$pdf->Output();
?>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:stampa_bilcee.php


示例16: pageFooter

 function pageFooter()
 {
     $y = $this->GetY();
     $this->Rect(10, $y, 186, 188 - $y);
     //questa marca le linee dx e sx del documento
     //stampo il castelletto
     $this->SetY(208);
     $this->Cell(62, 6, 'Pagamento', 'LTR', 0, 'C', 1);
     $this->Cell(68, 6, 'Castelletto    I.V.A.', 'LTR', 0, 'C', 1);
     $this->Cell(56, 6, 'T O T A L E    F A T T U R A', 'LTR', 1, 'C', 1);
     $this->SetFont('helvetica', '', 8);
     $this->Cell(62, 6, $this->pagame['descri'], 'LR', 0, 'C');
     $this->Cell(18, 4, 'Imponibile', 'LR', 0, 'C', 1);
     $this->Cell(32, 4, 'Aliquota', 'LR', 0, 'C', 1);
     $this->Cell(18, 4, 'Imposta', 'LR', 1, 'C', 1);
     $this->docVars->setTotal();
     foreach ($this->docVars->cast as $key => $value) {
         if ($this->tesdoc['id_tes'] > 0) {
             $this->Cell(62);
             $this->Cell(18, 4, gaz_format_number($value['impcast']) . ' ', 'R', 0, 'R');
             $this->Cell(32, 4, $value['descriz'], 0, 0, 'C', 0, '', 1);
             $this->Cell(18, 4, gaz_format_number($value['ivacast']) . ' ', 'L', 1, 'R');
         } else {
             $this->Cell(62);
             $this->Cell(68, 4, '', 'LR', 1);
         }
     }
     $totimpmer = $this->docVars->totimpmer;
     $speseincasso = $this->docVars->speseincasso;
     $totimpfat = $this->docVars->totimpfat;
     $totivafat = $this->docVars->totivafat;
     $totivasplitpay = $this->docVars->totivasplitpay;
     $vettor = $this->docVars->vettor;
     $impbol = $this->docVars->impbol;
     $totriport = $this->docVars->totriport;
     $ritenuta = $this->docVars->tot_ritenute;
     $taxstamp = $this->docVars->taxstamp;
     if ($this->virtual_taxstamp == 0 || $this->virtual_taxstamp == 3) {
         // azzero i bolli in caso di non addebito al cliente
         $taxstamp = 0;
     }
     //effettuo il calcolo degli importi delle scadenze
     $totpag = $totimpfat + $impbol + $totriport + $totivafat - $ritenuta + $taxstamp - $totivasplitpay;
     $ratpag = CalcolaScadenze($totpag, $this->giorno, $this->mese, $this->anno, $this->pagame['tipdec'], $this->pagame['giodec'], $this->pagame['numrat'], $this->pagame['tiprat'], $this->pagame['mesesc'], $this->pagame['giosuc']);
     if ($ratpag) {
         //allungo l'array fino alla 4^ scadenza
         $ratpag['import'] = array_pad($ratpag['import'], 4, '');
         $ratpag['giorno'] = array_pad($ratpag['giorno'], 4, '');
         $ratpag['mese'] = array_pad($ratpag['mese'], 4, '');
         $ratpag['anno'] = array_pad($ratpag['anno'], 4, '');
     } else {
         for ($i = 0; $i <= 3; $i++) {
             $ratpag['import'][$i] = "";
     

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP gaz_format_quantity函数代码示例发布时间:2022-05-15
下一篇:
PHP gaz_format_date函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap