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


PHP mslib_fe::amount2Cents方法代码示例

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


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

示例1: foreach

            }
            $tmpContent .= '<td align="right">' . mslib_fe::amount2Cents($total_price, 0) . '</td>';
            $total_amount = $total_amount + $total_price;
        }
    }
    if ($tmpContent != '') {
        $compiledWidget['content'] .= '<table width="100%" class="table table-striped table-bordered" cellspacing="0" cellpadding="0" border="0" >';
        $compiledWidget['content'] .= '<tr class="odd">';
        foreach ($dates as $key => $value) {
            $compiledWidget['content'] .= '<td align="right">' . ucfirst($key) . '</td>';
        }
        $compiledWidget['content'] .= '<td align="right" nowrap>' . htmlspecialchars($this->pi_getLL('total')) . '</td>';
        $compiledWidget['content'] .= '<td align="right" nowrap>' . htmlspecialchars($this->pi_getLL('average', 'Average')) . '</td>';
        $compiledWidget['content'] .= '</tr>';
        $compiledWidget['content'] .= '<tr class="even">';
        $compiledWidget['content'] .= $tmpContent;
        $tmpContent = '';
        $compiledWidget['content'] .= '<td align="right" nowrap>' . mslib_fe::amount2Cents($total_amount, 0) . '</td>';
        $compiledWidget['content'] .= '<td align="right" nowrap>' . mslib_fe::amount2Cents($total_amount / count($dates), 0) . '</td>';
        $compiledWidget['content'] .= '</tr>';
        if (!$tr_type or $tr_type == 'even') {
            $tr_type = 'odd';
        } else {
            $tr_type = 'even';
        }
        $compiledWidget['content'] .= '
		</table>';
    } else {
        $compiledWidget['content'] = '<p>' . $this->pi_getLL('admin_label_data_not_available') . '</p>';
    }
}
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:turn_over_per_year.php

