本文整理汇总了PHP中olc_href_link函数的典型用法代码示例。如果您正苦于以下问题:PHP olc_href_link函数的具体用法?PHP olc_href_link怎么用?PHP olc_href_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了olc_href_link函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: olc_catalog_href_link
function olc_catalog_href_link($page = '', $parameters = '', $connection = NONSSL, $add_session_id = false, $search_engine_safe = false, $create_ajax_link = true)
{
global $use_catalog_link;
$use_catalog_link = true;
return olc_href_link($page, $parameters, $connection, $add_session_id, $search_engine_safe, $create_ajax_link);
$use_catalog_link = false;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:7,代码来源:html_output.php
示例2: olc_create_navigation_links
function olc_create_navigation_links($cart_is_filled, $is_logogff)
{
global $smarty;
$sep = HTML_NBSP . "|" . HTML_NBSP;
$a_end = '">';
$index = "index";
if ($cart_is_filled) {
require_once DIR_FS_INC . 'olc_get_smarty_config_variable.inc.php';
$my_navigation = HTML_A_START . olc_href_link(FILENAME_SHOPPING_CART) . $a_end . olc_get_smarty_config_variable($smarty, $index, "link_cart") . HTML_A_END;
$my_navigation .= $sep . HTML_A_START . olc_href_link(FILENAME_CHECKOUT_SHIPPING) . $a_end . olc_get_smarty_config_variable($smarty, $index, "link_checkout") . HTML_A_END;
}
$login_link = HTML_A_START . olc_href_link(FILENAME_LOGIN) . $a_end . olc_get_smarty_config_variable($smarty, $index, "link_login") . HTML_A_END;
if ($my_navigation) {
$my_navigation .= $sep;
}
if ($is_logogff) {
$my_navigation .= $login_link;
} else {
if (ISSET_CUSTOMER_ID) {
$my_navigation .= HTML_A_START . olc_href_link(FILENAME_LOGOFF) . $a_end . olc_get_smarty_config_variable($smarty, $index, "link_logoff") . HTML_A_END;
if (CUSTOMER_STATUS_ID != DEFAULT_CUSTOMERS_STATUS_ID_GUEST) {
$my_navigation .= $sep . HTML_A_START . olc_href_link(FILENAME_ACCOUNT) . $a_end . olc_get_smarty_config_variable($smarty, $index, "link_account") . HTML_A_END;
}
} else {
$my_navigation .= $login_link;
}
}
$my_navigation .= HTML_NBSP;
$smarty->assign(BOX_NAVIGATION, $my_navigation);
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:30,代码来源:053.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: get_category_tree
function get_category_tree($parent_id = '0', $spacing = EMPTY_STRING, $exclude = EMPTY_STRING, $category_tree_array = EMPTY_STRING, $include_itself = false, $cPath = EMPTY_STRING)
{
if ($parent_id == 0) {
$cPath = EMPTY_STRING;
} else {
$cPath .= $parent_id . '_';
}
if (!is_array($category_tree_array)) {
$category_tree_array = array();
}
if (sizeof($category_tree_array) < 1 && $exclude != '0') {
$category_tree_array[] = array('id' => '0', 'text' => TEXT_TOP);
}
if ($include_itself) {
$category_query = olc_db_query("\n\t\t\tselect cd.categories_name\n\t\t\tfrom " . TABLE_CATEGORIES_DESCRIPTION . " cd\n\t\t\tWHERE c.categories_status = '1' AND cd.language_id = '" . SESSION_LANGUAGE_ID . "'\n\t\t\tand cd.categories_id = '" . $parent_id . APOS);
$category = olc_db_fetch_array($category_query);
$category_tree_array[] = array('id' => $parent_id, 'text' => $category['categories_name']);
}
$categories_query = olc_db_query("\n\t\tselect\n\t\tc.categories_id,\n\t\tcd.categories_name,\n\t\tc.parent_id\n\t\tfrom " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd\n\t\twhere c.categories_id = cd.categories_id\n\t\tand cd.language_id = '" . SESSION_LANGUAGE_ID . "'\n\t\tand c.parent_id = '" . $parent_id . "'\n\t\tand c.categories_status = '1'\n\t\torder by c.sort_order, cd.categories_name");
while ($categories = olc_db_fetch_array($categories_query)) {
$categories_id = $categories['categories_id'];
if ($exclude != $categories_id) {
$category_tree_array[] = array('id' => $categories_id, 'text' => $spacing . $categories['categories_name'], 'link' => olc_href_link(FILENAME_DEFAULT, 'cPath=' . $cPath . $categories_id, NONSSL, false, true, false), 'pcount' => olc_count_products_in_category($categories_id));
$category_tree_array = get_category_tree($categories_id, $spacing . ' ', $exclude, $category_tree_array, false, $cPath);
}
}
return $category_tree_array;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:28,代码来源:sitemap.php
示例5: olc_customer_greeting
function olc_customer_greeting()
{
if (CUSTOMER_ID) {
$greeting_string = sprintf(TEXT_GREETING_PERSONAL, trim($_SESSION['customer_first_name'] . BLANK . $_SESSION['customer_last_name']), olc_href_link(FILENAME_PRODUCTS_NEW));
} else {
$greeting_string = sprintf(TEXT_GREETING_GUEST, olc_href_link(FILENAME_LOGIN, EMPTY_STRING, SSL), olc_href_link(FILENAME_CREATE_ACCOUNT, EMPTY_STRING, SSL));
}
return $greeting_string;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:9,代码来源:059.php
示例6: olc_create_sort_heading
function olc_create_sort_heading($sortby, $colnum, $heading)
{
$sort_prefix = '';
$sort_suffix = '';
if ($sortby) {
$sort_prefix = HTML_A_START . olc_href_link(CURRENT_SCRIPT, olc_get_all_get_params(array('page', 'info', 'sort')) . 'page=1&sort=' . $colnum . ($sortby == $colnum . 'a' ? 'd' : 'a')) . '" title="' . TEXT_SORT_PRODUCTS . ($sortby == $colnum . 'd' || substr($sortby, 0, 1) != $colnum ? TEXT_ASCENDINGLY : TEXT_DESCENDINGLY) . TEXT_BY . $heading . '" class="productListing-heading">';
$sort_suffix = (substr($sortby, 0, 1) == $colnum ? substr($sortby, 1, 1) == 'a' ? '+' : '-' : '') . HTML_A_END;
}
return $sort_prefix . $heading . $sort_suffix;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:10,代码来源:257.php
示例7: menuBox
function menuBox($heading, $contents)
{
$this->table_data_parameters = 'class="menuBoxHeading"';
$heading_link = $heading[0]['link'];
$heading_text = $heading[0]['text'];
if ($heading_link) {
$heading_text = HTML_A_START . olc_href_link($heading_link) . '" class="menuBoxHeadingLink">' . $heading_text . HTML_A_END;
}
$heading[0]['text'] = HTML_NBSP . $heading_text . HTML_NBSP;
$this->heading = $this->tableBlock($heading);
$this->table_data_parameters = 'class="menuBoxContent"';
$this->contents = $this->tableBlock($contents);
return $this->heading . $this->contents;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:14,代码来源:box.php
示例8: 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
示例9: olc_draw_form
function olc_draw_form($name, $action, $method = 'post', $action_parameters = '', $form_parameters = '')
{
//W. Kaiser - AJAX
//QUOTE='"';
$html_quot = '"';
$form_name = olc_parse_input_field_data($name, array(QUOTE => $html_quot));
$method_par = olc_parse_input_field_data($method, array(QUOTE => $html_quot));
$action_par = olc_parse_input_field_data($action, array(QUOTE => $html_quot));
if (IS_ADMIN_FUNCTION) {
//Note: the admin prog modules use different calling parameter order!
$form = $action_parameters;
$action_parameters = $method_par;
$method_par = $form;
$action_par = olc_href_link($action, $action_parameters, NONSSL, true, true, false);
$action_parameters = EMPTY_STRING;
} else {
$form_parameters = $action_parameters;
}
if ($method_par == EMPTY_STRING) {
$method_par = "post";
}
if ($form_parameters != EMPTY_STRING) {
$form_parameters = BLANK . $form_parameters;
}
if (USE_AJAX) {
//Remove AJAX Javascript routine from "action"-url, as we need it in its original form for the xhttprequest
/*
if ((strpos($action_par, AJAX_REQUEST_FUNC_START) !== false))
{
$action_par = str_replace(AJAX_REQUEST_FUNC_START, EMPTY_STRING, $action_par);
$action_par = str_replace(AJAX_REQUEST_FUNC_END, EMPTY_STRING, $action_par);
}
*/
$onsubmit = "onsubmit";
if (strpos(strtolower($form_parameters), strtolower($onsubmit)) === false) {
$form_parameters .= BLANK . $onsubmit . '="return make_AJAX_Request_POST(\'' . $name . '\',\'' . $action_par . '\');"';
}
$form_name .= '" id="' . $form_name;
}
//W. Kaiser - AJAX
$form = '<form name="' . $form_name . '" action="' . $action_par . '" method="' . $method_par . QUOTE . $form_parameters . '>';
return $form;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:43,代码来源:096.php
示例10: display_links
function display_links($query_numrows, $max_rows_per_page, $max_page_links, $current_page_number, $parameters = '', $page_name = 'page')
{
if (olc_not_null($parameters) && substr($parameters, -1) != '&') {
$parameters .= '&';
}
// calculate number of pages needing links
$num_pages = ceil($query_numrows / $max_rows_per_page);
$pages_array = array();
for ($i = 1; $i <= $num_pages; $i++) {
$pages_array[] = array('id' => $i, 'text' => $i);
}
if ($num_pages > 1) {
$display_links = olc_draw_form('pages', CURRENT_SCRIPT, '', 'get');
if ($current_page_number > 1) {
$display_links .= HTML_A_START . olc_href_link(CURRENT_SCRIPT, $parameters . $page_name . '=' . ($current_page_number - 1), NONSSL) . '" class="splitPageLink">' . PREVNEXT_BUTTON_PREV . '</a> ';
} else {
$display_links .= PREVNEXT_BUTTON_PREV . ' ';
}
$display_links .= sprintf(TEXT_RESULT_PAGE, olc_draw_pull_down_menu($page_name, $pages_array, $current_page_number, 'onchange="this.form.submit();"'), $num_pages);
if ($current_page_number < $num_pages && $num_pages != 1) {
$display_links .= ' <a href="' . olc_href_link(CURRENT_SCRIPT, $parameters . $page_name . '=' . ($current_page_number + 1), NONSSL) . '" class="splitPageLink">' . PREVNEXT_BUTTON_NEXT . HTML_A_END;
} else {
$display_links .= ' ' . PREVNEXT_BUTTON_NEXT;
}
if ($parameters != '') {
if (substr($parameters, -1) == '&') {
$parameters = substr($parameters, 0, -1);
}
$pairs = explode('&', $parameters);
while (list(, $pair) = each($pairs)) {
list($key, $value) = explode('=', $pair);
$display_links .= olc_draw_hidden_field(rawurldecode($key), rawurldecode($value));
}
}
if (SID) {
$display_links .= olc_draw_hidden_field(session_name(), session_id());
}
$display_links .= '</form>';
} else {
$display_links = sprintf(TEXT_RESULT_PAGE, $num_pages, $num_pages);
}
return $display_links;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:43,代码来源:split_page_results.php
示例11: olc_show_category_content
function olc_show_category_content($counter)
{
global $foo, $categories_string, $id;
for ($a = 0; $a < $foo[$counter]['level']; $a++) {
$categories_string .= " ";
}
$categories_string .= HTML_A_START;
if ($foo[$counter]['parent'] == 0) {
$cPath = $counter;
} else {
$cPath = $foo[$counter]['path'];
}
$cPath_new = 'cPath=' . $cPath;
$categories_string .= olc_href_link(FILENAME_DEFAULT, $cPath_new) . '">';
if ($id && in_array($counter, $id)) {
$categories_string .= HTML_B_START;
}
// display category name
$categories_string .= $foo[$counter]['name'];
if ($id && in_array($counter, $id)) {
$categories_string .= HTML_B_END;
}
if (olc_has_category_subcategories($counter)) {
$categories_string .= '->';
}
$categories_string .= HTML_A_END;
if (SHOW_COUNTS == TRUE_STRING_S) {
$products_in_category = olc_count_products_in_category($counter);
if ($products_in_category > 0) {
$categories_string .= ' (' . $products_in_category . RPAREN;
}
}
$categories_string .= HTML_BR;
if ($foo[$counter]['next_id']) {
olc_show_category_content($foo[$counter]['next_id']);
}
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:37,代码来源:234.php
示例12: SPAW_Wysiwyg
</td>
</tr>
<tr>
<td width="10%" valign="top"><?php
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
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:module_newsletter.php
示例13: olc_db_query
} else {
$smarty->assign('GLOBAL_NOTIFICATION', '1');
}
if ($global['global_product_notifications'] != '1') {
$products_check_query = olc_db_query("select count(*) as total from " . TABLE_PRODUCTS_NOTIFICATIONS . " where customers_id = '" . (int) $_SESSION['customer_id'] . APOS);
$products_check = olc_db_fetch_array($products_check_query);
if ($products_check['total'] > 0) {
$counter = 0;
$notifications_products = '<table width="100%" border="0" cellspacing="0" cellpadding="0">';
$products_query = olc_db_query("select pd.products_id, pd.products_name from " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_PRODUCTS_NOTIFICATIONS . " pn where pn.customers_id = '" . (int) $_SESSION['customer_id'] . "' and pn.products_id = pd.products_id and pd.language_id = '" . SESSION_LANGUAGE_ID . "' order by pd.products_name");
while ($products = olc_db_fetch_array($products_query)) {
$notifications_products .= '
<tr class="moduleRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="javascript:checkBox(\'products[' . $counter . ']\')">
<td class="main" width="30">' . olc_draw_checkbox_field('products[' . $counter . ']', $products['products_id'], true, 'onclick="javascript:checkBox(\'products[' . $counter . ']\')"') . '</td>
<td class="main"><b>' . $products['products_name'] . '</b></td>
</tr> ';
$counter++;
}
$notifications_products .= '</table>';
$smarty->assign('PRODUCTS_NOTIFICATION', $notifications_products);
} else {
}
}
$smarty->assign('FORM_ACTION', olc_draw_form('account_notifications', olc_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', SSL)) . olc_draw_hidden_field('action', 'process'));
$smarty->assign('BUTTON_BACK', HTML_A_START . olc_href_link(FILENAME_ACCOUNT, '', SSL) . '">' . olc_image_button('button_back.gif', IMAGE_BUTTON_BACK) . HTML_A_END);
$smarty->assign('BUTTON_CONTINUE', olc_image_submit('button_continue.gif', IMAGE_BUTTON_CONTINUE));
$main_content = $smarty->fetch(CURRENT_TEMPLATE_MODULE . 'account_notifications' . HTML_EXT, SMARTY_CACHE_ID);
$smarty->assign(MAIN_CONTENT, $main_content);
require BOXES;
$smarty->display(INDEX_HTML);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:account_notifications.php
示例14: draw_href_link
function draw_href_link($ppURLText, $ppURLParams = '', $ppURL = FILENAME_PAYPAL, $js = true)
{
//$ppURL = olc_href_link(FILENAME_PAYPAL,'action=details&info='.$ppTxnID);
$ppURL = olc_href_link($ppURL, $ppURLParams);
if ($js === true) {
$ppScriptLink = '<script language="javascript" type="text/javascript"><!--
document.write("<a style=\\"color: #0033cc; text-decoration: none;\\" href=\\"javascript:openWindow(\'' . $ppURL . '\');\\" tabindex=\\"-1\\">' . $ppURLText . '</a>");
--></script><noscript><a style="text-decoration: none;" href="' . $ppURL . '" target="PayPal">' . $ppURLText . '</a></noscript>';
} else {
$ppScriptLink = '<a style="text-decoration: none;" href="' . $ppURL . '" target="PayPal">' . $ppURLText . HTML_A_END;
}
return $ppScriptLink;
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:13,代码来源:Page.class.php
示例15: create_coupon_code
$coupon_code = create_coupon_code();
$insert_query = olc_db_query(INSERT_INTO . TABLE_COUPONS . " (coupon_code, coupon_type, coupon_amount, date_created) values ('" . $coupon_code . "', 'G', '" . NEW_SIGNUP_GIFT_VOUCHER_AMOUNT . "', now())");
$insert_id = olc_db_insert_id($insert_query);
$insert_query = olc_db_query(INSERT_INTO . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $insert_id . "', '0', 'Admin', '" . $customers_email_address . "', now() )");
$html_mail .= '<br/><br/>' . sprintf(EMAIL_GV_INCENTIVE_HEADER, $currencies->format(NEW_SIGNUP_GIFT_VOUCHER_AMOUNT)) . "<br/><br/>" . sprintf(EMAIL_GV_REDEEM, $coupon_code) . "<br/><br/>" . EMAIL_GV_LINK . olc_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $coupon_code, NONSSL, false) . "<br/><br/>";
$txt_mail .= "\n\n" . sprintf(EMAIL_GV_INCENTIVE_HEADER, $currencies->format(NEW_SIGNUP_GIFT_VOUCHER_AMOUNT)) . "\n\n" . sprintf(EMAIL_GV_REDEEM, $coupon_code) . "\n\n" . EMAIL_GV_LINK . olc_href_link(FILENAME_GV_REDEEM, 'gv_no=' . $coupon_code, NONSSL, false) . "\n\n";
}
if (NEW_SIGNUP_DISCOUNT_COUPON != '') {
$coupon_code = NEW_SIGNUP_DISCOUNT_COUPON;
$coupon_query = olc_db_query("select * from " . TABLE_COUPONS . " where coupon_code = '" . $coupon_code . APOS);
$coupon = olc_db_fetch_array($coupon_query);
$coupon_id = $coupon['coupon_id'];
$coupon_desc_query = olc_db_query("select * from " . TABLE_COUPONS_DESCRIPTION . " where coupon_id = '" . $coupon_id . "' and language_id = '" . (int) $_SESSION['languages_id'] . APOS);
$coupon_desc = olc_db_fetch_array($coupon_desc_query);
$insert_query = olc_db_query(INSERT_INTO . TABLE_COUPON_EMAIL_TRACK . " (coupon_id, customer_id_sent, sent_firstname, emailed_to, date_sent) values ('" . $coupon_id . "', '0', 'Admin', '" . $customers_email_address . "', now() )");
$html_mail .= "<br/><br/>" . EMAIL_COUPON_INCENTIVE_HEADER . HTML_BR . sprintf("%s", $coupon_desc['coupon_description']) . "<br/><br/>" . sprintf(EMAIL_COUPON_REDEEM, $coupon['coupon_code']) . "<br/><br/>" . "<br/><br/>";
$txt_mail .= "\n\n" . EMAIL_COUPON_INCENTIVE_HEADER . NEW_LINE . sprintf("%s", $coupon_desc['coupon_description']) . "\n\n" . sprintf(EMAIL_COUPON_REDEEM, $coupon['coupon_code']) . "\n\n" . "\n\n";
}
// ICW - CREDIT CLASS CODE BLOCK ADDED ******************************************************* END
// GV Code End
// W. Kaiser - eMail-type by customer
olc_php_mail(EMAIL_SUPPORT_ADDRESS, EMAIL_SUPPORT_NAME, $customers_email_address, $name, EMAIL_SUPPORT_FORWARDING_STRING, EMAIL_SUPPORT_REPLY_ADDRESS, EMAIL_SUPPORT_REPLY_ADDRESS_NAME, '', '', EMAIL_SUPPORT_SUBJECT, $html_mail, $txt_mail, $customers_email_type);
// W. Kaiser - eMail-type by customer
if (!isset($mail_error)) {
olc_redirect(olc_href_link(FILENAME_SHOPPING_CART));
}
}
}
// W. Kaiser - Common code for "create_account.php" and "customers.php"
include DIR_FS_INC . 'olc_show_customer_data_form.inc.php';
// W. Kaiser - Common code for "create_account.php" and "customers.php"
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:create_account.php
示例16: 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];
$auction_endprice = olc_format_price($auction_endprice, 1, 1, 1);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:auctions_list_cancel.php
示例17: olc_db_query
}
$sql_command .= ");";
olc_db_query($sql_command);
$time_end = microtime_float();
$time = $time_end - $time_start;
$main_content = '<br/><b>' . $blzs . ' Datensätze wurden aus Datei: \'' . $filename . ' \' aktualisiert.</b><br/><br/>';
if ($old_status != EMPTY_STRING) {
$main_content .= 'Alter Stand: ' . $old_status . HTML_BR;
}
$pos = strrpos($filename, '.');
$main_content .= 'Neuer Stand: ' . substr($filename, 0, $pos) . "<br/><br/>";
} else {
$err_message = 'Keine BLZ-Daten in Datei \'' . $upload_dir . '/' . $filename . '\' gefunden';
}
} else {
$button_continue = HTML_A_START . olc_href_link(CURRENT_SCRIPT, 'full=1&ignorestatus=true', NONSSL) . '">' . olc_template_image_button('button_continue.gif', 'Weiter mit dem BLZ-Update') . HTML_A_END;
$err_message = '<div class="main"><br/>
Die BLZ-Datenbank hat schon den aktuellen Stand <b>"' . $old_status . '"</b>.
<p>Trotzdem weiter?</p>
<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td class="main" align="left" valign="bottom">' . $button_back . ' </td>
<td class="main" align="right" valign="bottom"><b><font color="#FF0000">Die Bearbeitung kann 3 bis 5 Minuten dauern!
Bitte keinesfalls unterbrechen!<br/>
</font></b><br/>' . $button_continue . '</td>
</tr>
</table>
</div>
';
echo $err_message;
exit;
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:blz_update.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: abs
$products_price = abs(olc_get_products_price($prid, $price_special = 0, $quantity = 1));
$price_raw += $products_price;
$products[] = array('id' => $products_id, 'name' => $current_product['products_name'], 'model' => $current_product['products_model'], 'image' => $current_product['products_image'], 'price' => $current_product_price, 'discount_allowed' => $current_product['products_discount_allowed'], 'quantity' => $products_basket['customers_basket_quantity'], 'weight' => $current_product['products_weight'], 'final_price' => $products_price, 'tax_class_id' => $current_product['products_tax_class_id']);
}
}
$show_saved_cart = true;
$module_content_save = $module_content;
include_once DIR_WS_MODULES . 'order_details_cart.php';
$module_content = $module_content_save;
$show_saved_cart = false;
}
} else {
$parameters = 'basket_id=' . $basket_id;
$cart_content = EMPTY_STRING;
}
$link = olc_href_link(CURRENT_SCRIPT, $parameters);
$date = $basket['basket_date_added'];
$date = substr($date, 6, 2) . DOT . substr($date, 4, 2) . DOT . substr($date, 0, 4);
$module_content[] = array('show_order_details' => $show_order_details, 'BOX_SELECT' => olc_draw_radio_field('cart_select[]', $basket_id, $selected), 'NAME' => $basket['basket_name'], 'DATE' => $date, 'BOX_DELETE' => olc_draw_checkbox_field('cart_delete[]', $basket_id), 'LINK' => $link);
}
} else {
$error_message = olc_get_smarty_config_variable($smarty, 'shopping_cart', 'text_no_saved_cart');
}
$cart_restore_text = 'cart_restore';
if ($error_message) {
$module_smarty->assign('ERROR_MESSAGE', $error_message);
} else {
$module_smarty->assign(MODULE_CONTENT, $module_content);
if ($bid) {
$MODULE_order_details_text = 'MODULE_order_details';
$module_smarty->assign($MODULE_order_details_text, $smarty->_tpl_vars[$MODULE_order_details_text]);
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:31,代码来源:cart_restore.php
示例20: before_process
function before_process()
{
if ($_POST['x_response_code'] != '1') {
if (USE_AJAX) {
ajax_error(MODULE_PAYMENT_2CHECKOUT_TEXT_ERROR_MESSAGE);
} else {
olc_redirect(olc_href_link(FILENAME_CHECKOUT_PAYMENT, 'error_message=' . urlencode(MODULE_PAYMENT_2CHECKOUT_TEXT_ERROR_MESSAGE), SSL, true, false));
}
}
}
开发者ID:BackupTheBerlios,项目名称:ol-commerce-svn,代码行数:10,代码来源:pm2checkout.php
注:本文中的olc_href_link函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论