/mnt/web601/b3/14/57451114/htdocs/httpdocs/admin/properties_combis.php
<?php
/* --------------------------------------------------------------
   properties_combis.php 2022-07-01
   Gambio GmbH
   http://www.gambio.de
   Copyright (c) 2022 Gambio GmbH
   Released under the GNU General Public License (Version 2)
   [http://www.gnu.org/licenses/gpl-2.0.html]

   IMPORTANT! THIS FILE IS DEPRECATED AND WILL BE REPLACED IN THE FUTURE. 
   MODIFY IT ONLY FOR FIXES. DO NOT APPEND IT WITH NEW FEATURES, USE THE
   NEW GX-ENGINE LIBRARIES INSTEAD.
   --------------------------------------------------------------

   based on: 
   (c) 2000-2001 The Exchange Project 
   (c) 2002-2003 osCommerce coding standards (a typical file) www.oscommerce.com
   (c) 2003      nextcommerce (start.php,1.5 2004/03/17); www.nextcommerce.org
   (c) 2003 XT-Commerce - community made shopping http://www.xt-commerce.com ($Id: start.php 1235 2005-09-21 19:11:43Z mz $)

   Released under the GNU General Public License 
   --------------------------------------------------------------*/

use Gambio\Core\TextManager\Services\TextManager;

require('includes/application_top.php');


$productId = (isset($_GET['products_id']) ? (int)$_GET['products_id'] : '');
$cPath = ($_GET['cPath'] ?? '');
	?>

	<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">


	<html <?php echo HTML_PARAMS; ?>>
		<head>
			<meta http-equiv="x-ua-compatible" content="IE=edge">
			<meta http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['language_charset']; ?>" /> 
			<title><?php echo TITLE; ?></title>
			<link rel="stylesheet" type="text/css" href="html/assets/styles/legacy/stylesheet.css" />
			<link rel="stylesheet" type="text/css" href="html/assets/styles/legacy/buttons.css" />
			<link rel="stylesheet" type="text/css" href="html/assets/styles/legacy/lightbox.css" />

			<?php
			$coo_js_options_control = MainFactory::create_object('JSOptionsControl', array(false));
			$t_js_options_array =  $coo_js_options_control->get_options_array($_GET);
			?>
			<script type="text/javascript"> var js_options = <?php echo json_encode($t_js_options_array) ?>; </script>
		</head>
		<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF" style="position: relative;">
			<!-- header //-->
			<?php require(DIR_WS_INCLUDES . 'header.php'); ?>
			<!-- header_eof //-->

			<!-- body //-->
			<table border="0" width="100%" cellspacing="2" cellpadding="2">
				<tr>
					<td class="columnLeft2" width="<?php echo BOX_WIDTH; ?>" valign="top">
						<table border="0" width="<?php echo BOX_WIDTH; ?>" cellspacing="1" cellpadding="1" class="columnLeft">
							<!-- left_navigation //-->
							<?php require(DIR_WS_INCLUDES . 'column_left.php'); ?>
							<!-- left_navigation_eof //-->
						</table>
					</td>
					<!-- body_text //-->
					<td class="boxCenter" width="100%" valign="top">
                        <?php
                        $t_coo_product = new GMDataObject('products_description', array('products_id' => $_GET['products_id'], 'language_id' => $_SESSION['languages_id']));
                        $t_products_name = $t_coo_product->get_data_value('products_name');
                        $textManager = LegacyDependencyContainer::getInstance()->get(TextManager::class);
                        ?>
                        <div class="pageHeadingWrapper">
                            <div class="pageHeading">
                                <div class="page-nav-title"><?php echo htmlspecialchars($t_products_name); ?></div>
                                <div class="page-nav-tabs">
                                    <div class="nav-tab">
                                        <a href="<?php echo xtc_href_link(FILENAME_CATEGORIES, "cPath={$cPath}&pID={$productId}&action=new_product"); ?>">
                                            <?php echo $textManager->getPhraseText('TAB_GENERAL', 'admin_product_page');?>
                                        </a>
                                    </div>
                                    <div class="nav-tab no-link">
                                        <?php echo $textManager->getPhraseText('TAB_VARIANTS', 'admin_product_page');?>
                                    </div>
                                    <div class="nav-tab">
                                        <a href="<?php echo xtc_href_link("products/{$productId}/options", "cPath={$cPath}"); ?>">
                                            <?php echo $textManager->getPhraseText('TAB_OPTIONS', 'admin_product_page');?>
                                        </a>
                                    </div>
                                    <div class="nav-tab">
                                        <a href="<?php echo xtc_href_link("products/{$productId}/downloads", "cPath={$cPath}"); ?>">
                                            <?php echo $textManager->getPhraseText('TAB_DOWNLOADS', 'admin_product_page');?>
                                        </a>
                                    </div>

                                    <div class="nav-tab">
                                        <?php
                                        $query     = 'SELECT specials_id FROM specials WHERE products_id = ' . (int)$productId;
                                        $result    = xtc_db_query($query);
                                        $specialId = 0;
                                        if (xtc_db_num_rows($result)) {
                                            $row       = xtc_db_fetch_array($result);
                                            $specialId = (int)$row['specials_id'];
                                        }
                                        $specialUrlParams = 'new&pID=' . (int)$productId;
                                        if ($specialId) {
                                            $specialUrlParams = 'edit&sID=' . $specialId;
                                        }
                                        ?>
                                        <a href="<?php echo xtc_href_link(FILENAME_SPECIALS, 'action=' . $specialUrlParams); ?>">
                                            <?php echo $textManager->getPhraseText('BUTTON_SPECIAL', 'admin_buttons');?>
                                        </a>
                                    </div>
                                    <div class="nav-tab">
                                        <a href="<?php echo xtc_href_link(
                                            "categories.php",
                                            "current_product_id={$productId}&cPath={$cPath}&action=edit_crossselling"
                                        ); ?>">
                                            <?php echo $textManager->getPhraseText(
                                                'TAB_CROSSSELLING',
                                                'admin_product_page'
                                            ); ?>
                                        </a>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <style>.pageHeading > .page-nav-title { margin-top: 0 !important; }</style>
