本文整理汇总了PHP中olc_image_button函数的典型用法代码示例。如果您正苦于以下问题:PHP olc_image_button函数的具体用法?PHP olc_image_button怎么用?PHP olc_image_button使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了olc_image_button函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: confirm
function confirm()
{
$audience = array();
if ($_GET['global'] == TRUE_STRING_S) {
$products_query = olc_db_query("select distinct customers_id from " . TABLE_PRODUCTS_NOTIFICATIONS);
while ($products = olc_db_fetch_array($products_query)) {
$audience[$products['customers_id']] = '1';
}
$customers_query = olc_db_query("select customers_info_id from " . TABLE_CUSTOMERS_INFO . " where global_product_notifications = '1'");
while ($customers = olc_db_fetch_array($customers_query)) {
$audience[$customers['customers_info_id']] = '1';
}
} else {
$chosen = $_POST['chosen'];
$ids = implode(',', $chosen);
$products_query = olc_db_query("select distinct customers_id from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id in (" . $ids . RPAREN);
while ($products = olc_db_fetch_array($products_query)) {
$audience[$products['customers_id']] = '1';
}
$customers_query = olc_db_query("select customers_info_id from " . TABLE_CUSTOMERS_INFO . " where global_product_notifications = '1'");
while ($customers = olc_db_fetch_array($customers_query)) {
$audience[$customers['customers_info_id']] = '1';
}
}
$confirm_string = '<table border="0" cellspacing="0" cellpadding="2">' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td class="main"><font color="#ff0000"><b>' . sprintf(TEXT_COUNT_CUSTOMERS, sizeof($audience)) . '</b></font></td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td>' . olc_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td class="main"><b>' . $this->title . '</b></td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td>' . olc_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td class="main"><tt>' . nl2br($this->content) . '</tt></td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . NEW_LINE . ' <td>' . olc_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . NEW_LINE . ' </tr>' . NEW_LINE . ' <tr>' . olc_draw_form('confirm', FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . NEW_LINE . ' <td align="right">';
if (sizeof($audience) > 0) {
if ($_GET['global'] == TRUE_STRING_S) {
$confirm_string .= olc_draw_hidden_field('global', TRUE_STRING_S);
} else {
for ($i = 0, $n = sizeof($chosen); $i < $n; $i++) {
$confirm_string .= olc_draw_hidden_field('chosen[]', $chosen[$i]);
}
}
$confirm_string .= olc_image_submit('button_send.gif', IMAGE_SEND) . BLANK;
}
$confirm_string .= HTML_A_START . olc_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=send') . '">' . olc_image_button('button_back.gif', IMAGE_BACK) . '</a> <a href="' . olc_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . '</a></td>' . NEW_LINE . ' </tr>' . NEW_LINE . '</table>';
return $confirm_string;
}
示例2: array
case 'delete':
$heading[] = array('text' => HTML_B_START . TEXT_HEADING_DELETE_BLACKLIST_CARD . HTML_B_END);
$contents = array('form' => olc_draw_form('blacklisted', FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_DELETE_INTRO);
$contents[] = array('text' => '<br/><b>' . $bInfo->blacklist_card_number . HTML_B_END);
// $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_image', '', true) . BLANK . TEXT_DELETE_IMAGE);
// if ($mInfo->products_count > 0) {
// $contents[] = array('text' => HTML_BR . olc_draw_checkbox_field('delete_products') . BLANK . TEXT_DELETE_PRODUCTS);
// $contents[] = array('text' => HTML_BR . sprintf(TEXT_DELETE_WARNING_PRODUCTS, $mInfo->products_count));
// }
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
default:
if (is_object($bInfo)) {
$heading[] = array('text' => HTML_B_START . $bInfo->blacklist_card_number . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_BLACKLIST, 'page=' . $_GET['page'] . '&bID=' . $bInfo->blacklist_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
$contents[] = array('text' => HTML_BR . TEXT_DATE_ADDED . BLANK . olc_date_short($bInfo->date_added));
if (olc_not_null($bInfo->last_modified)) {
$contents[] = array('text' => TEXT_LAST_MODIFIED . BLANK . olc_date_short($bInfo->last_modified));
}
// $contents[] = array('text' => HTML_BR . olc_info_image($mInfo->manufacturers_image, $mInfo->manufacturers_name));
// $contents[] = array('text' => HTML_BR . TEXT_PRODUCTS . BLANK . $mInfo->products_count);
}
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;
}
示例3: Copyright
Copyright (c) 2005 OL-Commerce , 2006 Dipl.-Ing.(TH) Winfried Kaiser (w.kaiser@fortune.de, info@seifenparadies.de)
-----------------------------------------------------------------------------
based on:
(c) 2003 OSC-Affiliate (affiliate_signup_ok.php, v 1.6 2003/02/23);
http://oscaffiliate.sourceforge.net/
Contribution based on:
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2002 - 2003 osCommerce
Copyright (c) 2003 netz-designer
Copyright (c) 2005 OL-Commerce , 2006 Dipl.-Ing.(TH) Winfried Kaiser (w.kaiser@fortune.de, info@seifenparadies.de)
Copyright (c) 2002 - 2003 osCommerce
Released under the GNU General Public License
---------------------------------------------------------------------------*/
require 'includes/application_top.php';
// include needed functions
require_once DIR_FS_INC . 'olc_image_button.inc.php';
$breadcrumb->add(NAVBAR_TITLE, olc_href_link(FILENAME_AFFILIATE, '', SSL));
$breadcrumb->add(NAVBAR_TITLE_SIGNUP_OK);
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('LINK_SUMMARY', HTML_A_START . olc_href_link(FILENAME_AFFILIATE_SUMMARY, '', SSL) . '">' . olc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . HTML_A_END);
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'affiliate_signup_ok' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
示例4: array
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_REVIEW . HTML_B_END);
$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;
示例5: SPAW_Wysiwyg
echo TEXT_BODY;
?>
</td>
<td width="90%"><?php
$sw = new SPAW_Wysiwyg($control_name = 'newsletter_body', $value = stripslashes($newsletters_data['body']), $lang = EMPTY_STRING, $mode = 'full', $theme = 'default', $width = '100%', $height = '800px', $css_stylesheet = SPAW_STYLESHEET, $dropdown_data = EMPTY_STRING);
$sw->show();
?>
</td>
</tr>
</table>
<a href="<?php
echo olc_href_link(FILENAME_MODULE_NEWSLETTER);
?>
">
<?php
echo olc_image_button('button_back.gif', IMAGE_BACK);
?>
</a>
<right><?php
echo olc_image_submit('button_save.gif', IMAGE_SAVE);
?>
</right>
</form>
<?php
break;
}
// end switch
?>
</td>
</tr>
</table>
示例6: payment
$_SESSION['delivery_zone'] = $order->billing['country']['iso_code_2'];
}
// load all enabled payment modules
require_once DIR_WS_CLASSES . 'payment.php';
$payment_modules = new payment();
$breadcrumb->add(NAVBAR_TITLE_1_CHECKOUT_PAYMENT, olc_href_link(FILENAME_CHECKOUT_SHIPPING, EMPTY_STRING, SSL));
$breadcrumb->add(NAVBAR_TITLE_2_CHECKOUT_PAYMENT, olc_href_link(FILENAME_CHECKOUT_PAYMENT, EMPTY_STRING, SSL));
//W. Kaiser - AJAX
$checkout_payment_text = 'checkout_payment';
$smarty->assign('FORM_ACTION', olc_draw_form($checkout_payment_text, olc_href_link(FILENAME_CHECKOUT_CONFIRMATION, EMPTY_STRING, SSL), 'post', 'onsubmit="return check_form_payment(\'' . $checkout_payment_text . '\');"'));
//W. Kaiser - AJAX
//---PayPal WPP Modification START ---//--
if (!$ec_enabled || $_GET['ec_cancel'] || !($_SESSION['paypal_ec_payer_id'] || $_SESSION['paypal_ec_payer_info'])) {
//---PayPal WPP Modification END ---//--
$smarty->assign('ADDRESS_LABEL', olc_address_label($_SESSION['customer_id'], $_SESSION['billto'], true, BLANK, HTML_BR));
$smarty->assign('BUTTON_ADDRESS', HTML_A_START . olc_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, EMPTY_STRING, SSL) . '">' . olc_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . HTML_A_END);
$smarty->assign('BUTTON_CONTINUE', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
require DIR_WS_INCLUDES . 'header.php';
if (isset($_GET['payment_error']) && is_object(${$_GET['payment_error']}) && ($error = ${$_GET['payment_error']}->get_error())) {
$smarty->assign('error', '<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBoxNotice">
<tr class="infoBoxNoticeContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<td class="main" width="100%" valign="top">' . htmlspecialchars($error['error']) . '</td>
</tr>
</table></td>
</tr>
</table>');
}
$payment_block .= '
<table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
示例7: array
}
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
case 'delete':
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_CUSTOMERS_STATUS . HTML_B_END);
$contents = array('form' => olc_draw_form('status', FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br/><b>' . $cInfo->customers_status_name . HTML_B_END);
if ($remove_status) {
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
}
break;
default:
if (is_object($cInfo)) {
$heading[] = array('text' => HTML_B_START . $cInfo->customers_status_name . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_CUSTOMERS_STATUS, 'page=' . $_GET['page'] . '&cID=' . $cInfo->customers_status_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
$customers_status_inputs_string = '';
$languages = olc_get_languages();
for ($i = 0; $i < sizeof($languages); $i++) {
$customers_status_inputs_string .= HTML_BR . olc_image(DIR_WS_CATALOG . 'lang/' . $languages[$i]['directory'] . '/admin/images/' . $languages[$i]['image'], $languages[$i]['name']) . HTML_NBSP . olc_get_customers_status_name($cInfo->customers_status_id, $languages[$i]['id']);
}
$contents[] = array('text' => $customers_status_inputs_string);
$contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE_INTRO . HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_PRICE . BLANK . $cInfo->customers_status_discount . '%');
$contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_OT_XMEMBER_INTRO . HTML_BR . ENTRY_OT_XMEMBER . BLANK . $customers_status_ot_discount_flag_array[$cInfo->customers_status_ot_discount_flag]['text'] . LPAREN . $cInfo->customers_status_ot_discount_flag . RPAREN . ' - ' . $cInfo->customers_status_ot_discount . '%');
$contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_GRADUATED_PRICES_INTRO . HTML_BR . ENTRY_GRADUATED_PRICES . BLANK . $customers_status_graduated_prices_array[$cInfo->customers_status_graduated_prices]['text'] . LPAREN . $cInfo->customers_status_graduated_prices . RPAREN);
$contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_DISCOUNT_ATTRIBUTES . BLANK . $customers_status_discount_attributes_array[$cInfo->customers_status_discount_attributes]['text'] . LPAREN . $cInfo->customers_status_discount_attributes . RPAREN);
$contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_PAYMENT_UNALLOWED_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_PAYMENT_UNALLOWED . ':<b> ' . $cInfo->customers_status_payment_unallowed . HTML_B_END);
$contents[] = array('text' => HTML_BR . TEXT_INFO_CUSTOMERS_STATUS_SHIPPING_UNALLOWED_INTRO . HTML_BR . ENTRY_CUSTOMERS_STATUS_SHIPPING_UNALLOWED . ':<b> ' . $cInfo->customers_status_shipping_unallowed . HTML_B_END);
}
break;
}
示例8: array
</table></td>
<?php
$heading = array();
$contents = array();
switch ($_GET['action']) {
case 'delete':
$heading[] = array('text' => HTML_B_START . TEXT_INFO_HEADING_DELETE_PAYMENT . HTML_B_END);
$contents = array('form' => olc_draw_form('payment', FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=deleteconfirm'));
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO . HTML_BR);
$contents[] = array('align' => 'center', 'text' => HTML_BR . olc_image_submit('button_delete.gif', IMAGE_DELETE) . BLANK . HTML_A_START . olc_href_link(AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
default:
if (is_object($pInfo)) {
$heading[] = array('text' => '<b>[' . $pInfo->affiliate_payment_id . '] ' . olc_datetime_short($pInfo->affiliate_payment_date) . HTML_B_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . '</a> <a href="' . olc_href_link(FILENAME_AFFILIATE_PAYMENT, olc_get_all_get_params(array('pID', 'action')) . 'pID=' . $pInfo->affiliate_payment_id . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
$contents[] = array('align' => 'center', 'text' => HTML_A_START . olc_href_link(FILENAME_AFFILIATE_INVOICE, 'pID=' . $pInfo->affiliate_payment_id) . '" TARGET="_blank">' . olc_image_button('button_invoice.gif', IMAGE_ORDERS_INVOICE) . '</a> ');
}
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>
</tr>
<?php
}
示例9: unset
unset($_SESSION['customer_country_id']);
unset($_SESSION['customer_zone_id']);
unset($_SESSION['comments']);
unset($_SESSION['user_info']);
unset($_SESSION['customers_status']);
unset($_SESSION['selected_box']);
unset($_SESSION['navigation']);
unset($_SESSION['shipping']);
unset($_SESSION['payment']);
// GV Code Start
unset($_SESSION['gv_id']);
unset($_SESSION['cc_id']);
// GV Code End
$_SESSION['cart']->reset();
$assign_constants = true;
// write customers status guest in session again
//require(DIR_WS_INCLUDES . 'write_customers_status.php');
if ($_GET['admin_logoff']) {
olc_redirect(FILENAME_DEFAULT);
} else {
include_once DIR_FS_INC . 'olc_create_navigation_links.inc.php';
olc_create_navigation_links(true, false);
require DIR_WS_INCLUDES . 'header.php';
//W. Kaiser - AJAX
//W. Kaiser - AJAX
$smarty->assign('BUTTON_CONTINUE', HTML_A_START . olc_href_link(FILENAME_DEFAULT) . '">' . olc_image_button('button_continue.gif', IMAGE_BUTTON_CONTINUE) . HTML_A_END);
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'logoff' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
}
示例10: olc_draw_hidden_field
</table>
</td>
</tr>
<?php
}
?>
</table>
</td>
</tr>
<tr>
<td>
<?php
include DIR_WS_MODULES . 'group_prices.php';
?>
</td>
</tr>
<tr>
<td class="main" align="right">
<?php
if ($have_vpe) {
$have_vpe = TRUE_STRING_S;
} else {
$have_vpe = FALSE_STRING_S;
}
// IMAGE_SAVE,'style="cursor:hand" onclick="javascript:return confirm(\''.SAVE_ENTRY.'\')"') .
echo olc_draw_hidden_field('products_date_added', $pInfo->products_date_added ? $pInfo->products_date_added : date('Y-m-d')) . olc_image_submit('button_save.gif', IMAGE_SAVE, 'style="cursor:hand" onclick="javascript:return check_product_form(' . $have_vpe . ')"') . ' <a href="' . olc_href_link(FILENAME_CATEGORIES, 'cPath=' . $cPath . '&pID=' . $pID) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END;
?>
</td>
</tr>
</table>
</form>
示例11: olc_get_all_get_params
include 'includes/application_top.php';
// include needed functions
require_once DIR_FS_INC . 'olc_break_string.inc.php';
require_once DIR_FS_INC . 'olc_date_long.inc.php';
require_once DIR_FS_INC . 'olc_image_button.inc.php';
// lets retrieve all $HTTP_GET_VARS keys and values..
$get_params = olc_get_all_get_params(array('reviews_id'));
$get_params = substr($get_params, 0, -1);
//remove trailing &
$reviews_query = olc_db_query("select rd.reviews_text, r.reviews_rating, r.reviews_id, r.products_id, r.customers_name, r.date_added, r.last_modified, r.reviews_read, p.products_id, pd.products_name, p.products_image from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd left join " . TABLE_PRODUCTS . " p on (r.products_id = p.products_id) left join " . TABLE_PRODUCTS_DESCRIPTION . " pd on (p.products_id = pd.products_id and pd.language_id = '" . SESSION_LANGUAGE_ID . "') where r.reviews_id = '" . (int) $_GET['reviews_id'] . "' and r.reviews_id = rd.reviews_id and p.products_status = '1'");
if (!olc_db_num_rows($reviews_query)) {
olc_redirect(olc_href_link(FILENAME_REVIEWS));
}
$reviews = olc_db_fetch_array($reviews_query);
$breadcrumb->add(NAVBAR_TITLE_PRODUCT_REVIEWS, olc_href_link(FILENAME_PRODUCT_REVIEWS, $get_params));
olc_db_query(SQL_UPDATE . TABLE_REVIEWS . " set reviews_read = reviews_read+1 where reviews_id = '" . $reviews['reviews_id'] . APOS);
$reviews_text = olc_break_string(htmlspecialchars($reviews['reviews_text']), 60, '-<br/>');
require DIR_WS_INCLUDES . 'header.php';
$smarty->assign('PRODUCTS_NAME', $reviews['products_name']);
$smarty->assign('AUTHOR', $reviews['customers_name']);
$smarty->assign('DATE', olc_date_long($reviews['date_added']));
$smarty->assign('REVIEWS_TEXT', nl2br($reviews_text));
$smarty->assign('RATING', olc_image(DIR_WS_IMAGES . 'stars_' . $reviews['reviews_rating'] . '.gif', sprintf(BOX_REVIEWS_TEXT_OF_5_STARS, $reviews['reviews_rating'])));
$link = olc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $reviews['products_id'], NONSSL, false, true, false);
$smarty->assign('PRODUCTS_LINK', $link);
$smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link(FILENAME_PRODUCT_REVIEWS, $get_params) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END);
$smarty->assign('PRODUCTS_BUTTON_BUY_NOW', HTML_A_START . olc_href_link(FILENAME_DEFAULT, 'action=buy_now&BUYproducts_id=' . $reviews['products_id']) . '">' . olc_image_button('button_in_cart.gif', IMAGE_BUTTON_IN_CART) . HTML_A_END);
$smarty->assign('IMAGE', HTML_A_START . 'javascript:popupImageWindow(\'' . olc_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $reviews['products_id']) . '\')">' . olc_image(DIR_WS_THUMBNAIL_IMAGES . $reviews['products_image'], $reviews['products_name'], '', '', 'align="center" hspace="5" vspace="5"') . '<br/></a>');
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'product_reviews_info' . HTML_EXT, SMARTY_CACHE_ID);
require BOXES;
$smarty->display(INDEX_HTML);
示例12: array
$contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_SORT_ORDER . HTML_BR . olc_draw_input_field('sort_order', $lInfo->sort_order));
if (DEFAULT_LANGUAGE != $lInfo->code) {
$contents[] = array($text_text => HTML_BR . olc_draw_checkbox_field('default') . BLANK . TEXT_SET_DEFAULT);
}
$contents[] = array('align' => 'center', $text_text => HTML_BR . olc_image_submit('button_update.gif', IMAGE_UPDATE) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
case 'delete':
$heading[] = array($text_text => HTML_B_START . TEXT_INFO_HEADING_DELETE_LANGUAGE . HTML_B_END);
$contents[] = array($text_text => TEXT_INFO_DELETE_INTRO);
$contents[] = array($text_text => '<br/><b>' . $lInfo->name . HTML_B_END);
$contents[] = array('align' => 'center', $text_text => HTML_BR . ($remove_language ? HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=deleteconfirm') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END : EMPTY_STRING) . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params) . '">' . olc_image_button('button_cancel.gif', IMAGE_CANCEL) . HTML_A_END);
break;
default:
if (is_object($lInfo)) {
$heading[] = array($text_text => HTML_B_START . $lInfo->name . HTML_B_END);
$contents[] = array('align' => 'center', $text_text => HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=edit') . '">' . olc_image_button('button_edit.gif', IMAGE_EDIT) . HTML_A_END . BLANK . HTML_A_START . olc_href_link(FILENAME_LANGUAGES, $params . '&action=delete') . '">' . olc_image_button('button_delete.gif', IMAGE_DELETE) . HTML_A_END);
$contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_NAME . BLANK . $lInfo->name);
$contents[] = array($text_text => TEXT_INFO_LANGUAGE_CODE . BLANK . $lInfo->code);
$contents[] = array($text_text => TEXT_INFO_LANGUAGE_CHARSET_INFO . BLANK . $lInfo->language_charset);
$lang_dir = 'lang/';
$contents[] = array($text_text => HTML_BR . olc_image(ADMIN_PATH_PREFIX . $lang_dir . $lInfo->directory . SLASH . $lInfo->image, $lInfo->name));
$contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_DIRECTORY . HTML_BR . $lang_dir . HTML_B_START . $lInfo->directory . HTML_B_END);
$contents[] = array($text_text => HTML_BR . TEXT_INFO_LANGUAGE_SORT_ORDER . BLANK . $lInfo->sort_order);
}
break;
}
if (olc_not_null($heading) && olc_not_null($contents)) {
$box = new box();
echo ' <td width="25%" valign="top">' . NEW_LINE;
echo $box->infoBox($heading, $contents);
echo ' </td>' . NEW_LINE;
示例13: olc_draw_separator
<td class="pageHeading" align="right"><?php
echo olc_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT);
?>
</td>
<?php
if ($_GET['acID'] > 0) {
?>
<td class="pageHeading" align="right"><?php
echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE_STATISTICS, olc_get_all_get_params(array('action'))) . '">' . olc_image_button('button_back.gif', IMAGE_BACK) . HTML_A_END;
?>
</td>
<?php
} else {
?>
<td class="pageHeading" align="right"><?php
echo HTML_A_START . olc_href_link(FILENAME_AFFILIATE_SUMMARY, '') . '">' . olc_image_button('button_back.gif', IMAGE_BACK) . HTML_A_END;
?>
</td>
<?php
}
?>
</tr>
</table></td>
</tr>
<tr>
<td><table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr class="dataTableHeadingRow">
<td class="dataTableHeadingContent"><?php
echo TABLE_HEADING_AFFILIATE_USERNAME . '/<br/>' . TABLE_HEADING_IPADDRESS;
示例14: olc_address_label
}
$address_label .= $paypal_ec_payer_info['ship_city'] . COMMA_BLANK . $paypal_ec_payer_info['ship_state'] . BLANK . $paypal_ec_payer_info['ship_postal_code'] . HTML_BR;
$address_label .= $paypal_ec_payer_info['ship_country_name'];
} else {
$address_label = olc_address_label(CUSTOMER_ID, $sendto, true, BLANK, HTML_BR);
}
//---PayPal WPP Modification END ---//--
$smarty->assign('ADDRESS_LABEL', $address_label);
//---PayPal WPP Modification START ---//--
if ($ec_checkout && $ec_enabled) {
$link = olc_href_link(FILENAME_EC_PROCESS, 'clearSess=1', SSL);
} else {
$link = olc_href_link(FILENAME_CHECKOUT_SHIPPING_ADDRESS, EMPTY_STRING, SSL);
}
//---PayPal WPP Modification END ---//--
$smarty->assign('BUTTON_ADDRESS', HTML_A_START . $link . '">' . olc_image_button('button_change_address.gif', IMAGE_BUTTON_CHANGE_ADDRESS) . HTML_A_END);
$smarty->assign('BUTTON_CONTINUE', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
if ($shipping_modules_count > 0) {
//---PayPal WPP Modification START ---//--
if ($ec_enabled) {
if (!$ec_checkout) {
$smarty->assign('BUTTON_EC_CHECKOUT_TEXT', TEXT_PAYPALWPP_EC_HEADER);
$smarty->assign('BUTTON_EC_CHECKOUT_DESCRIPTION_TEXT', TEXT_PAYPALWPP_EC_BUTTON_DESCRIPTION_TEXT);
$smarty->assign('BUTTON_EC_CHECKOUT', HTML_A_START . olc_href_link(FILENAME_EC_PROCESS, EMPTY_STRING, SSL) . '">' . '<img border="0" src="' . MODULE_PAYMENT_PAYPAL_EC_BUTTON_URL . '" title="' . TEXT_PAYPALWPP_EC_BUTTON_TEXT . '"></a>');
require_once DIR_WS_CLASSES . 'order_total.php';
// GV Code ICW ADDED FOR CREDIT CLASS SYSTEM
$order_total_modules = new order_total();
// GV Code ICW ADDED FOR CREDIT CLASS SYSTEM
}
}
//---PayPal WPP Modification END ---//
示例15: switch
switch ($_GET['type']) {
case 'yearly':
echo olc_banner_graph_yearly($_GET['bID']);
break;
case 'monthly':
echo olc_banner_graph_monthly($_GET['bID']);
break;
default:
case 'daily':
echo olc_banner_graph_daily($_GET['bID']);
break;
}
}
?>
</td>
</tr>
<tr>
<td><?php
echo olc_draw_separator('pixel_trans.gif', '1', '10');
?>
</td>
</tr>
<tr>
<td class="main" align="right"><?php
echo HTML_A_START . olc_href_link(FILENAME_BANNER_MANAGER, 'page=' . $_GET['page'] . '&bID=' . $_GET['bID']) . '">' . olc_image_button('button_back.gif', IMAGE_BACK) . HTML_A_END;
?>
</td>
</tr>
</table></td>
<?php
require DIR_WS_INCLUDES . 'application_bottom.php';