本文整理汇总了PHP中xos_href_link函数的典型用法代码示例。如果您正苦于以下问题:PHP xos_href_link函数的具体用法?PHP xos_href_link怎么用?PHP xos_href_link使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了xos_href_link函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: display_links
function display_links($max_page_links, $parameters = '')
{
global $request_type;
$display_links_string = '';
if (xos_not_null($parameters) && substr($parameters, -1) != '&') {
$parameters .= '&';
}
// previous button
if ($this->current_page_number > 1) {
$display_links_string .= '<li><a href="' . xos_href_link(basename($_SERVER['PHP_SELF']), $parameters . $this->page_name . '=' . ($this->current_page_number - 1), $request_type) . '" class="page-results" title=" ' . PREVNEXT_TITLE_PREVIOUS_PAGE . ' ">' . PREVNEXT_BUTTON_PREV . '</a></li>';
} elseif ($this->number_of_pages != 1) {
$display_links_string .= '<li class="disabled"><span><span aria-hidden="true">' . PREVNEXT_BUTTON_PREV . '</span></span></li>';
}
// check if number_of_pages > $max_page_links
$cur_window_num = intval($this->current_page_number / $max_page_links);
if ($this->current_page_number % $max_page_links) {
$cur_window_num++;
}
$max_window_num = intval($this->number_of_pages / $max_page_links);
if ($this->number_of_pages % $max_page_links) {
$max_window_num++;
}
// previous window of pages
if ($cur_window_num > 1) {
$display_links_string .= '<li><a href="' . xos_href_link(basename($_SERVER['PHP_SELF']), $parameters . $this->page_name . '=' . ($cur_window_num - 1) * $max_page_links, $request_type) . '" class="page-results" title=" ' . sprintf(PREVNEXT_TITLE_PREV_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a></li>';
}
// page nn button
for ($jump_to_page = 1 + ($cur_window_num - 1) * $max_page_links; $jump_to_page <= $cur_window_num * $max_page_links && $jump_to_page <= $this->number_of_pages; $jump_to_page++) {
if ($jump_to_page == $this->current_page_number) {
if ($this->number_of_pages > 1) {
$display_links_string .= '<li class="active"><span>' . $jump_to_page . '<span class="sr-only">(current)</span></span></li>';
}
} else {
$display_links_string .= '<li><a href="' . xos_href_link(basename($_SERVER['PHP_SELF']), $parameters . $this->page_name . '=' . $jump_to_page, $request_type) . '" class="page-results" title=" ' . sprintf(PREVNEXT_TITLE_PAGE_NO, $jump_to_page) . ' ">' . $jump_to_page . '</a></li>';
}
}
// next window of pages
if ($cur_window_num < $max_window_num) {
$display_links_string .= '<li><a href="' . xos_href_link(basename($_SERVER['PHP_SELF']), $parameters . $this->page_name . '=' . ($cur_window_num * $max_page_links + 1), $request_type) . '" class="page-results" title=" ' . sprintf(PREVNEXT_TITLE_NEXT_SET_OF_NO_PAGE, $max_page_links) . ' ">...</a></li>';
}
// next button
if ($this->current_page_number < $this->number_of_pages) {
$display_links_string .= '<li><a href="' . xos_href_link(basename($_SERVER['PHP_SELF']), $parameters . 'page=' . ($this->current_page_number + 1), $request_type) . '" class="page-results" title=" ' . PREVNEXT_TITLE_NEXT_PAGE . ' ">' . PREVNEXT_BUTTON_NEXT . '</a></li>';
} elseif ($this->number_of_pages != 1) {
$display_links_string .= '<li class="disabled"><span><span aria-hidden="true">' . PREVNEXT_BUTTON_NEXT . '</span></span></li>';
}
return $display_links_string;
}
开发者ID:bamper,项目名称:xos_shop_system,代码行数:48,代码来源:account_history.php
示例2: xos_redirect
function xos_redirect($url, $change_connection = true)
{
global $request_type;
if (strstr($url, "\n") != false || strstr($url, "\r") != false) {
xos_redirect(xos_href_link(FILENAME_DEFAULT, '', 'NONSSL', false));
}
if (ENABLE_SSL == 'true' && $request_type == 'SSL' && $change_connection == true) {
// We are loading an SSL page
if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) {
// NONSSL url
$url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER));
// Change it to SSL
}
}
$url = str_replace('&', '&', $url);
header_remove();
header('Location: ' . $url);
exit;
}
开发者ID:bamper,项目名称:xos_shop_system,代码行数:19,代码来源:general.php
示例3: confirm
function confirm()
{
$mail_addresses_query = xos_db_query("select s.subscriber_id, s.subscriber_email_address, c.customers_firstname, c.customers_lastname from " . TABLE_NEWSLETTER_SUBSCRIBERS . " s left join " . TABLE_CUSTOMERS . " c on s.customers_id = c.customers_id where s.newsletter_status = '1' " . ($this->language_id > 0 ? 'and s.subscriber_language_id = ' . $this->language_id : '') . " order by s.customers_id");
$count = 0;
$costomers_array = array();
while ($mail_addresses = xos_db_fetch_array($mail_addresses_query)) {
$count++;
$costomers_array[] = array('id' => $mail_addresses['subscriber_id'], 'text' => '<' . $mail_addresses['subscriber_email_address'] . '> ' . $mail_addresses['customers_firstname'] . ' ' . $mail_addresses['customers_lastname']);
}
$cancel_button = '<script type="text/javascript">' . "\n" . '/* <![CDATA[ */' . "\n" . 'document.write(\'<input type="button" value="' . BUTTON_CANCEL . '" style="width: 8em;" onclick="document.location=\\\'' . xos_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID']) . '\\\'" />\');' . "\n" . '/* ]]> */' . "\n" . '</script>';
$confirm_string = "\n" . '<script type="text/javascript">' . "\n" . '/* <![CDATA[ */' . "\n" . 'function mover(move) {' . "\n" . ' if (move == \'remove\') {' . "\n" . ' for (x=0; x<(document.notifications.costomers.length); x++) {' . "\n" . ' if (document.notifications.costomers.options[x].selected) {' . "\n" . ' with(document.notifications.elements[\'customers_chosen[]\']) {' . "\n" . ' options[options.length] = new Option(document.notifications.costomers.options[x].text,document.notifications.costomers.options[x].value);' . "\n" . ' }' . "\n" . ' document.notifications.costomers.options[x] = null;' . "\n" . ' x = -1;' . "\n" . ' }' . "\n" . ' }' . "\n" . ' }' . "\n" . ' if (move == \'add\') {' . "\n" . ' for (x=0; x<(document.notifications.elements[\'customers_chosen[]\'].length); x++) {' . "\n" . ' if (document.notifications.elements[\'customers_chosen[]\'].options[x].selected) {' . "\n" . ' with(document.notifications.costomers) {' . "\n" . ' options[options.length] = new Option(document.notifications.elements[\'customers_chosen[]\'].options[x].text,document.notifications.elements[\'customers_chosen[]\'].options[x].value);' . "\n" . ' }' . "\n" . ' document.notifications.elements[\'customers_chosen[]\'].options[x] = null;' . "\n" . ' x = -1;' . "\n" . ' }' . "\n" . ' }' . "\n" . ' }' . "\n" . ' return true;' . "\n" . '}' . "\n\n" . 'function selectAll(FormName, SelectBox) {' . "\n" . ' temp = "document." + FormName + ".elements[\'" + SelectBox + "\']";' . "\n" . ' Source = eval(temp);' . "\n\n" . ' for (x=0; x<(Source.length); x++) {' . "\n" . ' Source.options[x].selected = "true";' . "\n" . ' }' . "\n\n" . ' if (x<1) {' . "\n" . ' alert(\'' . JS_PLEASE_SELECT_CUSTOMERS . '\');' . "\n" . ' return false;' . "\n" . ' } else {' . "\n" . ' return true;' . "\n" . ' }' . "\n" . '}' . "\n" . '/* ]]> */' . "\n" . '</script>' . "\n";
$confirm_string .= '<table width="100%" border="0" cellspacing="0" cellpadding="2">' . "\n" . ' <tr class="dataTableRow">' . "\n" . ' <td class="main"><b>' . sprintf(TEXT_COUNT_CUSTOMERS, $count) . '</b></td>' . "\n" . ' </tr>' . "\n" . ($count > 0 ? ' <tr class="dataTableRow">' . "\n" . ' <td>' . xos_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr class="dataTableRow">' . "\n" . ' <td>' . ' <form name="notifications" action="' . xos_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '" method="post" onsubmit="return selectAll(\'notifications\', \'customers_chosen[]\')"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td align="center" class="main"><b>' . TEXT_CUSTOMERS . '</b><br />' . xos_draw_pull_down_menu('costomers', $costomers_array, '', 'size="30" style="width: 30em; font-size:9px" multiple="multiple"') . '</td>' . "\n" . ' <td align="center" class="main"><input type="button" value="' . BUTTON_SELECT . '" style="width: 8em;" onclick="mover(\'remove\');" /><br /><br /><input type="button" value="' . htmlspecialchars(BUTTON_UNSELECT) . '" style="width: 8em;" onclick="mover(\'add\');" /><br /><br /><br /><br /><input type="submit" value="' . BUTTON_SEND . '" style="width: 8em;" /><br /><br />' . $cancel_button . '</td>' . "\n" . ' <td align="center" class="main"><b>' . TEXT_SELECTED_CUSTOMERS . '</b><br />' . xos_draw_pull_down_menu('customers_chosen[]', array(), '', 'size="30" style="width: 30em; font-size:9px" multiple="multiple"') . '</td>' . "\n" . ' </tr>' . "\n" . ' </table></form>' . ' </td>' . ' </tr>' . "\n" : ' <tr class="dataTableRow">' . "\n" . ' <td>' . xos_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr class="dataTableRow">' . "\n" . ' <td>' . ' <form name="notifications" action="' . xos_href_link(FILENAME_NEWSLETTERS, 'page=' . $_GET['page'] . '&nID=' . $_GET['nID'] . '&action=confirm_send') . '" method="post" onsubmit="return selectAll(\'notifications\', \'customers_chosen[]\')"><table border="0" width="100%" cellspacing="0" cellpadding="2">' . "\n" . ' <tr>' . "\n" . ' <td align="center" class="main"><b>' . TEXT_CUSTOMERS . '</b><br />' . xos_draw_pull_down_menu('costomers', $costomers_array, '', 'size="30" style="width: 30em; font-size:9px" multiple="multiple"') . '</td>' . "\n" . ' <td align="center" class="main">' . $cancel_button . '</td>' . "\n" . ' <td align="center" class="main"><b>' . TEXT_SELECTED_CUSTOMERS . '</b><br />' . xos_draw_pull_down_menu('customers_chosen[]', array(), '', 'size="30" style="width: 30em; font-size:9px" multiple="multiple"') . '</td>' . "\n" . ' </tr>' . "\n" . ' </table></form>' . ' </td>' . ' </tr>' . "\n") . ' <tr class="dataTableRow">' . "\n" . ' <td>' . xos_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr class="dataTableRow">' . "\n" . ' <td class="main"><b>' . $this->title . '</b></td>' . "\n" . ' </tr>' . "\n" . ' <tr class="dataTableRow">' . "\n" . ' <td>' . xos_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n";
if ($this->content_text_htlm != '' && EMAIL_USE_HTML == 'true') {
$confirm_string .= ' <tr class="dataHeadingRow">' . "\n" . ' <td class="dataHeadingContent" valign="top">' . TEXT_TEXT . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . xos_draw_separator('pixel_black.gif', '100%', '1') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><pre>' . wordwrap($this->content_text_plain, 100) . '</pre></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . xos_draw_separator('pixel_black.gif', '100%', '1') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr class="dataTableRow">' . "\n" . ' <td>' . xos_draw_separator('pixel_trans.gif', '1', '10') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr class="dataHeadingRow">' . "\n" . ' <td class="dataHeadingContent" valign="top">' . TEXT_HTML . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . xos_draw_separator('pixel_black.gif', '100%', '1') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . $this->content_text_htlm . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . xos_draw_separator('pixel_black.gif', '100%', '1') . '</td>' . "\n" . ' </tr>' . "\n";
} else {
$confirm_string .= ' <tr class="dataHeadingRow">' . "\n" . ' <td class="dataHeadingContent" valign="top">' . TEXT_TEXT . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . xos_draw_separator('pixel_black.gif', '100%', '1') . '</td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td class="main"><pre>' . wordwrap($this->content_text_plain, 100) . '</pre></td>' . "\n" . ' </tr>' . "\n" . ' <tr>' . "\n" . ' <td>' . xos_draw_separator('pixel_black.gif', '100%', '1') . '</td>' . "\n" . ' </tr>' . "\n";
}
$confirm_string .= '</table>';
return $confirm_string;
}
开发者ID:bamper,项目名称:xos_shop_system,代码行数:20,代码来源:newsletter.php
示例4: array
<?php
$menu_box_contents = array();
if ($_SESSION['selected_box'] == 'gv_admin' || EXPAND_MENUBOX_GV_ADMIN == 'true') {
if (xos_admin_check_files(FILENAME_COUPON_ADMIN)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_COUPON_ADMIN, 'selected_box=gv_admin'), 'selected' => $_SESSION['selected_box'] == 'gv_admin' && FILENAME_COUPON_ADMIN == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_COUPON_ADMIN);
}
if (xos_admin_check_files(FILENAME_GV_QUEUE)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_GV_QUEUE, 'selected_box=gv_admin'), 'selected' => $_SESSION['selected_box'] == 'gv_admin' && FILENAME_GV_QUEUE == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_GV_ADMIN_QUEUE);
}
if (SEND_EMAILS == 'true' && xos_admin_check_files(FILENAME_GV_MAIL)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_GV_MAIL, 'selected_box=gv_admin'), 'selected' => $_SESSION['selected_box'] == 'gv_admin' && FILENAME_GV_MAIL == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_GV_ADMIN_MAIL);
}
if (xos_admin_check_files(FILENAME_GV_SENT)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_GV_SENT, 'selected_box=gv_admin'), 'selected' => $_SESSION['selected_box'] == 'gv_admin' && FILENAME_GV_SENT == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_GV_ADMIN_SENT);
}
$smarty->assign('menu_box_contents', $menu_box_contents);
}
$smarty->assign(array('menu_box_heading_link' => xos_href_link(FILENAME_COUPON_ADMIN, 'selected_box=gv_admin'), 'menu_box_selected' => $_SESSION['selected_box'] == 'gv_admin' ? true : false, 'menu_box_heading_name' => BOX_HEADING_GV_ADMIN));
$output_menubox_gv_admin = $smarty->fetch(ADMIN_TPL . '/includes/boxes/menubox_gv_admin.tpl');
$smarty->clearAssign(array('menu_box_contents', 'menu_box_heading_link', 'menu_box_selected', 'menu_box_heading_name'));
$smarty->assign('menubox_gv_admin', $output_menubox_gv_admin);
return 'overwrite_all';
开发者ID:bamper,项目名称:xos_shop_system,代码行数:23,代码来源:menubox_gv_admin.php
示例5: array
<?php
$menu_box_contents = array();
if ($_SESSION['selected_box'] == 'configuration' || EXPAND_MENUBOX_CONFIGURATION == 'true') {
for ($i = 1; $i <= 17; $i++) {
if ($i != 6) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_CONFIGURATION, 'gID=' . $i . '&selected_box=configuration'), 'selected' => $_SESSION['selected_box'] == 'configuration' && $i == $_GET['gID'] ? true : false, 'name' => constant(BOX_CONFIGURATION_ . $i));
}
}
$smarty->assign('menu_box_contents', $menu_box_contents);
}
$smarty->assign(array('menu_box_heading_link' => xos_href_link(FILENAME_CONFIGURATION, 'gID=1&selected_box=configuration'), 'menu_box_selected' => $_SESSION['selected_box'] == 'configuration' ? true : false, 'menu_box_heading_name' => BOX_HEADING_CONFIGURATION));
$output_menubox_configuration = $smarty->fetch(ADMIN_TPL . '/includes/boxes/menubox_configuration.tpl');
$smarty->clearAssign(array('menu_box_contents', 'menu_box_heading_link', 'menu_box_selected', 'menu_box_heading_name'));
$smarty->assign('menubox_configuration', $output_menubox_configuration);
return 'overwrite_all';
开发者ID:bamper,项目名称:xos_shop_system,代码行数:16,代码来源:menubox_configuration.php
示例6: array
$contents[] = array('text' => TEXT_INFO_CURRENCY_VALUE . '<br /><div class="form-group">' . xos_draw_input_field('value', $cInfo->value, 'class="form-control"') . '</div>');
if (DEFAULT_CURRENCY != $cInfo->code) {
$contents[] = array('text' => '<div class="checkbox"><label>' . xos_draw_checkbox_field('default') . ' ' . TEXT_INFO_SET_AS_DEFAULT . '</label></div>');
}
$contents[] = array('text' => '<br /><a href="" onclick="currencies.submit(); return false" class="btn btn-default btn-margin-infobox" title=" ' . BUTTON_TITLE_UPDATE . ' ">' . BUTTON_TEXT_UPDATE . '</a><a href="' . xos_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id) . '" class="btn btn-default btn-margin-infobox" title=" ' . BUTTON_TITLE_CANCEL . ' ">' . BUTTON_TEXT_CANCEL . '</a><br /> ');
break;
case 'delete':
$heading_title = '<b>' . TEXT_INFO_HEADING_DELETE_CURRENCY . '</b>';
$contents[] = array('text' => TEXT_INFO_DELETE_INTRO);
$contents[] = array('text' => '<br /><b>' . $cInfo->title . '</b>');
$contents[] = array('text' => '<br />' . '<a href="' . xos_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id) . '" class="btn btn-default btn-margin-infobox" title=" ' . BUTTON_TITLE_CANCEL . ' ">' . BUTTON_TEXT_CANCEL . '</a>' . ($remove_currency ? '<a href="' . xos_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=deleteconfirm') . '" class="btn btn-danger btn-margin-infobox" title=" ' . BUTTON_TITLE_DELETE . ' ">' . BUTTON_TEXT_DELETE . '</a>' : '') . '<br /> ');
break;
default:
if (is_object($cInfo)) {
$heading_title = '<b>' . $cInfo->title . '</b>';
$contents[] = array('text' => '<a href="' . xos_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=edit') . '" class="btn btn-default btn-margin-infobox" title=" ' . BUTTON_TITLE_EDIT . ' ">' . BUTTON_TEXT_EDIT . '</a><a href="' . xos_href_link(FILENAME_CURRENCIES, 'page=' . $_GET['page'] . '&cID=' . $cInfo->currencies_id . '&action=delete') . '" class="btn btn-danger btn-margin-infobox" title=" ' . BUTTON_TITLE_DELETE . ' ">' . BUTTON_TEXT_DELETE . '</a>');
$languages = xos_get_languages();
for ($i = 0, $n = sizeof($languages); $i < $n; $i++) {
$currency_query = xos_db_query("select title, symbol_left, symbol_right, decimal_point, thousands_point from " . TABLE_CURRENCIES . " where currencies_id = '" . $cInfo->currencies_id . "' and language_id = '" . (int) $languages[$i]['id'] . "'");
$currency = xos_db_fetch_array($currency_query);
$contents[] = array('text' => '<br /> <br />' . xos_image(DIR_WS_CATALOG_IMAGES . 'catalog/templates/' . DEFAULT_TPL . '/' . $languages[$i]['directory'] . '/' . $languages[$i]['image'], $languages[$i]['name']));
$contents[] = array('text' => TEXT_INFO_CURRENCY_TITLE . ' ' . $currency['title']);
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_SYMBOL_LEFT . ' ' . $currency['symbol_left']);
$contents[] = array('text' => TEXT_INFO_CURRENCY_SYMBOL_RIGHT . ' ' . $currency['symbol_right']);
$contents[] = array('text' => '<br />' . TEXT_INFO_CURRENCY_DECIMAL_POINT . ' ' . $currency['decimal_point']);
$contents[] = array('text' => TEXT_INFO_CURRENCY_THOUSANDS_POINT . ' ' . $currency['thousands_point']);
}
$contents[] = array('text' => '<br /> <br /> <br />' . TEXT_INFO_CURRENCY_CODE . ' ' . $cInfo->code);
$contents[] = array('text' => TEXT_INFO_CURRENCY_DECIMAL_PLACES . ' ' . $cInfo->decimal_places);
$contents[] = array('text' => TEXT_INFO_CURRENCY_VALUE . ' ' . number_format($cInfo->value, 8));
$contents[] = array('text' => TEXT_INFO_CURRENCY_EXAMPLE . ' ' . $currencies->format('30') . ' = ' . $currencies->format('30', true, $cInfo->code));
开发者ID:bamper,项目名称:xos_shop_system,代码行数:31,代码来源:infobox_currencies.php
示例7: array_shift
}
$popup_img = DIR_WS_IMAGES . 'products/large/' . $products_img_name['name'];
$pop_size = @GetImageSize("{$popup_img}");
if ($pop_size[0] > $pop_width) {
$pop_width = $pop_size[0];
}
if ($pop_size[1] > $pop_height) {
$pop_height = $pop_size[1];
}
}
if ($small_width_total > $pop_width) {
$pop_width = $small_width_total;
}
$product_image = array_shift($products_image_name);
$smarty->assign(array('box_width' => (int) ($pop_width + 50), 'box_height' => (int) ($pop_height + $small_height + 55), 'link_product_img' => xos_href_link(FILENAME_POPUP_IMAGE, 'pID=' . $product_info['products_id'] . '&img_name=' . rawurlencode($product_image['name']), $request_type), 'link_product_img_noscript' => xos_href_link(FILENAME_IMAGES_WINDOW, 'pID=' . $product_info['products_id'], 'NONSSL', true, false, false, false, false), 'product_img' => xos_image(DIR_WS_IMAGES . 'products/medium/' . rawurlencode($product_image['name']), addslashes($product_info['products_name']), '', '', 'style="margin: 5px;"')));
}
$back = sizeof($_SESSION['navigation']->path) - 2;
if (!empty($_SESSION['navigation']->path[$back])) {
$get_params_array = $_SESSION['navigation']->path[$back]['get'];
$get_params_array['rmp'] = '0';
$back_link = xos_href_link($_SESSION['navigation']->path[$back]['page'], xos_array_to_query_string($get_params_array, array('action', xos_session_name())), $_SESSION['navigation']->path[$back]['mode']);
} else {
$back_link = 'javascript:history.go(-1)';
}
$smarty->assign(array('form_begin' => xos_draw_form('product_reviews_write', xos_href_link(FILENAME_PRODUCT_REVIEWS_WRITE, xos_get_all_get_params(array('lnc', 'cur', 'tpl', 'action')) . 'action=process', 'SSL'), 'post', 'onsubmit="return checkForm();"', true), 'form_end' => '</form>', 'radio_fields' => xos_draw_radio_field('rating', '1') . ' ' . xos_draw_radio_field('rating', '2') . ' ' . xos_draw_radio_field('rating', '3') . ' ' . xos_draw_radio_field('rating', '4') . ' ' . xos_draw_radio_field('rating', '5'), 'textarea_field' => xos_draw_textarea_field('review', '60', '15'), 'customers_name' => xos_output_string_protected($customer['customers_firstname'] . ' ' . $customer['customers_lastname']), 'products_name' => $product_info['products_name'], 'products_p_unit' => $product_info['products_p_unit'], 'products_model' => $product_info['products_model'], 'products_price' => $product_price, 'products_price_special' => $product_price_special, 'products_price_breaks' => $price_breaks_array, 'products_tax_description' => xos_get_products_tax_description($product_info['products_tax_class_id'], $products_tax_rate), 'td_width_img' => MEDIUM_PRODUCT_IMAGE_MAX_WIDTH + 10, 'link_back' => $back_link, 'link_buy_now' => xos_href_link(basename($_SERVER['PHP_SELF']), xos_get_all_get_params(array('action')) . 'action=buy_now')));
$smarty->configLoad('languages/' . $_SESSION['language'] . '.conf', 'product_reviews_write');
$output_product_reviews_write = $smarty->fetch(SELECTED_TPL . '/product_reviews_write.tpl');
$smarty->assign('central_contents', $output_product_reviews_write);
$smarty->display(SELECTED_TPL . '/frame.tpl');
require DIR_WS_INCLUDES . 'application_bottom.php';
}
开发者ID:bamper,项目名称:xos_shop_system,代码行数:31,代码来源:product_reviews_write.php
示例8: getOutput
function getOutput()
{
return '<a href="http://twitter.com/home?status=' . urlencode(xos_href_link(FILENAME_PRODUCT_INFO, xos_get_all_get_params(array('p')) . 'p=' . (int) $_GET['p'], 'NONSSL', false, true, false, false, false)) . '" target="_blank"><img src="' . DIR_WS_CATALOG . DIR_WS_IMAGES . 'catalog/templates/' . SELECTED_TPL . '/icons_social_bookmarks/' . $this->icon . '" class="icon-social-bookmarks" title="' . xos_output_string_protected($this->public_title) . '" alt="' . xos_output_string_protected($this->public_title) . '" /></a>';
}
开发者ID:bamper,项目名称:xos_shop_system,代码行数:4,代码来源:sb_twitter.php
示例9: array
$contents = array();
switch ($action) {
case 'edit':
$heading_title = '<b>' . constant($cInfo->lang_key . '_TITLE') . '</b>';
if ($cInfo->set_function) {
eval('$value_field = ' . $cInfo->set_function . '"' . $cInfo->configuration_value . '");');
} else {
$value_field = xos_draw_input_field('configuration_value', $cInfo->configuration_value);
}
$form_tag = xos_draw_form('configuration', FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=save');
$contents[] = array('text' => TEXT_INFO_EDIT_INTRO);
$contents[] = array('text' => '<br /><b>' . constant($cInfo->lang_key . '_TITLE') . '</b><br />' . constant($cInfo->lang_key . '_DESCRIPTION') . '<br />' . $value_field);
$contents[] = array('text' => '<br /><a href="" onclick="configuration.submit(); return false" class="button-default" style="margin-right: 5px; float: left" title=" ' . BUTTON_TITLE_UPDATE . ' "><span>' . BUTTON_TEXT_UPDATE . '</span></a><a href="' . xos_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id) . '" class="button-default" style="margin-right: 5px; float: left" title=" ' . BUTTON_TITLE_CANCEL . ' "><span>' . BUTTON_TEXT_CANCEL . '</span></a><br /> ');
break;
default:
if (isset($cInfo) && is_object($cInfo)) {
$heading_title = '<b>' . constant($cInfo->lang_key . '_TITLE') . '</b>';
$contents[] = array('text' => '<a href="' . xos_href_link(FILENAME_CONFIGURATION, 'gID=' . $_GET['gID'] . '&cID=' . $cInfo->configuration_id . '&action=edit') . '" class="button-default" style="margin-right: 5px; float: left" title=" ' . BUTTON_TITLE_EDIT . ' "><span>' . BUTTON_TEXT_EDIT . '</span></a>');
$contents[] = array('text' => '<br />' . constant($cInfo->lang_key . '_DESCRIPTION'));
$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_ADDED . ' ' . xos_date_short($cInfo->date_added));
if (xos_not_null($cInfo->last_modified)) {
$contents[] = array('text' => TEXT_INFO_LAST_MODIFIED . ' ' . xos_date_short($cInfo->last_modified));
}
}
break;
}
$smarty->assign(array('info_box_heading_title' => $heading_title, 'info_box_form_tag' => $form_tag, 'info_box_contents' => $contents));
$output_infobox_configuration = $smarty->fetch(ADMIN_TPL . '/includes/boxes/infobox_configuration.tpl');
$smarty->clearAssign(array('info_box_heading_title', 'info_box_form_tag', 'info_box_contents'));
$smarty->assign('infobox_configuration', $output_infobox_configuration);
return 'overwrite_all';
开发者ID:bamper,项目名称:xos_shop_system,代码行数:31,代码来源:infobox_configuration.php
示例10: splitPageResults
$manufacturers_query_raw = "select m.manufacturers_id, m.manufacturers_image, m.date_added, m.last_modified, mi.manufacturers_name from " . TABLE_MANUFACTURERS . " m, " . TABLE_MANUFACTURERS_INFO . " mi where m.manufacturers_id = mi.manufacturers_id and mi.languages_id = '" . (int) $_SESSION['used_lng_id'] . "' order by mi.manufacturers_name";
$manufacturers_split = new splitPageResults($_GET['page'], MAX_DISPLAY_RESULTS, $manufacturers_query_raw, $manufacturers_query_numrows);
$manufacturers_query = xos_db_query($manufacturers_query_raw);
$manufacturers_array = array();
while ($manufacturers = xos_db_fetch_array($manufacturers_query)) {
if ((!isset($_GET['mID']) || isset($_GET['mID']) && $_GET['mID'] == $manufacturers['manufacturers_id']) && !isset($mInfo) && substr($action, 0, 3) != 'new') {
$manufacturer_products_query = xos_db_query("select count(*) as products_count from " . TABLE_PRODUCTS . " where manufacturers_id = '" . (int) $manufacturers['manufacturers_id'] . "'");
$manufacturer_products = xos_db_fetch_array($manufacturer_products_query);
$mInfo_array = array_merge((array) $manufacturers, (array) $manufacturer_products);
$mInfo = new objectInfo($mInfo_array);
}
$selected = false;
if (isset($mInfo) && is_object($mInfo) && $manufacturers['manufacturers_id'] == $mInfo->manufacturers_id) {
$selected = true;
$link_filename_manufacturers = xos_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $manufacturers['manufacturers_id'] . '&action=edit');
} else {
$link_filename_manufacturers = xos_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $manufacturers['manufacturers_id']);
}
$manufacturers_array[] = array('selected' => $selected, 'link_filename_manufacturers' => $link_filename_manufacturers, 'name' => $manufacturers['manufacturers_name']);
}
if (empty($action)) {
$smarty->assign('link_filename_manufacturers_action_new', xos_href_link(FILENAME_MANUFACTURERS, 'page=' . $_GET['page'] . '&mID=' . $mInfo->manufacturers_id . '&action=new'));
}
$smarty->assign(array('BODY_TAG_PARAMS' => 'onload="SetFocus();"', 'manufacturers' => $manufacturers_array, 'nav_bar_number' => $manufacturers_split->display_count($manufacturers_query_numrows, MAX_DISPLAY_RESULTS, $_GET['page'], TEXT_DISPLAY_NUMBER_OF_MANUFACTURERS), 'nav_bar_result' => $manufacturers_split->display_links($manufacturers_query_numrows, MAX_DISPLAY_RESULTS, MAX_DISPLAY_PAGE_LINKS, $_GET['page'])));
require DIR_WS_BOXES . 'infobox_manufacturers.php';
$smarty->configLoad('languages/' . $_SESSION['language'] . '.conf', 'manufacturers');
$output_manufacturers = $smarty->fetch(ADMIN_TPL . '/manufacturers.tpl');
$smarty->assign('central_contents', $output_manufacturers);
$smarty->display(ADMIN_TPL . '/frame.tpl');
require DIR_WS_INCLUDES . 'application_bottom.php';
}
开发者ID:bamper,项目名称:xos_shop_system,代码行数:31,代码来源:manufacturers.php
示例11: array
$menu_box_contents = array();
if (xos_admin_check_files(FILENAME_CATEGORIES)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'), 'selected' => $_SESSION['selected_box'] == 'catalog' && FILENAME_CATEGORIES == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_CATALOG_CATEGORIES_PRODUCTS);
}
if (xos_admin_check_files(FILENAME_PRODUCTS_ATTRIBUTES)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_PRODUCTS_ATTRIBUTES, 'selected_box=catalog&first_entrance=1'), 'selected' => $_SESSION['selected_box'] == 'catalog' && FILENAME_PRODUCTS_ATTRIBUTES == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_CATALOG_CATEGORIES_PRODUCTS_ATTRIBUTES);
}
if (xos_admin_check_files(FILENAME_MANUFACTURERS)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_MANUFACTURERS, 'selected_box=catalog'), 'selected' => $_SESSION['selected_box'] == 'catalog' && FILENAME_MANUFACTURERS == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_CATALOG_MANUFACTURERS);
}
if (xos_admin_check_files(FILENAME_DELIVERY_TIMES)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_DELIVERY_TIMES, 'selected_box=catalog'), 'selected' => $_SESSION['selected_box'] == 'catalog' && FILENAME_DELIVERY_TIMES == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_CATALOG_DELIVERY_TIMES);
}
if (xos_admin_check_files(FILENAME_REVIEWS)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_REVIEWS, 'selected_box=catalog'), 'selected' => $_SESSION['selected_box'] == 'catalog' && FILENAME_REVIEWS == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_CATALOG_REVIEWS);
}
if (xos_admin_check_files(FILENAME_UPDATE_PRODUCTS_PRICES)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_UPDATE_PRODUCTS_PRICES, 'selected_box=catalog&first_entrance=1'), 'selected' => $_SESSION['selected_box'] == 'catalog' && FILENAME_UPDATE_PRODUCTS_PRICES == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_CATALOG_UPDATE_PRODUCTS_PRICES);
}
if (xos_admin_check_files(FILENAME_XSELL_PRODUCTS)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_XSELL_PRODUCTS, 'selected_box=catalog&first_entrance=1'), 'selected' => $_SESSION['selected_box'] == 'catalog' && FILENAME_XSELL_PRODUCTS == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_CATALOG_XSELL_PRODUCTS);
}
if (xos_admin_check_files(FILENAME_PRODUCTS_EXPECTED)) {
$menu_box_contents[] = array('link' => xos_href_link(FILENAME_PRODUCTS_EXPECTED, 'selected_box=catalog'), 'selected' => $_SESSION['selected_box'] == 'catalog' && FILENAME_PRODUCTS_EXPECTED == basename($_SERVER['PHP_SELF']) ? true : false, 'name' => BOX_CATALOG_PRODUCTS_EXPECTED);
}
$smarty->assign('menu_box_contents', $menu_box_contents);
$smarty->assign(array('menu_box_heading_link' => xos_href_link(FILENAME_CATEGORIES, 'selected_box=catalog'), 'menu_box_selected' => $_SESSION['selected_box'] == 'catalog' ? true : false, 'menu_box_heading_name' => BOX_HEADING_CATALOG));
$output_menubox_catalog = $smarty->fetch(ADMIN_TPL . '/includes/boxes/menubox_catalog.tpl');
$smarty->clearAssign(array('menu_box_contents', 'menu_box_heading_link', 'menu_box_selected', 'menu_box_heading_name'));
$smarty->assign('menubox_catalog', $output_menubox_catalog);
}
开发者ID:bamper,项目名称:xos_shop_system,代码行数:31,代码来源:menubox_catalog.php
示例12: sprintf
// osCommerce, Open Source E-Commerce Solutions
// http://www.oscommerce.com
// Copyright (c) 2002 osCommerce
// filename: search.php
//
// Released under the GNU General Public License
////////////////////////////////////////////////////////////////////////////////
if (!(@(include DIR_FS_SMARTY . 'catalog/templates/' . SELECTED_TPL . '/php/includes/boxes/login_my_account.php') == 'overwrite_all')) {
if (CACHE_LEVEL > 1 && !isset($_SESSION['customer_id']) && (isset($_COOKIE[session_name()]) && !isset($_GET[session_name()]) || SESSION_FORCE_COOKIE_USE == 'true')) {
$smarty->caching = 1;
$cache_id = 'L2|box_login_my_account|' . $_SESSION['language'] . '-' . $_GET['lnc'] . '-' . $_GET[session_name()] . '-' . $session_started . '-' . SELECTED_TPL . '-' . $_SESSION['currency'];
}
if (!$smarty->isCached(SELECTED_TPL . '/includes/boxes/login_my_account.tpl', $cache_id)) {
if (isset($_SESSION['customer_first_name']) && isset($_SESSION['customer_id'])) {
if (ACCOUNT_GENDER == 'true' && isset($_SESSION['customer_gender']) && $_SESSION['customer_gender'] != '') {
$box_welcome_string = sprintf(BOX_TEXT_GREETING_PERSONAL, ($_SESSION['customer_gender'] == 'm' ? MALE_ADDRESS : FEMALE_ADDRESS) . '<br />' . xos_output_string_protected($_SESSION['customer_first_name']) . ' ' . xos_output_string_protected($_SESSION['customer_lastname']));
} else {
$box_welcome_string = sprintf(BOX_TEXT_GREETING_PERSONAL, xos_output_string_protected($_SESSION['customer_first_name']) . ' ' . xos_output_string_protected($_SESSION['customer_lastname']));
}
} else {
$box_welcome_string = BOX_TEXT_GREETING_GUEST;
}
if (SEND_EMAILS == 'true') {
$smarty->assign('box_login_my_account_link_filename_password_forgotten', xos_href_link(FILENAME_PASSWORD_FORGOTTEN, '', 'SSL'));
}
$smarty->assign(array('box_login_my_account_link_filename_create_account' => xos_href_link(FILENAME_CREATE_ACCOUNT, '', 'SSL'), 'box_login_my_account_link_filename_account' => xos_href_link(FILENAME_ACCOUNT, '', 'SSL'), 'box_login_my_account_link_filename_account_edit' => xos_href_link(FILENAME_ACCOUNT_EDIT, '', 'SSL'), 'box_login_my_account_link_filename_account_history' => xos_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'), 'box_login_my_account_link_filename_address_book' => xos_href_link(FILENAME_ADDRESS_BOOK, '', 'SSL'), 'box_login_my_account_link_filename_account_notifications' => PRODUCT_NOTIFICATION_ENABLED == 'true' ? xos_href_link(FILENAME_ACCOUNT_NOTIFICATIONS, '', 'SSL') : '', 'box_login_my_account_link_filename_logoff' => xos_href_link(FILENAME_LOGOFF, '', 'SSL'), 'box_login_my_account_display_box_my_account' => isset($_SESSION['customer_id']) ? true : false, 'box_login_my_account_welcome_string' => $box_welcome_string, 'box_login_my_account_input_field_email_address' => xos_draw_input_field('email_address', '', 'class="form-control input-sm" id="box_login_email_address" size="10" maxlength="40" style="width: 130px"'), 'box_login_my_account_input_field_password' => xos_draw_password_field('password', '', 'class="form-control input-sm" id="box_login_password" size="10" style="width: 130px"'), 'box_login_my_account_form_begin' => xos_draw_form('box_login', xos_href_link(FILENAME_LOGIN, 'action=process', 'SSL'), 'post', '', true), 'box_login_my_account_form_end' => '</form>'));
}
$output_login_my_account = $smarty->fetch(SELECTED_TPL . '/includes/boxes/login_my_account.tpl', $cache_id);
$smarty->caching = 0;
$smarty->assign('box_login_my_account', $output_login_my_account);
}
开发者ID:bamper,项目名称:xos_shop_system,代码行数:31,代码来源:login_my_account.php
示例13: array
<?php
$contents = array();
if (isset($pInfo) && is_object($pInfo)) {
$heading_title = '<b>' . $pInfo->products_name . '</b>';
$contents[] = array('text' => '<a href="' . xos_href_link(FILENAME_CATEGORIES, 'pID=' . $pInfo->products_id . '&action=new_product') . '" class="button-default" style="margin-right: 5px; float: left" title=" ' . BUTTON_TITLE_EDIT . ' "><span>' . BUTTON_TEXT_EDIT . '</span></a>');
$contents[] = array('text' => '<br />' . TEXT_INFO_DATE_EXPECTED . ' ' . xos_date_short($pInfo->products_date_available));
}
$smarty->assign(array('info_box_heading_title' => $heading_title, 'info_box_contents' => $contents));
$output_infobox_products_expected = $smarty->fetch(ADMIN_TPL . '/includes/boxes/infobox_products_expected.tpl');
$smarty->clearAssign(array('info_box_heading_title', 'info_box_contents'));
$smarty->assign('infobox_products_expected', $output_infobox_products_expected);
return 'overwrite_all';
开发者ID:bamper,项目名称:xos_shop_system,代码行数:13,代码来源:infobox_products_expected.php
示例14: objectInfo
if ((!isset($_GET['cID']) || isset($_GET['cID']) && $_GET['cID'] == $customers_groups['customers_group_id']) && !isset($cInfo)) {
$cInfo = new objectInfo($customers_groups);
}
$selected = false;
if (is_object($cInfo) && $customers_groups['customers_group_id'] == $cInfo->customers_group_id) {
$selected = true;
$link_filename_customers_groups = xos_href_link(FILENAME_CUSTOMERS_GROUPS, xos_get_all_get_params(array('cID', 'action')) . 'cID=' . $cInfo->customers_group_id . '&action=edit');
} else {
$link_filename_customers_groups = xos_href_link(FILENAME_CUSTOMERS_GROUPS, xos_get_all_get_params(array('cID')) . 'cID=' . $customers_groups['customers_group_id']);
}
$customers_groups_array[] = array('selected' => $selected, 'link_filename_customers_groups' => $link_filename_customers_groups, 'group_name' => $customers_groups['customers_group_name']);
}
if (SESSID) {
$smarty->assign('hidden_field_session', xos_draw_hidden_field(xos_session_name(), xos_session_id()));
}
$smarty->assign(array('form_begin_search' => xos_draw_form('search', FILENAME_CUSTOMERS_GROUPS, '', 'get'), 'input_search' => xos_draw_input_field('search'), 'form_end' => '</form>', 'link_filename_customers_groups_sort_asc' => xos_href_link(FILENAME_CUSTOMERS_GROUPS, 'listing=group'), 'text_sort_asc' => ICON_TITLE_I
|
请发表评论