91863
Goto Top

Irgendwo im PHP fehlt ne Klammer

Hallo,

im Webshop verzieht es mir sobald ich in der Administration eine Datei aufrufem das gesamt Design. Weiss wer wo hier ne Klammer fehlt ??
<?php
/*
  $Id: stats_customers_orders.php,v 1.2b 11 dec 2005 

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2005 osCommerce

  originally developed by xaglo v1.2 24 mars 2005
  
  Released under the GNU General Public License
*/
// change to your needs following
//  list of minimum for dropdown selection
  $list_mini = array("1", "2", "3", "4", "5", "10", "15", "20", "50", "100");  
// END CHANGING

  require('includes/application_top.php');  
  require(DIR_WS_CLASSES . 'currencies.php');  
  $currencies = new currencies();

// detecte les constantes ou initialise
  $today = getdate();
  if ($HTTP_GET_VARS['year']) $year = tep_db_prepare_input($HTTP_GET_VARS['year']);   
  else $year = $today['year']; //  else $year = 'ALL';  
  if ($HTTP_GET_VARS['month']) $month = tep_db_prepare_input($HTTP_GET_VARS['month']);   
  else $month = $today['mon']; //  else $month = 'ALL';  
  if ($HTTP_GET_VARS['mini_ordered']) $mini_ordered = tep_db_prepare_input($HTTP_GET_VARS['mini_ordered']);   
  else $mini_ordered = 1;
  if ($HTTP_GET_VARS['no_status']) $no_status = tep_db_prepare_input($HTTP_GET_VARS['no_status']);   
  if ($HTTP_GET_VARS['status']) $status = tep_db_prepare_input($HTTP_GET_VARS['status']);   

//  get list of years for dropdown selection
$year_begin_query = tep_db_query(" select startdate from counter");  
$year_begin = tep_db_fetch_array($year_begin_query);
$year_begin = substr($year_begin['startdate'], 0, 4);  
$current_year = $year_begin;
while ($current_year != $today['year'] + 1) {  
  $list_year_array = array('id' => $current_year,  
                              'text' => $current_year);  
$current_year++;
}

//  get list of month for dropdown selection
  $list_month = array(JAN, FEV, MAR, AVR, MAI, JUN, JUI, AOU, SEP, OCT, NOV, DEC);
  for ($i = 0, $n = sizeof($list_month); $i < $n; $i++) {
    $list_month_array = array('id' => $i+1,  
                                'text' => $list_month[$i]);  
}

// get list of minimum names for dropdown selection
for ($i = 0, $n = sizeof($list_mini); $i < $n; $i++) {
  $list_mini_array = array('id' => $list_mini[$i],  
                              'text' => $list_mini[$i]);  
}

// get list of orders_status names for dropdown selection
  $orders_statuses = array();
  $orders_status_array = array();
  $orders_status_query = tep_db_query("select orders_status_id, orders_status_name from " . TABLE_ORDERS_STATUS . " where language_id = '" . $languages_id . "'");  
  while ($orders_status = tep_db_fetch_array($orders_status_query)) {
    $orders_statuses = array('id' => $orders_status['orders_status_id'],  
                 'text' => $orders_status['orders_status_name']);  
    $orders_status_array[$orders_status['orders_status_id']] = $orders_status['orders_status_name'];  
     };

// Total new_customers
  $new_customers_query_raw = "select count(customers_info_id) as tot_new_customers from " . TABLE_CUSTOMERS_INFO . " where 1=1";  
  if ($month != 'ALL') $new_customers_query_raw .= " and MONTH(customers_info_date_account_created) = " . $month ;  
  if ($year != 'ALL') $new_customers_query_raw .= " and YEAR(customers_info_date_account_created) = " . $year;  
  $new_customers_query = tep_db_query($new_customers_query_raw);
  $new_customers = tep_db_fetch_array($new_customers_query);
  $new_customers_count = $new_customers['tot_new_customers'];  

