本文整理汇总了PHP中xtc_image函数的典型用法代码示例。如果您正苦于以下问题:PHP xtc_image函数的具体用法?PHP xtc_image怎么用?PHP xtc_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xtc_image函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: quote
function quote($method = '')
{
global $order, $shipping_weight, $shipping_num_boxes, $xtPrice;
if (MODULE_SHIPPING_TABLE_MODE == 'price') {
$order_total = $xtPrice->xtcRemoveCurr($_SESSION['cart']->show_total());
} else {
$order_total = $shipping_weight;
}
$table_cost = preg_split("/[:,]/", MODULE_SHIPPING_TABLE_COST);
// Hetfield - 2009-08-18 - replaced deprecated function split with preg_split to be ready for PHP >= 5.3
$size = sizeof($table_cost);
for ($i = 0, $n = $size; $i < $n; $i += 2) {
if ($order_total <= $table_cost[$i]) {
$shipping = $table_cost[$i + 1];
break;
}
}
if (MODULE_SHIPPING_TABLE_MODE == 'weight') {
$shipping = $shipping * $shipping_num_boxes;
}
$this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_TABLE_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_TABLE_TEXT_WAY, 'cost' => $shipping + MODULE_SHIPPING_TABLE_HANDLING)));
if ($this->tax_class > 0) {
$this->quotes['tax'] = xtc_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
}
if (xtc_not_null($this->icon)) {
$this->quotes['icon'] = xtc_image($this->icon, $this->title);
}
return $this->quotes;
}
示例2: _setCode
function _setCode($code = 'CC', $payment_method = 'ACC')
{
$this->module = $code;
$this->method = $payment_method;
$this->code = 'moneybookers_' . strtolower($code);
if (defined('MODULE_PAYMENT_MONEYBOOKERS_' . strtoupper($code) . '_TEXT_TITLE')) {
$this->title = constant('MODULE_PAYMENT_MONEYBOOKERS_' . strtoupper($code) . '_TEXT_TITLE');
$this->description = constant('MODULE_PAYMENT_MONEYBOOKERS_' . strtoupper($code) . '_TEXT_DESCRIPTION');
$this->info = constant('MODULE_PAYMENT_MONEYBOOKERS_' . strtoupper($code) . '_TEXT_INFO');
}
if (defined('MODULE_PAYMENT_MONEYBOOKERS_' . strtoupper($code) . '_STATUS')) {
$this->sort_order = constant('MODULE_PAYMENT_MONEYBOOKERS_' . strtoupper($code) . '_SORT_ORDER');
$this->enabled = constant('MODULE_PAYMENT_MONEYBOOKERS_' . strtoupper($code) . '_STATUS') == 'true' ? true : false;
$this->tmpStatus = constant('_PAYMENT_MONEYBOOKERS_TMP_STATUS_ID');
}
if (defined('_VALID_XTC')) {
$icons = explode(',', $this->images);
$accepted = '';
foreach ($icons as $key => $val) {
$accepted .= xtc_image('../images/icons/moneybookers/' . $val) . ' ';
}
if ($this->allowed != '') {
$this->title .= ' (' . $this->allowed . ')';
}
$this->title .= '<br />' . $accepted;
}
}
示例3: xtc_display_banner
function xtc_display_banner($action, $identifier)
{
if ($action == 'dynamic') {
$banners_query = xtc_db_query("select count(*) as count from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . xtc_db_input($identifier) . "'");
$banners = xtc_db_fetch_array($banners_query);
if ($banners['count'] > 0) {
$banner = xtc_random_select("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . xtc_db_input($identifier) . "'");
} else {
return '<strong>XTC ERROR! (xtc_display_banner(' . $action . ', ' . $identifier . ') -> No banners with group \'' . $identifier . '\' found!</strong>';
}
} elseif ($action == 'static') {
if (is_array($identifier)) {
$banner = $identifier;
} else {
$banner_query = xtc_db_query("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_id = '" . xtc_db_input($identifier) . "'");
if (xtc_db_num_rows($banner_query)) {
$banner = xtc_db_fetch_array($banner_query);
} else {
return '<strong>XTC ERROR! (xtc_display_banner(' . $action . ', ' . $identifier . ') -> Banner with ID \'' . $identifier . '\' not found, or status inactive</strong>';
}
}
} else {
return '<strong>XTC ERROR! (xtc_display_banner(' . $action . ', ' . $identifier . ') -> Unknown $action parameter value - it must be either \'dynamic\' or \'static\'</strong>';
}
if (xtc_not_null($banner['banners_html_text'])) {
$banner_string = $banner['banners_html_text'];
} else {
$banner_string = '<a href="' . xtc_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" onclick="window.open(this.href); return false;">' . xtc_image(DIR_WS_IMAGES . 'banner/' . $banner['banners_image'], $banner['banners_title']) . '</a>';
}
xtc_update_banner_display_count($banner['banners_id']);
return $banner_string;
}
示例4: selection
function selection()
{
if (MODULE_PAYMENT_MASTERPAYMENT_CREDIT_CARD_ICON == 'true') {
$content = array();
$content = array_merge($content, array(array('title' => ' ', 'field' => xtc_image(DIR_WS_ICONS . 'masterpayment_credit_card.gif'))));
}
return array('id' => $this->code, 'module' => $this->title_checkout, 'description' => $this->info, 'fields' => $content);
}
示例5: selection
function selection()
{
if (MODULE_PAYMENT_MASTERPAYMENT_RECHNUNGSKAUF_ICON == 'true') {
$content = array();
$content = array_merge($content, array(array('title' => ' ', 'field' => xtc_image(DIR_WS_ICONS . 'masterpayment_rechnungskauf.gif'))));
}
return array('id' => $this->code, 'module' => $this->title_checkout, 'description' => $this->info, 'fields' => $content);
}
示例6: selection
function selection()
{
if (MODULE_PAYMENT_MASTERPAYMENT_ELV_ICON == 'true') {
$content = array();
$content = array_merge($content, array(array('title' => ' ', 'field' => xtc_image(DIR_WS_ICONS . 'masterpayment_elv.gif'))));
}
return array('id' => $this->code, 'module' => $this->title_checkout, 'description' => MODULE_PAYMENT_MASTERPAYMENT_ELV_TEXT_INFO, 'fields' => $content);
}
示例7: selection
function selection()
{
if (MODULE_PAYMENT_MASTERPAYMENT_SOFORTBANKING_ICON == 'true') {
$content = array();
$content = array_merge($content, array(array('title' => ' ', 'field' => xtc_image(DIR_WS_ICONS . 'masterpayment_sofortbanking.gif'))));
}
return array('id' => $this->code, 'module' => $this->title_checkout, 'description' => $this->info, 'fields' => $content);
}
示例8: quote
function quote($method = '')
{
$this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_SELFPICKUP_TEXT_TITLE);
$this->quotes['methods'] = array(array('id' => $this->code, 'title' => MODULE_SHIPPING_SELFPICKUP_TEXT_WAY, 'cost' => 0));
if (xtc_not_null($this->icon)) {
$this->quotes['icon'] = xtc_image($this->icon, $this->title);
}
return $this->quotes;
}
示例9: setImageText
function setImageText($image, $text)
{
$lng = HelperFunctions::getShortCode($_SESSION['language']);
$image = 'https://images.sofort.com/' . $lng . '/sl/' . $image;
$image = xtc_image($image, MODULE_PAYMENT_SOFORT_SL_TEXT_DESCRIPTION_CHECKOUT_PAYMENT_IMAGEALT);
$title = MODULE_PAYMENT_SOFORT_SL_TEXT_DESCRIPTION_CHECKOUT_PAYMENT_IMAGE;
$title = str_replace('{{image}}', $image, $title);
$title = str_replace('{{text}}', $text, $title);
return $title;
}
示例10: xtc_output_warning
function xtc_output_warning($warning)
{
// BOF - Dokuman - 2009-05-27 - display errors only to admins in DIV-Element
// new errorBox(array(array('text' => '<table style="width: 100%;"><tr><td style="vertical-align: center; padding-left: 5px;">' . xtc_image(DIR_WS_ICONS . 'output_warning.gif', ICON_WARNING) . ' </td><td style="vertical-align: center; text-align: center;"> ' . $warning . '</td></tr></table>')));
$result = '';
if (isset($_SESSION['customers_status']['customers_status_id']) && $_SESSION['customers_status']['customers_status_id'] == '0') {
$result = '<div class="errormessage alert alert-warning">' . xtc_image(DIR_WS_ICONS . 'output_warning.gif', ICON_WARNING) . $warning . '</div>';
}
echo $result;
// EOF - Dokuman - 2009-05-27 - display errors only to admins in DIV-Element
}
示例11: selection
function selection()
{
$content = array();
$accepted = '';
$icons = explode(',', $this->images);
foreach ($icons as $key => $val) {
$accepted .= xtc_image(DIR_WS_ICONS . 'moneybookers/' . $val) . ' ';
}
$content = array_merge($content, array(array('title' => ' ', 'field' => $accepted)));
return array('id' => $this->code, 'module' => $this->title, 'fields' => $content, 'description' => $this->info);
}
示例12: quote
function quote($method = '')
{
global $order, $total_count;
$this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_ITEM_TEXT_TITLE, 'methods' => array(array('id' => $this->code, 'title' => MODULE_SHIPPING_ITEM_TEXT_WAY, 'cost' => MODULE_SHIPPING_ITEM_COST * $total_count + MODULE_SHIPPING_ITEM_HANDLING)));
if ($this->tax_class > 0) {
$this->quotes['tax'] = xtc_get_tax_rate($this->tax_class, $order->delivery['country']['id'], $order->delivery['zone_id']);
}
if (xtc_not_null($this->icon)) {
$this->quotes['icon'] = xtc_image($this->icon, $this->title);
}
return $this->quotes;
}
示例13: add
function add($class, $message, $type = 'error')
{
if ($type == 'error') {
$this->messages[] = array('params' => 'class="messageStackError alert alert-block alert-error"', 'class' => $class, 'text' => xtc_image(DIR_WS_ICONS . 'error.gif', ICON_ERROR) . ' ' . $message);
} elseif ($type == 'warning') {
$this->messages[] = array('params' => 'class="messageStackWarning alert alert-block alert-warning"', 'class' => $class, 'text' => xtc_image(DIR_WS_ICONS . 'warning.gif', ICON_WARNING) . ' ' . $message);
} elseif ($type == 'success') {
$this->messages[] = array('params' => 'class="messageStackSuccess alert alert-block alert-success"', 'class' => $class, 'text' => xtc_image(DIR_WS_ICONS . 'success.gif', ICON_SUCCESS) . ' ' . $message);
} else {
$this->messages[] = array('params' => 'class="messageStackError alert alert-block alert-error"', 'class' => $class, 'text' => $message);
}
}
示例14: getReviewRatingStars
function getReviewRatingStars($pID)
{
//Bewertungswert auslesen und Schnitt berechnen
$rating_query = xtDBquery("SELECT AVG(r.reviews_rating) as avgrating\r\n FROM " . TABLE_REVIEWS . " r\r\n WHERE r.products_id = '" . $pID . "'");
$rating = xtc_db_fetch_array($rating_query, true);
//Sterne-Symbol passend w�hlen
if ($rating['avgrating'] == "") {
$bewertung = xtc_image('templates/' . CURRENT_TEMPLATE . '/img/stars_0.gif', '0', '', '', 'class="rating"');
} else {
$bewertung = xtc_image('templates/' . CURRENT_TEMPLATE . '/img/stars_' . round($rating['avgrating']) . '.gif', round($rating['avgrating']), '', '', 'class="rating"');
}
//Sternbild zur�ck liefern
return $bewertung;
}
示例15: quote
function quote($method = '')
{
global $xtPrice;
if ($xtPrice->xtcRemoveCurr($_SESSION['cart']->show_total()) < MODULE_SHIPPING_FREEAMOUNT_AMOUNT && MODULE_SHIPPING_FREEAMOUNT_DISPLAY == 'False') {
return;
}
$this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_FREEAMOUNT_TEXT_TITLE);
if ($xtPrice->xtcRemoveCurr($_SESSION['cart']->show_total()) < MODULE_SHIPPING_FREEAMOUNT_AMOUNT) {
$this->quotes['error'] = sprintf(MODULE_SHIPPING_FREEAMOUNT_TEXT_WAY, $xtPrice->xtcFormat(MODULE_SHIPPING_FREEAMOUNT_AMOUNT, true, 0, true));
} else {
$this->quotes['methods'] = array(array('id' => $this->code, 'title' => sprintf(MODULE_SHIPPING_FREEAMOUNT_TEXT_WAY, $xtPrice->xtcFormat(MODULE_SHIPPING_FREEAMOUNT_AMOUNT, true, 0, true)), 'cost' => 0));
}
if (xtc_not_null($this->icon)) {
$this->quotes['icon'] = xtc_image($this->icon, $this->title);
}
return $this->quotes;
}