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


PHP currencies::format方法代码示例

本文整理汇总了PHP中currencies::format方法的典型用法代码示例。如果您正苦于以下问题:PHP currencies::format方法的具体用法?PHP currencies::format怎么用?PHP currencies::format使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在currencies的用法示例。


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

示例1: shoppingCart

        session_decode($session_data_country);
        session_decode($session_data_zone);
        session_decode($session_data_cart);
        if (PHP_VERSION < 4) {
            $broken_cart = $cart;
            $cart = new shoppingCart();
            $cart->unserialize($broken_cart);
        }
        if (is_object($cart)) {
            $products = $cart->get_products();
            for ($i = 0, $n = sizeof($products); $i < $n; $i++) {
                $contents[] = array('text' => $products[$i]['quantity'] . ' x ' . $products[$i]['name']);
            }
            if (sizeof($products) > 0) {
                $contents[] = array('text' => tep_draw_separator('pixel_black.gif', '100%', '1'));
                $contents[] = array('align' => 'right', 'text' => TEXT_SHOPPING_CART_SUBTOTAL . ' ' . $currencies->format($cart->show_total(), true, $currency));
            } else {
                $contents[] = array('text' => '&nbsp;');
            }
        }
    }
}
if (tep_not_null($heading) && tep_not_null($contents)) {
    echo '            <td width="25%" valign="top">' . "\n";
    $box = new box();
    echo $box->infoBox($heading, $contents);
    echo '            </td>' . "\n";
}
?>
          </tr>
        </table></td>
开发者ID:laiello,项目名称:hotel-os,代码行数:31,代码来源:whos_online.php

示例2: round

// BODY: <tr> sections with recovered cart data
?>
    <tr>
        <td colspan=9 valign="bottom"><hr width="100%" size="1" color="#800000" noshade></td>
       </tr>
    <tr class="main">
      <td align="right" valign="center" colspan=4 class="main"><b><?php 
echo TOTAL_RECOVERED;
?>
&nbsp;</b></font></td>
      <td align=left colspan=3 class="main"><b><?php 
echo $rc_cnt ? round($custknt / $rc_cnt * 100, 2) : 0;
?>
%</b></font></td>
      <td class="main" align="right"><b><?php 
echo $currencies->format(round($total_recovered, 2));
?>
</b></font></td>
      <td class="main">&nbsp;</td>
    </tr>
Done!
    </table>
<!-- body_text_eof //-->
  </td>
 </tr>
</table>
<!-- body_eof //-->

<?php 
require 'includes/oos_footer.php';
?>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:stats_recover_cart_sales.php

示例3:

?>
</td>
        <td class="dataTableHeadingContent" align="right"><?php 
echo TABLE_HEADING_TOTAL_EXCLUDING_TAX;
?>
</td>
        <td class="dataTableHeadingContent" align="right"><?php 
echo TABLE_HEADING_TOTAL_INCLUDING_TAX;
?>
</td>
      </tr>