//* Total distinct customers
  $customers_query_raw = "select distinct(customers_id) from " . TABLE_ORDERS . " where 1=1";  
  if ($month != 'ALL') $customers_query_raw .= " and MONTH(date_purchased) = " . $month ;  
  if ($year != 'ALL') $customers_query_raw .= " and YEAR(date_purchased) = " . $year;  
  if ($no_status) $customers_query_raw .= " and orders_status <> " . $no_status;  
  if ($status) $customers_query_raw .= " and orders_status = " . $status;  
  $customers_query = tep_db_query($customers_query_raw);
  $customers_id_array = array();
  while ($customers = tep_db_fetch_array($customers_query)) {
    $customers_id_array = $customers['customers_id'];   
  }
  $customers_count = sizeof($customers_id_array);

//* Total new_customers_bought
  $new_customers_bought_query_raw = "select distinct(o.customers_id) from " . TABLE_ORDERS . " o, " . TABLE_CUSTOMERS_INFO . " ci where ci.customers_info_id = o.customers_id";  
  if ($month != 'ALL') $new_customers_bought_query_raw .= " and MONTH(o.date_purchased) = " . $month . " and MONTH(ci.customers_info_date_account_created) = " . $month ;  
  if ($year != 'ALL') $new_customers_bought_query_raw .= " and YEAR(o.date_purchased) = " . $year .  " and YEAR(ci.customers_info_date_account_created) = " . $year;  
  if ($no_status) $new_customers_query_raw .= " and o.orders_status <> " . $no_status;  
  if ($status) $new_customers_query_raw .= " and o.orders_status = " . $status;  
  $new_customers_bought_query = tep_db_query($new_customers_bought_query_raw);
  $new_customers_bought_id_array = array();
  while ($new_customers_bought = tep_db_fetch_array($new_customers_bought_query)) {
    $new_customers_bought_id_array = $new_customers_bought['customers_id'];   
  }
  $new_customers_bought_count = sizeof($new_customers_bought_id_array);
  if ($new_customers_bought_count > 0) $new_customers_bought_percent = tep_round($new_customers_bought_count/$new_customers_count*100, 0);

//* Total customers_bought
  $customers_bought_query_raw = "select customers_id from " . TABLE_ORDERS;  
  if ($no_status) $customers_query_raw .= " where orders_status <> " . $no_status;  
  if ($status) $customers_query_raw .= " where orders_status = " . $status;  
  $customers_bought_query = tep_db_query($customers_bought_query_raw);
  $customers_bought_id_array = array();
  while ($customers_bought = tep_db_fetch_array($customers_bought_query)) { 
    $customers_bought_id_array = $customers_bought['customers_id'];   
  }

  $count_customers_again = 0;
  foreach($customers_id_array as $value) {
    $key = sizeof(array_keys($customers_bought_id_array, $value));
    if ($key>$mini_ordered) $count_customers_again++;
  }
  if ($customers_count > 0) $percent_customers_again = tep_round($count_customers_again/$customers_count*100, 0);

//* Total orders
  $orders_query_raw = "select count(*) as total from " . TABLE_ORDERS . " where 1=1 ";  
  if ($month != 'ALL') $orders_query_raw .= " and MONTH(date_purchased) = " . $month ;  
  if ($year != 'ALL') $orders_query_raw .= " and YEAR(date_purchased) = " . $year;  
  if ($no_status) $orders_query_raw .= " and orders_status <> " . $no_status;  
  if ($status) $orders_query_raw .= " and orders_status = " . $status;  
  $orders_query = tep_db_query($orders_query_raw);
  $orders = tep_db_fetch_array($orders_query);
  $count_orders = $orders['total'];  

