当前位置: 首页>>代码示例>>PHP>>正文


PHP gaz_format_date函数代码示例

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


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

示例1: Anagrafica

$anagrafica = new Anagrafica();
while ($a_row = gaz_dbi_fetch_array($result)) {
    $partner = $anagrafica->getPartner($a_row["clfoco"]);
    $title =  $partner['ragso1']." ".$partner['ragso2'];
    $valore = CalcolaImportoRigo($a_row['quanti'], $a_row['prezzo'], $a_row['scorig']) ;
    $valore = CalcolaImportoRigo(1, $valore, $a_row['scochi']) ;
    echo "<tr>\n";
    echo "<td class=\"FacetDataTD\"><a class=\"btn btn-xs btn-default\" href=\"admin_movmag.php?id_mov=".$a_row["id_mov"]."&Update\" title=\"".ucfirst($script_transl['update'])."!\"><i class=\"glyphicon glyphicon-edit\"></i>&nbsp;".$a_row["id_mov"]."</a> &nbsp</td>";
    echo "<td class=\"FacetDataTD\" align=\"center\">".gaz_format_date($a_row["datreg"])." &nbsp;</td>\n";
    echo "<td class=\"FacetDataTD\" align=\"center\">".$a_row["caumag"]." - ".$a_row["descau"]."</td>\n";
    if ($a_row['id_rif'] == 0) {
        echo "<td class=\"FacetDataTD\" align=\"center\" title=\"$title\">".$a_row['desdoc']." ".$script_transl[9]." ".gaz_format_date($a_row["datdoc"])."</td>\n";
    } else {
        if ($a_row['tipdoc'] == "ADT"
         || $a_row['tipdoc'] == "AFA"
         || $a_row['tipdoc'] == "AFC") {
            echo "<td class=\"FacetDataTD\" align=\"center\" title=\"$title\"><a href=\"../acquis/admin_docacq.php?Update&id_tes=".$a_row['testata']."\">".$a_row['desdoc']." ".$script_transl[9]." ".gaz_format_date($a_row["datdoc"])."</a></td>\n";
        } else {
            echo "<td class=\"FacetDataTD\" align=\"center\" title=\"$title\"><a href=\"../vendit/admin_docven.php?Update&id_tes=".$a_row['testata']."\">".$a_row['desdoc']." ".$script_transl[9]." ".gaz_format_date($a_row["datdoc"])."</a></td>\n";
        }
    }
    echo "<td class=\"FacetDataTD\" align=\"center\">".$a_row["artico"]." &nbsp;</td>\n";
    echo "<td class=\"FacetDataTD\" align=\"center\">".gaz_format_quantity($a_row["quanti"],1,$admin_aziend['decimal_quantity'])."</td>\n";
    echo "<td class=\"FacetDataTD\" align=\"right\">".gaz_format_number($valore)." </td>\n";
    echo "<td class=\"FacetDataTD\" align=\"center\"><a class=\"btn btn-xs btn-default btn-elimina\" href=\"delete_movmag.php?id_mov=".$a_row["id_mov"]."\"><i class=\"glyphicon glyphicon-remove\"></i></a></td>\n";
    echo "</tr>\n";
}
?>
</table>
</body>
</html>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:report_movmag.php

示例2: output