<?php 
$decimals = $currencies->get_decimal_places($order->info['currency']);
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    if (DISPLAY_PRICE_WITH_TAX_ADMIN == 'true') {
        $priceIncTax = $currencies->format(zen_round(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), $decimals) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']);
    } else {
        $priceIncTax = $currencies->format(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']);
    }
    echo '      <tr class="dataTableRow">' . "\n" . '        <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
    if (isset($order->products[$i]['attributes']) && ($k = sizeof($order->products[$i]['attributes'])) > 0) {
        for ($j = 0; $j < $k; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value']));
            if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
            }
            if ($order->products[$i]['attributes'][$j]['product_attribute_is_free'] == '1' and $order->products[$i]['product_is_free'] == '1') {
                echo TEXT_INFO_ATTRIBUTE_FREE;
            }
            echo '</i></small></nobr>';
        }
开发者ID:zenmagick,项目名称:zencart,代码行数:31,代码来源:invoice.php

示例4: while

            ?>
</strong></td>
      </tr>
<?php 
            //_TODO make this into a do/while loop so that the final sub_total values can be displayed
            while (!$payment->EOF) {
                if ($current_type != strtoupper($payment->fields['payment_type'])) {
                    // print subtotal line & count for type
                    ?>
      <tr class="dataTableRowUnique" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)">
        <td class="dataTableContent" colspan="3" align="left"><strong><?php 
                    echo sprintf(TABLE_SUB_COUNT, $so->full_type($current_type)) . $sub_count;
                    ?>
</strong></td>
        <td class="dataTableContent" colspan="4" align="right"><strong><?php 
                    echo sprintf(TABLE_SUB_TOTAL, $so->full_type($current_type)) . $currencies->format($sub_total);
                    ?>
</strong></td>
      </tr>
<?php 
                    // reset type values for the next one
                    $current_type = strtoupper($payment->fields['payment_type']);
                    $num_of_types++;
                    $sub_total = 0;
                    $sub_count = 0;
                    ?>
      <tr>
        <td colspan="7" class="dataTableContent" align="center"><strong><?php 
                    echo zen_draw_separator() . $so->full_type($current_type) . zen_draw_separator();
                    ?>
</strong></td>
开发者ID:retched,项目名称:zen_SuperOrders,代码行数:31,代码来源:super_report_cash.php

示例5:

    echo TABLE_HEADING_PRICE_NO_TAX;
    ?>
</td>
        <td class="dataTableHeadingContent" align="right" width="20%"><?php 
    echo TABLE_HEADING_TOTAL_NO_TAX;
    ?>
</td>
        <?php 
}
?>
      </tr>
<?php 
$decimals = $currencies->get_decimal_places($order->info['currency']);
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    if (DISPLAY_PRICE_WITH_TAX_ADMIN == 'true') {
        $priceIncTax = $currencies->format(zen_round(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']), $decimals) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']);
    } else {
        $priceIncTax = $currencies->format(zen_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax']) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']);
    }
    echo '      <tr class="dataTableRow">' . "\n" . '        <td class="dataTableContent" valign="top">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
    if (isset($order->products[$i]['attributes']) && ($k = sizeof($order->products[$i]['attributes'])) > 0) {
        for ($j = 0; $j < $k; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . nl2br(zen_output_string_protected($order->products[$i]['attributes'][$j]['value']));
            if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
            }
            if ($order->products[$i]['attributes'][$j]['product_attribute_is_free'] == '1' and $order->products[$i]['product_is_free'] == '1') {
                echo TEXT_INFO_ATTRIBUTE_FREE;
            }
            echo '</i></small></nobr>';
        }
开发者ID:bislewl,项目名称:super_edit_orders_with_ty,代码行数:31,代码来源:invoice.php

示例6:

echo TABLE_HEADING_TOTAL_EXCLUDING_TAX;
?>
</td>
        <td class="dataTableHeadingContent" align="right"><?php 
echo TABLE_HEADING_TOTAL_INCLUDING_TAX;
?>
</td>
      </tr>
<?php 
for ($i = 0, $n = sizeof($order->products); $i < $n; $i++) {
    echo '      <tr class="dataTableRow">' . "\n" . '        <td class="dataTableContent" valign="top" align="right">' . $order->products[$i]['qty'] . '&nbsp;x</td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $order->products[$i]['name'];
    if (isset($order->products[$i]['attributes']) && ($k = sizeof($order->products[$i]['attributes'])) > 0) {
        for ($j = 0; $j < $k; $j++) {
            echo '<br><nobr><small>&nbsp;<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
            if ($order->products[$i]['attributes'][$j]['price'] != '0') {
                echo ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
            }
            echo '</i></small></nobr>';
        }
    }
    echo '        </td>' . "\n" . '        <td class="dataTableContent" valign="top">' . $order->products[$i]['model'] . '</td>' . "\n";
    echo '        <td class="dataTableContent" align="right" valign="top">' . tep_display_tax_value($order->products[$i]['tax']) . '%</td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true), true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format($order->products[$i]['final_price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n" . '        <td class="dataTableContent" align="right" valign="top"><b>' . $currencies->format(tep_add_tax($order->products[$i]['final_price'], $order->products[$i]['tax'], true) * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . '</b></td>' . "\n";
    echo '      </tr>' . "\n";
}
?>
      <tr>
        <td align="right" colspan="8"><table border="0" cellspacing="0" cellpadding="2">
