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

PHP locale_money_format函数代码示例

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

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



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

示例1: _

         $FontSize = 10;
         $pdf->addText($Left_Margin + 75, $Bottom_Margin + 10 + 3 * $line_height + 4, $FontSize, _('Current') . ' ');
         $pdf->addText($Left_Margin + 158, $Bottom_Margin + 10 + 3 * $line_height + 4, $FontSize, _('Past Due') . ' ');
         $pdf->addText($Left_Margin + 242, $Bottom_Margin + 10 + 3 * $line_height + 4, $FontSize, $_SESSION['PastDueDays1'] . '-' . $_SESSION['PastDueDays2'] . ' ' . _('days'));
         $pdf->addText($Left_Margin + 315, $Bottom_Margin + 10 + 3 * $line_height + 4, $FontSize, _('Over') . ' ' . $_SESSION['PastDueDays2'] . ' ' . _('days'));
         $pdf->addText($Left_Margin + 442, $Bottom_Margin + 10 + 3 * $line_height + 4, $FontSize, _('Total Balance'));
         $LeftOvers = $pdf->addTextWrap($Left_Margin + 37, $Bottom_Margin + 2 * $line_height + 8, 70, $FontSize, $DisplayCurrent, 'right');
         $LeftOvers = $pdf->addTextWrap($Left_Margin + 130, $Bottom_Margin + 2 * $line_height + 8, 70, $FontSize, $DisplayDue, 'right');
         $LeftOvers = $pdf->addTextWrap($Left_Margin + 222, $Bottom_Margin + 2 * $line_height + 8, 70, $FontSize, $DisplayOverdue1, 'right');
         $LeftOvers = $pdf->addTextWrap($Left_Margin + 305, $Bottom_Margin + 2 * $line_height + 8, 70, $FontSize, $DisplayOverdue2, 'right');
         $LeftOvers = $pdf->addTextWrap($Left_Margin + 432, $Bottom_Margin + 2 * $line_height + 8, 70, $FontSize, $DisplayBalance, 'right');
         /*draw a line under the balance info */
         $YPos = $Bottom_Margin + 2 * $line_height;
         $pdf->line($Left_Margin, $YPos, $Perforation, $YPos);
         if (mb_strlen($StmtHeader['lastpaiddate']) > 1 and $StmtHeader['lastpaid'] != 0) {
             $pdf->addText($Left_Margin + 5, $Bottom_Margin + 13, $FontSize, _('Last payment received') . ' ' . ConvertSQLDate($StmtHeader['lastpaiddate']) . '	' . _('Amount received was') . ' ' . locale_money_format($StmtHeader['lastpaid'], $StmtHeader['currcode']));
         }
         /*also show the total due in the remittance section */
         if ($AgedAnalysis['balance'] > 0) {
             /*No point showing a negative balance for payment! */
             $FontSize = 8;
             $LeftOvers = $pdf->addTextWrap($Perforation + 2, $Bottom_Margin + 2 * $line_height + 8, 40, $FontSize, _('Payment'), 'left');
             $LeftOvers = $pdf->addTextWrap($Page_Width - $Right_Margin - 90, $Bottom_Margin + 2 * $line_height + 8, 88, $FontSize, $DisplayBalance, 'right');
         }
     }
     /* end of check to see that there were statement transactons to print */
 }
 /* end loop to print statements */
 if (isset($pdf)) {
     $pdf->OutputI($_SESSION['DatabaseName'] . '_CustStatements_' . date('Y-m-d') . '.pdf');
     //UldisN
开发者ID:patmark,项目名称:weberp-elct,代码行数:31,代码来源:PrintCustStatements.php


示例2: printf

                if ($Level > 0) {
                    printf('<tr>
				<td colspan="2"><font size="2"><i>%s ' . _('Total') . ' </i></font></td>
				<td class="number"><i>%s</i></td>
				<td class="number"><i>%s</i></td>
				<td class="number"><i>%s</i></td>
				<td class="number"><i>%s</i></td>
				</tr>', $ParentGroups[$Level], locale_money_format($GrpActual[$Level], $_SESSION['CompanyRecord']['currencydefault']), locale_money_format($GrpBudget[$Level], $_SESSION['CompanyRecord']['currencydefault']), locale_money_format($GrpPrdActual[$Level], $_SESSION['CompanyRecord']['currencydefault']), locale_money_format($GrpPrdBudget[$Level], $_SESSION['CompanyRecord']['currencydefault']));
                    $GrpActual[$Level] = 0;
                    $GrpBudget[$Level] = 0;
                    $GrpPrdActual[$Level] = 0;
                    $GrpPrdBudget[$Level] = 0;
                    $ParentGroups[$Level] = '';
                } else {
                    $Level = 1;
                }
            }
        }
        printf('<tr bgcolor="#ffffff">
			<td colspan="2"><font color="black"><b>' . _('Check Totals') . '</b></font></td>
			<td class="number">%s</td>
			<td class="number">%s</td>
			<td class="number">%s</td>
			<td class="number">%s</td>
		</tr>', locale_money_format($CheckMonth, $_SESSION['CompanyRecord']['currencydefault']), locale_money_format($CheckBudgetMonth, $_SESSION['CompanyRecord']['currencydefault']), locale_money_format($CheckPeriodActual, $_SESSION['CompanyRecord']['currencydefault']), locale_money_format($CheckPeriodBudget, $_SESSION['CompanyRecord']['currencydefault']));
        echo '</table><br />';
        echo '<div class="centre"><button type="submit" name="SelectADifferentPeriod">' . _('Select A Different Period') . '</button></div><br />';
    }
}
echo '</form>';
include 'includes/footer.inc';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:GLTrialBalance.php