示例2: array

	<div class="category"><a href="' . $catlink . '" class="ajax_link">' . $current_product['categories_name'] . '</a></div>
	<div class="link_detail"><a href="' . $link . '" class="ajax_link">' . $this->pi_getLL('details') . '</a></div>
	';
    $final_price = mslib_fe::final_products_price($current_product);
    if ($current_product['tax_rate'] and $this->ms['MODULES']['SHOW_PRICES_WITH_AND_WITHOUT_VAT']) {
        $content .= '<div class="price_excluding_vat">' . $this->pi_getLL('excluding_vat') . ' ' . mslib_fe::amount2Cents($current_product['final_price']) . '</div>';
    }
    if ($current_product['products_price'] != $current_product['final_price']) {
        if (!$this->ms['MODULES']['DB_PRICES_INCLUDE_VAT'] and ($current_product['tax_rate'] and $this->ms['MODULES']['SHOW_PRICES_INCLUDING_VAT'])) {
            $old_price = $current_product['products_price'] * (1 + $current_product['tax_rate']);
        } else {
            $old_price = $current_product['products_price'];
        }
        $content .= '<div class="old_price">' . mslib_fe::amount2Cents($old_price) . '</div><div class="specials_price">' . mslib_fe::amount2Cents($final_price) . '</div>';
    } else {
        $content .= '<div class="price">' . mslib_fe::amount2Cents($final_price) . '</div>';
    }
    if ($this->ROOTADMIN_USER or $this->ADMIN_USER and $this->CATALOGADMIN_USER) {
        $content .= '<div class="admin_menu"><a href="' . mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=edit_product&cid=' . $current_product['categories_id'] . '&pid=' . $current_product['products_id'] . '&action=edit_product', 1) . '" class="admin_menu_edit"><i class="fa fa-pencil"></i></a> <a href="' . mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=delete_product&cid=' . $current_product['categories_id'] . '&pid=' . $current_product['products_id'] . '&action=delete_product', 1) . '" class="admin_menu_remove" title="Remove"><i class="fa fa-trash-o"></i></a></div>';
    }
    $content .= '</li>';
}
$content .= '</ul>';
$skippedTypes = array();
$skippedTypes[] = 'products_modified';
$skippedTypes[] = 'products_search';
$skippedTypes[] = 'products_specials';
$skippedTypes[] = 'products_news';
if (!in_array($this->ms['page'], $skippedTypes) and ($this->ROOTADMIN_USER or $this->ADMIN_USER and $this->CATALOGADMIN_USER)) {
    $content .= '
	<script>
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:grid_with_detail_button.php

示例3:

            $data['available_shippingcost_method_box'][$sids] = mslib_fe::currency() . ' +' . mslib_fe::amount2Cents($priceArray['shipping_costs_method_box_including_vat'], 0, 0);
        } else {
            if ($priceArray['shipping_costs_including_vat'] < 0) {
                $data['available_shippingcost'][$sids] = mslib_fe::currency() . ' -' . mslib_fe::amount2Cents($priceArray['shipping_costs_including_vat'], 0, 0);
                $data['available_shippingcost_method_box'][$sids] = mslib_fe::currency() . ' -' . mslib_fe::amount2Cents($priceArray['shipping_costs_method_box_including_vat'], 0, 0);
            }
        }
    } else {
        $data['available_shippingcost'][$sids] = '';
        if ($priceArray['shipping_costs'] > 0 || $this->ms['MODULES']['ALWAYS_DISPLAY_SHIPPING_COSTS'] > 0) {
            $data['available_shippingcost'][$sids] = mslib_fe::currency() . ' +' . mslib_fe::amount2Cents($priceArray['shipping_costs'], 0, 0);
            $data['available_shippingcost_method_box'][$sids] = mslib_fe::currency() . ' +' . mslib_fe::amount2Cents($priceArray['shipping_costs_method_box'], 0, 0);
        } else {
            if ($priceArray['shipping_costs'] < 0) {
                $data['available_shippingcost'][$sids] = mslib_fe::currency() . ' -' . mslib_fe::amount2Cents($priceArray['shipping_costs'], 0, 0);
                $data['available_shippingcost_method_box'][$sids] = mslib_fe::currency() . ' -' . mslib_fe::amount2Cents($priceArray['shipping_costs_method_box'], 0, 0);
            }
        }
    }
}
// we display the shipping costs and payment costs including vat
if ($this->ms['MODULES']['PRODUCT_EDIT_METHOD_FILTER'] && !$this->post['tx_multishop_pi1']['sid']) {
    if (count($available_sid) == 1) {
        $this->post['tx_multishop_pi1']['sid'] = $available_sid[0];
    } else {
        // set to unreachable number for shipping method id so the session for shipping method are cleared
        $this->post['tx_multishop_pi1']['sid'] = 999999;
    }
}
$data['shipping_preselected_id'] = $this->post['tx_multishop_pi1']['sid'];
$this->post['caller_segment'] = 'getHtmlCartContents';
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:get_method_costs.php