$recordnav -> output();
$anagrafica = new Anagrafica();
while ($a_row = gaz_dbi_fetch_array($result)) {
    $paymov=false;
    if (substr($a_row["clfoco"],0,3) == $admin_aziend['mascli'] or substr($a_row["clfoco"],0,3) == $admin_aziend['masfor']) {
       $partner = $anagrafica->getPartner($a_row["clfoco"]);
       $title =  $partner['ragso1']." ".$partner['ragso2'];
       if (substr($a_row["clfoco"],0,3) == $admin_aziend['mascli']){ 
         $paymov = getPaymov($a_row["id_tes"],$a_row["clfoco"]);
       }
    } 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)  {
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:report_movcon.php

示例3: linkHeaders

    } else {
       $span=9;
       echo "<tr>";
       $linkHeaders = new linkHeaders($script_transl['header2']);
       $linkHeaders -> output();
       echo "</tr>";
       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 {
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:select_partit.php

示例4: elseif

                       $cl_exp='';
                       $class_paymov='FacetDataTD';
                    } elseif($vi['status']==3){ // SCADUTA
                       $cl_exp='';
                       $class_paymov='FacetDataTDevidenziaKO';
                    } elseif($vi['status']==9){ // PAGAMENTO ANTICIPATO
                       $class_paymov='FacetDataTDevidenziaBL';
                       $vi['expiry']=$vi['cl_exp'];
                    } elseif($vi['status']==0){ // APERTA
                       $lnk=" &nbsp;<a title=\"Riscuoti\" class=\"btn btn-xs btn-default btn-pagamento\" href=\"customer_payment.php?partner=".$p."\"><i class=\"glyphicon glyphicon-euro\"></i></a>";
                    }
                 }
                 echo "<tr class='".$class_paymov."'>";
                 echo "<td align=\"right\">".$vi['id']."</td>";
                 echo "<td align=\"right\">".$v_op."</td>";
                 echo "<td align=\"center\">".gaz_format_date($vi['expiry'])."</td>";
                 echo "<td align=\"right\">".$v_cl."</td>";
                 echo "<td align=\"center\">".$cl_exp."</td>";
                 echo "<td align=\"center\">".$expo."</td>";
                 echo "<td align=\"center\">".$script_transl['status_value'][$vi['status']]." &nbsp; $lnk</td>";
                 echo "</tr>\n";
              }
           }
       }
    echo "\t<tr class=\"FacetFieldCaptionTD\">\n";
    echo '<td colspan="9" align="right"><input type="submit" name="print" value="';
    echo $script_transl['print'];
    echo '">';
    echo "\t </td>\n";
    echo "\t </tr>\n";
 } else {
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:select_partner_status.php

示例5:

    $fornitore = $anagrafica->getPartner($r['clfoco']);
    echo "<tr>";
    if (! empty ($modifi)) {
       echo "<td class=\"FacetDataTD\"><a class=\"btn btn-xs btn-default\" href=\"".$modifi."\"><i class=\"glyphicon glyphicon-edit\"></i>&nbsp;".$r["id_tes"]."</td>";
    } else {
       echo "<td class=\"FacetDataTD\"><button class=\"btn btn-xs btn-default disabled\">".$r["id_tes"]." &nbsp;</button></td>";
    }
    echo "<td class=\"FacetDataTD\">".$tipodoc." &nbsp;</td>";
    echo "<td class=\"FacetDataTD\">".$r["numdoc"]." &nbsp;</td>";
    echo "<td class=\"FacetDataTD\">".gaz_format_date($r["datemi"])." &nbsp;</td>";
    echo "<td class=\"FacetDataTD\">".$fornitore["ragso1"]."&nbsp;</td>";
    echo "<td class=\"FacetDataTD\">".$r["status"]." &nbsp;</td>";
    echo "<td class=\"FacetDataTD\" align=\"center\"><a class=\"btn btn-xs btn-default\" href=\"".$modulo."\"><i class=\"glyphicon glyphicon-print\"></i></a>";
    echo "</td>";
     // Colonna "Mail"
    echo "<td class=\"FacetDataTD\" align=\"center\">";
    if (!empty($fornitore["e_mail"])) {
        echo '<a class="btn btn-xs btn-default btn-email" onclick="confirMail(this);return false;" id="doc'.$r["id_tes"].'" url="'.$modulo.'&dest=E" href="#" title="mailto: '.$fornitore["e_mail"].'"
        mail="'.$fornitore["e_mail"].'" namedoc="'.$tipodoc.' n.'.$r["numdoc"].' del '.gaz_format_date($r["datemi"]).'"><i class="glyphicon glyphicon-envelope"></i></a>';
    } else {
		echo '<a title="Non hai memorizzato l\'email per questo fornitore, inseriscila ora" target="_blank" href="admin_fornit.php?codice='.substr($r["codice"],3).'&Update"><i class="glyphicon glyphicon-edit"></i></a>';
	 }		  
    echo "</td>";
    echo "<td class=\"FacetDataTD\" align=\"center\"><a class=\"btn btn-xs btn-default btn-elimina\" href=\"delete_broacq.php?id_tes=".$r['id_tes']."\"><i class=\"glyphicon glyphicon-remove\"></i></a></td>";
    echo "</tr>";
}
?>
</table>
</form>
</body>
</html>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:report_broacq.php

示例6: foreach

