本文整理汇总了PHP中to_MDY函数的典型用法代码示例。如果您正苦于以下问题:PHP to_MDY函数的具体用法?PHP to_MDY怎么用?PHP to_MDY使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了to_MDY函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: mysql_fetch_assoc
<th width='15%'>Start </th>
<th width='15%'>End</th>
<th class='last' width='19%'>Total</th>
</tr>
<tbody>
";
$colorFlag=true;
while($invoice = mysql_fetch_assoc($invoices)){
if($colorFlag){echo "<tr id='invoice".$invoice['invoiceId']."'>";}
else{echo "<tr class='bg' id='invoice".$invoice['invoiceId']."'>";}
!$colorFlag;
echo "<td class='first style2' width='7%'>".$invoice['projectId']."</td>";
echo "<td width='29%'>".$invoice['projectName']."</td>";
echo "<td width='15%'>".to_MDY($invoice['invoiceDate'])."</td>";
echo "<td width='15%'>".to_MDY($invoice['invoiceStartDate'])."</td>";
echo "<td width='15%'>".to_MDY($invoice['invoiceEndDate'])."</td>";
echo "<td width='19%'>$".decimalPad($invoice['invoiceTotal'])."</td>";
echo "</tr>";
}echo "</tbody></table>";
}
?>
</div>
<?
/*
$queryContacts = "select * from item order by itemId desc limit 5";
$terms = mysql_query($queryContacts,$conexion);
$numTerms = mysql_num_rows($terms);
if($numTerms>0)
{
echo "<div class='table'>";
示例2: decimalPad
} else {
$totalChequeAmount = decimalPad($chequeInfo['customerSuperCheckAmount']);
$totalChequeSum = decimalPad($chequeInfo['total']);
if ($totalChequeSum == $totalChequeAmount) {
$totalSum = $totalChequeSum;
} else {
if ($totalChequeAmount < $totalChequeSum) {
$totalSum = "<span style='color:red;'>{$totalChequeSum}</span>";
} else {
$totalSum = "<span style='color:green;'>{$totalChequeSum}</span>";
}
}
}
$tableHolder .= "<tr>";
$tableHolder .= "<td rowspan='{$rowspan}'>" . $chequeInfo['receiptchequeNumber'] . "</td>";
$tableHolder .= "<td rowspan='{$rowspan}'>" . to_MDY($chequeInfo['receiptchequesDate']) . "</td>";
$tableHolder .= "<td rowspan='{$rowspan}'>" . $totalChequeAmount . "</td>";
$tableHolder .= "<td rowspan='{$rowspan}'>" . $totalSum . "</td>";
$first = true;
$chequesGroupQuery = "SELECT * FROM receiptcheques JOIN invoice USING (invoiceId) JOIN project USING (projectId) WHERE receiptchequeNumber = '" . $chequeInfo['receiptchequeNumber'] . "' ORDER BY invoiceId asc";
//echo $chequesGroupQuery."<br/>";
$chequesGroup = mysql_query($chequesGroupQuery, $conexion);
while ($cheque = mysql_fetch_assoc($chequesGroup)) {
if ($first) {
$first = false;
} else {
$tableHolder .= "</tr><tr>\n";
}
$tableHolder .= "<td>" . decimalPad($cheque['receiptchequesAmount']) . "</td>";
$tableHolder .= "<td>" . $cheque['invoiceId'] . "</td>";
$tableHolder .= "<td>" . $cheque['projectName'] . "</td>";
示例3: mysql_query
<?php
include "../conexion.php";
include "../commons.php";
include "../password.php";
#################
$title = "Edit";
#################
$subtitle = "Driver";
$description = "Driver Information.";
###############News section###############
$queryNews = "SELECT \r\n\t\t*\r\n\tFROM\r\n\t\tnews\r\n\tORDER BY\r\n\t\tnewsDate desc\r\n\tLIMIT\r\n\t\t1";
$news = mysql_query($queryNews, $conexion);
$lastNew = mysql_fetch_assoc($news);
$lastNew = $lastNew["newsComment"] . " -" . to_MDY($lastNew["newsDate"]);
##########################################
if (isset($_GET['i'])) {
###############To Edit###############
$queryLast = "SELECT \r\n\t\t* \r\n\tFROM\r\n \t\tdriver\r\n \tJOIN (select brokerName, brokerPid, brokerId from broker) as b using (brokerId)\r\n\tJOIN address USING (addressId)\r\n\tJOIN term USING (termId)\r\n\tLEFT JOIN carrier USING (carrierId)\r\n\tLEFT JOIN ethnic USING (ethnicId)\r\n\tLEFT JOIN work USING (workId)\r\n\tWHERE\r\n\t\tdriverId=" . $_GET['i'];
$Last = mysql_query($queryLast, $conexion);
$lastVal = mysql_fetch_assoc($Last);
##########################################
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title><?echo$title." -".$subtitle;?></title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<link rel="shortcut icon" href="/trucking/img/favicon.ico" type="image/x-icon" />
<style media="all" type="text/css">@import "../../css/all.css";</style>
示例4: mysql_query
<tr>
<th class='first'>Ticket MFI</th>
<th>Dump ticket</th>
<th>Date</th>
<th>Truck</th>
<th>Amount</th>
<th class='last'>Broker Amount</th>
</tr>
<?
$ticketsWithItem = mysql_query("select * from ticket JOIN item using (itemId) JOIN truck using (truckId) JOIN broker using (brokerId) where itemId = ".$lastVal['itemId'],$conexion);
$flag = true;
while($ticket = mysql_fetch_assoc($ticketsWithItem)){
echo "<tr ".($flag?"class='bg'":"")." ticketId='".$ticket['ticketId']."' class='lookable'>";
echo "<td>".$ticket['ticketMfi']."</td>";
echo "<td>".$ticket['ticketNumber']."</td>";
echo "<td>".to_MDY($ticket['ticketDate'])."</td>";
echo "<td>".$ticket['brokerPid']."-".$ticket['truckNumber']."</td>";
echo "<td>".decimalPad($ticket['ticketAmount'] * $ticket['itemCustomerCost'])."</td>";
echo "<td>".decimalPad($ticket['ticketBrokerAmount'] * $ticket['itemBrokerCost'])."</td>";
echo "</tr>";
}
?>
</table>
</div>
<?
}
else
{
?>
<div class='table' id='searchBar'>
示例5: mysql_query
<table class='listing form' cellpadding='0' cellspacing='0' id='searchResultsTable'>
<thead>
<tr class='bg'>
<th>Cheque Number</th>
<th>Date</th>
<th>Amount</th>
<th>Remove</th>
</tr>
</thead>
<tbody>
<?
$superchecks = mysql_query("select * from customer_super_check order by customerSuperCheckId limit 40", $conexion);
while($check = mysql_fetch_assoc($superchecks)){
echo "<tr class='editable' id='paymentRow".$check['customerSuperCheckId']."' superCheckId='".$check['customerSuperCheckId']."' >";
echo "<td>".$check['customerSuperCheckNumber']."</td>";
echo "<td>".to_MDY($check['customerSuperCheckDate'])."</td>";
echo "<td>".decimalPad($check['customerSuperCheckAmount'])."</td>";
echo "<td><img src='/trucking/img/118.png' width='20px' height='20px' class='removablePayment' /></td>";
echo "</tr>";
}
?>
</tbody>
</table>
</div>
<?
}
?>
</div>
<div id="right-column">
<strong class="h">INFO</strong>
示例6: mysql_query
?>
<div class="table" id="oldFuelLoads">
<table class="listing form" cellpadding="0" cellspacing="0">
<tr>
<th class="full" colspan="8">Older Elements</th>
</tr>
<tr>
<th>Date</th>
<th>Broker</th>
<th>Truck</th>
<th>Driver</th>
<th>Start</th>
<th>Finish</th>
<th>Registered</th>
<th>Miles</th>
</tr>
<?php
$fuels = mysql_query("SELECT * FROM fuel_load JOIN broker ON (broker.brokerId = fuel_load.brokerId) JOIN truck USING (truckId) order by fuelLoadId", $conexion);
while ($fuel = mysql_fetch_assoc($fuels)) {
echo "<tr class='doubleClickable' fuelLoadId='" . $fuel['fuelLoadId'] . "'>\n\t\t\t\t\t<td>" . to_MDY($fuel['fuelLoadDate']) . "</td>\n\t\t\t\t\t<td>" . $fuel['brokerName'] . "</td>\n\t\t\t\t\t<td>" . $fuel['brokerPid'] . "-" . $fuel['truckNumber'] . "</td>\n\t\t\t\t\t<td>" . $fuel['fuelLoadCommet'] . "</td>\n\t\t\t\t\t<td>" . $fuel['fuelLoadStart'] . "</td>\n\t\t\t\t\t<td>" . $fuel['fuelLoadFinish'] . "</td>\n\t\t\t\t\t<td>" . $fuel['fuelLoadRegistered'] . "</td>\n\t\t\t\t\t<td>" . $fuel['fuelLoadMileage'] . "</td>\n\t\t\t\t</tr>";
}
?>
</table>
</div>
</div>
<?include_once '../news.php';?>
</div>
<?
include_once '../app_footer.php';
?>
示例7: mysql_query
<img src="/mfi/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
<table class="listing form" cellpadding="0" cellspacing="0">
<tr>
<th colspan='4'>Pay Cheques for Supplier Invoice [<?php
echo $supplierInvoice['supplierInvoiceNumber'];
?>
]</th>
</tr>
<tr>
<th>Number</th>
<th>Date</th>
<th>Amount</th>
<th>Remove</th>
</tr>
<?php
$cheques = mysql_query("select * from suppliercheque where supplierInvoiceId = {$reportId}", $conexion);
//Truck
$flag = true;
while ($cheque = mysql_fetch_assoc($cheques)) {
$flag = !$flag;
echo "<tr " . ($flag ? "class='bg'" : "") . " id='paycheque" . $cheque['supplierchequeId'] . "'>";
echo "<td>" . $cheque['supplierchequeNumber'] . "</td>";
echo "<td>" . to_MDY($cheque['supplierchequeDate']) . "</td>";
echo "<td>" . decimalPad($cheque['supplierchequeAmount']) . "</td>";
echo "<td>" . createActionIcon(IMG_DELETE, '', 'Delete Payment', '../submit/deleteSupplierCheck.php', 'chequeId=' . $cheque['supplierchequeId'], 'delete', " width='22' height='22'") . "</td>";
echo "</tr>";
}
?>
</table>
</div>
示例8: printImgLink
<img src="/mfi/img/bg-th-left.gif" width="8" height="7" alt="" class="left" />
<img src="/mfi/img/bg-th-right.gif" width="7" height="7" alt="" class="right" />
<table class="listing form" cellpadding="0" cellspacing="0">
<tr>
<th colspan='2'>Customer Check Information</th>
</tr>
<?php
$flag = true;
$customerLink = printImgLink(IMG_VIEW, NYRO_CLASS, TITLE_VIEW_VENDOR, createGenericNyroableAttributesSmall($customerSuperCheckInfo['customerId'], 'customer'));
echo printTuple($flag ? '' : "class='bg'", 'Customer', $customerSuperCheckInfo['customerName'], $customerLink);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Check Number', $customerSuperCheckInfo['customerSuperCheckNumber']);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Check Date', to_MDY($customerSuperCheckInfo['customerSuperCheckDate']));
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Check Registration', to_MDY($customerSuperCheckInfo['customerSuperCheckCreationDate']));
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Check Amount', "\$ " . decimalPad($customerSuperCheckInfo['customerSuperCheckAmount']));
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Check Note', $customerSuperCheckInfo['customerSuperCheckNote']);
$flag = !$flag;
echo printTuple($flag ? '' : "class='bg'", 'Credit', "\$ " . decimalPad($customerSuperCheckInfo['checkCredit']));
$flag = !$flag;
?>
</table>
</div>
<?php
if (mysql_num_rows($payments) > 0) {
?>
<div id='formDiv' class='table'>
示例9: strtotime
if($paidTotal == null || $paidTotal <= 0 ){ $paid = 'Unpaid';if($paidR)continue;}
if($paidTotal != null && $paidTotal >= $reportTotal && $paidTotal != 0){ $paid = 'Paid'; if($unpaidR)continue;}
if($paidTotal != null && $paidTotal > 0 && $paidTotal < $reportTotal){ $paid = 'Warning';if($paidR)continue;}
if($paidTotal != null && $paidTotal > $reportTotal){ $paid = 'Overpaid'; if($unpaid)continue;}
if($colorFlag){$tbody.= "<tr class='even".$paid." printable' id='report".$invoice['reportId']."' invoice='".$invoice['reportId']."'>";}
else{$tbody.= "<tr class='odd".$paid." printable' id='report".$invoice['reportId']."' invoice='".$invoice['reportId']."'>";}
$colorFlag=!$colorFlag;
$tbody.= "<td>".$invoice['reportId']."</td>";
$tbody.= "<td>".$invoice['brokerPid']."</td>";
$tbody.= "<td>".($invoice['driverFirstName']==null?'----':$invoice['driverLastName'].", ".$invoice['driverFirstName'])."</td>";
$tbody.= "<td>".to_MDY($invoice['reportDate'])."</td>";
$tbody.= "<td>".to_MDY($invoice['reportStartDate'])."</td>";
$tbody.= "<td>".to_MDY($invoice['reportEndDate'])."</td>";
$tbody.= "<td>".(date('m/d/Y', strtotime('+'.$invoice['termValue'].' days', strtotime($invoice['reportEndDate']))))."</td>";
$tbody.= "<td>".decimalPad($reportTotal)."</td>";
$tbody.= "<td>".decimalPad($paidTotal)."</td>";
$tbody.= "<td>".decimalPad($reportTotal - $paidTotal)."</td>";
if($paid == "Overpaid" || $paid == "Paid")$tbody.="<td></td>";
else $tbody.="<td>".createActionIcon(IMG_PAY,'pay'.$invoice['reportId'],'Pay Report','../nyros/payBrokerInvoice.php','reportId='.$invoice['reportId'],'show'," width='22' height='22'")."</td>";
if($paid == "Unpaid") {
$tbody.= "<td>".createActionIcon(IMG_DELETE,'delete'.$invoice['reportId'],'Delete Invoice','../submit/deleteBrokerInvoice.php','reportId='.$invoice['reportId'],'delete'," width='22' height='22'")."</td>";
} else {
$tbody.="<td>".createActionIcon(IMG_MNG,'','Manage Invoice','../nyros/manageBrokerInvoice.php','reportId='.$invoice['reportId'],'show'," width='22' height='22'")."</td>";
}
$tbody.="</tr>";
}
示例10: mysql_fetch_assoc
if($num_dispatch>0){
while($dispatch = mysql_fetch_assoc($dispatches)){
if($dispatch['truckCount']==$dispatch['dispatchCount']){
$tbody.= "<tr>";
}else
$tbody.= "<tr>";
$tbody.="<td id='dispatch".$dispatch['dispatchId']."' >";
$tbody.= $dispatch['projectName']." <Strong><label id='count".$dispatch['dispatchId']."'>".($dispatch['truckCount']==null?"0":$dispatch['truckCount'])."</label>/<label id='max".$dispatch['dispatchCount']."' >".$dispatch['dispatchCount']."</label></Strong>";
$tbody.="</td>";
$tbody.= "</tr>";
}
}
$tbody.="</tbody>";
$response['tbody']=$tbody;
$response['currentDate']=to_MDY($currentDay);
echo json_encode($response);
}
/*
For Log Actions:
1 -> New (insert into)
2 -> Edit (update from)
3 -> Delete (delete from)
*/
mysql_close();
?>
示例11: decimalPad
$paidTotal = decimalPad($paidInfo['totalPaid'] == null ? 0 : $paidInfo['totalPaid']);
$chequeTotal = $paidInfo['number'] == null ? 0 : $paidInfo['number'];
$reportTotal = decimalPad($invoice['supplierInvoiceAmount'] );
if($paidTotal == null || $paidTotal <= 0 || $chequeTotal == 0 ) $paid = 'Unpaid';
if($paidTotal != null && $paidTotal >= $reportTotal && $chequeTotal != 0) $paid = 'Paid';
if($paidTotal != null && $paidTotal > 0 && $paidTotal < $reportTotal) $paid = 'Warning';
if($paidTotal != null && $paidTotal > $reportTotal) $paid = 'Overpaid';
if($colorFlag){$tbody.= "<tr class='even".$paid."' id='invoice".$invoice['supplierInvoiceId']."'>";}
else{$tbody.= "<tr class='odd".$paid."' id='invoice".$invoice['supplierInvoiceId']."'>";}
$colorFlag=!$colorFlag;
$tbody.= "<td>".$invoice['supplierName']."</td>";
$tbody.= "<td>".$invoice['supplierInvoiceNumber']."</td>";
$tbody.= "<td>".to_MDY($invoice['supplierInvoiceDate'])."</td>";
$tbody.= "<td>".decimalPad($reportTotal)."</td>";
$tbody.= "<td>".decimalPad($reportTotal - $paidTotal)."</td>";
$tbody.= "<td>".decimalPad($paidTotal)."</td>";
if($paid == 'Unpaid' || $paid == 'Warning') $tbody.= "<td class='number' ><img src='/trucking/img/87.png' width='24' height='22' class='payable' supplierInvoiceId='".$invoice['supplierInvoiceId']."' /></td>";
else $tbody.= "<td></td>";
if($paid == 'Unpaid')$tbody.= "<td><img src='/trucking/img/118.png' width='20' height='20' class='deletable' supplierInvoiceId='".$invoice['supplierInvoiceId']."' supplierInvoiceNumber='".$invoice['supplierInvoiceNumber']."' /></td>";
else $tbody.= "<td><img src='/trucking/img/2.png' width='24' height='22' class='managable' supplierInvoiceId='".$invoice['supplierInvoiceId']."' /></td>";
$tbody.= "</tr>";
}
}
$tbody.= "</tbody>";
示例12: mysql_fetch_assoc
$firstBroker = false;
$reportPaid = mysql_fetch_assoc(mysql_query("select * from report JOIN broker using (brokerId) where reportId = " . $payment['reportId'], $conexion));
$tableHolder .= "<td rowspan='" . $reportInfo['totalCheques'] . "'>" . $reportPaid['brokerName'] . "</td>";
} else {
$tableHolder .= "</tr><tr>\n";
}
$tableHolder .= "<td>" . $payment['reportId'] . "</td>";
$tableHolder .= "<td>" . decimalPad($reportTotal) . "</td>";
}
$tableHolder .= "</tr>\n";
} else {
//just one report
$reportPaid = mysql_fetch_assoc(mysql_query("select * from report JOIN broker using (brokerId) where reportId = " . $reportInfo['reportId'], $conexion));
$reportTotal = getReportTotal($reportInfo['reportId'], $conexion);
$tableHolder .= "<tr>";
$tableHolder .= "<td>" . to_MDY($reportInfo['paidchequesDate']) . "</td>";
$tableHolder .= "<td>" . $reportInfo['paidchequeNumber'] . "</td>";
$tableHolder .= "<td align='right'>" . decimalPad($reportInfo['totalPaid']) . "</td>";
$tableHolder .= "<td>" . $reportPaid['brokerName'] . "</td>";
$tableHolder .= "<td>" . $reportPaid['reportId'] . "</td>";
$tableHolder .= "<td align='rigth'>" . decimalPad($reportTotal) . "</td>";
$tableHolder .= "</tr>\n";
}
$globalTotal += $reportInfo['totalPaid'];
}
echo "<tr><td colspan='2'></td><td align='right'>" . decimalPad($globalTotal) . "</td><td colspan='3'></td></tr>";
?>
<tr>
<th>Date</th>
<th>Cheque #</th>
<th>Amount</th>
示例13: mysql_query
if(isset($_GET['materialId'])&&isset($_GET['supplierId']))
{
$queryMaterials =
"SELECT
*
FROM
suppliermaterial
WHERE
materialId = '".$_GET['materialId']."' and
supplierId = '".$_GET['supplierId']."'";
$result = mysql_query($queryMaterials,$conexion);
while($row = mysql_fetch_assoc($result)){
//$jsondata[$row['materialId']]=$row['materialName']."~".$row['supplierMaterialPrice']."~".$row['supplierMaterialLastModified'];
$jsondata['price']=decimalPad($row['supplierMaterialPrice']);
$jsondata['lastModified']=to_MDY($row['supplierMaterialLastModified']);
}
echo json_encode($jsondata);
}
/*
For Log Actions:
1 -> New (insert into)
2 -> Edit (update from)
3 -> Delete (delete from)
*/
mysql_close();
示例14: mysql_fetch_assoc
$invoices5Info = mysql_fetch_assoc($invoices5);
$queryInvoice6 = "\nSELECT \n\ttruckId, truckNumber\nFROM\n\ttruck\nWHERE\n\ttruckId=" . $invoices3Info['truckId'] . "\n\tORDER BY truckNumber\n\t";
$invoices6 = mysql_query($queryInvoice6, $conexion);
$invoices6Info = mysql_fetch_assoc($invoices6);
$queryInvoice7 = "\nSELECT \n\t*\nFROM\n\tproject JOIN address using (addressId)\nWHERE\n\tprojectId=" . $invoices4Info['projectId'];
$invoices7 = mysql_query($queryInvoice7, $conexion);
$invoices7Info = mysql_fetch_assoc($invoices7);
$queryInvoice8 = "\nSELECT \n\tcustomerId, customerName\nFROM\n\tcustomer\nWHERE\n\tcustomerId=" . $invoices7Info['customerId'];
$invoices8 = mysql_query($queryInvoice8, $conexion);
$invoices8Info = mysql_fetch_assoc($invoices8);
if ($invoices7Info['projectUnder'] == ILLINOIS_PW_ACT || $invoices7Info['projectUnder'] == DAVIS_BACON_ACT) {
$projectsInAct[$invoices7Info['projectName'] . " " . $invoices7Info['addressLine1']] = $invoices7Info['projectUnder'];
}
$row = "";
$row .= "<tr>";
$row .= "<td>" . to_MDY($invoices3Info['ticketDate'], true) . "</td>";
$row .= "<td>" . $invoices8Info['customerName'] . "</td>";
$row .= "<td>" . $projectInfo2['brokerPid'] . "-" . $invoices6Info['truckNumber'] . "</td>";
$row .= "<td align=left >" . $invoices3Info['ticketMfi'];
if ($invoices3Info['ticketNumber'] != "") {
$row .= "/" . $invoices3Info['ticketNumber'];
}
$row .= "</td>";
$row .= "<td align=left>" . $invoices4Info['itemDisplayFrom'] . "</td>";
$row .= "<td align=left>" . $invoices4Info['itemDisplayTo'] . "</td>";
$row .= "<td >" . decimalPad($invoices3Info['ticketBrokerAmount'], 2);
$row .= "</td>";
$row .= "<td align=right >" . decimalPad($invoices4Info['itemBrokerCost'], 2);
$row .= "</td>";
$row .= "<td align=right >" . decimalPad($invoices3Info['ticketBrokerAmount'] * $invoices4Info['itemBrokerCost'], 2);
$row .= "</td>";
示例15: strtotime
$startingDate = strtotime($invoice['invoiceDate']);
$dateDiff = $now - $startingDate;
$daysOff = floor($dateDiff / (60 * 60 * 24));
$dueDate = date('Y-m-d', strtotime($invoice['invoiceDate'] . " +" . $termValue . " days"));
$customerTotalAmount += $invoiceAmount;
$lastProjectAmount += $invoiceAmount;
$totalAmount += $invoiceAmount;
$customerTotalBalance += $invoiceBalance;
$lastProjectBalance += $invoiceBalance;
$totalBalance += $invoiceBalance;
$tmpHolder .= "<tr>";
$tmpHolder .= "<td></td>";
$tmpHolder .= "<td>" . $invoice['invoiceId'] . "</td>";
$tmpHolder .= "<td>" . to_MDY($invoice['invoiceDate']) . "</td>";
$tmpHolder .= "<td>" . $daysOff . "</td>";
$tmpHolder .= "<td>" . to_MDY($dueDate) . "</td>";
$tmpHolder .= "<td align='right'>" . $invoiceAmount . "</td>";
$tmpHolder .= "<td align='right'>" . $invoiceBalance . "</td>";
$tmpHolder .= "</tr>\n";
}
$tmpHolder .= "<tr><td colspan='5'></td><td align='right'>" . decimalPad($lastProjectAmount) . "</td><td align='right'>" . decimalPad($lastProjectBalance) . "</td></tr>";
$tmpHolder .= "<tr><td colspan='5'></td><th class='total' align='right'>" . decimalPad($customerTotalAmount) . "</th><th class='total' align='right'>" . decimalPad($customerTotalBalance) . "</th></tr>";
if ($shouldAdd) {
$tableHolder .= $tmpHolder;
}
}
}
echo "<tr><td colspan='5'></td><td align='right'>" . decimalPad($totalAmount) . "</td><td align='right'>" . decimalPad($totalBalance) . "</td></tr>";
?>
<tr>
<th></th>