<?php 
for ($i = 0, $n = sizeof($order->totals); $i < $n; $i++) {
    echo '          <tr>' . "\n" . '            <td align="right" class="smallText">' . $order->totals[$i]['title'] . '</td>' . "\n" . '            <td align="right" class="smallText">' . $order->totals[$i]['text'] . '</td>' . "\n" . '          </tr>' . "\n";
}
开发者ID:pcchynoweth,项目名称:oscommerce2,代码行数:31,代码来源:invoice.php

示例7: echo

        ?>
</td>

                <td class="dataTableContent">
                  <?php 
        echo 'Credit Card Server Time: <strong>' . ($customers->fields['transaction_response_time'] == '' ? 'Not Connected' : $customers->fields['transaction_response_time']) . '</strong>';
        ?>
                </td>
                <td class="dataTableContent">
                  <?php 
        echo 'This Server Time: <strong>' . $customers->fields['date_added'] . '</strong>';
        ?>
                </td>
                <td class="dataTableContent" align="right" style="color:red;">
                  <?php 
        echo $currencies->format($customers->fields['chargetotal']);
        ?>
                </td>
                <td class="dataTableContent" align="center">
                  <?php 
        echo zen_date_short($info->fields['date_account_created']);
        ?>
                </td>
                <td class="dataTableContent" align="right">
                </td>
              </tr>
              <tr class="dataTableRow">
                <td class="dataTableContent" colspan="4">
                  <?php 
        echo ($customers->fields['transaction_result'] != 'APPROVED' ? '<span class="alert">' . $customers->fields['transaction_result'] . '</span>' : $customers->fields['transaction_result']) . '<br />' . $customers->fields['cc_number'] . '<br />' . 'Expires: ' . $customers->fields['cc_expire'] . '<br />' . $customers->fields['lp_trans_num'] . '<br />' . $customers->fields['transaction_reference_number'] . '<br />' . ($customers->fields['avs_response'] != 'YYYM' ? '<span class="alert">' . $customers->fields['avs_response'] . '</span>' : $customers->fields['avs_response']) . ' ' . ($customers->fields['r_error'] != '' ? '<span class="alert">' . $customers->fields['r_error'] . '</span>' : '') . '<br />' . $customers->fields['transaction_time'];
        ?>
开发者ID:R-Future,项目名称:zencart,代码行数:31,代码来源:linkpoint_review.php

示例8:

 }
 if ($customers_status['customers_status_public'] == '1') {
     echo ', public ';
 }
 echo '</b></td>';
 if ($customers_status['customers_status_show_price'] == '1') {
     echo '<td class="smallText" align="left">&euro;';
     if ($customers_status['customers_status_show_price_tax'] == '0') {
         echo '+';
     }
 } else {
     echo '<td class="smallText" align="left"> ';
 }
 echo '</td>';
 echo '<td class="smallText" align="right">' . $customers_status['customers_status_discount'] . '%</td>';
 echo '<td class="dataTableContent" align="center">' . $currencies->format($customers_status['customers_status_ot_minimum']) . '</td>';
 echo '<td class="dataTableContent" align="right">' . $customers_status['customers_status_ot_discount'] . '%</td>';
 echo '<td class="dataTableContent" align="center">';
 if ($customers_status['customers_status_qty_discounts'] == '1') {
     echo ENTRY_YES;
 } else {
     echo ENTRY_NO;
 }
 echo '</td>';
 echo "\n";
 ?>
             <td class="dataTableContent" align="right"><?php 
 if (isset($cInfo) && is_object($cInfo) && $customers_status['customers_status_id'] == $cInfo->customers_status_id) {
     echo oos_image(OOS_IMAGES . 'icon_arrow_right.gif', '');
 } else {
     echo '<a href="' . oos_href_link_admin($aFilename['customers_status'], 'page=' . $_GET['page'] . '&cID=' . $customers_status['customers_status_id']) . '">' . oos_image(OOS_IMAGES . 'icon_information.gif', IMAGE_ICON_INFO) . '</a>';
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:customers_status.php

示例9:

    }
    ?>
              <tr class="dataTableRow" onmouseover="this.className='dataTableRowOver';this.style.cursor='hand'" onmouseout="this.className='dataTableRow'" onclick="document.location.href='<?php 
    echo oos_href_link_admin($aFilename['customers'], 'search=' . $customers['customers_lastname'], 'NONSSL');
    ?>