//* Total sales
  $tot_sale_query_raw = "select sum(ot.value) as total, count(ot.value) as count from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot where ot.class='ot_total' and ot.orders_id=o.orders_id";  
  if ($month != 'ALL') $tot_sale_query_raw .= " and MONTH(o.date_purchased) = " . $month ;  
  if ($year != 'ALL') $tot_sale_query_raw .= " and YEAR(o.date_purchased) = " . $year;  
  if ($no_status) $tot_sale_query_raw .= " and o.orders_status <> " . $no_status;  
  if ($status) $tot_sale_query_raw .= " and o.orders_status = " . $status;  
  $tot_sale_query = tep_db_query($tot_sale_query_raw);
  $tot_sale = tep_db_fetch_array($tot_sale_query);

//* Total taxes
  $tot_taxes_query_raw = "select sum(round(ot.value,2)) as total from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot where ot.class='ot_tax' and ot.orders_id=o.orders_id";  
  if ($month != 'ALL') $tot_taxes_query_raw .= " and MONTH(date_purchased) = " . $month ;  
  if ($year != 'ALL') $tot_taxes_query_raw .= " and YEAR(date_purchased) = " . $year;  
  if ($no_status) $tot_taxes_query_raw .= " and orders_status <> " . $no_status;  
  if ($status) $tot_taxes_query_raw .= " and orders_status = " . $status;  
  $tot_taxes_query = tep_db_query($tot_taxes_query_raw);
  $tot_taxes = tep_db_fetch_array($tot_taxes_query);

//* Total shipping
  $tot_shipping_query_raw = "select sum(ot.value) as total from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot where ot.class='ot_shipping' and ot.orders_id=o.orders_id";  
  if ($month != 'ALL') $tot_shipping_query_raw .= " and MONTH(date_purchased) = " . $month ;  
  if ($year != 'ALL') $tot_shipping_query_raw .= " and YEAR(date_purchased) = " . $year;  
  if ($no_status) $tot_shipping_query_raw .= " and orders_status <> " . $no_status;  
  if ($status) $tot_shipping_query_raw .= " and orders_status = " . $status;  
  $tot_shipping_query = tep_db_query($tot_shipping_query_raw);
  $tot_shipping = tep_db_fetch_array($tot_shipping_query);

//* Total products
  $tot_products_query_raw = "select sum(ot.value) as total from " . TABLE_ORDERS . " o, " . TABLE_ORDERS_TOTAL . " ot where ot.class='ot_subtotal' and ot.orders_id=o.orders_id";  
  if ($month != 'ALL') $tot_products_query_raw .= " and MONTH(date_purchased) = " . $month ;  
  if ($year != 'ALL') $tot_products_query_raw .= " and YEAR(date_purchased) = " . $year;  
  if ($no_status) $tot_products_query_raw .= " and orders_status <> " . $no_status;  
  if ($status) $tot_products_query_raw .= " and orders_status = " . $status;  
  $tot_products_query = tep_db_query($tot_products_query_raw);
  $tot_products = tep_db_fetch_array($tot_products_query);

//* Total taxes not included
	if($tot_sale['total'] == 0){  
	$tot_HT = 0;
	$tot_sale['total'] = 0;  
	}else{
	$tot_HT = ($tot_sale['total']-$tot_shipping['total'])*(1-($tot_taxes['total']/$tot_sale['total']));  
	}

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">  
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">  
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">  
<script language="javascript" src="includes/general.js"></script>  
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">  
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>  
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">  
  <tr>
    <td 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 width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="0">  
      <tr>
        <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>  
      </tr>
      <tr>
        <td><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>  
      </tr>
      <tr>
        <td><table border="0" cellspacing="0" cellpadding="2"><?php echo tep_draw_form('search', FILENAME_STATS_CUSTOMERS_ORDERS, '', 'get'); ?>  
          <tr>
            <td class="dataTableContent" align="center"><?php echo HEADING_MONTH; ?>&nbsp;</td>  
            <td class="dataTableContent" align="center"><?php echo HEADING_YEAR; ?>&nbsp;</td>  
            <td class="dataTableContent" align="center"><?php echo HEADING_NUMBER_ORDERS; ?>&nbsp;</td>  
