本文整理汇总了PHP中olc_image函数的典型用法代码示例。如果您正苦于以下问题:PHP olc_image函数的具体用法?PHP olc_image怎么用?PHP olc_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了olc_image函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: quote
function quote($method = '')
{
global $order, $shipping_weight, $shipping_num_boxes;
if (!$order) {
$order = new order();
$shipping_weight = $_SESSION['cart']->show_weight();
}
$order_delivery_country = $order->delivery['country'];
if (MODULE_SHIPPING_TABLE_MODE == 'price') {
$order_total = $_SESSION['cart']->show_total();
} else {
$order_total = $shipping_weight;
}
$table_cost = split("[:,]", MODULE_SHIPPING_TABLE_COST);
$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'] = olc_get_tax_rate($this->tax_class, $order_delivery_country['id'], $order->delivery['zone_id']);
}
if (olc_not_null($this->icon)) {
$this->quotes['icon'] = olc_image($this->icon, $this->title);
}
return $this->quotes;
}
示例2: quote
function quote($method = '')
{
// W. Kaiser - Show missing amount for free shipping
$CurrentAmount = $_SESSION['cart']->show_total();
// W. Kaiser - Free shipping national/international
require_once DIR_FS_INC . 'olc_get_free_shipping_amount.inc.php';
olc_get_free_shipping_amount();
if (FREE_AMOUNT > 0) {
$MissingAmount = FREE_AMOUNT - $CurrentAmount;
if ($MissingAmount > 0 && MODULE_SHIPPING_FREECOUNT_DISPLAY == FALSE_STRING_L) {
return;
}
// W. Kaiser - Free shipping national/international
$this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_FREECOUNT_TEXT_TITLE);
if ($MissingAmount > 0) {
$this->quotes['error'] = MODULE_SHIPPING_FREECOUNT_TEXT_WAY . HTML_B_START . olc_format_price($MissingAmount, 1, 1, 1) . '</b>)';
} else {
$this->quotes['methods'] = array(array('id' => $this->code, 'title' => MODULE_SHIPPING_FREECOUNT_TEXT_WAY, 'cost' => 0));
if (olc_not_null($this->icon)) {
$this->quotes['icon'] = olc_image($this->icon, $this->title);
}
}
}
return $this->quotes;
//W. Kaiser - Show missing amount for free shippin
}
示例3: olc_display_banner
function olc_display_banner($action, $identifier)
{
if ($action == 'dynamic') {
$banners_query = olc_db_query(SELECT_COUNT . " as count from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . $identifier . APOS);
$banners = olc_db_fetch_array($banners_query);
if ($banners['count'] > 0) {
$banner = olc_random_select("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_group = '" . $identifier . APOS);
} else {
return '<b>OLC ERROR! (olc_display_banner(' . $action . ', ' . $identifier . ') -> No banners with group \'' . $identifier . '\' found!</b>';
}
} elseif ($action == 'static') {
if (is_array($identifier)) {
$banner = $identifier;
} else {
$banner_query = olc_db_query("select banners_id, banners_title, banners_image, banners_html_text from " . TABLE_BANNERS . " where status = '1' and banners_id = '" . $identifier . APOS);
if (olc_db_num_rows($banner_query)) {
$banner = olc_db_fetch_array($banner_query);
} else {
return '<b>OLC ERROR! (olc_display_banner(' . $action . ', ' . $identifier . ') -> Banner with id \'' . $identifier . '\' not found, or status inactive</b>';
}
}
} else {
return '<b>OLC ERROR! (olc_display_banner(' . $action . ', ' . $identifier . ') -> Unknown $action parameter value - it must be either \'dynamic\' or \'static\'' . HTML_B_END;
}
if (olc_not_null($banner['banners_html_text'])) {
$banner_string = $banner['banners_html_text'];
} else {
$banner_string = HTML_A_START . olc_href_link(FILENAME_REDIRECT, 'action=banner&goto=' . $banner['banners_id']) . '" target="_blank">' . olc_image(DIR_WS_IMAGES . 'banner/' . $banner['banners_image'], $banner['banners_title']) . HTML_A_END;
}
olc_update_banner_display_count($banner['banners_id']);
return $banner_string;
}
示例4: olc_output_warning
function olc_output_warning($warning, $force_errorBox = false)
{
if (IS_AJAX_PROCESSING && !$force_errorBox) {
ajax_error($warning, true);
} else {
new errorBox(array(array('text' => HTML_BR . olc_image(DIR_WS_ICONS . 'warning.gif', ICON_WARNING) . BLANK . $warning . '<br/><br/>')));
}
}
示例5: quote
function quote($method = '')
{
$this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_VERSANDMAIL_TEXT_TITLE);
$this->quotes['methods'] = array(array('id' => $this->code, 'title' => MODULE_SHIPPING_VERSANDMAIL_TEXT_WAY, 'cost' => 0));
if (olc_not_null($this->icon)) {
$this->quotes['icon'] = olc_image($this->icon, $this->title);
}
return $this->quotes;
}
示例6: build_optional_image_html
function build_optional_image_html($i)
{
global $pic_display_text0, $pic_table_text0, $pic_url_text, $pic_text, $onclick0, $sep, $use_multi_pic_text;
global $multi_pictures, $pic_table0, $span_start, $thumbs_dir_local, $id_is, $dummy_span, $hidden_text, $end;
global $original_dir_local, $thumbs_dir_local, $display_visible_text, $display_hidden_text, $pic_table0;
global $dummy_span, $style_display, $fees, $rab, $div_tex, $onchange, $space;
$next_i = $i + 1;
//$index=UNDERSCORE.$i;
$index = UNDERSCORE . $next_i;
$my_pic_display_text = $pic_display_text0 . $index;
$my_pic_table_text = $pic_table_text0 . $next_i;
$my_pic_url_text = $pic_url_text . $index;
$my_pic_text = $pic_text . $index;
$my_use_multi_pic_text = $use_multi_pic_text . $next_i;
$my_use_multi_pic_div_text = $my_use_multi_pic_text . $div_text;
$not_last = $i < 12;
$onclick = $onclick0 . $my_pic_table_text . $sep . $my_pic_url_text . $sep . $my_pic_text;
if ($not_last) {
//$onclick.=$sep.$my_use_multi_pic_text.$sep.TRUE_STRING_S;
$next_i_1 = $next_i + 1;
$onclick .= $sep . $use_multi_pic_text . $next_i_1 . $div_text . $sep . $next_i;
}
$onclick .= $end;
if ($not_last) {
$pic_file_name = $multi_pictures[$next_i];
$use_multi_pic = $pic_file_name != EMPTY_STRING;
$id = $id_is . $my_pic_text . QUOTE;
if ($use_multi_pic) {
$display = $display_visible_text;
$my_image = olc_image($thumbs_dir_local . $pic_file_name, EMPTY_STRING, EMPTY_STRING, EMPTY_STRING, $id . QUOTE);
$my_pic_file_name = DIR_WS_ORIGINAL_IMAGES . $pic_file_name;
} else {
$display = $display_hidden_text;
$my_image = SPAN_START . $id . $rab . SPAN_END;
$my_pic_file_name = EMPTY_STRING;
}
$pic_table = str_replace(UNDERSCORE, $display, $pic_table0);
$pic_table = str_replace(TILDE, $my_pic_table_text, $pic_table);
$image_html .= HTML_BR . olc_draw_file_field($my_pic_url_text, EMPTY_STRING, str_replace(HASH, $index, $onchange)) . HTML_BR . str_replace(HASH, $my_pic_display_text, $span_start) . $my_pic_file_name . SPAN_END;
$image_html = str_replace(HASH, $image_html, $pic_table);
$image_html = str_replace(ATSIGN, $space . $my_image . $dummy_span, $image_html) . olc_draw_hidden_field($my_pic_url_text . $hidden_text, $original_dir_local . $pic_file_name);
if ($i == 1 || $use_multi_pic) {
$display = $display_visible_text;
} else {
$display = $display_hidden_text;
}
$display = $style_display . $display . QUOTE;
$image_html = '<div nowrap="nowrap"="nowrap" id="' . $my_use_multi_pic_div_text . QUOTE . BLANK . $display . $rab . HTML_BR . olc_draw_checkbox_field($my_use_multi_pic_text, ONE_STRING, $use_multi_pic, $onclick) . HTML_NBSP . sprintf(AUCTIONS_TEXT_AUCTION_USE_MULTI_PIC, $next_i, $fees[$pic_text]) . $image_html . '</div>';
}
return $image_html;
}
示例7: quote
function quote($method = '')
{
if ($_SESSION['cart']->show_total() < MODULE_SHIPPING_FREECOUNTAUSL_AMOUNT && MODULE_SHIPPING_FREECOUNTAUSL_DISPLAY == FALSE_STRING_L) {
return;
}
$this->quotes = array('id' => $this->code, 'module' => MODULE_SHIPPING_FREECOUNTAUSL_TEXT_TITLE);
if ($_SESSION['cart']->show_total() < MODULE_SHIPPING_FREECOUNTAUSL_AMOUNT) {
$this->quotes['error'] = MODULE_SHIPPING_FREECOUNTAUSL_TEXT_WAY;
} else {
$this->quotes['methods'] = array(array('id' => $this->code, 'title' => MODULE_SHIPPING_FREECOUNTAUSL_TEXT_WAY, 'cost' => 0));
}
if (olc_not_null($this->icon)) {
$this->quotes['icon'] = olc_image($this->icon, $this->title);
}
return $this->quotes;
}
示例8: add
function add($class, $message, $type = 'error', $use_AJAX_mode = true)
{
if ($type == 'warning') {
$message_type = "Warning";
$icon_type = ICON_WARNING;
$message_text = "Hinweis";
} elseif ($type == 'success') {
$message_type = "Success";
$icon_type = ICON_SUCCESS;
$message_text = "Erfolg";
} else {
$message_type = "Error";
$icon_type = ICON_ERROR;
$message_text = "Fehler";
}
$this->messages[] = array('params' => 'class="messageStack' . $message_type . '"', 'class' => $class, 'text' => olc_image(DIR_WS_ICONS . strtolower($message_type) . '.gif', $icon_type, EMPTY_STRING, EMPTY_STRING, 'align="middle"') . HTML_NBSP . $message);
}
示例9: olc_show_category
function olc_show_category($counter, $img = '')
{
global $foo, $categories_string, $id;
$current_entry = $foo[$counter];
if ($current_entry['parent'] == 0) {
$cPath_new = $counter;
} else {
$cPath_new = $current_entry['path'];
}
$cPath_new = 'cPath=' . $cPath_new;
$two_blank = HTML_NBSP . HTML_NBSP;
for ($a = 0; $a < $current_entry['level']; $a++) {
$indent = $two_blank;
}
$link = olc_href_link(FILENAME_DEFAULT, $cPath_new);
$link = HTML_A_START . $link . '" title="' . $current_entry['title'] . '">';
$make_bold = $id && in_array($counter, $id);
if ($make_bold) {
$link .= HTML_B_START;
}
// display category name
$link .= $current_entry['name'];
if ($make_bold) {
$link .= HTML_B_END;
}
$link .= HTML_A_END;
if (SHOW_COUNTS == TRUE_STRING_S) {
$products_in_category = olc_count_products_in_category($counter, false);
if ($products_in_category > 0) {
$link .= HTML_NBSP . ltrim(LPAREN) . $products_in_category . RPAREN;
}
}
if (strlen($categories_string) > 0) {
$categories_string .= HTML_BR;
}
$categories_string .= $indent . $img . $link;
$file = CURRENT_TEMPLATE_IMG . 'img_underline.gif';
if (is_file(DIR_FS_CATALOG . $file)) {
$categories_string .= HTML_BR . olc_image($file);
}
$next_id = $current_entry['next_id'];
if ($next_id) {
olc_show_category($next_id, $img);
}
}
示例10: selection
function selection()
{
if (USE_PAYPAL_IPN) {
$paypal_image_dir = PAYPAL_IPN_DIR . 'images/';
$img_visa = olc_image($paypal_image_dir . 'visa.gif', ' Visa ', EMPTY_STRING, EMPTY_STRING, 'align="absmiddle"');
$img_mc = olc_image($paypal_image_dir . 'mastercard.gif', ' MasterCard ', EMPTY_STRING, EMPTY_STRING, 'align="absmiddle"');
$img_paypal = olc_image($paypal_image_dir . 'paypal_intl.gif', ' PayPal ', EMPTY_STRING, EMPTY_STRING, 'align="absmiddle"');
/*
$img_discover = olc_image($paypal_image_dir.'discover.gif',' Discover ',
EMPTY_STRING,EMPTY_STRING,'align="absmiddle"');
$img_amex = olc_image($paypal_image_dir.'amex.gif',' American Express ',
EMPTY_STRING,EMPTY_STRING,'align="absmiddle"');
*/
$paypal_cc_txt = sprintf(MODULE_PAYMENT_PAYPAL_IPN_CC_TEXT, $img_visa, $img_mc, $img_paypal, $img_amex, $img_discover);
$fields[] = array('title' => EMPTY_STRING, 'field' => HTML_B_START . $paypal_cc_txt . HTML_B_END . $cc_explain);
return array('id' => $this->code, 'module' => $this->title, 'fields' => $fields);
}
}
示例11: quote
function quote($method = '')
{
global $order, $total_count;
if (!$order) {
$order = new order();
}
if (!$shipping_weight) {
$shipping_weight = $_SESSION['cart']->show_weight();
}
$order_delivery_country = $order->delivery['country'];
$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'] = olc_get_tax_rate($this->tax_class, $order_delivery_country['id'], $order->delivery['zone_id']);
}
if (olc_not_null($this->icon)) {
$this->quotes['icon'] = olc_image($this->icon, $this->title);
}
return $this->quotes;
}
示例12: image
function image($img, $alt = '')
{
return olc_image($this->baseURL . 'images/' . $img, $alt);
}
示例13: quote
function quote($method = '')
{
global $order, $shipping_weight, $shipping_num_boxes;
if (!$order) {
$order = new order();
}
if (!$shipping_weight) {
$shipping_weight = $_SESSION['cart']->show_weight();
}
$order_delivery_country = $order->delivery['country'];
$dest_country = $order_delivery_country['iso_code_2'];
$dest_zone = 0;
$error = false;
for ($j = 1; $j <= $this->num_chp; $j++) {
$countries_table = constant('MODULE_SHIPPING_CHP_COUNTRIES_' . $j);
$country_zones = split("[,]", $countries_table);
if (in_array($dest_country, $country_zones)) {
$dest_zone = $j;
break;
}
}
if ($dest_zone == 0) {
$error = true;
} else {
$shipping = -1;
$chp_cost_eco = @constant('MODULE_SHIPPING_CHP_COST_ECO_' . $j);
$chp_cost_pri = @constant('MODULE_SHIPPING_CHP_COST_PRI_' . $j);
$chp_cost_urg = @constant('MODULE_SHIPPING_CHP_COST_URG_' . $j);
$methods = array();
if ($chp_cost_eco != '') {
$chp_table_eco = split("[:,]", $chp_cost_eco);
for ($i = 0; $i < sizeof($chp_table_eco); $i += 2) {
if ($shipping_weight <= $chp_table_eco[$i]) {
$shipping_eco = $chp_table_eco[$i + 1];
break;
}
}
if ($shipping_eco == -1) {
$shipping_cost = 0;
$shipping_method = MODULE_SHIPPING_CHP_UNDEFINED_RATE;
} else {
$shipping_cost_1 = $shipping_eco + MODULE_SHIPPING_CHP_HANDLING;
}
if ($shipping_eco != 0) {
$methods[] = array('id' => 'ECO', 'title' => 'Economy', 'cost' => (MODULE_SHIPPING_CHP_HANDLING + $shipping_cost_1) * $shipping_num_boxes);
}
}
if ($chp_cost_pri != '') {
$chp_table_pri = split("[:,]", $chp_cost_pri);
for ($i = 0; $i < sizeof($chp_table_pri); $i += 2) {
if ($shipping_weight <= $chp_table_pri[$i]) {
$shipping_pri = $chp_table_pri[$i + 1];
break;
}
}
if ($shipping_pri == -1) {
$shipping_cost = 0;
$shipping_method = MODULE_SHIPPING_CHP_UNDEFINED_RATE;
} else {
$shipping_cost_2 = $shipping_pri + MODULE_SHIPPING_CHP_HANDLING;
}
if ($shipping_pri != 0) {
$methods[] = array('id' => 'PRI', 'title' => 'Priority', 'cost' => (MODULE_SHIPPING_CHP_HANDLING + $shipping_cost_2) * $shipping_num_boxes);
}
}
if ($chp_cost_urg != '') {
$chp_table_urg = split("[:,]", $chp_cost_urg);
for ($i = 0; $i < sizeof($chp_table_urg); $i += 2) {
if ($shipping_weight <= $chp_table_urg[$i]) {
$shipping_urg = $chp_table_urg[$i + 1];
break;
}
}
if ($shipping_urg == -1) {
$shipping_cost = 0;
$shipping_method = MODULE_SHIPPING_CHP_UNDEFINED_RATE;
} else {
$shipping_cost_3 = $shipping_urg + MODULE_SHIPPING_CHP_HANDLING;
}
if ($shipping_urg != 0) {
$methods[] = array('id' => 'URG', 'title' => 'Urgent', 'cost' => (MODULE_SHIPPING_CHP_HANDLING + $shipping_cost_3) * $shipping_num_boxes);
}
}
}
$this->quotes = array('id' => $this->code, 'module' => $this->title . LPAREN . $shipping_num_boxes . ' x ' . number_format($shipping_weight, CURRENCY_DECIMAL_PLACES, CURRENCY_DECIMAL_POINT, CURRENCY_THOUSANDS_POINT) . BLANK . MODULE_SHIPPING_CHP_TEXT_UNITS . RPAREN);
$this->quotes['methods'] = $methods;
if ($this->tax_class > 0) {
$this->quotes['tax'] = olc_get_tax_rate($this->tax_class, $order_delivery_country['id'], $order->delivery['zone_id']);
}
if (olc_not_null($this->icon)) {
$this->quotes['icon'] = olc_image($this->icon, $this->title);
}
if ($error == true) {
$this->quotes['error'] = MODULE_SHIPPING_CHP_INVALID_ZONE;
}
if (olc_not_null($method) && isset($this->types[$method])) {
for ($i = 0; $i < sizeof($methods); $i++) {
if ($method == $methods[$i]['id']) {
$methodsc = array();
$methodsc[] = array('id' => $methods[$i]['id'], 'title' => $methods[$i]['title'], 'cost' => $methods[$i]['cost']);
//.........这里部分代码省略.........
示例14: array
$contents = array('form' => olc_draw_form('reviews', FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_REVIEW_INTRO);
$contents[] = array('text' => '<br/><b>' . $rInfo->products_name . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
default:
if (is_object($rInfo)) {
$heading[] = array('text' => HTML_B_START . $rInfo->products_name . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
$contents[] = array('text' => HTML_BR . TEXT_INFO_DATE_ADDED . BLANK . olc_date_short($rInfo->date_added));
if (olc_not_null($rInfo->last_modified)) {
$contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . BLANK . olc_date_short($rInfo->last_modified));
}
$contents[] = array('text' => HTML_BR . olc_info_image($rInfo->products_image, $rInfo->products_name, SMALL_IMAGE_WIDTH, SMALL_IMAGE_HEIGHT));
$contents[] = array('text' => HTML_BR . TEXT_INFO_REVIEW_AUTHOR . BLANK . $rInfo->customers_name);
$contents[] = array('text' => TEXT_INFO_REVIEW_RATING . BLANK . olc_image(DIR_WS_CATALOG_IMAGES . 'stars_' . $rInfo->reviews_rating . '.gif'));
$contents[] = array('text' => TEXT_INFO_REVIEW_READ . BLANK . $rInfo->reviews_read);
$contents[] = array('text' => HTML_BR . TEXT_INFO_REVIEW_SIZE . BLANK . $rInfo->reviews_text_size . ' bytes');
$contents[] = array('text' => HTML_BR . TEXT_INFO_PRODUCTS_AVERAGE_RATING . BLANK . number_format($rInfo->average_rating, 2) . '%');
}
break;
}
if (olc_not_null($heading) && olc_not_null($contents)) {
echo ' <td width="25%" valign="top">' . NEW_LINE;
$box = new box();
echo $box->infoBox($heading, $contents);
echo ' </td>' . NEW_LINE;
}
?>
</tr>
</table></td>
示例15: olc_image
?>
<table border="0" cellpadding="0" cellspacing="0" class="popupmain">
<tr><td class="ppheading" style="height: 50px;">Make Shopping Easier for Customers with Website Payments</td></tr>
<tr><td><hr class="solid"></td></tr>
<tr>
<td class="pptext"><?php
echo olc_image($paypal_image_dir . 'hdr_ppGlobev4_160x76.gif', ' PayPal ', '', '', 'align=right valign="top" style="margin: 10px;"');
?>
PayPal has optimized their checkout experience by launching an exciting new improvement to their payment flow.
<br/><br/>For new buyers, signing up for a PayPal account is now optional. This means you can complete your payment first, and then decide whether to save your information for future purchases.
<p>To pay by credit card, look for this button:<br/>
<p align="center"><?php
echo olc_image($paypal_image_dir . 'PayPal-ContinueCheckout.gif', '', '', '');
?>
</p>
<br/>
Or you may see this:<br/>
<p align="center"><?php
echo olc_image($paypal_image_dir . 'PayPal-no-account-Click-Here.gif', '', '', '');
?>
</p>
<br/>
One of these options should appear on the first PayPal screen.<br/>
<p>Note: if you are a PayPal member, you can either use your account,
or use a credit card that is not associated with a PayPal account.
In that case you'd also need to use an email address that's not associated with a PayPal account.</p>
</td>
</tr>
<tr><td><br class="h10"></td></tr>
</table>