<?php
if(isset($_GET['products_id']) && (int)$_GET['products_id'] > 0)
{
	$c_products_id = (int)$_GET['products_id'];
	$c_cPath = 0;
	if(isset($_GET['cPath']) && $_GET['cPath'] != '')
	{
		$c_cPath = $_GET['cPath'];
	}
	 if(isset($_GET['page']) && (int)$_GET['page'] > 0){
		$t_page = (int)$_GET['page'];
	 }else{
		$t_page = 1;
	 }
	$coo_combis_admin_view = MainFactory::create_object('PropertiesCombisAdminContentView');
	$t_html = $coo_combis_admin_view->get_html(array('template' => 'combis_main', 'page' => $t_page, 'language_id' => $_SESSION['languages_id'], 'products_id' => $c_products_id, 'cPath' => $c_cPath));
?>
    <div class="bottom-save-bar-content">
        <a class="btn" href="<?php echo gm_xtc_href_link('product_info.php', xtc_product_link((int)$_GET['products_id'])); ?>" target="_blank"><?php echo BUTTON_GO_TO_PRODUCT; ?></a>
    </div>
<?php
}
else
{
	$t_html = 'invalid products_id';
}
echo $t_html;
?>


					</td>
					<!-- body_text_eof //-->
				</tr>
			</table>
			<!-- body_eof //-->

			<!-- footer //-->
			<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>
			<!-- footer_eof //-->	
			<script type="text/javascript" src="<?php echo DIR_WS_ADMIN; ?>html/assets/javascript/legacy/gm/lightbox_plugin.js"></script>
			<script type="text/javascript" src="<?php echo DIR_WS_CATALOG; ?>gm/javascript/jquery/plugins/ajaxfileupload/ajaxfileupload_uncompressed.js"></script>
		</body>
	</html>
	<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>

Unexpected error occurred...

Class "main_ORIGIN" not found