diff --git a/cms/admin.php b/cms/admin.php index a81cf88cc..7606b102c 100644 --- a/cms/admin.php +++ b/cms/admin.php @@ -25,9 +25,11 @@ require_once('../include/template.class.php'); require_once('../include/functions.inc.php'); require_once('../include/sprache.class.php'); require_once('../include/gruppe.class.php'); +require_once('../include/datum.class.php'); require_once('../include/xsdformprinter/xsdformprinter.php'); require_once('../include/organisationseinheit.class.php'); require_once('../include/benutzerberechtigung.class.php'); +require_once('../include/DifferenceEngine/DifferenceEngine.php'); $user = get_uid(); @@ -57,7 +59,7 @@ if(!$rechte->isBerechtigt('basis/cms')) mode : "textareas", theme : "advanced", file_browser_callback: "FHCFileBrowser", - + plugins : "spellchecker,pagebreak,style,layer,table,advhr,advimage,advlink,inlinepopups,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras", // Theme options @@ -78,7 +80,7 @@ if(!$rechte->isBerechtigt('basis/cms')) tinyMCE.activeEditor.windowManager.open({ file: cmsURL, title : "FHComplete File Browser", - width: 550, + width: 750, height: 550, resizable: "yes", close_previous: "no", @@ -96,11 +98,13 @@ if(!$rechte->isBerechtigt('basis/cms')) '.$content->errormsg.''; } -if(isset($_GET['method'])) +if(!is_null($method)) { - switch($_GET['method']) + switch($method) { case 'add_new_content': $oe = new organisationseinheit(); @@ -269,6 +273,7 @@ if($result = $db->db_query($qry)) echo ''; drawmenulink($row->content_id, $row->titel); echo ''; + $submenu_depth=0; drawsubmenu($row->content_id); echo ''; } @@ -282,11 +287,13 @@ echo ''; //Editieren if(!is_null($content_id)) { - echo 'Eigenschaften'; - echo ' | Inhalt'; - echo ' | Vorschau'; - echo ' | Rechte'; - echo ' | Childs'; + echo get_content_link('prefs','Eigenschaften').' | '; + echo get_content_link('content','Inhalt').' | '; + echo get_content_link('preview','Vorschau').' | '; + echo get_content_link('rights','Rechte').' | '; + echo get_content_link('childs','Childs').' | '; + echo get_content_link('history','History'); + echo '
'.$message.'
'; echo '

'; @@ -300,7 +307,7 @@ if(!is_null($content_id)) print_content(); break; case 'preview': - echo '