'">
                <td class="dataTableContent"><?php 
    echo $rows;
    ?>
.</td>
                <td class="dataTableContent"><?php 
    echo '<a href="' . oos_href_link_admin($aFilename['customers'], 'search=' . $customers['customers_lastname'], 'NONSSL') . '">' . $customers['customers_firstname'] . ' ' . $customers['customers_lastname'] . '</a>';
    ?>
</td>
                <td class="dataTableContent" align="right"><?php 
    echo $currencies->format($customers['ordersum']);
    ?>
&nbsp;</td>
              </tr>
<?php 
    // Move that ADOdb pointer!
    $customers_result->MoveNext();
}
?>
            </table></td>
          </tr>
          <tr>
            <td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td class="smallText" valign="top"><?php 
echo $customers_split->display_count($customers_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CUSTOMERS);
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:stats_register_customer_no_purchase.php

示例10: IN

                                                WHERE c.customers_id NOT IN ( SELECT distinct(o.customers_id) FROM $orderstable o )");
  $customers_result_numrows = $customers_result_numrows->RecordCount();


  $customers_result = $dbconn->Execute($customers_sql_raw);
  while ($customers = $customers_result->fields) {
    $rows++;

    if (strlen($rows) < 2) {
      $rows = '0' . $rows;
    }
?>
              <tr class="dataTableRow" onmouseover="this.className='dataTableRowOver';this.style.cursor='hand'" onmouseout="this.className='dataTableRow'" onclick="document.location.href='<?php echo oos_href_link_admin($aFilename['customers'], 'search=' . $customers['customers_lastname'], 'NONSSL'); ?>'">
                <td class="dataTableContent"><?php echo $rows; ?>.</td>
                <td class="dataTableContent"><?php echo '<a href="' . oos_href_link_admin($aFilename['customers'], 'search=' . $customers['customers_lastname'], 'NONSSL') . '">' . $customers['customers_firstname'] . ' ' . $customers['customers_lastname'] . '</a>'; ?></td>
                <td class="dataTableContent" align="right"><?php echo $currencies->format($customers['ordersum']); ?>&nbsp;</td>
              </tr>
<?php
    // Move that ADOdb pointer!
    $customers_result->MoveNext();
  }

?>
            </table></td>
          </tr>
          <tr>
            <td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2">
              <tr>
                <td class="smallText" valign="top"><?php echo $customers_split->display_count($customers_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_CUSTOMERS); ?></td>
                <td class="smallText" align="right"><?php echo $customers_split->display_links($customers_result_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page']); ?>&nbsp;</td>
              </tr>
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:31,代码来源:stats_register_customer_no_purchase.php

示例11:

            $pInfo->products_name = tep_db_prepare_input($products_name[$languages[$i]['id']]);
            $pInfo->products_description = tep_db_prepare_input($products_description[$languages[$i]['id']]);
            $pInfo->short_description = tep_db_prepare_input($short_description[$languages[$i]['id']]);
            $pInfo->products_url = tep_db_prepare_input($products_url[$languages[$i]['id']]);
        }
        ?>
    <table border="0" width="100%" cellspacing="0" cellpadding="2">
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
          <tr>
            <td class="pageHeading"><?php 
        echo tep_image(DIR_WS_CATALOG_LANGUAGES . $languages[$i]['directory'] . '/images/' . $languages[$i]['image'], $languages[$i]['name']) . '&nbsp;' . $pInfo->products_name;
        ?>