echo "<input type=\"hidden\" value=\"".$form['ritorno']."\" name=\"ritorno\" />\n";
echo "<div align=\"center\" class=\"FacetFormHeaderFont\">".$script_transl['title1'].$ecr['descri'].$script_transl['title2']."</div>\n";
$rs=getAccountedTickets($ecr['id_cash']);
echo "<table class=\"Tlarge\">";
echo "<th class=\"FacetFieldCaptionTD\">".$script_transl['date']."</th>
      <th class=\"FacetFieldCaptionTD\">".$script_transl['num']."</th>
      <th class=\"FacetFieldCaptionTD\">".$script_transl['sez']."</th>
      <th class=\"FacetFieldCaptionTD\">".$script_transl['customer']."</th>
      <th class=\"FacetFieldCaptionTD\">".$script_transl['importo']."</th>";
if (count($rs['all']) > 0) {
   foreach($rs['all'] as $k=>$v) {
      if ($v['tes']['clfoco']<100000000){
        $v['tes']['ragsoc']= $script_transl['anony'];
      }
      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";
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:close_ecr.php

示例7: 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

示例8: settleAccount

    function settleAccount($name,$val,$date_r=false)
    {
        if (preg_match("/^id_([0-9]+)$/",$val,$match)) { // è un partner da inserire sul piano dei conti
            $val=0;
        }
        global $gTables,$admin_aziend;
        $rs_display=array();
        // INIZIO determinazione limiti di date
        if ($date_r) {
           $final_date = $date_r;
        } else {
           $final_date = date("Ymd");
        }
        $rs_last_opening = gaz_dbi_dyn_query("*", $gTables['tesmov'], "caucon = 'APE' AND datreg <= ".$final_date,"datreg DESC",0,1);
        $last_opening = gaz_dbi_fetch_array($rs_last_opening);
        if ($last_opening) {
           $date_ini = substr($last_opening['datreg'],0,4).substr($last_opening['datreg'],5,2).substr($last_opening['datreg'],8,2);
        } else {
           $date_ini = '20040101';
        }
        // FINE determinazione limiti di date

        if ($val>100000000 && $val < 299999999 && intval(substr($val,3,6))>0 && $val!=$admin_aziend['cassa_'] ) {
            $where = " codcon = $val AND datreg BETWEEN $date_ini AND ".$final_date;
            $orderby = " datreg ASC ";
            $select = $gTables['tesmov'].".id_tes,datreg,codice,".$gTables['clfoco'].".descri,numdoc,datdoc,import*(darave='D') AS dare,import*(darave='A') AS avere";
            $table = $gTables['clfoco']." LEFT JOIN ".$gTables['rigmoc']." ON ".$gTables['clfoco'].".codice = ".$gTables['rigmoc'].".codcon "
                    ."LEFT JOIN ".$gTables['tesmov']." ON ".$gTables['rigmoc'].".id_tes = ".$gTables['tesmov'].".id_tes ";
            $rs=gaz_dbi_dyn_query ($select, $table, $where, $orderby);
            while ($r = gaz_dbi_fetch_array($rs)) {
                $rs_display[]=$r;
            }
        } else {
            $where = " codcon = $val AND datreg BETWEEN $date_ini AND ".$final_date." GROUP BY codcon";
            $orderby = " codcon ";
            $select = "codice,".$gTables['clfoco'].".descri,codcon,SUM(import*(darave='D')) AS dare, SUM(import*(darave='A')) AS avere,datreg";
            $table = $gTables['clfoco']." LEFT JOIN ".$gTables['rigmoc']." ON ".$gTables['clfoco'].".codice = ".$gTables['rigmoc'].".codcon "
                    ."LEFT JOIN ".$gTables['tesmov']." ON ".$gTables['rigmoc'].".id_tes = ".$gTables['tesmov'].".id_tes ";
            $rs=gaz_dbi_dyn_query ($select, $table, $where, $orderby);
            while ($r = gaz_dbi_fetch_array($rs)) {
                $r['datreg']= substr($final_date,0,4).'-'.substr($final_date,4,2).'-'.substr($final_date,-2);
                $r['descri']= 'Saldo ';
                $rs_display[]=$r;
            }
        }
        echo '<div style="display:none;" class="selectContainer" id="'.$name."\">\n";
        echo '<div class="selectHeader">'.$val."</div>\n";
        echo '<table cellspacing="0" cellpadding="0" width="100%" class="selectTable">';
        $saldo=0.00;
        $c=false;
        foreach ($rs_display as $r) {
            if ($c) {
               $class='odd';
            } else {
               $class='even';
            }
            $c=!$c;
            $saldo += $r['dare'];
            $saldo -= $r['avere'];
            echo "<tr class=\"$class\"> \n
                  <td>".gaz_format_date($r['datreg']).' - '.$r['descri']." </td>\n
                  <td style=\"text-align:right;\"> ".$r['dare']." </td>\n
                  <td style=\"text-align:right;\"> ".$r['avere']." </td>\n
                  <td style=\"text-align:right;cursor:pointer;\"> <a onclick=\"selectValue('$saldo','$name')\">".gaz_format_number($saldo)."</a> </td>\n
                  </tr>\n";
        }
        echo "</table></div>\n";
    }
开发者ID:andreabia,项目名称:gazie,代码行数:68,代码来源:lib.function.php

示例9: foreach

echo "</div>\n";
echo "<table class=\"Tlarge\">\n";
echo "<tr class=\"FacetColumnTD\">\n";
echo "<td align=\"right\">".$strScript['admin_contract.php']['doc_number']."</td>\n";
echo "<td align=\"center\">".$strScript['admin_contract.php']['start_date']."</td>\n";
echo "<td>".$strScript['admin_contract.php']['customer']."</td>\n";
echo "<td align=\"right\">".$strScript['admin_contract.php']['current_fee']."</td>\n";
echo "<td align=\"center\">".$strScript['admin_contract.php']['last_document_date']."</td>\n";
echo "<td align=\"center\">".$script_transl['n_creation']."</td>\n";
echo "<td align=\"center\">".$strScript['admin_contract.php']['doc_type']."</td>\n";
echo "<td></td>\n";
echo "\t </tr>\n";
foreach ($form['rows'] as $k=>$val) {
            echo "<tr class=\"FacetDataTD\">\n";
            echo "<td align=\"right\">".$val['doc_number']."</td>\n";
            echo "<td align=\"center\">".gaz_format_date($val['start_date'])."</td>\n";
            echo "<td>".$val['ragsoc']."</td>\n";
            echo "<td align=\"right\">".gaz_format_number($val['current_fee'])."</td>\n";
            echo "<td align=\"center\">".$val['df']."</td>\n";
            echo "<td align=\"center\">".$val['n_bill']."</td>\n";
            echo "<td align=\"center\">".$strScript['admin_contract.php']['doc_type_value'][$val['doc_type']]."</td>\n";
            if (empty($val['error'])) {
                echo "<td align=\"center\"><input type=\"checkbox\" name=\"check_$k\" ".$val['check_'.$k]." ></td>\n";
            } else {
                echo "<td class=\"FacetDataTDred\" align=\"center\">".$val['error']."</td>\n";
            }
            echo "\t </tr>\n";
}
if (count($form['rows']) > 0) {
   echo "\t<tr class=\"FacetFieldCaptionTD\">\n";
   echo '<td colspan="7" align="right"><input type="submit" name="create" value="';
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:invoice_from_contract.php

示例10: foreach

                       $tot+=$tot_row;
                   } else {                    // se descrittivo
                       $desc_arr=str_split(trim($v['descri']),24);
                       foreach ($desc_arr as $d_v) {
                                $ticket_printer->descri_ticket($d_v);
                       }
                   }
            }
            if (!empty($tesdoc['spediz'])) { // è stata impostata la stampa del codice fiscale
               $ticket_printer->descri_ticket('CF= '.$tesdoc['spediz']);
            }
            $ticket_printer->pay_ticket();
            $ticket_printer->close_ticket();
            // FINE invio
            header("Location: ".$form['ritorno']);
            exit;
}
require("../../library/include/header.php");
$script_transl = HeadMain(0);
echo "<div align=\"center\" class=\"FacetFormHeaderFont\">".$script_transl['head'].$tesdoc['numdoc'].'('.gaz_format_date($tesdoc['datemi']).')'.$script_transl['on'].'<font class="FacetDataTD">'.$ecr['descri']."</font></div>\n";
echo "<form method=\"POST\" name=\"ecr\">\n";
echo "<input type=\"hidden\" value=\"".$form['ritorno']."\" name=\"ritorno\" />\n";
echo "<table class=\"Tsmall\">\n";
echo "\t<tr><td colspan=\"2\" class=\"FacetDataTDred\">".$script_transl['message']."</td></tr>\n";
echo "<tr><td colspan=\"2\" align=\"center\">".$script_transl['total'].' '.$admin_aziend['symbol'].' '.gaz_format_number($tot)."</td></tr>\n";
echo "<tr><td align=\"left\"> <input type=\"submit\" name=\"return\" value=\"".$script_transl['return']."\" /></td><td align=\"right\"><input  style=\"color:red;\" type=\"submit\" name=\"ins\" value=\"".$script_transl['submit']."\" /></td></tr>\n";
echo "</table>\n";
?>
</body>
</form>
</html>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:resend_to_ecr.php