示例3: _

/*Print out the category totals */
if ($_POST['DetailedReport'] == 'Yes') {
    $YPos -= $line_height;
    $LeftOvers = $pdf->addTextWrap($Left_Margin, $YPos, 260 - $Left_Margin, $FontSize, _('Total for') . ' ' . $Category . ' - ' . $CategoryName, 'left');
}
$DisplayCatTotVal = locale_money_format($CatTot_Val, $_SESSION['CompanyRecord']['currencydefault']);
$LeftOvers = $pdf->addTextWrap(500, $YPos, 60, $FontSize, $DisplayCatTotVal, 'right');
if ($_POST['DetailedReport'] == 'Yes') {
    /*draw a line under the CATEGORY TOTAL*/
    $pdf->line($Left_Margin, $YPos + $line_height - 2, $Page_Width - $Right_Margin, $YPos + $line_height - 2);
    $YPos -= 2 * $line_height;
}
$YPos -= 2 * $line_height;
/*Print out the grand totals */
$LeftOvers = $pdf->addTextWrap(80, $YPos, 260 - $Left_Margin, $FontSize, _('Grand Total Value'), 'right');
$DisplayTotalVal = locale_money_format($Tot_Val, $_SESSION['CompanyRecord']['currencydefault']);
$LeftOvers = $pdf->addTextWrap(500, $YPos, 60, $FontSize, $DisplayTotalVal, 'right');
if ($_POST['DetailedReport'] == 'Yes') {
    $pdf->line($Left_Margin, $YPos + $line_height - 2, $Page_Width - $Right_Margin, $YPos + $line_height - 2);
    $YPos -= 2 * $line_height;
}
if ($ListCount == 0) {
    $title = _('Print Inventory Valuation Error');
    include 'includes/header.inc';
    echo '<br />' . _('There were no items with any value to print out for the location specified');
    echo '<br /><a href="' . $rootpath . '/index.php">' . _('Back to the menu') . '</a>';
    include 'includes/footer.inc';
    exit;
    // Javier: needs check
} else {
    include 'includes/htmlMimeMail.php';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:MailInventoryValuation.php


示例4: gltrans

     }
     //end of the batch controlled stuff
 }
 //end if the woitem received here is a controlled item
 /* If GLLink_Stock then insert GLTrans to debit the GL Code  and credit GRN Suspense account at standard cost*/
 if ($_SESSION['CompanyRecord']['gllink_stock'] == 1 and $WORow['stdcost'] * $QuantityReceived != 0) {
     /*GL integration with stock is activated so need the GL journals to make it so */
     /*first the debit the finished stock of the item received from the WO
       the appropriate account was already retrieved into the $StockGLCode variable as the Processing code is kicked off
       it is retrieved from the stock category record of the item by a function in SQL_CommonFunctions.inc*/
     $SQL = "INSERT INTO gltrans (type,\n\t\t\t\t\t\t\t\t\ttypeno,\n\t\t\t\t\t\t\t\t\ttrandate,\n\t\t\t\t\t\t\t\t\tperiodno,\n\t\t\t\t\t\t\t\t\taccount,\n\t\t\t\t\t\t\t\t\tdefaulttag,\n\t\t\t\t\t\t\t\t\tnarrative,\n\t\t\t\t\t\t\t\t\tamount)\n\t\t\t\t\t\t\tVALUES (26,\n\t\t\t\t\t\t\t\t'" . $WOReceiptNo . "',\n\t\t\t\t\t\t\t\t'" . Date('Y-m-d') . "',\n\t\t\t\t\t\t\t\t'" . $PeriodNo . "',\n\t\t\t\t\t\t\t\t'" . $StockGLCode['stockact'] . "',\n\t\t\t\t\t\t\t\t'" . $_SESSION['DefaultTag'] . "',\n\t\t\t\t\t\t\t\t'" . $_POST['WO'] . " " . $_POST['StockID'] . " - " . $WORow['description'] . ' x ' . $QuantityReceived . " @ " . locale_money_format($WORow['stdcost'], $_SESSION['CompanyRecord']['currencydefault']) . "',\n\t\t\t\t\t\t\t\t'" . $WORow['stdcost'] * $QuantityReceived . "')";
     $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The receipt of work order finished stock GL posting could not be inserted because');
     $DbgMsg = _('The following SQL to insert the work order receipt of finished items GLTrans record was used');
     $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, true);
     /*now the credit WIP entry*/
     $SQL = "INSERT INTO gltrans (type,\n\t\t\t\t\t\t\t\t\ttypeno,\n\t\t\t\t\t\t\t\t\ttrandate,\n\t\t\t\t\t\t\t\t\tperiodno,\n\t\t\t\t\t\t\t\t\taccount,\n\t\t\t\t\t\t\t\t\tdefaulttag,\n\t\t\t\t\t\t\t\t\tnarrative,\n\t\t\t\t\t\t\t\t\tamount)\n\t\t\t\t\t\t\tVALUES (26,\n\t\t\t\t\t\t\t\t'" . $WOReceiptNo . "',\n\t\t\t\t\t\t\t\t'" . Date('Y-m-d') . "',\n\t\t\t\t\t\t\t\t'" . $PeriodNo . "',\n\t\t\t\t\t\t\t\t'" . $StockGLCode['wipact'] . "',\n\t\t\t\t\t\t\t\t'" . $_SESSION['DefaultTag'] . "',\n\t\t\t\t\t\t\t\t'" . $_POST['WO'] . " " . $_POST['StockID'] . " - " . $WORow['description'] . ' x ' . $QuantityReceived . " @ " . locale_money_format($WORow['stdcost'], $_SESSION['CompanyRecord']['currencydefault']) . "',\n\t\t\t\t\t\t\t\t'" . -($WORow['stdcost'] * $QuantityReceived) . "')";
     $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('The WIP credit on receipt of finished items from a work order GL posting could not be inserted because');
     $DbgMsg = _('The following SQL to insert the WIP GLTrans record was used');
     $Result = DB_query($SQL, $db, $ErrMsg, $DbgMsg, true);
 }
 /* end of if GL and stock integrated and standard cost !=0 */
 if (!isset($LastRef)) {
     $LastRef = '';
 }
 //update the wo with the new qtyrecd
 $ErrMsg = _('CRITICAL ERROR') . '! ' . _('NOTE DOWN THIS ERROR AND SEEK ASSISTANCE') . ': ' . _('Could not update the work order item record with the total quantity received because');
 $DbgMsg = _('The following SQL was used to update the work order');
 $UpdateWOResult = DB_query("UPDATE woitems\n\t\t\t\t\t\t\t\t\tSET qtyrecd=qtyrecd+" . $QuantityReceived . ",\n\t\t\t\t\t\t\t\t\t\tnextlotsnref='" . $LastRef . "'\n\t\t\t\t\t\t\t\t\tWHERE wo='" . $_POST['WO'] . "'\n\t\t\t\t\t\t\t\t\tAND stockid='" . $_POST['StockID'] . "'", $db, $ErrMsg, $DbgMsg, true);
 $Result = DB_Txn_Commit($db);
 prnMsg(_('The receipt of') . ' ' . $QuantityReceived . ' ' . $WORow['units'] . ' ' . _('of') . ' ' . $_POST['StockID'] . ' - ' . $WORow['description'] . ' ' . _('against work order') . ' ' . $_POST['WO'] . ' ' . _('has been processed'), 'info');
 echo '<a href="' . $rootpath . '/SelectWorkOrder.php">' . _('Select a different work order for receiving finished stock against') . '</a>';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:WorkOrderReceive.php