</td>
            <td class="pageHeading" align="right"><?php 
        echo $currencies->format($pInfo->products_price);
        ?>
</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td><?php 
        echo tep_draw_separator('pixel_trans.gif', '1', '10');
        ?>
</td>
      </tr>
      <tr>
        <td class="main"><?php 
        echo tep_image(DIR_WS_CATALOG_IMAGES . $products_image_name, $pInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT, 'align="right" hspace="5" vspace="5"') . $pInfo->short_description;
        ?>
开发者ID:severnaya99,项目名称:Sg-2010,代码行数:31,代码来源:categories.php

示例12:

    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '5');
    ?>
</td>
              </tr>
              <tr>
                <td class="main"><b><?php 
    echo TEXT_AFFILIATE_PAYMENT;
    ?>
</b></td>
                <td class="main">&nbsp;<?php 
    echo $currencies->format($payments['affiliate_payment_total']);
    ?>
</td>
              </tr>
              <tr>
                <td colspan="2"><?php 
    echo vam_draw_separator('pixel_trans.gif', '1', '5');
    ?>
</td>
              </tr>
              <tr>
                <td class="main"><b><?php 
    echo TEXT_AFFILIATE_BILLED;
    ?>
</b></td>
                <td class="main">&nbsp;<?php 
开发者ID:nomadcomanche,项目名称:zdorov_shop,代码行数:31,代码来源:affiliate_payment.php

示例13: isset

    ?>
 method="post"><?php 
    if ($form_action == 'update') {
        echo zen_draw_hidden_field('specials_id', $_GET['sID']);
    }
    ?>
        <td><br><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo TEXT_SPECIALS_PRODUCT;
    ?>
&nbsp;</td>
            <td class="main">
          <!-- change by wushh 20101111  -->
          <?php 
    echo isset($sInfo->products_name) ? $sInfo->products_name . ' <small>(' . $currencies->format($sInfo->products_price) . ')</small>' : '<input type="text" name="products_id" id="products_id">';
    echo zen_draw_hidden_field('products_price', isset($sInfo->products_price) ? $sInfo->products_price : '');
    ?>
          </td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_SPECIALS_SPECIAL_PRICE;
    ?>
&nbsp;</td>
            <td class="main"><?php 
    echo zen_draw_input_field('specials_price', isset($sInfo->specials_new_products_price) ? $sInfo->specials_new_products_price : '');
    echo zen_draw_hidden_field('products_priced_by_attribute', $sInfo->products_priced_by_attribute);
    echo zen_draw_hidden_field('update_products_id', $sInfo->products_id);
    ?>
</td>
开发者ID:andychang88,项目名称:daddy-store.com,代码行数:31,代码来源:specials.php

示例14: isset

      <tr>
      <?php 
    echo zen_draw_form('new_featured', FILENAME_FEATURED, zen_get_all_get_params(array('action', 'info', 'fID')) . 'action=' . $form_action . '&go_back=' . $_GET['go_back']);
    if ($form_action == 'update') {
        echo zen_draw_hidden_field('featured_id', $_GET['fID']);
    }
    ?>
        <td><br><table border="0" cellspacing="0" cellpadding="2">
          <tr>
            <td class="main"><?php 
    echo TEXT_FEATURED_PRODUCT;
    ?>