示例4: array

     // normal
     $final_price = mslib_fe::final_products_price($product);
     $item_products_specials_price = '';
     if ($product['tax_rate'] and $this->ms['MODULES']['SHOW_PRICES_WITH_AND_WITHOUT_VAT']) {
         $item_products_specials_price = '<div class="price_excluding_vat">' . $this->pi_getLL('excluding_vat') . ' ' . mslib_fe::amount2Cents($product['final_price']) . '</div>';
     }
     $item_products_price = '';
     if ($product['products_price'] != $product['final_price']) {
         if ($product['tax_rate'] and $this->ms['MODULES']['SHOW_PRICES_INCLUDING_VAT']) {
             $old_price = $product['products_price'] * (1 + $product['tax_rate']);
         } else {
             $old_price = $product['products_price'];
         }
         $item_products_price = '<div class="old_price">' . mslib_fe::amount2Cents($old_price) . '</div><div class="final_price">' . mslib_fe::amount2Cents($final_price) . '</div>';
     } else {
         $item_products_price = '<div class="final_price">' . mslib_fe::amount2Cents($final_price) . '</div>';
     }
     $admin_menu = '';
     if ($this->ADMIN_USER) {
         $admin_menu = '<div class="admin_menu"><a href="' . mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=edit_product&pid=' . $product['products_id'] . '&action=edit_product', 1) . '" class="admin_menu_edit"><i class="fa fa-pencil"></i></a><a href="' . mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=delete_product&pid=' . $product['products_id'] . '&action=delete_product', 1) . '" class="admin_menu_remove" title="Remove"><i class="fa fa-trash-o"></i></a></div>';
     }
     if (!strstr($product['products_url'], 'http://') and !strstr($product['products_url'], 'http://')) {
         $product['products_url'] = 'http://' . $product['products_url'];
     }
 }
 $markerArray = array();
 $markerArray['ITEM_PRODUCTS_ID'] = $product['products_id'];
 $markerArray['ITEM_PRODUCT_DETAILS_PAGE_LINK'] = $link;
 $markerArray['ITEM_PRODUCTS_NAME'] = htmlspecialchars($product['products_name']);
 $markerArray['ITEM_PRODUCTS_IMAGE'] = $image;
 $markerArray['ITEM_PRODUCTS_SPECIAL_PRICE'] = $item_products_specials_price;
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:default.php

示例5: date

    $compiledWidget['content'] .= '<td align="right">' . mslib_fe::amount2Cents($total_price, 0) . '</td>';
    $total_amount = $total_amount + $total_price;
    if (date("Y", $start_time) == date("Y")) {
        $total_amount_cumulative = $total_amount_cumulative + $total_price;
    }
}
if ($this->cookie['stats_year_sb'] == date("Y") || !$this->cookie['stats_year_sb']) {
    $month = date("m");
    $currentDay = date("d");
    $dayOfTheYear = date("z");
    $currentYear = 1;
    if ($month == 1) {
        $currentMonth = 1;
    }
} else {
    $month = 12;
    $dayOfTheYear = 365;
    $currentDay = 31;
    $currentYear = 0;
    $currentMonth = 0;
}
$compiledWidget['content'] .= '<td align="right" nowrap>' . mslib_fe::amount2Cents($total_amount, 0) . '</td>';
$compiledWidget['content'] .= '<td align="right" nowrap>' . mslib_fe::amount2Cents($total_amount_cumulative / $dayOfTheYear * 365, 0) . '</td>';
$compiledWidget['content'] .= '</tr>';
if (!$tr_type or $tr_type == 'even') {
    $tr_type = 'odd';
} else {
    $tr_type = 'even';
}
$compiledWidget['content'] .= '
</table>';
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:turn_over_per_month.php