示例5: printf

            if ($j < 0) {
                $j = 11;
                echo $tableheader;
            }
            if ($k == 1) {
                echo '<tr class="EvenTableRows">';
                $k = 0;
            } else {
                echo '<tr class="OddTableRows">';
                $k = 1;
            }
            printf('<td>%s</td>
			<td class="number">%s</td>
			<td class="number">%s</td>
			<td class="number">%s%%</td>
			</tr>', $ph[0], locale_number_format($ph[1], $DecimalPlaces), locale_money_format($ph[2], $_SESSION['CompanyRecord']['currencydefault']), locale_number_format($ph[3] * 100, 2));
        }
        echo '</table>';
    } else {
        echo '<p>' . _('No history of sales of') . ' ' . $StockID . ' ' . _('to') . ' ' . $DebtorNo . '</p>';
    }
}
//end of displaying price history for a debtor
echo '<div class="centre">';
echo '<br /><a href="' . $rootpath . '/StockMovements.php?StockID=' . $StockID . '">' . _('Show Movements') . '</a>';
echo '<br /><a href="' . $rootpath . '/StockUsage.php?StockID=' . $StockID . '">' . _('Show Usage') . '</a>';
echo '<br /><a href="' . $rootpath . '/SelectSalesOrder.php?SelectedStockItem=' . $StockID . '">' . _('Search Outstanding Sales Orders') . '</a>';
echo '<br /><a href="' . $rootpath . '/SelectCompletedOrder.php?SelectedStockItem=' . $StockID . '">' . _('Search Completed Sales Orders') . '</a>';
if ($Its_A_KitSet_Assembly_Or_Dummy == False) {
    echo '<br /><a href="' . $rootpath . '/PO_SelectOSPurchOrder.php?SelectedStockItem=' . $StockID . '">' . _('Search Outstanding Purchase Orders') . '</a>';
}
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:StockStatus.php


示例6: htmlspecialchars

}
/*Set up a form to allow input of new Shipment charges */
echo '<br /><form action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '" method="post">';
echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
if (!isset($_POST['AssetID'])) {
    $_POST['AssetID'] = '';
}
prnMsg(_('If you know the code enter it in the Asset ID input box, otherwise select the asset from the list below. Only  assets with no cost will show in the list'), 'info');
echo '<br /><table class="selection">';
echo '<tr><td>' . _('Enter Asset ID') . ':</td>
	<td><input type="text" name="AssetID" size="5" maxlength="6" value="' . $_POST['AssetID'] . '" /> <a href="FixedAssetItems.php" target=_blank>' . _('New Fixed Asset') . '</a></td></tr>';