<?php if ($status == '') { ?>  
            <td class="dataTableContent" align="center"><?php echo HEADING_TITLE_NO_STATUS; ?>&nbsp;</td>  
<?php } if ($no_status == '') { ?>  
            <td class="dataTableContent" align="center"><?php echo HEADING_TITLE_STATUS; ?></td>  
<?php } ?>
          </tr>
          <tr>
            <td class="main" align="center"><?php echo tep_draw_pull_down_menu('month', array_merge(array(array('id' => 'ALL', 'text' => TEXT_ALL_MOIS)), $list_month_array), '', 'onChange="this.form.submit();"');?>&nbsp;</td>  
            <td class="main" align="center"><?php echo tep_draw_pull_down_menu('year', array_merge(array(array('id' => 'ALL', 'text' => TEXT_ALL_ANNEE)), $list_year_array), '', 'onChange="this.form.submit();"'); ?>&nbsp;</td>  
            <td class="main" align="center"><?php echo tep_draw_pull_down_menu('mini_ordered', $list_mini_array, '', 'onChange="this.form.submit();"'); ?>&nbsp;</td>  
<?php if ($status == '') { ?>  
            <td class="main" align="center"><?php echo tep_draw_pull_down_menu('no_status', array_merge(array(array('id' => '', 'text' => TEXT_NO_ORDERS)), $orders_statuses), '', 'onChange="this.form.submit();"'); ?>&nbsp;</td>  
<?php } if ($no_status == '') { ?>  
            <td class="main" align="center"><?php echo tep_draw_pull_down_menu('status', array_merge(array(array('id' => '', 'text' => TEXT_ALL_ORDERS)), $orders_statuses), '', 'onChange="this.form.submit();"'); ?></td>  
<?php } ?>
          </tr>
        </form></table></td>
      </tr>
      <tr>
        <td><table border="0" cellspacing="0" cellpadding="5">  
          <tr>
            <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '1', '10'); ?></td>  
          </tr>
          <tr class="dataTableHeadingRow">  
            <td align="right" class="dataTableHeadingContent"><?php echo NEW_CUSTOMERS; ?></td>  
            <td align="center" class="dataTableHeadingContent">&nbsp;&nbsp;<?php echo $new_customers_count; ?></td>  
          </tr>
          <tr class="dataTableRow" onMouseOver="this.className='dataTableRowOver';this.style.cursor='hand'" onMouseOut="this.className='dataTableRow'">  
            <td align="right" class="dataTableContent"><?php echo CUSTOMERS_BOUGHT; ?></td>  
            <td align="center" class="dataTableContent">&nbsp;&nbsp;<?php echo $customers_count; ?></td>  
          </tr>
          <tr class="dataTableRow" onMouseOver="this.className='dataTableRowOver';this.style.cursor='hand'" onMouseOut="this.className='dataTableRow'">  
            <td align="right" class="dataTableContent"><?php echo NEW_CUSTOMERS_BOUGHT; ?></td>  
            <td align="center" class="dataTableContent">&nbsp;&nbsp;<?php echo $new_customers_bought_count . ' (' . $new_customers_bought_percent . "%)"; ?></td>  
          </tr>
          <tr class="dataTableRow" onMouseOver="this.className='dataTableRowOver';this.style.cursor='hand'" onMouseOut="this.className='dataTableRow'">  
            <td align="right" class="dataTableContent"><?php echo sprintf(TEXT_MINI_ORDERED, $mini_ordered);?></td>  
            <td align="center" class="dataTableContent">&nbsp;&nbsp;<?php echo $count_customers_again . ' (' . $percent_customers_again . '%)'; ?></td>  
          </tr>
          <tr class="dataTableHeadingRow">  
            <td align="right" class="dataTableHeadingContent"><?php echo NUMBER_ORDER; ?></td>  
            <td align="center" class="dataTableHeadingContent">&nbsp;&nbsp;<?php echo $count_orders; ?></td>  
          </tr>
          <tr class="dataTableRow" onMouseOver="this.className='dataTableRowOver';this.style.cursor='hand'" onMouseOut="this.className='dataTableRow'">  
            <td align="right" class="dataTableContent"><?php echo TOTAL_TTC; ?></td>  
            <td align="right" class="dataTableContent">&nbsp;&nbsp;<?php echo $currencies->format($tot_sale['total']); ?></td>  
          </tr>
          <tr class="dataTableRow" onMouseOver="this.className='dataTableRowOver';this.style.cursor='hand'" onMouseOut="this.className='dataTableRow'">  
            <td align="right" class="dataTableContent"><?php echo TOTAL_SHIPPING; ?></td>  
            <td align="right" class="dataTableContent">&nbsp;&nbsp;<?php echo $currencies->format($tot_shipping['total']); ?></td>  
          </tr>
          <tr class="dataTableRow" onMouseOver="this.className='dataTableRowOver';this.style.cursor='hand'" onMouseOut="this.className='dataTableRow'">  
            <td align="right" class="dataTableContent"><?php echo TOTAL_TAX; ?></td>  
            <td align="right" class="dataTableContent">&nbsp;&nbsp;<?php echo $currencies->format($tot_taxes['total']); ?></td>  
          </tr>
          <tr class="dataTableRow" onMouseOver="this.className='dataTableRowOver';this.style.cursor='hand'" onMouseOut="this.className='dataTableRow'">  
            <td align="right" class="dataTableContent"><?php echo TOTAL_HT; ?></td>  
            <td align="right" class="dataTableContent">&nbsp;&nbsp;<?php echo $currencies->format($tot_HT); ?></td>  
          </tr>
          <tr class="dataTableRow" onMouseOver="this.className='dataTableRowOver';this.style.cursor='hand'" onMouseOut="this.className='dataTableRow'">  
            <td align="right" class="dataTableContent"><?php echo BASKET_TTC; ?></td>  
            <td align="right" class="dataTableContent">&nbsp;&nbsp;<?php if ($count_orders > 0) echo $currencies->format($tot_sale['total']/$count_orders); ?></td>  
          </tr>
          <tr class="dataTableHeadingRow">  
            <td align="right" class="dataTableHeadingContent"><?php echo BASKET_HT; ?></td>  
            <td align="right" class="dataTableHeadingContent">&nbsp;&nbsp;<?php if ($count_orders > 0) echo $currencies->format($tot_HT/$count_orders); ?></td>  
          </tr>
        </table></td>
      </tr>
    </table></td>