&nbsp;</td>
            <td class="main"><?php 
    echo isset($fInfo->products_name) ? $fInfo->products_name . ' <small>(' . $currencies->format($fInfo->products_price) . ')</small>' : zen_draw_products_pull_down('products_id', 'size="15" style="font-size:12px"', $featured_array, true, $_GET['add_products_id'], true);
    echo zen_draw_hidden_field('products_price', isset($fInfo->products_price) ? $fInfo->products_price : '');
    ?>
</td>
          </tr>
          <tr>
            <td class="main"><?php 
    echo TEXT_FEATURED_AVAILABLE_DATE;
    ?>
&nbsp;</td>
            <td class="main"><script>StartDate.writeControl(); StartDate.dateFormat="<?php 
    echo DATE_FORMAT_SPIFFYCAL;
    ?>
";</script></td>
          </tr>
          <tr>
开发者ID:zenmagick,项目名称:zencart,代码行数:30,代码来源:featured.php

示例15:

 $pdf->addText($x += PRICING_COLUMN_SIZES, $pos, TABLE_HEADER_FONT_SIZE, '');
 $pos -= PRODUCT_TABLE_BOTTOM_MARGIN;
 if ($truncated_str) {
     change_color(PRODUCT_LISTING_BKGD_COLOR);
     $pdf->filledRectangle(LEFT_MARGIN, $pos - PRODUCT_TABLE_ROW_HEIGHT, PRODUCT_TABLE_HEADER_WIDTH, PRODUCT_TABLE_ROW_HEIGHT);
     $pos = $pos - PRODUCT_TABLE_ROW_HEIGHT + PRODUCT_TABLE_BOTTOM_MARGIN;
     change_color(GENERAL_FONT_COLOR);
     $reset_x = LEFT_MARGIN + PRODUCT_TABLE_LEFT_MARGIN;
     $pdf->addText($reset_x, $pos, TABLE_HEADER_FONT_SIZE, $truncated_str);
     $pos -= PRODUCT_TABLE_BOTTOM_MARGIN;
 }
 if (($k = sizeof($order->products[$i]['attributes'])) > 0) {
     for ($j = 0; $j < $k; $j++) {
         $attrib_string = '<i> - ' . $order->products[$i]['attributes'][$j]['option'] . ': ' . $order->products[$i]['attributes'][$j]['value'];
         if ($order->products[$i]['attributes'][$j]['price'] != '0') {
             $attrib_string .= ' (' . $order->products[$i]['attributes'][$j]['prefix'] . $currencies->format($order->products[$i]['attributes'][$j]['price'] * $order->products[$i]['qty'], true, $order->info['currency'], $order->info['currency_value']) . ')';
         }
         $attrib_string .= '</i>';
         change_color(PRODUCT_LISTING_BKGD_COLOR);
         $pdf->filledRectangle(LEFT_MARGIN, $pos - PRODUCT_TABLE_ROW_HEIGHT, PRODUCT_TABLE_HEADER_WIDTH, PRODUCT_TABLE_ROW_HEIGHT);
         $pos = $pos - PRODUCT_TABLE_ROW_HEIGHT + PRODUCT_TABLE_BOTTOM_MARGIN;
         change_color(GENERAL_FONT_COLOR);
         $reset_x = LEFT_MARGIN + PRODUCT_TABLE_LEFT_MARGIN;
         if (PRODUCT_ATTRIBUTES_TEXT_WRAP) {
             $wrapped_str = $pdf->addTextWrap($reset_x, $pos, PRODUCTS_COLUMN_SIZE, PRODUCT_ATTRIBUTES_FONT_SIZE, $attrib_string);
         } else {
             $pdf->addText($reset_x, $pos, PRODUCT_ATTRIBUTES_FONT_SIZE, $attrib_string);
         }
         $pos -= PRODUCT_TABLE_BOTTOM_MARGIN;
         if ($wrapped_str) {
             change_color(PRODUCT_LISTING_BKGD_COLOR);
开发者ID:digideskio,项目名称:oscmax2,代码行数:31,代码来源:Packing-Slip.php


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