echo '<tr><td><b>' . _('OR') . ' </b>' . _('Select from list') . ':</td><td><select name="AssetSelection">';
$sql = "SELECT assetid,\n\t\t\t\tdescription\n\t\t\tFROM fixedassets\n\t\t\tWHERE cost=0\n\t\t\tORDER BY assetid DESC";
$result = DB_query($sql, $db);
while ($myrow = DB_fetch_array($result)) {
    if (isset($_POST['AssetSelection']) and $myrow['AssetID'] == $_POST['AssetSelection']) {
        echo '<option selected="True" value="' . $myrow['assetid'] . '">' . $myrow['assetid'] . ' - ' . $myrow['description'] . '</option>';
    } else {
        echo '<option value="' . $myrow['assetid'] . '">' . $myrow['assetid'] . ' - ' . $myrow['description'] . '</option>';
    }
}
echo '</select></td></tr>';
if (!isset($_POST['Amount'])) {
    $_POST['Amount'] = 0;
}
echo '<tr><td>' . _('Amount') . ':</td>
	<td><input type="text" class="number" name="Amount" size="12" maxlength="11" value="' . locale_money_format($_POST['Amount'], $_SESSION['SuppTrans']->CurrCode) . '" /></td></tr>';
echo '</table>';
echo '<br /><div class="centre"><button type="submit" name="AddAssetToInvoice">' . _('Enter Fixed Asset') . '</button></div>';
echo '</form>';
include 'includes/footer.inc';
开发者ID:patmark,项目名称:weberp-elct,代码行数:31,代码来源:SuppFixedAssetChgs.php


示例7: locale_number_format

             echo '<tr class="EvenTableRows">';
             $k = 0;
         } else {
             echo '<tr class="OddTableRows">';
             $k = 1;
         }
         if ($LineItems->ExpiryDate < date('Y-m-d')) {
             echo '<tr bgcolor="#F7A9A9">';
         }
         echo '<input type="hidden" name="StockID' . $LineItems->LineNo . '" value="' . $LineItems->StockID . '" />';
         echo '<td>' . $LineItems->StockID . '</td>';
         echo '<td>' . $LineItems->ItemDescription . '</td>';
         echo '<td><input type="text" class="number" name="Qty' . $LineItems->LineNo . '" value="' . locale_number_format($LineItems->Quantity, $LineItems->DecimalPlaces) . '" /></td>';
         echo '<td>' . $LineItems->Units . '</td>';
         echo '<td><input type="text" class="number" name="Price' . $LineItems->LineNo . '" value="' . locale_money_format($LineItems->Price, $Currency) . '" /></td>';
         echo '<td class="number">' . locale_money_format($LineItems->Price * $LineItems->Quantity, $Currency) . '</td>';
         echo '<td><input type="text" size="11" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="expirydate' . $LineItems->LineNo . '" value="' . $LineItems->ExpiryDate . '" /></td>';
         echo '<td><a href="' . htmlspecialchars($_SERVER['PHP_SELF']) . '?identifier=' . $identifier . '&Delete=' . $LineItems->LineNo . '&Type=' . $_POST['TenderType'] . '">' . _('Remove') . '</a></td></tr>';
         echo '</tr>';
     }
 }
 echo '</table>';
 echo '<input type="hidden" name="TenderType" value="' . $_POST['TenderType'] . '" />';
 if ($_POST['TenderType'] == 1) {
     echo '<br /><div class="centre"><button type="submit" name="Update">' . _('Update offer') . '</button>';
     echo '<button type="submit" name="Refresh">' . _('Refresh screen') . '</button></div>';
 } else {
     if ($_POST['TenderType'] == 2) {
         echo '<br /><div class="centre"><button type="submit" name="Save">' . _('Save offer') . '</button>';
         echo '<button type="submit" name="Refresh">' . _('Refresh screen') . '</button></div>';
     }
开发者ID:patmark,项目名称:weberp-elct,代码行数:31,代码来源:SupplierTenders.php


示例8: locale_money_format

				<td>' . $SalesRow['stockid'] . ' - ' . $SalesRow['description'] . '</td>
				<td>' . $SalesRow['categorydescription'] . '</td>
				<td class="number">' . locale_money_format($SalesRow['salesvalue'], $_SESSION['CompanyRecord']['currencydefault']) . '</td>
				<td class="number">' . locale_money_format($SalesRow['returnvalue'], $_SESSION['CompanyRecord']['currencydefault']) . '</td>
				<td class="number">' . locale_money_format($SalesRow['netsalesvalue'], $_SESSION['CompanyRecord']['currencydefault']) . '</td>
				<td class="number">' . locale_number_format($SalesRow['salesquantity'], 2) . '</td>
				</tr>';
        $i++;
        $CumulativeTotalSales += $SalesRow['salesvalue'];
        $CumulativeTotalRefunds += $SalesRow['returnvalue'];
        $CumulativeTotalNetSales += $SalesRow['salesvalue'] + $SalesRow['returnvalue'];
        $CumulativeTotalQuantity += $SalesRow['salesquantity'];
    }
    //loop around category sales for the period
    if ($k == 1) {
        echo '<tr class="EvenTableRows"><td colspan="8"><hr /></td></tr>';
        echo '<tr class="OddTableRows">';
    } else {
        echo '<tr class="OddTableRows"><td colspan="8"><hr /></td></tr>';
        echo '<tr class="EvenTableRows">';
    }
    echo '<td class="number" colspan="3">' . _('GRAND Total') . '</td>
		<td class="number">' . locale_money_format($CumulativeTotalSales, $_SESSION['CompanyRecord']['currencydefault']) . '</td>
		<td class="number">' . locale_money_format($CumulativeTotalRefunds, $_SESSION['CompanyRecord']['currencydefault']) . '</td>
		<td class="number">' . locale_money_format($CumulativeTotalNetSales, $_SESSION['CompanyRecord']['currencydefault']) . '</td>
		<td class="number">' . locale_number_format($CumulativeTotalQuantity, 2) . '</td>
		</tr>';
    echo '</table>';
}
//end of if user hit show sales
include 'includes/footer.inc';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:SalesTopItemsInquiry.php