示例11: createMultiDocument

function createMultiDocument($results, $templateName, $gTables, $dest = false)
{
    $templates = array('Received' => 'received', 'CartaIntestata' => 'carta_intestata', 'Lettera' => 'lettera', 'FatturaAcquisto' => 'fattura_acquisto', 'FatturaImmediata' => 'fattura_immediata', 'Parcella' => 'parcella', 'PreventivoCliente' => 'preventivo_cliente', 'OrdineCliente' => 'ordine_cliente', 'OrdineWeb' => 'ordine_web', 'FatturaSemplice' => 'fattura_semplice', 'FatturaAllegata' => 'fattura_allegata', 'OrdineFornitore' => 'ordine_fornitore', 'PreventivoFornitore' => 'preventivo_fornitore', 'InformativaPrivacy' => 'informativa_privacy', 'DDT' => 'ddt');
    $config = new Config();
    $configTemplate = new configTemplate();
    require "../../config/templates" . ($configTemplate->template ? '.' . $configTemplate->template : '') . '/' . $templates[$templateName] . '.php';
    $pdf = new $templateName();
    $docVars = new DocContabVars();
    //$pdf->SetPageFormat($config->getValue('page_format'));
    $pdf->SetTitle($templateName);
    $pdf->SetTopMargin(79);
    $pdf->SetHeaderMargin(5);
    $ctrlprotoc = 0;
    while ($tesdoc = gaz_dbi_fetch_array($results)) {
        //se il cliente non e' lo stesso di prima
        $ref = $tesdoc['protoc'];
        if ($templateName == 'DDT') {
            $ref = $tesdoc['numdoc'];
        }
        if ($ref != $ctrlprotoc && $ctrlprotoc > 0) {
            $pdf->pageFooter();
        }
        // Inizio pagina
        $testat = $tesdoc['id_tes'];
        $docVars->setData($gTables, $tesdoc, $testat, 'rigdoc');
        $docVars->initializeTotals();
        $pdf->setVars($docVars, $templateName);
        $pdf->setTesDoc();
        if ($ctrlprotoc == 0) {
            $pdf->setCreator('GAzie - ' . $docVars->intesta1);
            $pdf->setAuthor($docVars->user['Cognome'] . ' ' . $docVars->user['Nome']);
            $pdf->Open();
        }
        //aggiungo una pagina
        $pdf->pageHeader();
        $ctrlprotoc = $tesdoc['protoc'];
        if ($templateName == 'DDT') {
            $ctrlprotoc = $tesdoc['numdoc'];
        }
        $testat = $tesdoc['id_tes'];
        $pdf->docVars->setData($gTables, $tesdoc, $testat, 'rigdoc');
        $pdf->compose();
    }
    $pdf->pageFooter();
    if ($dest && $dest == 'E') {
        // è stata richiesta una e-mail
        $dest = 'S';
        // Genero l'output pdf come stringa binaria
        // Costruisco oggetto con tutti i dati del file pdf da allegare
        $content->name = $docVars->intesta1 . '_' . $templateName . '_n.' . $docVars->docRelNum . '_del_' . gaz_format_date($docVars->docRelDate) . '.pdf';
        $content->string = $pdf->Output($docVars->intesta1 . '_' . $templateName . '_n.' . $docVars->docRelNum . '_del_' . gaz_format_date($docVars->docRelDate) . '.pdf', $dest);
        $content->encoding = "base64";
        $content->mimeType = "application/pdf";
        $gMail = new GAzieMail();
        $gMail->sendMail($docVars->azienda, $docVars->user, $content, $docVars->client);
    } elseif ($dest && $dest == 'X') {
        // è stata richiesta una stringa da allegare
        $dest = 'S';
        // Genero l'output pdf come stringa binaria
        // Costruisco oggetto con tutti i dati del file pdf
        $content->descri = $docVars->intesta1 . '_' . $templateName . '_n.' . $docVars->tesdoc['numfat'] . '/' . $docVars->tesdoc['seziva'] . '_del_' . gaz_format_date($docVars->tesdoc['datfat']) . '.pdf';
        $content->string = $pdf->Output($content->descri, $dest);
        $content->mimeType = "PDF";
        return $content;
    } else {
        // va all'interno del browser
        $pdf->Output();
    }
}
开发者ID:andreabia,项目名称:gazie,代码行数:69,代码来源:document.php

