本文整理汇总了PHP中olc_image函数的典型用法代码示例。如果您正苦于以下问题:PHP olc_image函数的具体用法?PHP olc_image怎么用?PHP olc_image使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了olc_image函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:33,代码来源:table.php
示例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
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:26,代码来源:freeamount.php
示例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;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:32,代码来源:olc_display_banner.inc.php
示例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/>')));
}
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:8,代码来源:olc_output_warning.inc.php
示例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;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:9,代码来源:versandmail.php
示例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;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:51,代码来源:auctions.php
示例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;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:16,代码来源:freeamountausl.php
示例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);
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:17,代码来源:message_stack.php
示例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);
}
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:45,代码来源:olc_show_category.inc.php
示例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);
}
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:19,代码来源:paypal_ipn.php
示例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;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:19,代码来源:item.php
示例12: image
function image($img, $alt = '')
{
return olc_image($this->baseURL . 'images/' . $img, $alt);
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:4,代码来源:Page.class.php
示例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']);
//.........这里部分代码省略.........
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:101,代码来源:chp.php
示例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>
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:reviews.php
示例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>
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:30,代码来源:info_cc.inc.php
示例16: olc_onclick_link
}
if (is_object($tcInfo) && $classes['tax_class_id'] == $tcInfo->tax_class_id) {
echo ' <tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'hand\'" onclick="javascript:' . olc_onclick_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $tcInfo->tax_class_id . '&action=edit') . '">' . NEW_LINE;
} else {
echo ' <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'hand\'" onmouseout="this.className=\'dataTableRow\'" onclick="javascript:' . olc_onclick_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $classes['tax_class_id']) . '">' . NEW_LINE;
}
?>
<td class="dataTableContent"><?php
echo $classes['tax_class_title'];
?>
</td>
<td class="dataTableContent" align="right"><?php
if (is_object($tcInfo) && $classes['tax_class_id'] == $tcInfo->tax_class_id) {
echo olc_image(DIR_WS_IMAGES . 'icon_arrow_right.gif', '');
} else {
echo HTML_A_START . olc_href_link(FILENAME_TAX_CLASSES, 'page=' . $_GET['page'] . '&tID=' . $classes['tax_class_id']) . '">' . olc_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . HTML_A_END;
}
?>
</td>
</tr>
<?php
}
?>
<tr>
<td colspan="2"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php
echo $classes_split->display_count($classes_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_TAX_CLASSES);
?>
</td>
<td class="smallText" align="right"><?php
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:tax_classes.php
示例17: olc_date_short
echo $currencies->format($gv_list['coupon_amount']);
?>
</td>
<td class="dataTableContent" align="center"><?php
echo $gv_list['coupon_code'];
?>
</td>
<td class="dataTableContent" align="right"><?php
echo olc_date_short($gv_list['date_sent']);
?>
</td>
<td class="dataTableContent" align="right"><?php
if (is_object($gInfo) && $gv_list['coupon_id'] == $gInfo->coupon_id) {
echo olc_image(DIR_WS_IMAGES . 'icon_arrow_right.gif');
} else {
echo HTML_A_START . olc_href_link(FILENAME_GV_SENT, 'page=' . $_GET['page'] . '&gid=' . $gv_list['coupon_id']) . '">' . olc_image(DIR_WS_IMAGES . 'icon_info.gif', IMAGE_ICON_INFO) . HTML_A_END;
}
?>
</td>
</tr>
<?php
}
?>
<tr>
<td colspan="5"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText" valign="top"><?php
echo $gv_split->display_count($gv_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_GIFT_VOUCHERS);
?>
</td>
<td class="smallText" align="right"><?php
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:gv_sent.php
示例18: olc_href_link
---------------------------------------------------------------------------------------*/
include 'includes/application_top.php';
// include needed functions
require_once DIR_FS_INC . 'olc_word_count.inc.php';
require_once DIR_FS_INC . 'olc_date_long.inc.php';
$breadcrumb->add(NAVBAR_TITLE_REVIEWS, olc_href_link(FILENAME_REVIEWS));
require DIR_WS_INCLUDES . 'header.php';
$reviews_query_raw = "\nselect r.reviews_id,\nleft(rd.reviews_text, 250) as reviews_text,\nr.reviews_rating,\nr.date_added,\np.products_id,\npd.products_name,\np.products_image,\nr.customers_name\nfrom " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd\nwhere\np.products_status = 1 and\np.products_id = r.products_id and\nr.reviews_id = rd.reviews_id and\np.products_id = pd.products_id and\npd.language_id = " . SESSION_LANGUAGE_ID . " and\nrd.languages_id = " . SESSION_LANGUAGE_ID . "\norder by r.reviews_id DESC";
$reviews_split = new splitPageResults($reviews_query_raw, $_GET['page'], MAX_DISPLAY_NEW_REVIEWS);
if ($reviews_split->number_of_rows > 0 && (PREV_NEXT_BAR_LOCATION == '1' || PREV_NEXT_BAR_LOCATION == '3')) {
$smarty->assign('NAVBAR', '
<table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="smallText">' . $reviews_split->display_count(TEXT_DISPLAY_NUMBER_OF_REVIEWS) . '</td>
<td align="right" class="smallText">' . TEXT_RESULT_PAGE . BLANK . $reviews_split->display_links(MAX_DISPLAY_PAGE_LINKS, olc_get_all_get_params(array('page', 'info', 'x', 'y'))) . '</td>
</tr>
</table>
');
}
$module_data = array();
if ($reviews_split->number_of_rows > 0) {
$reviews_query = olc_db_query($reviews_split->sql_query);
while ($reviews = olc_db_fetch_array($reviews_query)) {
$module_data[] = array('PRODUCTS_IMAGE' => DIR_WS_THUMBNAIL_IMAGES . $reviews['products_image'], $reviews['products_name'], 'PRODUCTS_LINK' => olc_href_link(FILENAME_PRODUCT_REVIEWS_INFO, 'products_id=' . $reviews['products_id'] . '&reviews_id=' . $reviews['reviews_id']), 'PRODUCTS_NAME' => $reviews['products_name'], 'AUTHOR' => $reviews['customers_name'], 'TEXT' => sprintf(TEXT_REVIEW_WORD_COUNT, olc_word_count($reviews['reviews_text'], BLANK)) . ')<br/>' . htmlspecialchars($reviews['reviews_text']) . '..', 'RATING' => olc_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $reviews['reviews_rating'])));
}
$smarty->assign(MODULE_CONTENT, $module_data);
}
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'reviews' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:reviews.php
示例19: olc_image
$products_tax_text = 'PRODUCTS_TAX';
$products_image_text = 'PRODUCTS_IMAGE';
$box_delete_text = 'BOX_DELETE';
$products_link_text = 'PRODUCTS_LINK';
$products_price_text = 'PRODUCTS_PRICE';
$products_single_price_text = 'PRODUCTS_SINGLE_PRICE';
$products_short_description_text = 'PRODUCTS_SHORT_DESCRIPTION';
$products_attributes_text = 'ATTRIBUTES';
$element_text = 'ELEMENT';
$big_id_text = 'ID';
$big_model_text = 'MODEL';
$big_name_text = 'NAME';
$value_name_text = 'VALUE_NAME';
$price_text = 'PRICE';
if (USE_EBAY) {
$ebay_image = HTML_NBSP . olc_image(DIR_WS_IMAGES . "ebay.gif", AUCTIONS_TEXT_SHOW_PRODUCT, EMPTY_STRING, EMPTY_STRING, ' align="middle"');
$ebay_link = olc_href_link(EBAY_SERVER, EBAY_VIEWITEM . HASH) . '" target="_blank';
$hidden_quantity = olc_draw_hidden_field($cart_quantity_text, HASH);
$hidden_product_id = olc_draw_hidden_field($products_id_text, HASH);
}
$link = olc_href_link(FILENAME_PRODUCT_INFO, $products_id_equal_text . HASH);
$do_stock_check = STOCK_CHECK == TRUE_STRING_S;
$do_atribute_stock_check = $do_stock_check && ATTRIBUTE_STOCK_CHECK == TRUE_STRING_S;
for ($i = 0; $i < sizeof($products); $i++) {
$product = $products[$i];
$product_id = $product[$id_text];
$products_quantity = $product[$quantity_text];
$products_min_quantity = $product[$min_quantity_text];
$products_quantity = max($products_quantity, $products_min_quantity);
if ($do_stock_check) {
$mark_stock = olc_check_stock($product_id, $products_quantity);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:order_details_cart.php
示例20: olc_db_query
Released under the GNU General Public License
--------------------------------------------------------------*/
require 'includes/application_top.php';
//select all auctions which transformed to a real order
$auctionssql = SELECT_ALL . TABLE_AUCTION_LIST . " l, " . TABLE_AUCTION_DETAILS . " d\nWHERE l.auction_id=d.auction_id AND l.ended=1 AND d.order_number!=0 " . $ordersql;
$myauctions = olc_db_query($auctionssql);
$orderby = "auction_id";
//Default order field
require_once DIR_WS_FUNCTIONS . 'list_sorting.php';
$heading = array(array($name_text => AUCTIONS_TEXT_AUCTION_AMOUNT, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $auction_title_text, $sort0), $link_text => $file . $auction_title_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_EBAY_ID, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $auction_id_text, $sort0), $link_text => $file . $auction_id_text), array($name_text => AUCTIONS_TEXT_AUCTION_SOLD_BUYER, $attributes_text => $align_right_text, $sort_text => str_replace(HASH, $buyer_id_text, $sort0), $link_text => $file . $buyer_id_text), array($name_text => AUCTIONS_TEXT_AUCTION_SOLD_COUNTRY, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $buyer_land_text, $sort0), $link_text => $file . $buyer_land_text), array($name_text => AUCTIONS_TEXT_AUCTION_SOLD_PRICE, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, auction_endprice_text, $sort0), $link_text => $file . auction_endprice_text), array($name_text => AUCTIONS_TEXT_AUCTION_LIST_END_TIME, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $endtime_text, $sort0), $link_text => $file . $endtime_text), array($name_text => AUCTIONS_TEXT_AUCTION_SOLD_ORDER_ORDERNR, $attributes_text => $align_center_text, $sort_text => str_replace(HASH, $order_number_text, $sort0), $link_text => $file . $order_number_text));
/* print table heading */
$main_content .= tableheading($heading);
$auction_endprice_text = 'auction_endprice';
$order_number_text = 'order_number';
$order_icon = olc_image(DIR_WS_ICONS . 'order.gif', BOX_ORDERS) . BLANK;
$link = olc_href_link(FILENAME_ORDERS, 'oID=#&action=edit');
$i = 0;
while ($auctions_values = olc_db_fetch_array($myauctions)) {
$i++;
if ($i % 2 == 0) {
$class = $dataTableRow_1_text;
} else {
$class = $dataTableRow_text;
}
/* define content array */
$quantity = $auctions_values[$quantity_text];
$auction_id = $auctions_values[$auction_id_text];
$buyer_id = $auctions_values[$buyer_id_text];
$buyer_land = $auctions_values[$buyer_land_text];
$auction_endprice = $auctions_values[$auction_endprice_text];
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:30,代码来源:auctions_list_cancel.php
注:本文中的olc_image函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论