diff --git a/cms/admin.php b/cms/admin.php index 4edb324ec..6540e51f2 100644 --- a/cms/admin.php +++ b/cms/admin.php @@ -27,8 +27,15 @@ require_once('../include/sprache.class.php'); require_once('../include/gruppe.class.php'); require_once('../include/xsdformprinter/xsdformprinter.php'); require_once('../include/organisationseinheit.class.php'); +require_once('../include/benutzerberechtigung.class.php'); $user = get_uid(); + +$rechte = new benutzerberechtigung(); +$rechte->getBerechtigungen($user); + +if(!$rechte->isBerechtigt('basis/cms')) + die('Sie haben keine Berechtigung fuer diese Seite'); ?> @@ -49,19 +56,33 @@ $user = get_uid(); { mode : "textareas", theme : "advanced", - file_browser_callback: "FHCFileBrowser" + 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 + theme_advanced_buttons1 : "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,formatselect,fontsizeselect", + theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,|,forecolor,backcolor", + theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,|,print,|,ltr,rtl,|,fullscreen", + //theme_advanced_buttons4 : "insertfile,insertimage", + theme_advanced_toolbar_location : "top", + theme_advanced_toolbar_align : "center", + theme_advanced_statusbar_location : "bottom", + theme_advanced_resizing : true, + } ); function FHCFileBrowser(field_name, url, type, win) { - cmsURL = "cms/tinymce_dms.php?type"+type; + cmsURL = "cms/tinymce_dms.php?type="+type; tinyMCE.activeEditor.windowManager.open({ file: cmsURL, title : "FHComplete File Browser", - width: 420, - heigth: 400, + width: 550, + height: 550, resizable: "yes", close_previous: "no", + scrollbars: "yes", popup_css : false },{ window: win, @@ -70,20 +91,6 @@ $user = get_uid(); return false; } -
@@ -169,12 +176,14 @@ if(isset($_GET['method'])) $titel = $_POST['titel']; $oe_kurzbz=$_POST['oe_kurzbz']; $sichtbar=isset($_POST['sichtbar']); + $template_kurzbz = $_POST['template_kurzbz']; if($content->getContent($content_id, $sprache, $version)) { $content->titel = $titel; $content->oe_kurzbz = $oe_kurzbz; $content->sichtbar = $sichtbar; + $content->template_kurzbz = $template_kurzbz; $content->updateamum=date('Y-m-d H:i:s'); $content->updatevon=$user; @@ -337,7 +346,7 @@ function print_childs() $content = new content(); $content->getChilds($content_id); - echo 'Die Mitglieder der folgenden Gruppen dürfen die Seite ansehen:| + |
Kategorie: '; +//Kategorien anzeigen + $dms = new dms(); $dms->getKategorie(); foreach($dms->result as $row) { if($kategorie_kurzbz=='') $kategorie_kurzbz=$row->kategorie_kurzbz; - echo ''.$row->bezeichnung.' '; + if($kategorie_kurzbz==$row->kategorie_kurzbz) + $class='class="marked"'; + else + $class=''; + + echo ' + '; + echo $row->bezeichnung.' '; } -echo ' | '; +echo ' + | +';
+
+//Dokumente der Ausgewaehlten Kategorie laden und Anzeigen
$dms = new dms();
$dms->getDocuments($kategorie_kurzbz);
-$mimetypes=array('application/pdf'=>'pdf.ico',
- 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'=>'word2007.jpg',
- 'application/vnd.openxmlformats-officedocument.presentationml.presentation'=>'x-office-presentation.png',
- 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'=>'excel.gif',
- 'application/zip'=>'zippic.jpg');
+
+echo '
+
Neue Datei hochladen'; +echo ' + |