示例12: linkHeaders

        $ctr_mv='';
        echo "<tr>";
        $linkHeaders=new linkHeaders($script_transl['header']);
        $linkHeaders->output();
        echo "</tr>";
        while (list($key, $mv) = each($m)) {
            if ($ctr_mv != $mv['tipeff']) {
                  echo "\t<tr>\n";
                  echo "\t<td colspan=\"6\">".$mv['tipeff'].' - '.$script_transl['type_value'][$mv['tipeff']]."</td>\n";
                  echo "\t </tr>\n";
            }
            echo "<td align=\"center\" class=\"FacetDataTD\"><A HREF=\"./update_effett.php?id_tes=".$mv['id_tes']."\">".$mv['progre']."</a></td>";
            echo "<td align=\"center\" class=\"FacetDataTD\">".gaz_format_date($mv['scaden'])."</td>";
            echo "<td align=\"right\" class=\"FacetDataTD\">".gaz_format_number($mv['impeff'])."</td>";
            echo "<td align=\"center\" class=\"FacetDataTD\">".$mv['ragso1'].' '.$mv['ragso2']."</td>";
            echo "<td align=\"center\" class=\"FacetDataTD\"> n.".$mv['numfat'].' sez.'.$mv['seziva']." del ".gaz_format_date($mv['datfat'])."</td>\n";
            echo "<td align=\"center\" class=\"FacetDataTD\">".$mv['desban']."</td>\n";
            echo "</tr>\n";
            $ctr_mv = $mv['tipeff'];
         }
         echo "\t<tr class=\"FacetFieldCaptionTD\">\n";
         echo '<td colspan="7" align="right"><input type="submit" name="print" value="';
         echo $script_transl['print'];
         echo '">';
         echo "\t </td>\n";
         echo "\t </tr>\n";
  }
  echo "</table>\n";
}
?>
</form>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:select_effett.php