<!-- body_text_eof //-->
  </tr>
</table>

<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>  
<!-- footer_eof //-->
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>  
</body>
</html>

Content-Key: 230865

Url: https://administrator.de/contentid/230865

Ausgedruckt am: 28.03.2024 um 11:03 Uhr

Mitglied: 91863
91863 24.02.2014, aktualisiert am 25.02.2014 um 20:11:04 Uhr
Goto Top
HAbe noch ne zweite Datei. Genau gleiches Problem
<?php 
/*
  $Id: supermailer.php,v 3.04 2006/04/28 19:01:58 efp Exp $

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2003 osCommerce

  Released under the GNU General Public License
  
  Modified Version from Richard Bartz
  by Infobroker
  info@cooleshops.de
*/
######## EXPORTER FOR EXTERNAL MAIL LIST IMPORT
# Should work for most all osC versions, used on MS2.2 and earlier
# By Richard Bartz,  richard@bartz.net
# Modified to fit with Supermailer by Werner Nöbauer neosymptom@hotmail.com 2005
# HOW TO INSTALL 
# This little script is just to export all of the email addresses from your osC
# customer database who have subscribed to your newsletter to a tab delimited file
# that can be imported into a better mailer such as phpList or Supermailer.
#
# 1. Change the $filename variable to whatever file name you want. 
# 2. upload this file in the osC admin directory
# 3. in admin/includes/boxes/tools.php add:  
# 		tep_admin_files_boxes('Supermailer.php', 'Supermailer Export') .  
#    or on OLD versions add 
#		'<a href="' . tep_href_link(FILENAME_SUPERMAILER) . '" class="menuBoxContentLink">' . BOX_TOOLS_SUPERMAILER . '</a><br>' .  
# 4. in admin/includes/filenames.php add:  
# 		define('FILENAME_SUPERMAILER', 'supermailer.php');   
# 5. in admin/includes/languages/"yourlanguage" e.g. english.php add:  
#		define('BOX_TOOLS_SUPERMAILER', 'Supermailer Export');  
# 4. That's it!  Click on "Supermailer Export" in Admin->Tools!  Save and import.  
# 5. Security:  If you use .htaccess in admin you are safe.
#    If you use admin add-ons then requiring the application_top.php should do it.
#    In either case the file should NOT run from a direct call.
########


