$target = ''; } elseif ($imagesliders_data['imagesliders_url_target'] == '1') { $target = ' target="_blank"'; } elseif ($imagesliders_data['imagesliders_url_target'] == '2') { $target = ' target="_top"'; } elseif ($imagesliders_data['imagesliders_url_target'] == '3') { $target = ' target="_self"'; } elseif ($imagesliders_data['imagesliders_url_target'] == '4') { $target = ' target="_parent"'; } if ($imagesliders_data['imagesliders_url_typ'] == '0') { $url = $imagesliders_data['imagesliders_url']; } elseif ($imagesliders_data['imagesliders_url_typ'] == '1') { $url = xtc_href_link($imagesliders_data['imagesliders_url']); } elseif ($imagesliders_data['imagesliders_url_typ'] == '2') { $url = xtc_href_link(FILENAME_PRODUCT_INFO, xtc_product_link((int) $imagesliders_data['imagesliders_url'], xtc_get_products_name((int) $imagesliders_data['imagesliders_url']))); } elseif ($imagesliders_data['imagesliders_url_typ'] == '3') { $url = xtc_href_link(FILENAME_DEFAULT, xtc_category_link((int) $imagesliders_data['imagesliders_url'], xtc_get_categories_name((int) $imagesliders_data['imagesliders_url']))); } elseif ($imagesliders_data['imagesliders_url_typ'] == '4') { $content_querys = "SELECT content_title FROM " . TABLE_CONTENT_MANAGER . " WHERE languages_id='" . (int) $_SESSION['languages_id'] . "' and content_group = '" . (int) $imagesliders_data['imagesliders_url'] . "' and content_status=1 order by sort_order"; $content_querys = xtDBquery($content_querys); $content_title = xtc_db_fetch_array($content_querys, true); $SEF = ''; if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') { $SEF = '&content=' . xtc_cleanName($content_title['content_title']); } $url = xtc_href_link(FILENAME_CONTENT, 'coID=' . (int) $imagesliders_data['imagesliders_url'] . $SEF); } } $imagesliders_data['imagesliders_image_url'] = DIR_WS_IMAGES . $imagesliders_data['imagesliders_image']; $imagesliders_data['imagesliders_image_url_link'] = $url;
$products_name_query = xtc_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . $reviews['products_id'] . "' and language_id = '" . $_SESSION['languages_id'] . "'"); $products_name = xtc_db_fetch_array($products_name_query); $reviews_average_query = xtc_db_query("select (avg(reviews_rating) / 5 * 100) as average_rating from " . TABLE_REVIEWS . " where products_id = '" . $reviews['products_id'] . "'"); $reviews_average = xtc_db_fetch_array($reviews_average_query); $review_info = xtc_array_merge($reviews_text, $reviews_average, $products_name); $rInfo_array = xtc_array_merge($reviews, $review_info, $products_image); $rInfo = new objectInfo($rInfo_array); } if (is_object($rInfo) && $reviews['reviews_id'] == $rInfo->reviews_id) { echo ' <tr class="dataTableRowSelected" onmouseover="this.style.cursor=\'pointer\'" onclick="document.location.href=\'' . xtc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $rInfo->reviews_id . '&action=preview') . '\'">' . "\n"; } else { echo ' <tr class="dataTableRow" onmouseover="this.className=\'dataTableRowOver\';this.style.cursor=\'pointer\'" onmouseout="this.className=\'dataTableRow\'" onclick="document.location.href=\'' . xtc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $reviews['reviews_id']) . '\'">' . "\n"; } ?> <td class="dataTableContent"><?php echo '<a href="' . xtc_href_link(FILENAME_REVIEWS, 'page=' . $_GET['page'] . '&rID=' . $reviews['reviews_id'] . '&action=preview') . '">' . xtc_image(DIR_WS_ICONS . 'preview.gif', ICON_PREVIEW) . '</a> ' . xtc_get_products_name($reviews['products_id']); ?> </td> <td class="dataTableContent" align="right"><?php echo xtc_image(HTTP_CATALOG_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/stars_' . $reviews['reviews_rating'] . '.gif'); ?> </td> <td class="dataTableContent hidden-xs" align="right"><?php echo xtc_date_short($reviews['date_added']); ?> </td> <!-- BOF - Tomcraft - 2009-06-10 - added some missing alternative text on admin icons --> <!-- <td class="dataTableContent" align="right"><?php if (is_object($rInfo) && $reviews['reviews_id'] == $rInfo->reviews_id) { echo xtc_image(DIR_WS_IMAGES . 'icon_arrow_right.gif');
if ($cPath != '0') { $buttons_new_elements .= ' '; $buttons_new_elements .= '<a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_product') . '">' . BUTTON_NEW_PRODUCTS . '</a>'; } $contents[] = array('align' => 'center', 'text' => $buttons_new_elements); } //Informations $contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; border-top: 1px solid Black; margin-top: 5px;">' . TEXT_INFORMATIONS . '</div>'); $contents[] = array('text' => '<div style="padding-left: 50px;">' . TEXT_DATE_ADDED . ' ' . xtc_date_short($cInfo->date_added) . '</div>'); if (xtc_not_null($cInfo->last_modified)) { $contents[] = array('text' => '<div style="padding-left: 50px;">' . TEXT_LAST_MODIFIED . ' ' . xtc_date_short($cInfo->last_modified) . '</div>'); } $contents[] = array('align' => 'center', 'text' => '<div style="padding: 10px;">' . xtc_info_image_c($cInfo->categories_image, $cInfo->categories_name, '', '', $box_cat_image_size) . '</div><div style="padding-bottom: 10px;">' . $cInfo->categories_image . '</div>'); } elseif (isset($pInfo) && is_object($pInfo)) { // product info box contents $heading[] = array('align' => 'center', 'text' => '<b>' . xtc_get_products_name($pInfo->products_id, $_SESSION['languages_id']) . '</b>'); //Multi Element Actions $contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%;">' . TEXT_MARKED_ELEMENTS . '</div>'); $contents[] = array('align' => 'center', 'text' => xtc_button(BUTTON_DELETE, 'submit', 'name="multi_delete"') . ' ' . xtc_button(BUTTON_MOVE, 'submit', 'name="multi_move"') . ' ' . xtc_button(BUTTON_COPY, 'submit', 'name="multi_copy"')); $contents[] = array('align' => 'center', 'text' => '<input type="submit" class="btn btn-default" name="multi_status_on" onclick="this.blur();" value="' . BUTTON_STATUS_ON . '"> <input type="submit" class="btn btn-default" onclick="this.blur();" name="multi_status_off" value="' . BUTTON_STATUS_OFF . '">'); $contents[] = array('text' => '</form>'); //Single Product Actions $contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; border-top: 1px solid Black; margin-top: 5px;">' . TEXT_ACTIVE_ELEMENT . '</div>'); $contents[] = array('align' => 'center', 'text' => '<table><tr><td><a class="btn btn-default" onclick="this.blur();" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&pID=' . $pInfo->products_id . '&action=new_product') . '">' . BUTTON_EDIT . '</a></td><td><form action="' . FILENAME_NEW_ATTRIBUTES . '" name="edit_attributes" method="post"><input type="hidden" name="action" value="edit"><input type="hidden" name="current_product_id" value="' . $pInfo->products_id . '"><input type="hidden" name="cpath" value="' . $cPath . '"><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_EDIT_ATTRIBUTES . '"></form></td></tr><tr><td colspan="2" style="text-align: center;"><form action="' . FILENAME_CATEGORIES . '" name="edit_crossselling" method="GET"><input type="hidden" name="action" value="edit_crossselling"><input type="hidden" name="current_product_id" value="' . $pInfo->products_id . '"><input type="hidden" name="cpath" value="' . $cPath . '"><input type="submit" class="btn btn-default" onclick="this.blur();" value="' . BUTTON_EDIT_CROSS_SELLING . '"></form></td></tr></table>'); //Insert new Element Actions $contents[] = array('align' => 'center', 'text' => '<div style="padding-top: 5px; font-weight: bold; width: 90%; border-top: 1px solid Black; margin-top: 5px;">' . TEXT_INSERT_ELEMENT . '</div>'); if (!xtc_not_null($search)) { $buttons_new_elements = '<a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_category') . '">' . BUTTON_NEW_CATEGORIES . '</a>'; if ($cPath != '0') { $buttons_new_elements .= ' '; $buttons_new_elements .= '<a class="btn btn-default" onclick="this.blur()" href="' . xtc_href_link(FILENAME_CATEGORIES, xtc_get_all_get_params(array('cPath', 'action', 'pID', 'cID')) . 'cPath=' . $cPath . '&action=new_product') . '">' . BUTTON_NEW_PRODUCTS . '</a>';
function shopstat_getSEO($page = '', $parameters = '', $connection = 'NONSSL', $add_session_id = true, $search_engine_safe = true, $mode = 'user') { global $languages_id; $link = ""; $maname = ""; if ($mode == 'admin') { require_once DIR_FS_INC . 'xtc_parse_category_path.inc.php'; require_once DIR_FS_INC . 'xtc_get_product_path.inc.php'; require_once DIR_FS_INC . 'xtc_get_parent_categories.inc.php'; require_once DIR_FS_INC . 'xtc_check_agent.inc.php'; } else { require_once DIR_FS_INC . 'xtc_get_products_name.inc.php'; require_once DIR_FS_INC . 'xtc_get_manufacturers.inc.php'; } //-- XTC !isset($languages_id) ? $languages_id = (int) $_SESSION['languages_id'] : false; //BOF - web28 - 2010-08-18 -- Die Parameter aufspalten $pararray = array(); foreach (explode("&", $parameters) as $pair) { $values = explode("=", $pair); if (!empty($values[0])) { $pararray[$values[0]] = $values[1]; } } $cPath = isset($pararray['cPath']) ? $pararray['cPath'] : false; $prodid = isset($pararray['products_id']) ? $pararray['products_id'] : false; $content = isset($pararray['content']) ? $pararray['content'] : false; $coid = isset($pararray['coID']) ? $pararray['coID'] : false; $maid = isset($pararray['manufacturers_id']) ? $pararray['manufacturers_id'] : false; $pager = isset($pararray['page']) ? $pararray['page'] : false; $lang = isset($pararray['language']) ? $pararray['language'] : ''; $sort = isset($pararray['sort']) ? $pararray['sort'] : ''; $filter_id = isset($pararray['filter_id']) ? $pararray['filter_id'] : ''; $viewmode = isset($pararray['viewmode']) ? $pararray['viewmode'] : ''; $view_mode = isset($pararray['viewmode']) ? $pararray['view_mode'] : ''; $prllset = isset($pararray['prllset']) ? $pararray['prllset'] : ''; $action = isset($pararray['action']) ? $pararray['action'] : ''; //EOF - web28 - 2010-08-18 -- Die Parameter aufspalten $go = true; //-- Nur bei der index.php und product_info.php if ($page != "index.php" && $page != "product_info.php" && $page != "shop_content.php") { $go = false; } elseif (strlen($sort) > 0) { //-- Unter diesen Bedingungen werden die URLs nicht umgewandelt //-- Sortieren $go = false; } elseif (strlen($filter_id) > 0) { //-- Sortieren der Herstellerprodukte $go = false; } elseif (strlen($view_mode) > 0) { $go = false; } elseif (strlen($viewmode) > 0) { $go = false; } elseif (strlen($prllset) > 0) { $go = false; } elseif (strlen($action) > 0) { //-- Andere Aktion $go = false; } //BOF web28 - 2010-08-18 -- Falls eine Sprache übergeben wurde, wird diese als 'Linksprache' definiert if (strlen($lang) > 0) { $seolng = new language(); $lang_id = $seolng->catalog_languages[$lang]['id']; } else { $lang_id = $languages_id; } //EOF- web28 - 2010-08-18 -- Falls eine Sprache übergeben wurde, wird diese als 'Linksprache' definiert if ($go && (xtc_not_null($maid) || xtc_not_null($cPath) || xtc_not_null($prodid) || xtc_not_null($coid))) { if ($connection == 'SSL') { if (ENABLE_SSL == true) { $link = HTTPS_SERVER . DIR_WS_CATALOG; } else { $link = HTTP_SERVER . DIR_WS_CATALOG; } } else { $link = HTTP_SERVER . DIR_WS_CATALOG; } if (xtc_not_null($cPath) || xtc_not_null($prodid)) { $cPath_array = xtc_parse_category_path($cPath); $cPath = implode('_', $cPath_array); $current_category_id = $cPath_array[sizeof($cPath_array) - 1]; if (!$current_category_id && $prodid) { $current_category_id = xtc_get_product_path($prodid); } // ------------------------------------------------- if (!$prodid) { $category['categories_name'] = shopstat_getRealPath($cPath, '/', $lang_id); $link .= shopstat_hrefCatlink($category['categories_name'], $cPath, $pager); } else { $category['categories_name'] = ''; if (ADD_CAT_NAMES_TO_PRODUCT_LINK) { $category['categories_name'] = shopstat_getRealPath(xtc_get_product_path($prodid), '/', $lang_id); } $link .= shopstat_hrefLink($category['categories_name'], xtc_get_products_name($prodid, $lang_id), $prodid); } } elseif (xtc_not_null($coid)) { $content = shopstat_getContentName($coid, $lang_id); $link .= shopstat_hrefContlink($content, $coid); } elseif (xtc_not_null($maid)) { $manufacturers = xtc_get_manufacturers(); foreach ($manufacturers as $manufacturer) { if ($manufacturer['id'] == $maid) { $maname = $manufacturer['text']; break; } } $link .= shopstat_hrefManulink($maname, $maid, $pager); } $separator = '?'; //-- Concat the lang-var //-- Check parameters and given language, just concat //-- if the language is different //web28 - 2010-08-18 -- Parameter für die Sprachumschaltung if (strlen($lang) > 0 && $lang_id != $languages_id) { $link .= $separator . 'language=' . $lang; } } return $link; }