示例13:

                    } else {
                        echo $tesdoc_r["tipdoc"].$rigbro_r["id_doc"]. " ";
                    }
                    $ultimo_documento = $rigbro_r["id_doc"];
                }
            }
        }
        echo "</td>";
    }
    echo "<td class=\"FacetDataTD\" align=\"center\"><a class=\"btn btn-xs btn-default btn-stampa\" href=\"".$modulo."\"><i class=\"glyphicon glyphicon-print\"></i></a>";
    echo "</td>";
     // Colonna "Mail"
    echo "<td class=\"FacetDataTD\" align=\"center\">";
    if (!empty($r["e_mail"])) {
        echo '<a class="btn btn-xs btn-default btn-email" onclick="confirMail(this);return false;" id="doc'.$r["id_tes"].'" url="'.$modulo.'&dest=E" href="#" title="mailto: '.$r["e_mail"].'"
        mail="'.$r["e_mail"].'" namedoc="'.$script_transl['type_value'][$r["tipdoc"]].' n.'.$r["numdoc"].' del '.gaz_format_date($r["datemi"]).'"><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 "<td class=\"FacetDataTD\" align=\"center\">";
    if (!$remains_atleastone || !$processed_atleastone) {
        //possono essere cancellati solo gli ordini inevasi o completamente evasi
        echo "<a class=\"btn btn-xs btn-default btn-elimina\" href=\"delete_broven.php?id_tes=".$r['id_tes']."\"><i class=\"glyphicon glyphicon-remove\"></i></a>";
    }
    echo "</td>";
    echo "</tr>\n";
}
?>
</table>
</form>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:report_broven.php

示例14: ucwords

            ucwords(strtolower($script_transl['print'])) => "",
			'Mail'=>'',
            $script_transl['delete'] => ""
            );