// end of configuration!
require('includes/application_top.php');   

$csv_trenner = ';';  
$schema = 'Name'  
        . $csv_trenner
		. 'Vorname'  
		. $csv_trenner
		. 'Email'  
		. $csv_trenner
		. 'Anrede'  
		. "\n";   
		
$sql_query = tep_db_query("  
             SELECT 
			  * 
			 FROM 
			  " . TABLE_CUSTOMERS . "   
			 WHERE 
			  customers_newsletter = '1'"    
			  
			  );
			  
while ($sql = tep_db_fetch_array($sql_query)) {				

if ($sql['customers_gender'] == 'f'){  
$gender_text = 'Frau';  
}else{
$gender_text = 'Herr';}  
					
$schema.= $sql['customers_lastname']  
        . $csv_trenner
		. $sql['customers_firstname']  
		. $csv_trenner
		. $sql['customers_email_address']  
		. $csv_trenner
		. $gender_text
		. "\n";	     
	   
	   }			  
$filename="addresses.txt";  //.txt is good for import into excel workbook as tab delimited file  

$csv_file = DIR_FS_BACKUP . $filename;
$schema = addslashes($schema);
$schema = preg_replace('/\n#/', "\n\\#", $schema);  
if ($fp = fopen($csv_file, 'w')) {  
    fputs($fp, $schema);
    fclose($fp);	   
    }
?>
<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">  
<html <?php echo HTML_PARAMS; ?>>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">  
<title><?php echo TITLE; ?></title>
<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">  
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">  
<!-- header //-->
<?php require(DIR_WS_INCLUDES . 'header.php'); ?>  
<!-- header_eof //-->

<!-- body //-->
<table border="0" width="100%" cellspacing="2" cellpadding="2">  
  <tr>
  <td 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 width="100%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">  
      <tr>
        <td>

<table border="0" width="100%" cellspacing="0" cellpadding="2">  
  <tr>
    <td class="main"><?php //echo nl2br($schema); ?></td>  
  </tr>
  <tr>
    <td class="main"><br><?php echo 'Ihre Datei liegt unter: ' . HTTP_SERVER . DIR_WS_ADMIN . 'backups/' . $filename . ' bereit.<br><br> Diese können Sie dort per FTP downloaden oder hier mit der rechten Maustaste <a style="text-decoration=underline" href="' . tep_href_link('backups/' . $filename) . '" >' . '<font color="#FF0000"><b>downloaden.</font>' . '</a>' ;?><br><br><font color="#FF0000">Wählen Sie aus Sicherheitsgründen die FTP-Variante.</font></td>  
  </tr>
</table>
	
        </td>
      </tr>
    </table></td>
<!-- body_text_eof //-->
  </tr>
</table>
<!-- body_eof //-->

<!-- footer //-->
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?>  
<!-- footer_eof //-->
<br>
</body>
</html>
<?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?>  
Mitglied: Dani
Dani 24.02.2014 aktualisiert um 22:29:34 Uhr
Goto Top
Moin,
erstmal nutz bitte unsere Formatierungshilfen - in diesem Fall Codeblöcke.
Beiträge kann man nach dem Erstellen problemlos editieren und speichern.