示例9: _

    if (!isset($_POST['SuppliersUOM'])) {
        $_POST['SuppliersUOM'] = '';
    }
    if (!isset($_POST['SupplierDescription'])) {
        $_POST['SupplierDescription'] = '';
    }
    if (!isset($_POST['SupplierCode'])) {
        $_POST['SupplierCode'] = '';
    }
    if (!isset($_POST['MinOrderQty'])) {
        $_POST['MinOrderQty'] = '1';
    }
    echo '<tr><td>' . _('Currency') . ':</td>
	<td><input type="hidden" name="CurrCode" . value="' . $CurrCode . '" />' . $CurrCode . '</td></tr>';
    echo '<tr><td>' . _('Price') . ' (' . _('in Supplier Currency') . '):</td>
	<td><input type="text" class="number" name="Price" maxlength="12" size="12" value="' . locale_money_format($_POST['Price'], $CurrCode) . '" /></td></tr>';
    echo '<tr><td>' . _('Date Updated') . ':</td>
	<td><input type="text" class="date" alt="' . $_SESSION['DefaultDateFormat'] . '" name="EffectiveFrom" maxlength="10" size="11" value="' . $_POST['EffectiveFrom'] . '" /></td></tr>';
    echo '<tr><td>' . _('Our Unit of Measure') . ':</td>';
    if (isset($SupplierID)) {
        echo '<td>' . $StockUOM . '</td></tr>';
    }
    echo '<tr><td>' . _('Suppliers Unit of Measure') . ':</td>';
    echo '<td><select name="SuppliersUOM">';
    $sql = "SELECT unitid,\n\t\t\t\t\tunitname\n\t\t\t\tFROM unitsofmeasure";
    $result = DB_query($sql, $db);
    while ($myrow = DB_fetch_array($result)) {
        if ($_POST['SuppliersUOM'] == $myrow['unitid']) {
            echo '<option selected="True" value="' . $myrow['unitid'] . '">' . $myrow['unitname'] . '</option>';
        } else {
            echo '<option value="' . $myrow['unitid'] . '">' . $myrow['unitname'] . '</option>';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:PurchData.php


示例10: DB_free_result

        }
        /*end of new page header  */
    }
    DB_free_result($GLTransResult);
    $YPos -= $line_height;
    $TotalCheques = $TotalCheques - $myrow['amount'];
    if ($YPos - 2 * $line_height < $Bottom_Margin) {
        /*Then set up a new page */
        $PageNumber++;
        include 'includes/PDFChequeListingPageHeader.inc';
    }
    /*end of new page header  */
}
/* end of while there are customer receipts in the batch to print */
$YPos -= $line_height;
$LeftOvers = $pdf->addTextWrap($Left_Margin, $YPos, 60, $FontSize, locale_money_format($TotalCheques, $Currency), 'right');
$LeftOvers = $pdf->addTextWrap($Left_Margin + 65, $YPos, 300, $FontSize, _('TOTAL') . ' ' . $Currency . ' ' . _('CHEQUES'), 'left');
$ReportFileName = $_SESSION['DatabaseName'] . '_ChequeListing_' . date('Y-m-d') . '.pdf';
$pdf->OutputD($ReportFileName);
//UldisN
$pdf->__destruct();
//UldisN
if ($_POST['Email'] == 'Yes') {
    if (file_exists($_SESSION['reports_dir'] . '/' . $ReportFileName)) {
        unlink($_SESSION['reports_dir'] . '/' . $ReportFileName);
    }
    $fp = fopen($_SESSION['reports_dir'] . '/' . $ReportFileName, 'wb');
    fwrite($fp, $pdfcode);
    fclose($fp);
    include 'includes/htmlMimeMail.php';
    $mail = new htmlMimeMail();
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:PDFChequeListing.php


示例11: while

while ($myrow = DB_fetch_array($MovtsResult)) {
    if ($k == 1) {
        echo '<tr class="OddTableRows">';
        $k = 0;
    } else {
        echo '<tr class="EvenTableRows">';
        $k = 1;
    }
    $DisplayTranDate = ConvertSQLDate($myrow['trandate']);
    printf('<td><a target="_blank" href="StockStatus.php?StockID=%s">%s</td>
			<td>%s</td>
			<td>%s</td>
			<td>%s</td>
			<td>%s</td>
			<td class="number">%s</td>
			<td>%s</td>
			<td class="number">%s</td>
			<td class="number">%s</td>
			<td class="number">%s</td>
			</tr>', mb_strtoupper($myrow['stockid']), mb_strtoupper($myrow['stockid']), $myrow['typename'], $myrow['transno'], $DisplayTranDate, $myrow['debtorno'], locale_number_format($myrow['qty'], $myrow['decimalplaces']), $myrow['reference'], locale_money_format($myrow['price'], $_SESSION['CompanyRecord']['currencydefault']), locale_number_format($myrow['discountpercent'] * 100, 2), locale_number_format($myrow['newqoh'], $myrow['decimalplaces']));
    $j++;
    if ($j == 16) {
        $j = 1;
        echo $tableheader;
    }
    //end of page full new headings if
}
//end of while loop
echo '</table>';
echo '</form>';
include 'includes/footer.inc';
开发者ID:patmark,项目名称:weberp-elct,代码行数:31,代码来源:StockLocMovements.php


示例12: ConvertSQLDate

        echo '<tr class="EvenTableRows">';
        $k = 0;
    } else {
        echo '<tr class="OddTableRows">';
        $k = 1;
    }
    echo '<td>' . $myrow['suppname'] . '</td>
		<td>' . $myrow['typename'] . '</td>
		<td>' . $myrow['suppreference'] . '</td>
		<td>' . ConvertSQLDate($myrow['trandate']) . '</td>
		<td class=number>' . locale_money_format($myrow['value'], $myrow['currcode']) . '</td></tr>';
    $TotalGeneralShipmentChgs += $myrow['value'];
}
echo '<tr>
	<td class="number" colspan="4"><font color="blue"><b>' . _('Total General Shipment Charges') . ':</b></font></td>
	<td class="number">' . locale_money_format($TotalGeneralShipmentChgs, $ShipmentCurrency) . '</td></tr>';