示例6: urlencode

        // get all cats to generate multilevel fake url eof
    }
    $link = mslib_fe::typolink($this->conf['products_detail_page_pid'], '&' . $where . '&products_id=' . $product['products_id'] . '&tx_multishop_pi1[page_section]=products_detail&skeywords=' . urlencode($this->get['q']));
    $prod['Link'] = $link;
    if ($product['products_image']) {
        $prod['Image'] = '<div class="ajax_products_image">' . '<img src="' . mslib_befe::getImagePath($product['products_image'], 'products', '50') . '">' . '</div>';
    } else {
        $prod['Image'] = '<div class="ajax_products_image"><div class="no_image_50"></div></div>';
    }
    $prod['Title'] = '<div class="ajax_products_name">' . substr($product['products_name'], 0, 50) . '</div><div class="ajax_products_model">' . substr($product['products_model'], 0, 50) . '</div>';
    $prod['Title'] = $prod['Title'];
    $prod['Desc'] = '<div class="ajax_products_shortdescription">' . addslashes(mslib_befe::str_highlight(substr($product['products_shortdescription'], 0, 75), $this->get['q'])) . '</div>';
    if ($product['products_price'] != $product['final_price']) {
        $prod['Price'] = '<div class="ajax_products_price"><div class="ajax_old_price">' . mslib_fe::amount2Cents($product['products_price']) . '</div><div class="ajax_specials_price">' . mslib_fe::amount2Cents($product['final_price']) . '</div></div>';
    } else {
        $prod['Price'] = '<div class="ajax_products_price"><div class="ajax_normal_price">' . mslib_fe::amount2Cents($product['products_price']) . '</div></div>';
    }
    $prod['Name'] = substr($product['products_name'], 0, 50);
    $prod['skeyword'] = $this->get['q'];
    $prod['Page'] = $pages;
    $prod['Product'] = true;
    $data[] = $prod;
}
if (isset($this->get['page'])) {
    if ($totpage > 1) {
        //echo $totpage;
        if ($pages != $totpage) {
            $prod = array();
            $prod['Name'] = $this->pi_getLL('more_results');
            $prod['Title'] = '<span id="more-results">' . htmlspecialchars($this->pi_getLL('more_results')) . ' >></span>';
            $prod['Link'] = mslib_fe::typolink($this->shop_pid, 'tx_multishop_pi1[page_section]=products_search&skeyword=' . urlencode($this->get['q']));
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:default_with_products_model.php

示例7: renderInterface


//.........这里部分代码省略.........
						jQuery(document).ready(function($) {
							$(\'#check_all_1\').click(function(){
								$(\'td > div.checkbox > input:checkbox\').prop(\'checked\', this.checked);
							});
						});
					</script>';
                    $GLOBALS['TSFE']->additionalHeaderData[] = $headerData;
                    $headerData = '';
                    $tableContent .= '<td class="cellCheckbox">
						<div class="checkbox checkbox-success checkbox-inline">
							<input type="checkbox" name="tx_multishop_pi1[tableOverviewSelection][]" id="tableOverviewSelectionCheckbox_' . $row[$params['settings']['rowBasedCheckboxSelectionKey']] . '" value="' . htmlspecialchars($row[$params['settings']['rowBasedCheckboxSelectionKey']]) . '">
							<label for="tableOverviewSelectionCheckbox_' . $row[$params['settings']['rowBasedCheckboxSelectionKey']] . '"></label>
						</div>
					</td>';
                }
                foreach ($params['tableColumns'] as $col => $valArray) {
                    $originalValue = $row[$col];
                    switch ($valArray['valueType']) {
                        case 'number_format_2_decimals':
                            $row[$col] = round(number_format($row[$col], 2, '.', ''), 2);
                            $summarize[$col] += $row[$col];
                            break;
                        case 'number_format_thousand_seperator':
                            $row[$col] = round(number_format($row[$col], 2, '.', ''), 2);
                            break;
                        case 'recordCounter':
                            $row[$col] = $recordCounter;
                            break;
                        case 'download_invoice':
                            $row[$col] = '<a href="uploads/tx_multishopexactonline/' . $row[$col] . '" target="_blank">' . $row[$col] . '</a>';
                            break;
                        case 'currency':
                            $summarize[$col] += $row[$col];
                            $row[$col] = mslib_fe::amount2Cents($row[$col], 0);
                            break;
                        case 'domain_name':
                            if ($row[$col]) {
                                $row[$col] = '<a href="http://' . $row[$col] . '" target="_blank">' . $row[$col] . '</a>';
                            }
                            break;
                        case 'datetime':
                            if ($row[$col]) {
                                $row[$col] = strftime("%x %X", strtotime($row[$col]));
                            } else {
                                $row[$col] = '';
                            }
                            break;
                        case 'timestamp':
                            if (is_numeric($row[$col]) && $row[$col] > 0) {
                                $row[$col] = strftime("%x %X", $row[$col]);
                            } else {
                                $row[$col] = '';
                            }
                            break;
                        case 'timestamp_to_day_date_time':
                            if (is_numeric($row[$col]) && $row[$col] > 0) {
                                $row[$col] = strftime("%a. %x<br/>%X", $row[$col]);
                            } else {
                                $row[$col] = '';
                            }
                            break;
                        case 'timestamp_to_date':
                            if (is_numeric($row[$col]) && $row[$col] > 0) {
                                $row[$col] = strftime("%x", $row[$col]);
                            } else {
                                $row[$col] = '';
开发者ID:bvbmedia,项目名称:multishop,代码行数:67,代码来源:class.tx_mslib_admin_interface.php

示例8: time

 $array1[] = '###ORDER_DATE_LONG###';
 // ie woensdag 23 juni, 2010
 $array2[] = $long_date;
 // backwards compatibility
 $array1[] = '###LONG_DATE###';
 // ie woensdag 23 juni, 2010
 $array2[] = $long_date;
 $time = time();
 $long_date = strftime($this->pi_getLL('full_date_format'), $time);
 $array1[] = '###CURRENT_DATE_LONG###';
 // ie woensdag 23 juni, 2010
 $array2[] = $long_date;
 $array1[] = '###STORE_NAME###';
 $array2[] = $this->ms['MODULES']['STORE_NAME'];
 $array1[] = '###TOTAL_AMOUNT###';
 $array2[] = mslib_fe::amount2Cents($tmpArray['total_amount']);
 $array1[] = '###ORDER_NUMBER###';
 $array2[] = $tmpArray['orders_id'];
 $array1[] = '###ORDER_LINK###';
 $array2[] = '';
 $array1[] = '###CUSTOMER_ID###';
 $array2[] = $tmpArray['customer_id'];
 $link = $this->FULL_HTTP_URL . mslib_fe::typolink($tmpArray['page_uid'], 'tx_multishop_pi1[page_section]=payment_reminder_checkout&tx_multishop_pi1[hash]=' . $hashcode);
 $array1[] = '###PAYMENT_PAGE_LINK###';
 $array2[] = $link;
 // psp email template
 $psp_mail_template = array();
 if ($tmpArray['payment_method']) {
     $psp_data = mslib_fe::loadPaymentMethod($tmpArray['payment_method']);
     $psp_vars = unserialize($psp_data['vars']);
     if (isset($psp_vars['order_payment_reminder'])) {
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_orders.php

示例9: implode

            $order_list_button_extra .= '<td align="center">';
            $order_list_button_extra .= implode("&nbsp;", $orderlist_buttons);
            $order_list_button_extra .= '</td>';
        }
        $ip_address = '';
        if ($order['ip_address']) {
            $ip_address = $order['ip_address'];
        }
        $http_referer = '';
        if ($order['http_referer']) {
            $domain = parse_url($order['http_referer']);
            if ($domain['host']) {
                $http_referer = '<a href="' . $order['http_referer'] . '" target="_blank" rel="noreferrer">' . $domain['host'] . '</a>';
            }
        }
        $data[] = array('<a href="' . mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=edit_order&orders_id=' . $order['orders_id'] . '&action=edit_order', 1) . '" title="Loading" class="popover-link" rel="' . $order['orders_id'] . '">' . $order['orders_id'] . '</a>', mslib_fe::amount2Cents($order['grand_total'], 0), strftime("%a. %x %X", $order['crdate']), $paid_status, '<span title="' . htmlspecialchars($order['payment_method_label']) . '">' . $order['payment_method_label'] . '</span>');
    }
    $counter = 0;
    $compiledWidget['content'] .= '<div id="tblWidgetOrdersLatest-wrapper"><table width="100%" class="table table-striped table-bordered" cellspacing="0" cellpadding="0" border="0" id="tblWidgetOrdersLatest">';
    $tr_type = '';
    $rowCounter = 0;
    foreach ($data as $host => $item) {
        $counter++;
        if ($counter == 1) {
            $compiledWidget['content'] .= '<tr class="tblHeader">';
            $colCounter = 0;
            foreach ($item as $col) {
                $colCounter++;
                $compiledWidget['content'] .= '
					<th class="tblHeadCol' . $colCounter . '" nowrap>' . $col . '</th>
				';
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:ordersLatest.php

示例10: lcfirst

        }
    }
}
$data['old_price_format'] = '';
$data['old_price'] = 0;
$data['price_format'] = '';
$data['price'] = 0;
$data['price_format_excl_vat'] = '';
$data['price_excl_vat'] = 0;
$data['qty_correction'] = 0;
if ($price > 0) {
    if ($price != $original_price && $original_price > 0) {
        $data['old_price_format'] = mslib_fe::amount2Cents($original_price, 1);
        $data['old_price'] = $original_price;
    }
    $data['price_format'] = mslib_fe::amount2Cents($price, 1);
    $data['price'] = $price;
    $data['price_format_excl_vat'] = mslib_fe::amount2Cents($exclude_vat_price, 1) . ' ' . lcfirst($this->pi_getLL('excluding_vat'));
    $data['price_excl_vat'] = $exclude_vat_price;
    $data['qty_correction'] = $qty_decimal_correction;
}
// hook to let other plugins further manipulate the option values display
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/ajax_pages/get_staffel_price.php']['getPricePostProc'])) {
    $params = array('product_id' => $products_id, 'data' => &$data);
    foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/ajax_pages/get_staffel_price.php']['getPricePostProc'] as $funcRef) {
        \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
    }
}
// hook
echo json_encode($data, ENT_NOQUOTES);
exit;
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:get_staffel_price.php

示例11: Money2Cents

 public function Money2Cents($amount, $customer_currency = 1)
 {
     return mslib_fe::amount2Cents($amount, $customer_currency);
 }
开发者ID:bvbmedia,项目名称:multishop,代码行数:4,代码来源:class.mslib_fe.php

示例12: printOrderDetailsTable


//.........这里部分代码省略.........
             $tmp_item_name['download_link'] = $download_link;
         }
         if ($product['products_description']) {
             $tmp_item_name['products_description'] = '<br/>' . nl2br(htmlspecialchars($product['products_description']));
         }
         if ($this->ms['MODULES']['DISPLAY_EAN_IN_ORDER_DETAILS'] == '1' && !empty($product['ean_code'])) {
             $tmp_item_name['products_ean'] = '<br/>EAN: ' . htmlspecialchars($product['ean_code']);
         }
         if ($this->ms['MODULES']['DISPLAY_SKU_IN_ORDER_DETAILS'] == '1' && !empty($product['sku_code'])) {
             $tmp_item_name['products_sku'] = '<br/>' . $this->pi_getLL('sku_number', 'SKU') . ': ' . htmlspecialchars($product['sku_code']);
         }
         if ($this->ms['MODULES']['DISPLAY_VENDOR_IN_ORDER_DETAILS'] == '1' && !empty($product['vendor_code'])) {
             $tmp_item_name['products_vendor_code'] = '<br/>' . htmlspecialchars($this->pi_getLL('label_order_details_vendor_code', 'Vendor code')) . ': ' . htmlspecialchars($product['vendor_code']);
         }
         if (count($product['attributes'])) {
             foreach ($product['attributes'] as $tmpkey => $options) {
                 $subprices .= '<BR>';
                 if ($this->ms['MODULES']['FORCE_CHECKOUT_SHOW_PRICES_INCLUDING_VAT']) {
                     $tmp_tax = round($options['options_values_price'] * ($product['products_tax'] / 100), 2);
                     $attribute_price = +$options['options_values_price'] + $tmp_tax;
                 } else {
                     if ($this->ms['MODULES']['SHOW_PRICES_INCLUDING_VAT']) {
                         $attribute_price = round($options['options_values_price'] * ($product['products_tax'] / 100), 4) + $options['options_values_price'];
                     } else {
                         $attribute_price = $options['options_values_price'];
                     }
                 }
                 $tmp_item_name['products_attributes'][] = '<BR>' . htmlspecialchars($options['products_options']) . ': ' . htmlspecialchars($options['products_options_values']);
                 $price = $price + $product['qty'] * ($options['price_prefix'] . $options['options_values_price']);
                 if ($price < 0) {
                     $price = 0;
                 }
                 if ($options['options_values_price'] > 0) {
                     $subprices .= mslib_fe::amount2Cents($product['qty'] * ($options['price_prefix'] . $attribute_price));
                 }
             }
         }
         if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.tx_mslib_order']['printOrderDetailsTableItemNamePreProc'])) {
             $params = array('item_name' => &$tmp_item_name, 'order' => &$order, 'product' => &$product, 'template_type' => &$template_type);
             foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.tx_mslib_order']['printOrderDetailsTableItemNamePreProc'] as $funcRef) {
                 \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
             }
         }
         $item_name = '';
         if (is_array($tmp_item_name) && count($tmp_item_name)) {
             foreach ($tmp_item_name as $array_item_name) {
                 if (is_array($array_item_name) && count($array_item_name)) {
                     $item_name .= implode('', $array_item_name);
                 } else {
                     $item_name .= $array_item_name;
                 }
             }
         }
         $item['ITEM_NAME'] = $item_name;
         $item['ITEM_MODEL'] = htmlspecialchars($product_db['products_model']);
         // ITEM NAME EOF
         // ITEM_QUANTITY
         $item['ITEM_QUANTITY'] = round($product['qty'], 14);
         // ITEM_SKU
         $item['ITEM_SKU'] = htmlspecialchars($product_db['sku_code']);
         // ITEM_TOTAL
         if ($this->ms['MODULES']['FORCE_CHECKOUT_SHOW_PRICES_INCLUDING_VAT']) {
             $tmp_tax = round($product['final_price'] * ($product['products_tax'] / 100), 2);
             $final_price = $product['qty'] * ($product['final_price'] + $tmp_tax);
             $item['ITEM_PRICE_SINGLE'] = mslib_fe::amount2Cents($product['final_price'] + $tmp_tax);
         } else {
开发者ID:bvbmedia,项目名称:multishop,代码行数:67,代码来源:class.tx_mslib_order.php

示例13: foreach

                $tmp .= '<th class="cell_order_status">' . $this->pi_getLL('status') . '</th>';
                if ($this->ms['MODULES']['ENABLE_REORDER_FEATURE_IN_ACCOUNT_ORDER_HISTORY']) {
                    $tmp .= '<th class="cell_action">&nbsp;</th>';
                }
                $tmp .= '</tr></thead><tbody>';
                $tr_type = 'even';
                foreach ($tmporders as $order) {
                    if (!$tr_type or $tr_type == 'even') {
                        $tr_type = 'odd';
                    } else {
                        $tr_type = 'even';
                    }
                    $tmp .= '<tr class="' . $tr_type . '">';
                    $tmp .= '<td align="right" nowrap class="cell_orders_id">
					<a href="' . mslib_fe::typolink('', 'tx_multishop_pi1[page_section]=order_details&tx_multishop_pi1[orders_id]=' . $order['orders_id']) . '">' . $order['orders_id'] . '</a></td>';
                    $tmp .= '<td align="right" nowrap class="cell_amount">' . mslib_fe::amount2Cents(mslib_fe::getOrderTotalPrice($order['orders_id'])) . '</td>';
                    $tmp .= '<td align="center" nowrap class="cell_date">' . strftime("%x", $order['crdate']) . '</td>';
                    if ($this->ms['MODULES']['ADMIN_INVOICE_MODULE']) {
                        $tmp .= '<td align="center" nowrap class="cell_invoice">
						';
                        $invoice = mslib_fe::getInvoice($order['orders_id'], 'orders_id');
                        if ($invoice['id']) {
                            $tmp .= '<a href="' . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2002', 'tx_multishop_pi1[page_section]=download_invoice&tx_multishop_pi1[hash]=' . $invoice['hash']) . '" target="_blank" class="msfront_download_invoice" title="download invoice">' . $this->pi_getLL('download') . '</a>';
                        }
                        $tmp .= '
						</td>';
                    }
                    //		$tmp.='<td align="left" nowrap>'.$order['shipping_method_label'].'</td>';
                    //		$tmp.='<td align="left" nowrap>'.$order['payment_method_label'].'</td>';
                    $tmp .= '<td align="left" nowrap class="cell_order_status">' . $order['orders_status'] . '</td>';
                    if ($this->ms['MODULES']['ENABLE_REORDER_FEATURE_IN_ACCOUNT_ORDER_HISTORY']) {
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:default.php

示例14: foreach

     foreach ($userGroupUids as $userGroupUid) {
         $usergroup = mslib_fe::getUserGroup($userGroupUid);
         if (is_array($usergroup) && $usergroup['title']) {
             $userGroupMarkupArray[] = '<span class="badge">' . htmlspecialchars($usergroup['title']) . '</span>';
         }
     }
 }
 $markerArray['CUSTOMERS_GROUP'] = '';
 if (count($userGroupMarkupArray)) {
     $markerArray['CUSTOMERS_GROUP'] = '<br/>' . implode(' ', $userGroupMarkupArray);
 }
 $markerArray['CUSTOMERS_CREATED'] = $customer['crdate'];
 $markerArray['CUSTOMERS_LATEST_LOGIN'] = $customer['lastlogin'];
 $markerArray['CUSTOMERS_LATEST_ORDER'] = $latest_order;
 $markerArray['CUSTOMERS_TURN_OVER'] = mslib_fe::amount2Cents($customer['grand_total'], 0);
 $markerArray['CUSTOMERS_TURN_OVER_THIS_YEAR'] = mslib_fe::amount2Cents($customer['grand_total_this_year'], 0);
 $markerArray['CUSTOMERS_LOGINAS_LINK'] = mslib_fe::typolink($this->shop_pid . ',2003', 'tx_multishop_pi1[page_section]=admin_customers&login_as_customer=1&customer_id=' . $customer['uid']);
 $markerArray['CUSTOMERS_LOGINAS'] = htmlspecialchars($this->pi_getLL('login'));
 $markerArray['CUSTOMERS_STATUS'] = $status_html;
 $markerArray['CUSTOMERS_DELETE_LINK'] = mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=' . $this->ms['page'] . '&customer_id=' . $customer['uid'] . '&delete=1&' . mslib_fe::tep_get_all_get_params(array('customer_id', 'delete', 'disable', 'clearcache')));
 $markerArray['CUSTOMERS_ONCLICK_DELETE_CONFIRM_JS'] = 'return confirm(\'' . htmlspecialchars($this->pi_getLL('are_you_sure')) . '?\')';
 $markerArray['ADMIN_LABEL_ALT_REMOVE'] = ucfirst($this->pi_getLL('admin_label_alt_remove'));
 $markerArray['MASTER_SHOP'] = $master_shop_col;
 $markerArray['CUSTOM_MARKER_0_BODY'] = '';
 $markerArray['CUSTOM_MARKER_1_BODY'] = '';
 // custom page hook that can be controlled by third-party plugin
 if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/includes/admin_customers_listing.php']['adminCustomersListingTmplIteratorPreProc'])) {
     $params = array('markerArray' => &$markerArray, 'customer' => &$customer);
     foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/scripts/admin_pages/includes/admin_customers_listing.php']['adminCustomersListingTmplIteratorPreProc'] as $funcRef) {
         \TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
     }
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:admin_customers_listing.php

示例15:

    if ($month == 1) {
        $currentMonth = 1;
    }
} else {
    $month = 12;
    $dayOfTheYear = 365;
    $currentDay = 31;
    $currentYear = 0;
    $currentMonth = 0;
}
if ($total_amount_avg > 0 && $total_orders_avg > 0) {
    $totalSum = $total_amount_avg / $total_orders_avg;
} else {
    $totalSum = 0;
}
$content .= '<td align="right" nowrap>' . mslib_fe::amount2Cents($totalSum, 0) . '</td>';
$content .= '</tr>';
if (!$tr_type or $tr_type == 'even') {
    $tr_type = 'odd';
} else {
    $tr_type = 'even';
}
$content .= '
</tbody></table>';
// LAST MONTHS EOF
/*
$tr_type='even';
$dates=array();
$content.='<h3>'.htmlspecialchars($this->pi_getLL('sales_volume_by_day')).'</h3>';
if ($currentMonth) {
	$endDay=date("d");
开发者ID:bvbmedia,项目名称:multishop,代码行数:31,代码来源:turn_over_per_month.php


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