Wie kommst du drauf, dass eine Klammer fehlt?
Gibts auch ne Fehlermeldung im Lofile bzw. aktiviere bitte "error_reporting()" in PHP.


Grüße,
Dani
Mitglied: 91863
91863 24.02.2014 um 22:31:07 Uhr
Goto Top
Hoi Dani,

es kann auch was anderes wie ne Klammer fehlen. Den Shop verzieht es in Administration

0e85ce173c1d7f7ce739d521343e4c61

Gruss
Ralf
Mitglied: 91863
91863 24.02.2014 um 22:32:31 Uhr
Goto Top
So wäre das mit Rahmen

aa46cd1640afd10700e11675e411b47e
Mitglied: Xaero1982
Xaero1982 24.02.2014 um 23:47:33 Uhr
Goto Top
Versuche mal bitte genauer zu beschreiben was du machst.

Was klickst du an? Welche Datei wird dabei aufgerufen?

Was genau machst du um diesen Fehler zu produzieren? Seit wann? Was wurde geändert?

Anderen Browser versucht?

Gruß
Mitglied: falscher-sperrstatus
falscher-sperrstatus 25.02.2014 um 03:17:01 Uhr
Goto Top
Eine Klammer? Ich denke eher, hier liegt ein CSS Problem vor. wäre es eine Klammer würdest du im besten fall gar nichts mehr sehen außer einer Fehlermeldung.
Mitglied: 91863
91863 25.02.2014 um 06:04:10 Uhr
Goto Top
ist in jedem Browser so.

Gruss
rlaf
Mitglied: Xaero1982
Xaero1982 25.02.2014 um 07:11:18 Uhr
Goto Top
Gut und meine anderen Fragen?face-smile

Gruß
Mitglied: 91863
91863 25.02.2014 um 15:38:56 Uhr
Goto Top
Hallo,

geändert wurde an den Dateien nichts. Ist Original Oscommerce. Im Oscommerce Forum wissen die auch nicht warum. Os Commerce ist nun ein totes Webshop System das nicht gross supportet wird. In dem Fall muss das am CSS liegen. Keine Ahnung wo man das fixt.

Gruss
Ralf
Mitglied: 91863
91863 25.02.2014 um 15:49:03 Uhr
Goto Top
Eventuell muss ich sogar nur 1 Zeile tauschen. Teste es heute Abend aus.

Gruss
Ralf
Mitglied: falscher-sperrstatus
falscher-sperrstatus 25.02.2014 um 15:53:45 Uhr
Goto Top
Zitat von @91863:

Hallo,

geändert wurde an den Dateien nichts. Ist Original Oscommerce. Im Oscommerce Forum wissen die auch nicht warum. Os Commerce
ist nun ein totes Webshop System das nicht gross supportet wird. In dem Fall muss das am CSS liegen. Keine Ahnung wo man das fixt.


Gruss
Ralf

Hi Ralf,

nun, wenn es früher so aussah: Mach mal den Kompatibilitätsmodus an. Vllt haut dir ein gut gemeinter CSS Hack das Design um die Ohren. Ansonsten: Unsupported ist immer schlecht, da immer wieder Fehler auftauchen, die ausgebügelt werden müssen.
Mitglied: 91863
91863 25.02.2014 um 16:02:41 Uhr
Goto Top
Hallo

es war immer corrupt.

gruss
Ralf
Mitglied: 91863
91863 25.02.2014 um 17:10:43 Uhr
Goto Top
WErde mal schauen, in anderen Dateien. Da ist bestimmt die Zeile anderst

<link rel="stylesheet" type="text/css" href="includes/stylesheet.css">
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
Mitglied: 91863
91863 25.02.2014 aktualisiert um 22:10:36 Uhr
Goto Top
Hallo,

mit der Zeile ging es nicht. man sieht aber , das es das Style sein muss.
Eine andere Datei geht .
Die hier wäre z.bsp ok
<?php
/*
  $Id$

  osCommerce, Open Source E-Commerce Solutions
  http://www.oscommerce.com

  Copyright (c) 2010 osCommerce

  Released under the GNU General Public License
*/

  require('includes/application_top.php');  

  require(DIR_WS_INCLUDES . 'template_top.php');  