echo '</table>';
echo '</td></tr></table>';
//major table close
if (isset($_GET['Close'])) {
    /* Only an opportunity to confirm user wishes to close */
    // if the page was called with Close=Yes then show options to confirm OK to c
    echo '<div class="centre">
			<form method="post" action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '?SelectedShipment=' . $_GET['SelectedShipment'] . '">';
    echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
    if ($_SESSION['WeightedAverageCosting'] == 0) {
        /* We are standard costing - so show the option to update costs - under W. Avg cost updates are implicit */
        echo _('Update Standard Costs') . ':<select name="UpdateCost">
				<option selected value="Yes">' . _('Yes') . '</option>
				<option value="No">' . _('No') . '</option>
			</select>';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:ShipmentCosting.php


示例13: _

<?php

/* $Id$*/
include 'includes/session.inc';
$title = _('Currency Debtor Balances');
include 'includes/header.inc';
echo '<font size="4"><b>' . _('Debtors Balances By Currency Totals') . '</b></font>';
$sql = "SELECT SUM(ovamount+ovgst+ovdiscount+ovfreight-alloc) AS currencybalance,\n\t\tcurrcode,\n\t\tSUM((ovamount+ovgst+ovdiscount+ovfreight-alloc)/rate) AS localbalance\n\tFROM debtortrans INNER JOIN debtorsmaster\n\t\tON debtortrans.debtorno=debtorsmaster.debtorno\n\tWHERE (ovamount+ovgst+ovdiscount+ovfreight-alloc)<>0 GROUP BY currcode";
$result = DB_query($sql, $db);
$LocalTotal = 0;
echo '<table>';
while ($myrow = DB_fetch_array($result)) {
    echo '<tr><td><font size="4">' . _('Total Debtor Balances in') . ' </font></td>
		<td><font size="4">' . $myrow['currcode'] . '</font></td>
		<td class="number"><font size="4">' . locale_money_format($myrow['currencybalance'], $myrow['currcode']) . '</font></td>
		<td><font size="4"> in ' . $_SESSION['CompanyRecord']['currencydefault'] . '</font></td>
		<td class="number"><font size="4">' . locale_money_format($myrow['localbalance'], $_SESSION['CompanyRecord']['currencydefault']) . '</font></td></tr>';
    $LocalTotal += $myrow['localbalance'];
}
echo '<tr><td colspan="4"><font size="4">' . _('Total Balances in local currency') . ':</font></td>
	<td class="number"><font size="4">' . locale_money_format($LocalTotal, $_SESSION['CompanyRecord']['currencydefault']) . '</font></td></tr>';
echo '</table>';
include 'includes/footer.inc';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:23,代码来源:Z_CurrencyDebtorsBalances.php


示例14: locale_number_format

			<input type="hidden" value="' . locale_number_format($_POST['NumberOfTopItems'], 0) . '" name="NumberOfTopItems" />';
    $k = 0;
    //row colour counter
    $i = 1;
    while ($myrow = DB_fetch_array($result)) {
        //find the quantity onhand item
        $sqloh = "SELECT sum(quantity) AS qty\n\t\t\t\t\tFROM locstock\n\t\t\t\t\tWHERE stockid='" . $myrow['stkcode'] . "'";
        $oh = DB_query($sqloh, $db);
        $ohRow = DB_fetch_array($oh);
        if ($k == 1) {
            echo '<tr class="EvenTableRows">';
            $k = 0;
        } else {
            echo '<tr class="OddTableRows">';
            $k = 1;
        }
        printf('<td class="number">%s</td>
				<td>%s</td>
				<td>%s</td>
				<td class="number">%s</td>
				<td>%s</td>
				<td class="number">%s</td>
				<td class="number">%s</td>
				</tr>', $i, $myrow['stkcode'], $myrow['description'], locale_number_format($myrow['totalinvoiced'], $myrow['decimalplaces']), $myrow['units'], locale_money_format($myrow['valuesales'], $_SESSION['CompanyRecord']['currencydefault']), locale_number_format($ohRow['qty'], $myrow['decimalplaces']));
        $i++;
    }
    echo '</table>';
    echo '<br /><div class="centre"><button type="submit" name="PrintPDF">' . _('Print To PDF') . '</button></div>';
    echo '</form>';
}
include 'includes/footer.inc';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:TopItems.php


示例15: _

						<th>' . _('Amount in') . ' ' . $_SESSION['CompanyRecord']['currencydefault'] . '</th>
						<th>' . _('Running Total') . ' ' . $_SESSION['CompanyRecord']['currencydefault'] . '</th>
					</tr>';
        $AccountCurrTotal = 0;
        $LocalCurrTotal = 0;
        while ($myrow = DB_fetch_array($result)) {
            $AccountCurrTotal += $myrow['amount'];
            $LocalCurrTotal += $myrow['amount'] / $myrow['functionalexrate'] / $myrow['exrate'];
            echo '<tr>
							<td>' . ConvertSQLDate($myrow['transdate']) . '</td>
							<td>' . $myrow['userid'] . '</td>
							<td>' . $myrow['typename'] . '</td>
							<td>' . $myrow['banktranstype'] . '</td>
							<td>' . $myrow['chequeno'] . '</td>
							<td>' . $myrow['ref'] . '</td>
							<td class="number">' . locale_money_format($myrow['amount'], $myrow['currcode']) . '</td>
							<td class="number">' . locale_money_format($AccountCurrTotal, $myrow['currcode']) . '</td>
							<td class="number">' . locale_money_format($myrow['amount'] / $myrow['functionalexrate'] / $myrow['exrate'], $_SESSION['CompanyRecord']['currencydefault']) . '</td>
							<td class="number">' . locale_money_format($LocalCurrTotal, $_SESSION['CompanyRecord']['currencydefault']) . '</td>
						</tr>';
        }
        echo '<tr><th colspan=10>' . _('Total number of receipts') . ' - ' . DB_num_rows($result) . '</th></tr>';
        echo '</table>';
    }
    //end if no bank trans in the range to show
    echo '<form action="' . htmlspecialchars($_SERVER['PHP_SELF'], ENT_QUOTES, 'UTF-8') . '" method="post">';
    echo '<input type="hidden" name="FormID" value="' . $_SESSION['FormID'] . '" />';
    echo '<br /><div class="centre"><button type="submit" name="Return">' . _('Select Another Date') . '</button></div><br />';
    echo '</form>';
}
include 'includes/footer.inc';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:DailyBankTransactions.php