$linkHeaders = new linkHeaders($headers_mov);
$linkHeaders -> output();
$recordnav = new recordnav($table, $where, $limit, $passo);
$recordnav -> output();
while ($a_row = gaz_dbi_fetch_array($result)) {
    echo "<tr>\n";
    echo "<td class=\"FacetDataTD\" align=\"right\"><a href=\"admin_letter.php?id_let=".$a_row["id_let"]."&Update\" title=\"".ucfirst($script_transl['update'])."!\">".$a_row["id_let"]."</a> &nbsp</td>";
    echo "<td class=\"FacetDataTD\" align=\"center\">".$a_row["write_date"]." &nbsp;</td>\n";
    echo "<td class=\"FacetDataTD\" align=\"center\">".$a_row["numero"]."</td>\n";
    echo "<td class=\"FacetDataTD\" align=\"center\">".$a_row["tipo"]."</td>\n";
    echo "<td class=\"FacetDataTD\" align=\"center\">".$a_row['ragso1']." ".$a_row['ragso2']."</td>\n";
    echo "<td class=\"FacetDataTD\" align=\"center\">".$a_row["oggetto"]." &nbsp;</td>\n";
    echo "<td class=\"FacetDataTD\" align=\"center\"> <a href=\"stampa_letter.php?id_let=".$a_row["id_let"]."\"><img src=\"../../library/images/stampa.gif\" alt=\"Stampa\" border=\"0\" /></a></td>";
    // Colonna "Mail"
    echo "<td class=\"FacetDataTD\" align=\"center\">";
    if (!empty($a_row["e_mail"])) {
        echo '<a onclick="confirMail(this);return false;" id="doc'.$a_row["id_let"].'" url="stampa_letter.php?id_let='.$a_row["id_let"].'&dest=E" href="#" title="mailto: '.$a_row["e_mail"].'"
        mail="'.$a_row["e_mail"].'" namedoc="Lettera n.'.$a_row["numero"].' del '.gaz_format_date($a_row["write_date"]).'"><img src="../../library/images/email.gif" border="0"></a>';
    }  
    echo "</td>";
    echo "<td class=\"FacetDataTD\" align=\"center\"><a href=\"delete_letter.php?id_let=".$a_row["id_let"]."\"><img src=\"../../library/images/x.gif\" title=\"".$script_transl['delete']."!\" border=\"0\"></a></td>\n";
    echo "</tr>\n";
}
?>
</table>
</body>
</html>
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:report_letter.php

示例15: linkHeaders

 if (sizeof($r['data'])>0) {
       echo "<tr>";
       echo '<TD colspan="7" align="center" class="FacetDataTD">'.$script_transl['preview']."</td>\n";
       echo "</tr>";
       echo "<tr>";
       $linkHeaders=new linkHeaders($script_transl['header']);
       $linkHeaders->output();
       echo "</tr>\n";
   foreach($r['data'] as $v) {
       echo "<tr>";
       echo "<td class=\"FacetDataTD\"><A HREF=\"http://localhost/gazie/modules/vendit/update_effett.php?id_tes=".$v['id_tes']."\">".$v["progre"]."</A></td>";
       echo "<td class=\"FacetDataTD\">".$v["tipeff"]." </td>";
       echo "<td class=\"FacetDataTD\">".gaz_format_date($v["scaden"])."</td>";
       echo "<td class=\"FacetDataTD\" align=\"right\">".$admin_aziend['symbol'].' '.gaz_format_number($v["impeff"])." </td>";
       echo "<td class=\"FacetDataTD\">".$v["customer"]." </td>";
       echo "<td class=\"FacetDataTD\"><A HREF=\"http://localhost/gazie/modules/vendit/admin_docven.php?id_tes=".$v['id_tes']."&Update\">n.".$v["numfat"]."/".$v["seziva"]." - ".gaz_format_date($v["datfat"])."</a></td>";
       echo "<td class=\"FacetDataTD\">".$v["desban"]." </td>";
       echo "</tr>\n";
       echo "<tr>";
       if ($v["status"]=='DISTINTATO') {
          echo "<td class=\"FacetDataTDred\" align=\"center\" colspan=\"4\">".strtoupper($script_transl['reprint'])."!";
       } else {
          echo "<td colspan=\"4\">";
       }
       echo "</td>";
       echo "<td>".$v["pariva"]."</td>";
       echo "<td align=\"right\">".gaz_format_number($v["totfat"])."</td>";
       echo "<td align=\"center\">".$v["coordi"]." </td>";
       echo "</tr>\n";
   }
   echo '<TD colspan="4" class="FacetDataTD">'.
开发者ID:andreabia,项目名称:gazie,代码行数:31,代码来源:select_filerb.php


注:本文中的gaz_format_date函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。