ok. - > Mir ist gerade aufgefallen dass mit Sp1c die contentmanager.php im Ordner admin geändert wurde.
Dementsprechend vermute ich dass auch die infocenter.php geändert werden muss - Leider keine Ahnung... Hoffe es kann jemand helfen. Das Modul findet Ihr hier im Forum.
<?php/*
* Linklist for xtc 3.04
* Copyright 2005 by Sergej Stroh.
* www.(( Wir dulden keine kommerziellen Werbelinks - Bitte <a href="index.php?topic=3013.0">Forenregeln</a> beachten! ))
*/ require('includes/application_top.php'); require_once(DIR_FS_INC
.'xtc_parse_input_field_data.inc.php'); require_once(DIR_FS_INC
. 'xtc_wysiwyg.inc.php'); $languages = xtc_get_languages
(); // Status $status = array(); if($_GET['action'] == 'editcategories'){ $status[] = array('id' => 0, 'text' => UPDATE_SAVE
); }else{ $status[] = array('id' => 0, 'text' => TABLE_FOOTER_STATUS_0
); } $status[] = array('id' => 1, 'text' => TABLE_FOOTER_STATUS_1
); $status[] = array('id' => 2, 'text' => TABLE_FOOTER_STATUS_2
); $status[] = array('id' => 3, 'text' => TABLE_FOOTER_STATUS_3
); // Edit $listedit = array(); $listedit[] = array('id' => 0, 'text' => TABLE_HEADING_ACTION_EDIT_0
); $listedit[] = array('id' => 1, 'text' => TABLE_HEADING_ACTION_EDIT
); // CATEGORIES $select_categories = array(); $categories_query = xtc_db_query
("SELECT id, titel, description
FROM ".TABLE_INFOCENTER_CATEGORIES
."
WHERE language_id = '".$_SESSION['languages_id']."'
ORDER BY position ASC"); $select_categories[] = array('id' => 0, 'text' => TABLE_FOOTER_STATUS_0
); while($categories = xtc_db_fetch_array
($categories_query)){ $select_categories[] = array('id' => $categories['id'], 'text' => $categories['titel'], 'description' => $categories['description']); } $languages = xtc_get_languages
(); switch($_GET['action']){ case 'set': $max_elements = count($_POST['status']); // OFFLINE if($_POST['set_status'] == 1){ $update_array = array('status' => '0'); for($i = 0; $i < $max_elements; $i++){ // ITEMS OVERVIEW? if((int
)$_GET['cat']){ xtc_db_perform
(TABLE_INFOCENTER_ITEMS
, $update_array, 'update', "id = '".$_POST['status'][$i]."'"); }else{ xtc_db_perform
(TABLE_INFOCENTER_CATEGORIES
, $update_array, 'update', "id = '".$_POST['status'][$i]."'"); xtc_db_perform
(TABLE_INFOCENTER_ITEMS
, $update_array, 'update', "categories_id = '".$_POST['status'][$i]."'"); } } // ONLINE }elseif($_POST['set_status'] == 2){ $update_array = array('status' => '1'); for($i = 0; $i < $max_elements; $i++){ // ITEMS OVERVIEW? if((int
)$_GET['cat']){ xtc_db_perform
(TABLE_INFOCENTER_ITEMS
, $update_array, 'update', "id = '".$_POST['status'][$i]."'"); }else{ xtc_db_perform
(TABLE_INFOCENTER_CATEGORIES
, $update_array, 'update', "id = '".$_POST['status'][$i]."'"); xtc_db_perform
(TABLE_INFOCENTER_ITEMS
, $update_array, 'update', "categories_id = '".$_POST['status'][$i]."'"); } } // DEL ALL }elseif($_POST['set_status'] == 3){ for($i = 0; $i < $max_elements; $i++){ // ITEMS OVERVIEW? if((int
)$_GET['cat']){ xtc_db_query
("DELETE FROM ".TABLE_INFOCENTER_ITEMS
." where id = '".$_POST['status'][$i]."'"); }else{ xtc_db_query
("DELETE FROM ".TABLE_INFOCENTER_CATEGORIES
." where id = '".$_POST['status'][$i]."'"); xtc_db_query
("DELETE FROM ".TABLE_INFOCENTER_ITEMS
." where categories_id = '".$_POST['status'][$i]."'"); } } } // STAY IN FAQ CATEGORIE if((int
)$_GET['cat']){ xtc_redirect
(xtc_href_link
(FILENAME_INFOCENTER
, 'action=showitems&cat='.(int
)$_GET['cat'])); // STAY IN CATEGORIES-OVERVIEW }else{ xtc_redirect
(xtc_href_link
(FILENAME_INFOCENTER
)); } break; case 'insertcategorie': $lang = sizeof($languages); // nächste ID ermitteln if($_POST['categorie_id'] == ''){ $next_query = xtc_db_query
("SELECT MAX(id) AS ID FROM ".TABLE_INFOCENTER_CATEGORIES
); $next_id = xtc_db_fetch_array
($next_query); $next_id = $next_id['ID']; if($next_id!=0 ?
$next_id+=1 : $next_id=1); for ($i = 0; $i < $lang; $i++){ $languages_id = $languages[$i]['id']; $new_categorie_array = array( 'id' => $next_id, 'language_id' => $languages_id, 'titel' => xtc_db_prepare_input
($_POST['titel'][$languages_id]), 'position' => xtc_db_prepare_input
($_POST['position'][$languages_id]), 'description' => xtc_db_prepare_input
($_POST['description'][$languages_id])); xtc_db_perform
(TABLE_INFOCENTER_CATEGORIES
, $new_categorie_array); } // UPDATE }elseif($_POST['categorie_id'] != ''){ $categorieID = $_POST['categorie_id']; for ($i = 0; $i < $lang; $i++){ $languages_id = $languages[$i]['id']; $update_categorie_array = array( 'titel' => xtc_db_prepare_input
($_POST['titel'][$languages_id]), 'position' => xtc_db_prepare_input
($_POST['position'][$languages_id]), 'description' => xtc_db_prepare_input
($_POST['description'][$languages_id])); xtc_db_perform
(TABLE_INFOCENTER_CATEGORIES
, $update_categorie_array, 'update', "id = '" . $categorieID . "' AND language_id = '".$languages_id."'"); } } xtc_redirect
(xtc_href_link
(FILENAME_INFOCENTER
)); break; case 'updatestartsite': $lang = sizeof($languages); // INSERT if($_POST['id'] != 1){ for($i = 0; $i < $lang; $i++){ $languages_id = $languages[$i]['id']; $new_start_array = array( 'id' => 1, 'language_id' => $languages_id, 'description' => xtc_db_prepare_input
($_POST['description'][$languages_id])); xtc_db_perform
(TABLE_INFOCENTER_START
, $new_start_array); } // UPDATE }else{ for($i = 0; $i < $lang; $i++){ $languages_id = $languages[$i]['id']; xtc_db_query
("UPDATE ".TABLE_INFOCENTER_START
." SET
description = '".xtc_db_prepare_input
($_POST['description'][$languages_id])."'
WHERE id = 1 AND language_id = '".$languages_id."'"); } } xtc_redirect
(xtc_href_link
(FILENAME_INFOCENTER
)); break; case 'insertitem': //------------------------ $lang = sizeof($languages); // nächste ID ermitteln if($_POST['item_id'] == ''){ $next_query = xtc_db_query
("SELECT MAX(id) AS ID FROM ".TABLE_INFOCENTER_ITEMS
); $next_id = xtc_db_fetch_array
($next_query); $next_id = $next_id['ID']; if($next_id!=0 ?
$next_id+=1 : $next_id=1); for ($i = 0; $i < $lang; $i++){ $languages_id = $languages[$i]['id']; $new_item_array = array( 'id' => $next_id, 'language_id' => $languages_id, 'categories_id' => xtc_db_prepare_input
($_POST['categories_id']), 'title' => xtc_db_prepare_input
($_POST['title'][$languages_id]), 'name' => xtc_db_prepare_input
($_POST['name'][$languages_id]), 'description' => xtc_db_prepare_input
($_POST['description'][$languages_id]), 'position' => xtc_db_prepare_input
($_POST['position'])); xtc_db_perform
(TABLE_INFOCENTER_ITEMS
, $new_item_array); } // UPDATE }elseif($_POST['item_id'] != ''){ $itemID = $_POST['item_id']; for ($i = 0; $i < $lang; $i++){ $languages_id = $languages[$i]['id']; $update_item_array = array( 'categories_id' => xtc_db_prepare_input
($_POST['categories_id']), 'title' => xtc_db_prepare_input
($_POST['title'][$languages_id]), 'name' => xtc_db_prepare_input
($_POST['name'][$languages_id]), 'description' => xtc_db_prepare_input
($_POST['description'][$languages_id]), 'position' => xtc_db_prepare_input
($_POST['position'])); xtc_db_perform
(TABLE_INFOCENTER_ITEMS
, $update_item_array, 'update', "id = '" . $itemID . "' AND language_id = '".$languages_id."'"); } } xtc_redirect
(xtc_href_link
(FILENAME_INFOCENTER
, 'action=showitems&cat='.$_POST['categories_id'])); break; default: // CATEGORIES $categories_query = xtc_db_query
("SELECT id, titel, status, position, description
FROM ".TABLE_INFOCENTER_CATEGORIES
."
WHERE language_id = '".$_SESSION['languages_id']."'
ORDER BY position ASC"); if($_GET['action'] == 'showitems'){ $categorie_query = xtc_db_query
("SELECT titel
FROM ".TABLE_INFOCENTER_CATEGORIES
."
WHERE id = '".(int
)$_GET['cat']."'
AND language_id = '".$_SESSION['languages_id']."'"); $categorie = xtc_db_fetch_array
($categorie_query); $items_query = xtc_db_query
("SELECT
fi.id,
fi.title,
fi.position AS position,
fi.status AS status,
fi.categories_id AS categories_id
FROM ".TABLE_INFOCENTER_ITEMS
." fi
WHERE fi.categories_id = '".(int
)$_GET['cat']."'
AND fi.language_id = '".$_SESSION['languages_id']."'
ORDER BY fi.position ASC"); } }?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<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="includes/stylesheet.css">
<?phpif(USE_WYSIWYG
== 'true') { $query = xtc_db_query
("SELECT code FROM ".TABLE_LANGUAGES
." WHERE languages_id='".$_SESSION['languages_id']."'"); $data = xtc_db_fetch_array
($query);?><script type="text/javascript" src="includes/modules/fckeditor/fckeditor.js"></script>
<script type="text/javascript">
window.onload = function(){
<?php if($_GET['action'] == 'newitem' || $_GET['action'] == 'edititem' || $_GET['action'] == 'newcategorie' || $_GET['action'] == 'editcategories' || $_GET['action'] == 'startsite') { for ($i=0; $i < sizeof($languages); $i++) { echo xtc_wysiwyg
('infocenter', $data['code'], $languages[$i]['id']); } }?>}
</script>
<?php }?><script type="text/javascript">
<!--
function checkboxes(wert){
var my = document.leiste;
var len = my.length;
for (var i = 0; i < len; i++) {
var e = my.elements[i];
if (e.name == "status[]") {
e.checked = wert;
}
}
}
//-->
</script>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="#FFFFFF">
<?php require(DIR_WS_INCLUDES
. 'header.php'); ?><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">
<?php require(DIR_WS_INCLUDES
. 'column_left.php'); ?> </table>
</td>
<td class="boxCenter" width="100%" valign="top">
<table border="0" width="100%" cellspacing="0" cellpadding="0">
<tr>
<td width="80" rowspan="2">
<?php echo xtc_image
(DIR_WS_ICONS
.'heading_content.gif'); ?></td>
<td class="pageHeading">
<?php echo HEADING_TITLE
; ?></td>
</tr>
<tr>
<td class="main" valign="top">modified eCommerce Shopsoftware</td>
</tr>
</table>
<table width="100%" border="0" cellspacing="1" cellpadding="2">
<tr>
<td class="main">
<?php echo CONTENT_NOTE
; ?></td>
</tr>
</table>
<br>
<table border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="uni_settings"><b>
<?php echo TABLE_HEADING_NAVIGATION
;?></b></td>
<td class="uni_settings"><a href="
<?php echo xtc_href_link
(FILENAME_INFOCENTER
).'">'.TABLE_HEADING_NAVIGATION_OVERVIEW
;?></a></td>
<td class="uni_settings"><a href="
<?php echo xtc_href_link
(FILENAME_INFOCENTER
,'action=newcategorie').'">'.TABLE_HEADING_NAVIGATION_NEWCATEGORIE
;?></a></td>
<td class="uni_settings"><a href="
<?php echo xtc_href_link
(FILENAME_INFOCENTER
,'action=newitem').'">'.TABLE_HEADING_NAVIGATION_NEWITEM
;?></a></td>
<td class="uni_settings"><a href="
<?php echo xtc_href_link
(FILENAME_INFOCENTER
,'action=startsite').'">'.TABLE_HEADING_NAVIGATION_STARTSITE
;?></a></td>
</tr>
</table>
<?php if($_GET['action'] == 'newcategorie' || $_GET['action'] == 'editcategories'){ echo xtc_draw_form
('categorie', FILENAME_INFOCENTER
, 'action=insertcategorie', 'post', ''); $count_languages = sizeof($languages);?><table width="100%" border="0" cellpadding="5" cellspacing="1" align="center" style="border-bottom:1px solid #dddddd;">
<?php for($i = 0; $i < $count_languages; $i ++){ $edit_categorie_query = xtc_db_query
("SELECT id, titel, status, position, description
FROM ".TABLE_INFOCENTER_CATEGORIES
."
WHERE id = '".(int
)$_GET['cat']."'
AND language_id = '".$languages[$i]['id']."'"); $edit_categorie = xtc_db_fetch_array
($edit_categorie_query); ?> <tr>
<td class="uni_content" height="20"> </td>
</tr>
<tr>
<td>
<table border="0" cellpadding="5" cellspacing="0">
<tr>
<td width="" class="uni_header">
<?php echo TABLE_HEADING_NEWCATEGORIE_NAME
. ' ('.$languages[$i]['code'].')';?></td>
<td class="uni_header">
<?php echo xtc_draw_input_field
('titel['.$languages[$i]['id'].']', $edit_categorie['titel'],'size="55"');?></td>
<td class="uni_header">
<?php echo TABLE_HEADING_NEWCATEGORIE_POSITION
;?></td>
<td class="uni_header">
<?php echo xtc_draw_input_field
('position['.$languages[$i]['id'].']', $edit_categorie['position'],'size="4"');?></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="1" class="uni_header"><b>
<?php echo $languages[$i]['name'];?></b><td>
</tr>
<tr>
<td valign="top" colspan="1">
<table width="100%" border="0" cellpadding="3" cellspacing="1" align="center" style="border:1px solid #dddddd;">
<tr>
<td class="uni_header">
<?php echo TABLE_HEADING_DESC
;?></td>
</tr>
<tr>
<td class="uni_content">
<?php echo xtc_draw_textarea_field
('description['.$languages[$i]['id'].']','','100','50',$edit_categorie['description'], 'style="width:99%;"'); ?></td>
</tr>
</table>
</td>
</tr>
<?php }?> <tr>
<td class="uni_content" height="20"> </td>
</tr>
<tr>
<td align="right">
<?php echo xtc_draw_hidden_field
('categorie_id', $edit_categorie['id']) . '<input type="submit" class="uni_button" value="Speichern" onClick="return confirm(\''.UPDATE_ENTRY
.'\')">';?></td>
</tr>
<tr>
<td class="uni_content" height="20"> </td>
</tr>
</table>
</form>
<?php }?><br>
<?php// STARTSEITE if($_GET['action'] == 'startsite'){ echo xtc_draw_form
('start', FILENAME_INFOCENTER
, 'action=updatestartsite', 'post', '');?><table width="100%" border="0" cellpadding="5" cellspacing="1" align="center" style="border-bottom:1px solid #dddddd;">
<?php $count_languages = sizeof($languages); for($i = 0; $i < $count_languages; $i++) { // EDIT ITEM $start_query = xtc_db_query
("SELECT id, description AS text FROM ".TABLE_INFOCENTER_START
."
WHERE id = 1 AND language_id = '".$languages[$i]['id']."'"); $start = xtc_db_fetch_array
($start_query); ?> <tr>
<td colspan="2" class="uni_header"><b>
<?php echo $languages[$i]['name'];?></b><td>
</tr>
<tr>
<td valign="top" colspan="2">
<table width="100%" border="0" cellpadding="3" cellspacing="1" align="center" style="border:1px solid #dddddd;">
<tr>
<td class="uni_header">
<?php echo TABLE_HEADING_DESC
;?></td>
</tr>
<tr>
<td class="uni_content">
<?php echo xtc_draw_textarea_field
('description['.$languages[$i]['id'].']','','100','50',$start['text'], 'style="width:99%;"'); ?></td>
</tr>
</table>
</td>
</tr>
<?php }?> <tr>
<td class="uni_content" height="20"> </td>
</tr>
<tr>
<td class="uni_content">
<?php echo xtc_draw_hidden_field
('id',$start['id']) . '<input type="submit" class="button" onClick="this.blur();" value="'.BUTTON_SAVE
.'"/>'; ?><a class="button" onClick="this.blur();" href="
<?php echo xtc_href_link
(FILENAME_INFOCENTER
); ?>">
<?php echo BUTTON_BACK
; ?></a></td>
</tr>
</table>
</form>
<br />
<!-- news bearbeiten ende -->
<?php }elseif($_GET['action'] == 'edititem' || $_GET['action'] == 'newitem'){ echo xtc_draw_form
('item', FILENAME_INFOCENTER
, 'action=insertitem', 'post', '');?><table width="100%" border="0" cellpadding="5" cellspacing="1" align="center" style="border-bottom:1px solid #dddddd;">
<?php $count_languages = sizeof($languages); for($i = 0; $i < $count_languages; $i++) { // EDIT ITEM $items_query = xtc_db_query
("SELECT
fi.id,
fi.title AS item_title,
fi.name AS item_name,
fc.titel AS categorie_name,
fi.position AS position,
fi.description AS description,
fi.categories_id AS categories_id
FROM ".TABLE_INFOCENTER_ITEMS
." fi,
".TABLE_INFOCENTER_CATEGORIES
." fc
WHERE fi.id = '".(int
)$_GET['item']."'
AND fi.language_id = '".$languages[$i]['id']."'
AND categories_id = fc.id"); $items = xtc_db_fetch_array
($items_query); ?> <tr>
<td colspan="2" class="uni_header"><b>
<?php echo $languages[$i]['name'];?></b><td>
</tr>
<tr>
<td valign="top" colspan="2">
<table width="100%" border="0" cellpadding="3" cellspacing="1" align="center" style="border:1px solid #dddddd;">
<tr>
<td width="20%" class="uni_header">
<?php echo TABLE_HEADING_NEWITEM_NAME
;?></td>
<td class="uni_content">
<?php echo xtc_draw_input_field
('name['.$languages[$i]['id'].']', $items['item_name'],'size="70"');?></td>
</tr>
<tr>
<td width="20%" class="uni_header">
<?php echo TABLE_HEADING_NEWITEM_TITLE
;?></td>
<td class="uni_content">
<?php echo xtc_draw_input_field
('title['.$languages[$i]['id'].']', $items['item_title'],'size="70"');?></td>
</tr>
<tr>
<td class="uni_header">
<?php echo TABLE_HEADING_DESC
;?></td>
<td class="uni_content"></td>
</tr>
<tr>
<td class="uni_content" colspan="2">
<?php echo xtc_draw_textarea_field
('description['.$languages[$i]['id'].']','','100','50',$items['description'], 'style="width:99%;"'); ?></td>
</tr>
</table>
</td>
</tr>
<?php }?> <tr>
<td width="20%" class="uni_header">
<?php echo TABLE_HEADING_TITLE
;?></td>
<td class="uni_content">
<?php echo xtc_draw_pull_down_menu
('categories_id', $select_categories, $items['categories_id'], 'style="width:400px;"');?></td>
</tr>
<tr>
<td class="uni_header">
<?php echo TABLE_HEADING_NEWCATEGORIE_POSITION
;?></td>
<td class="uni_content">
<?php echo xtc_draw_input_field
('position', $items['position'],'size="4"');?></td>
</tr>
<tr>
<td class="uni_content" colspan="2" height="20"> </td>
</tr>
<tr>
<td class="uni_content" colspan="2">
<?php echo xtc_draw_hidden_field
('item_id',$items['id']) . '<input type="submit" class="button" onClick="this.blur();" value="'.BUTTON_SAVE
.'"/>'; ?><a class="button" onClick="this.blur();" href="
<?php echo xtc_href_link
(FILENAME_INFOCENTER
); ?>">
<?php echo BUTTON_BACK
; ?></a></td>
</tr>
</table>
</form>
<br />
<!-- news bearbeiten ende -->
<?php }elseif($_GET['action'] == 'showitems'){ // SHOW ALL ITEMS IN CATEGORIE XY echo xtc_draw_form
('leiste', FILENAME_INFOCENTER
, 'action=set&cat='.(int
)$_GET['cat'], 'post','');?><table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="uni_header" width="5%" align="center"><input type="checkbox" onClick="javascript:checkboxes(this.checked);"></td>
<td class="uni_header" width="80%"><b>
<?php echo $categorie['titel'];?></b></td>
<td class="uni_header" width="5%"><b>
<?php echo TABLE_HEADING_NEWCATEGORIE_POSITION
;?></b></td>
<td class="uni_header" width="10%"><b>
<?php echo TABLE_HEADING_ACTION
;?></b></td>
</tr>
<?php // alle anzeigen $i = 0; while($items = xtc_db_fetch_array
($items_query)){?> <tr class="
<?php echo ($i%2 ?
'uni_bg' : 'uni_bg2');?>">
<td class="uni_content" align="center">
<?php echo xtc_draw_selection_field
('status[]', 'checkbox', $items['id']);?></td>
<td class="uni_content">
<?php echo ($items['status'] == 0 ?
'<font color="#ff0000">'.$items['title'].'</font>' : $items['title']);?></td>
<td class="uni_content" align="center">
<?php echo $items['position'];?></td>
<td class="uni_content"><a href="
<?php echo xtc_href_link
(FILENAME_INFOCENTER
,'action=edititem&item='.$items['id']).'">'.xtc_image
(DIR_WS_ICONS
. 'uni_editing.gif', TABLE_HEADING_ACTION_EDIT
);?></a></td>
</tr>
<?php $i++; }?> </table>
<br>
<!-- LEISTE -->
<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
<td class="uni_header" width="70" align="center">
<?php echo TABLE_FOOTER_STATUS
;?> <td class="uni_header" width="70" align="center">
<?php echo xtc_draw_pull_down_menu
('set_status', $status, '', 'style="width:100px;"');?></td>
<td class="uni_header" width="50" align="center">
<?php echo '<input type="submit" class="uni_button" value="GO!" onClick="return confirm(\''.UPDATE_ENTRY
.'\')">';?></td>
<td class="uni_header"> </td>
</tr>
</table>
</form>
<?php } else{ // SHOW ALL CATEGORIES?><?php echo xtc_draw_form
('leiste', FILENAME_INFOCENTER
, 'action=set', 'post','');?><table width="100%" border="0" cellspacing="1" cellpadding="4">
<tr>
<td class="uni_header" width="5%" align="center"><input type="checkbox" onClick="javascript:checkboxes(this.checked);"></td>
<td class="uni_header" width="80%"><b>
<?php echo TABLE_HEADING_TITLE
;?></b></td>
<td class="uni_header" width="5%"><b>
<?php echo TABLE_HEADING_NEWCATEGORIE_POSITION
;?></b></td>
<td class="uni_header" width="10%"><b>
<?php echo TABLE_HEADING_ACTION
;?></b></td>
</tr>
<?php // alle anzeigen $i = 0; while($categories = xtc_db_fetch_array
($categories_query)){ // COUNT ITEMS $count_offline_items_query = xtc_db_query
("SELECT COUNT(id) AS number FROM ".TABLE_INFOCENTER_ITEMS
." WHERE categories_id = '".$categories['id']."' AND language_id = '".$_SESSION['languages_id']."' AND status = 0"); $count_offline_items = xtc_db_fetch_array
($count_offline_items_query); // COUNT ITEMS $count_items_query = xtc_db_query
("SELECT COUNT(id) AS number FROM ".TABLE_INFOCENTER_ITEMS
." WHERE categories_id = '".$categories['id']."' AND language_id = '".$_SESSION['languages_id']."'"); $count_items = xtc_db_fetch_array
($count_items_query); ?> <tr class="
<?php echo ($i%2 ?
'uni_bg' : 'uni_bg2');?>">
<td class="uni_content" align="center">
<?php echo xtc_draw_selection_field
('status[]', 'checkbox', $categories['id']);?></td>
<td class="uni_content">
<?php $field_name = ($categories['status'] == 0 ?
'<font color="#ff0000">'.$categories['titel'].'<br>'.TABLE_HEADING_INFOCENTER_TOPIC
. $count_items['number'].', '.TABLE_HEADING_INFOCENTER_TOPIC_OFF
. $count_offline_items['number'].'</font>' : '<b>'.$categories['titel'].'</b><br>'.TABLE_HEADING_INFOCENTER_TOPIC
. $count_items['number'].', '.TABLE_HEADING_INFOCENTER_TOPIC_OFF
. $count_offline_items['number']); echo $field_name;?></td>
<td class="uni_content" align="center">
<?php $field_position = $categories['position']; echo $field_position;?> </td>
<td class="uni_content"><a href="
<?php echo xtc_href_link
(FILENAME_INFOCENTER
,'action=showitems&cat='.$categories['id']).'">'.xtc_image
(DIR_WS_ICONS
. 'uni_folder.gif', ICON_FOLDER
);?></a><a href="
<?php echo xtc_href_link
(FILENAME_INFOCENTER
,'action=editcategories&cat='.$categories['id']).'">'.xtc_image
(DIR_WS_ICONS
. 'uni_editing.gif', TABLE_HEADING_ACTION_EDIT
);?></a></td>
</tr>
<?php $i++; }?> </table>
<br>
<!-- LEISTE -->
<table width="100%" border="0" cellspacing="0" cellpadding="3">
<tr>
<td class="uni_header" width="70" align="center">
<?php echo TABLE_FOOTER_STATUS
;?> <td class="uni_header" width="70" align="center">
<?php echo xtc_draw_pull_down_menu
('set_status', $status, '', 'style="width:100px;"');?></td>
<td class="uni_header" width="50" align="center">
<?php echo '<input type="submit" class="uni_button" value="GO!" onClick="return confirm(\''.UPDATE_ENTRY
.'\')">';?></td>
<td class="uni_header"> </td>
</tr>
</table>
</form>
<?php }?> </td>
</tr>
<tr>
<td class="uni_content" height="20"> </td>
</tr>
</table>
<?php if(USE_SPAW
=='true') {?><script type="text/javascript">
HTMLArea.loadPlugin("SpellChecker");
HTMLArea.loadPlugin("TableOperations");
HTMLArea.loadPlugin("CharacterMap");
HTMLArea.loadPlugin("ContextMenu");
HTMLArea.loadPlugin("ImageManager");
HTMLArea.onload = function() {
var editor = new HTMLArea("description");
editor.registerPlugin(TableOperations);
editor.registerPlugin(ContextMenu);
editor.registerPlugin(CharacterMap);
editor.registerPlugin(ImageManager);
editor.generate();
};
HTMLArea.init();
</script>
<?php }?></body>
</html>
<?php require(DIR_WS_INCLUDES
. 'application_bottom.php'); ?>