示例16: _

    echo '<tr><th>' . _('Asset ID') . '</th>
				<th>' . _('Description') . '</th>
				<th>' . _('Serial number') . '</th>
				<th>' . _('Purchase Cost') . '</th>
				<th>' . _('Total Depreciation') . '</th>
				<th>' . _('Current Location') . '</th>
				<th>' . _('Move To :') . '</th>
			</tr>';
    $locationsql = "SELECT locationid, locationdescription from fixedassetlocations";
    $LocationResult = DB_query($locationsql, $db);
    while ($myrow = DB_fetch_array($Result)) {
        echo '<tr><td>' . $myrow['assetid'] . '</td>
					<td>' . $myrow['description'] . '</td>
					<td>' . $myrow['serialno'] . '</td>
					<td class="number">' . locale_money_format($myrow['cost'], $_SESSION['CompanyRecord']['currencydefault']) . '</td>
					<td class="number">' . locale_money_format($myrow['accumdepn'], $_SESSION['CompanyRecord']['currencydefault']) . '</td>
					<td>' . $myrow['locationdescription'] . '</td>';
        echo '<td><select name="Location' . $myrow['assetid'] . '" onChange="ReloadForm(Move' . $myrow['assetid'] . ')">';
        echo '<option value=""></option>';
        while ($LocationRow = DB_fetch_array($LocationResult)) {
            if ($LocationRow['locationid'] == $myrow['location']) {
                echo '<option selected="True" value="' . $LocationRow['locationid'] . '">' . $LocationRow['locationdescription'] . '</option>';
            } else {
                echo '<option value="' . $LocationRow['locationid'] . '">' . $LocationRow['locationdescription'] . '</option>';
            }
        }
        DB_data_seek($LocationResult, 0);
        echo '</select></td>';
        echo '<input type="hidden" name="AssetCat" value="' . $_POST['AssetCat'] . '" />';
        echo '<input type="hidden" name="Keywords" value="' . $_POST['Keywords'] . '" />';
        echo '<input type="hidden" name="AssetID" value="' . $_POST['AssetID'] . '" />';
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:FixedAssetTransfer.php


示例17: _

                echo '<option selected="True" value="' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>';
            } else {
                echo '<option value=' . $myrow['currabrev'] . '">' . $myrow['currency'] . '</option>';
            }
        }
    }
    //end while loop get type of tab
    echo '</select></td></tr>';
    if (!isset($_POST['tablimit'])) {
        $_POST['tablimit'] = 0;
    }
    if (!isset($_POST['SelectCurrency'])) {
        $_POST['SelectCurrency'] = $_SESSION['CompanyRecord']['currencydefault'];
    }
    echo '<tr>
			<td>' . _('Limit Of Tab') . ':</td><td><input type="text" class="number" name="tablimit" size="12" maxlength="11" value="' . locale_money_format($_POST['tablimit'], $_POST['SelectCurrency']) . '" /></td>
		</tr>';
    echo '<tr>
			<td>' . _('Cash Assigner') . ':</td><td><select name="SelectAssigner">';
    DB_data_seek($UsersResult);
    echo '<option value=""></option>';
    while ($myrow = DB_fetch_array($UsersResult)) {
        if (isset($_POST['SelectAssigner']) and $myrow['userid'] == $_POST['SelectAssigner']) {
            echo '<option selected="True" value="' . $myrow['userid'] . '">' . $myrow['userid'] . ' - ' . $myrow['realname'] . '</option>';
        } else {
            echo '<option value="' . $myrow['userid'] . '">' . $myrow['userid'] . ' - ' . $myrow['realname'] . '</option>';
        }
    }
    //end while loop get authorizer
    echo '</select></td></tr>';
    echo '<tr>