?>

    <table border="0" width="100%" cellspacing="0" cellpadding="0">  
      <tr>
        <td><table border="0" width="100%" cellspacing="0" cellpadding="0">  
          <tr>
            <td class="pageHeading"><?php echo HEADING_TITLE; ?></td>  
            <td class="pageHeading" align="right"><?php echo tep_draw_separator('pixel_trans.gif', HEADING_IMAGE_WIDTH, HEADING_IMAGE_HEIGHT); ?></td>  
          </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_NUMBER; ?></td>  
                <td class="dataTableHeadingContent"><?php echo TABLE_HEADING_PRODUCTS; ?></td>  
                <td class="dataTableHeadingContent" align="center"><?php echo TABLE_HEADING_VIEWED; ?>&nbsp;</td>  
              </tr>
<?php
  if (isset($HTTP_GET_VARS['page']) && ($HTTP_GET_VARS['page'] > 1)) $rows = $HTTP_GET_VARS['page'] * MAX_DISPLAY_SEARCH_RESULTS - MAX_DISPLAY_SEARCH_RESULTS;  
  $rows = 0;
  $products_query_raw = "select p.products_id, pd.products_name, pd.products_viewed, l.name from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd, " . TABLE_LANGUAGES . " l where p.products_id = pd.products_id and l.languages_id = pd.language_id order by pd.products_viewed DESC";  
  $products_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $products_query_raw, $products_query_numrows);  
  $products_query = tep_db_query($products_query_raw);
  while ($products = tep_db_fetch_array($products_query)) {
    $rows++;

    if (strlen($rows) < 2) {
      $rows = '0' . $rows;  
    }
?>
              <tr class="dataTableRow" onmouseover="rowOverEffect(this)" onmouseout="rowOutEffect(this)" onclick="document.location.href='<?php echo tep_href_link(FILENAME_CATEGORIES, 'action=new_product_preview&read=only&pID=' . $products['products_id'] . '&origin=' . FILENAME_STATS_PRODUCTS_VIEWED . '?page=' . $HTTP_GET_VARS['page'], 'NONSSL'); ?>'">  
                <td class="dataTableContent"><?php echo $rows; ?>.</td>  
                <td class="dataTableContent"><?php echo '<a href="' . tep_href_link(FILENAME_CATEGORIES, 'action=new_product_preview&read=only&pID=' . $products['products_id'] . '&origin=' . FILENAME_STATS_PRODUCTS_VIEWED . '?page=' . $HTTP_GET_VARS['page'], 'NONSSL') . '">' . $products['products_name'] . '</a> (' . $products['name'] . ')'; ?></td>  
                <td class="dataTableContent" align="center"><?php echo $products['products_viewed']; ?>&nbsp;</td>  
              </tr>
<?php
  }
?>
            </table></td>
          </tr>
          <tr>
            <td colspan="3"><table border="0" width="100%" cellspacing="0" cellpadding="2">  
              <tr>
                <td class="smallText" valign="top"><?php echo $products_split->display_count($products_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, $HTTP_GET_VARS['page'], TEXT_DISPLAY_NUMBER_OF_PRODUCTS); ?></td>  
                <td class="smallText" align="right"><?php echo $products_split->display_links($products_query_numrows, MAX_DISPLAY_SEARCH_RESULTS, MAX_DISPLAY_PAGE_LINKS, $HTTP_GET_VARS['page']); ?></td>  
              </tr>
            </table></td>
          </tr>
        </table></td>
      </tr>
    </table>

<?php
  require(DIR_WS_INCLUDES . 'template_bottom.php');  
  require(DIR_WS_INCLUDES . 'application_bottom.php');  
?>

[Edit Biber] Codeformatierung. Eigentlich wollte ich es in die Tonne kloppen. [/Edit]