开发者ID:sunilburli,项目名称:webERP-Medical,代码行数:31,代码来源:PcTabs.php


示例18: DB_query

            $SQL = "SELECT \tsalesorderdetails.stkcode,\n\t\t\t\t\t\tSUM(salesorderdetails.qtyinvoiced) totalinvoiced,\n\t\t\t\t\t\tSUM(salesorderdetails.qtyinvoiced * salesorderdetails.unitprice ) AS valuesales,\n\t\t\t\t\t\tstockmaster.description,\n\t\t\t\t\t\tstockmaster.decimalplaces,\n\t\t\t\t\t\tdebtorsmaster.currcode,\n\t\t\t\t\t\tstockmaster.units\n\t\t\t\t\tFROM \tsalesorderdetails, salesorders, debtorsmaster,stockmaster\n\t\t\t\t\tWHERE \tsalesorderdetails.orderno = salesorders.orderno\n\t\t\t\t\t\tAND salesorderdetails.stkcode = stockmaster.stockid\n\t\t\t\t\t\tAND salesorders.debtorno = debtorsmaster.debtorno\n\t\t\t\t\t\tAND salesorders.fromstkloc = '" . $_GET['Location'] . "'\n\t\t\t\t\t\tAND debtorsmaster.typeid = '" . $_GET['Customers'] . "'\n\t\t\t\t\t\tAND salesorderdetails.actualdispatchdate >= '" . $FromDate . "'\n\t\t\t\t\tGROUP BY salesorderdetails.stkcode\n\t\t\t\t\tORDER BY '" . $_GET['Sequence'] . "' DESC\n\t\t\t\t\tLIMIT " . $_GET['NumberOfTopItems'];
        }
    }
}
$result = DB_query($SQL, $db);
$YPos = $YPos - 6;
while ($myrow = DB_fetch_array($result)) {
    //find the quantity onhand item
    $sqloh = "SELECT   sum(quantity)as qty\n\t\t\t\t\t\tFROM     `locstock`\n\t\t\t\t\t\tWHERE     stockid='" . $myrow['0'] . "'";
    $oh = DB_query($sqloh, $db);
    $ohRow = DB_fetch_row($oh);
    $LeftOvers = $pdf->addTextWrap($Left_Margin + 1, $YPos, 300 - $Left_Margin, $FontSize, $myrow['stkcode']);
    $LeftOvers = $pdf->addTextWrap($Left_Margin + 100, $YPos, 270 - $Left_Margin, $FontSize, $myrow['description']);
    $LeftOvers = $pdf->addTextWrap($Left_Margin + 330, $YPos, 30, $FontSize, locale_number_format($myrow['totalinvoiced'], $myrow['decimalplaces']), 'right');
    $LeftOvers = $pdf->addTextWrap($Left_Margin + 370, $YPos, 300 - $Left_Margin, $FontSize, $myrow['units'], 'left');
    $LeftOvers = $pdf->addTextWrap($Left_Margin + 400, $YPos, 70, $FontSize, locale_money_format($myrow['valuesales'], $myrow['currcode']), 'right');
    $LeftOvers = $pdf->addTextWrap($Left_Margin + 490, $YPos, 30, $FontSize, locale_number_format($ohRow[0], $myrow['decimalplaces']), 'right');
    if (mb_strlen($LeftOvers) > 1) {
        $LeftOvers = $pdf->addTextWrap($Left_Margin + 1 + 94, $YPos - $line_he 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP locale_number_format函数代码示例发布时间:2022-05-15
下一篇:
PHP locale_datefmt函数代码示例发布时间: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