From: zapata Date: Fri, 13 Dec 2002 17:57:31 +0000 (+0000) Subject: support for managing users/article types/languages/comment statusses X-Git-Tag: BEFORE_MERGE_1_1~404 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=e98015ace7d45c4633645a2309c0209962a4d0a1;p=mir.git support for managing users/article types/languages/comment statusses --- diff --git a/bundles/admin_ay.properties b/bundles/admin_ay.properties index 865cd034..eb65ffe7 100755 --- a/bundles/admin_ay.properties +++ b/bundles/admin_ay.properties @@ -245,7 +245,9 @@ start.mediafolder.title=CARPETA DE RECURSOS MEDIATICOS start.languages.title=TÍTULO start.imcs.title=IMCS start.messageboard.title=Mensajería Interna -start.messageboard.no_messages=no hay mensajes +start.messageboard.no_messages=no hay mensajes + +start.superusermenu=Superuser menu (use with care!) # needs translation # topic topic.htmltitle=tema @@ -255,7 +257,29 @@ topic.filename=Nombre del fichero topic.main_url=página de información principal topic.archive_url=URL del archivo -topiclist.htmltitle=lista de temas +topiclist.htmltitle=lista de temas + +articletype.htmltitle=Article type # needs translation +articletype.id=id # needs translation +articletype.name=Name # needs translation + +articletypelist.htmltitle=Article types # needs translation + +commentstatus.htmltitle=Comment status # needs translation +commentstatus.id=id # needs translation +commentstatus.name=Name # needs translation + +commentstatuslist.htmltitle=Comment status values # needs translation + + +superusermenu.htmltitle = Super-user functions # needs translation +superusermenu.topics = Manage topics # needs translation +superusermenu.articletypes = Manage article types # needs translation +superusermenu.comment_statuses = Manage comment status values # needs translation +superusermenu.users = Manage users # needs translation +superusermenu.languages = Manage languages # needs translation +superusermenu.imcs = Manage IMCS (obsolete) # needs translation + # users user.htmltitle=usuario diff --git a/bundles/admin_de.properties b/bundles/admin_de.properties index 26974afb..fa49b73f 100755 --- a/bundles/admin_de.properties +++ b/bundles/admin_de.properties @@ -1,6 +1,6 @@ ########## admin ########## # language: deutsch / german -# $Id: admin_de.properties,v 1.18 2002/12/01 22:12:25 zapata Exp $ +# $Id: admin_de.properties,v 1.19 2002/12/13 18:00:23 zapata Exp $ # general yes=ja @@ -263,6 +263,9 @@ start.imcs.title=IMCS start.messageboard.title=Internes Messageboard start.messageboard.no_messages=keine nachrichten +start.superusermenu=Superuser menu (use with care!) # needs translation + + # topic topic.htmltitle=topic topic.title=Name @@ -273,6 +276,28 @@ topic.archive_url=Archiv url topiclist.htmltitle=topiclist +articletype.htmltitle=Article type # needs translation +articletype.id=id # needs translation +articletype.name=Name # needs translation + +articletypelist.htmltitle=Article types # needs translation + +commentstatus.htmltitle=Comment status # needs translation +commentstatus.id=id # needs translation +commentstatus.name=Name # needs translation + +commentstatuslist.htmltitle=Comment status values # needs translation + + +superusermenu.htmltitle = Super-user functions # needs translation +superusermenu.topics = Manage topics # needs translation +superusermenu.articletypes = Manage article types # needs translation +superusermenu.comment_statuses = Manage comment status values # needs translation +superusermenu.users = Manage users # needs translation +superusermenu.languages = Manage languages # needs translation +superusermenu.imcs = Manage IMCS (obsolete) # needs translation + + # users user.htmltitle=user user.login=login diff --git a/bundles/admin_en.properties b/bundles/admin_en.properties index 6861e7ba..45f8fffc 100755 --- a/bundles/admin_en.properties +++ b/bundles/admin_en.properties @@ -1,6 +1,6 @@ ########## admin ########## # language: english -# $Id: admin_en.properties,v 1.26 2002/12/01 22:12:25 zapata Exp $ +# $Id: admin_en.properties,v 1.27 2002/12/13 18:00:23 zapata Exp $ # general yes=yes @@ -258,6 +258,8 @@ start.imcs.title=IMCS start.messageboard.title=Internal Messageboard start.messageboard.no_messages=no messages +start.superusermenu=Super-user functions (use with care!) + start.editfiles.title=EDIT FILES start.editfiles.include=Include files @@ -272,12 +274,25 @@ topic.archive_url=Archive url topiclist.htmltitle=topiclist # users -user.htmltitle=user -user.login=login -user.password=password -user.admin=admin +user.htmltitle=User +user.login=Login +user.password=Password +user.admin=Admin + +userlist.htmltitle=Users + + +articletype.htmltitle=Article type +articletype.id=id +articletype.name=Name -userlist.htmltitle=userlist +articletypelist.htmltitle=Article types + +commentstatus.htmltitle=Comment status +commentstatus.id=id +commentstatus.name=Name + +commentstatuslist.htmltitle=Comment status values #file editing @@ -306,6 +321,15 @@ producer.producerlist.title = Add a new job producerqueue.htmltitle = Generate manually +superusermenu.htmltitle = Super-user functions +superusermenu.topics = Manage topics +superusermenu.articletypes = Manage article types +superusermenu.comment_statuses = Manage comment status values +superusermenu.users = Manage users +superusermenu.languages = Manage languages +superusermenu.imcs = Manage IMCS (obsolete) + + # head head.start=start diff --git a/bundles/admin_es.properties b/bundles/admin_es.properties index 6da56674..1add7abc 100755 --- a/bundles/admin_es.properties +++ b/bundles/admin_es.properties @@ -1,6 +1,6 @@ ########## admin ########## # language: espanol / spanish -# $Id: admin_es.properties,v 1.10 2002/12/01 22:12:25 zapata Exp $ +# $Id: admin_es.properties,v 1.11 2002/12/13 18:00:23 zapata Exp $ # general yes=sí @@ -250,6 +250,7 @@ start.content.hidden=hidden articles # needs to b start.editfiles.title=EDIT FILES # needs to be translated start.editfiles.include=Include files # needs to be translated +start.superusermenu=Superuser menu (use with care!) # needs translation @@ -264,6 +265,20 @@ topic.archive_url=URL del archivo topiclist.htmltitle=lista de temas + +articletype.htmltitle=Article type # needs translation +articletype.id=id # needs translation +articletype.name=Name # needs translation + +articletypelist.htmltitle=Article types # needs translation + +commentstatus.htmltitle=Comment status # needs translation +commentstatus.id=id # needs translation +commentstatus.name=Name # needs translation + +commentstatuslist.htmltitle=Comment status values # needs translation + + # users user.htmltitle=usuario user.login=login @@ -291,6 +306,15 @@ producer.producerlist.title = Add a new job # needs to be translated producerqueue.htmltitle = Generate manually # needs to be translated +superusermenu.htmltitle = Super-user functions # needs translation +superusermenu.topics = Manage topics # needs translation +superusermenu.articletypes = Manage article types # needs translation +superusermenu.comment_statuses = Manage comment status values # needs translation +superusermenu.users = Manage users # needs translation +superusermenu.languages = Manage languages # needs translation +superusermenu.imcs = Manage IMCS (obsolete) # needs translation + + #file editing fileeditlist.htmltitle = Editable files # needs to be translated fileeditlist.filename = Filename # needs to be translated diff --git a/bundles/admin_gn.properties b/bundles/admin_gn.properties index 8364f90c..4f87cbdf 100755 --- a/bundles/admin_gn.properties +++ b/bundles/admin_gn.properties @@ -248,6 +248,9 @@ start.imcs.title=IMCS start.messageboard.title=Mensajería Interna start.messageboard.no_messages=no hay mensajes +start.superusermenu=Superuser menu (use with care!) # needs translation + + # topic topic.htmltitle=tema topic.title=Nombre @@ -258,6 +261,28 @@ topic.archive_url=URL del archivo topiclist.htmltitle=lista de temas +articletype.htmltitle=Article type # needs translation +articletype.id=id # needs translation +articletype.name=Name # needs translation + +articletypelist.htmltitle=Article types # needs translation + +commentstatus.htmltitle=Comment status # needs translation +commentstatus.id=id # needs translation +commentstatus.name=Name # needs translation + +commentstatuslist.htmltitle=Comment status values # needs translation + + +superusermenu.htmltitle = Super-user functions # needs translation +superusermenu.topics = Manage topics # needs translation +superusermenu.articletypes = Manage article types # needs translation +superusermenu.comment_statuses = Manage comment status values # needs translation +superusermenu.users = Manage users # needs translation +superusermenu.languages = Manage languages # needs translation +superusermenu.imcs = Manage IMCS (obsolete) # needs translation + + # users user.htmltitle=usuario user.login=login diff --git a/bundles/admin_qu.properties b/bundles/admin_qu.properties index 0be383cd..9c9fc9c5 100755 --- a/bundles/admin_qu.properties +++ b/bundles/admin_qu.properties @@ -248,6 +248,9 @@ start.imcs.title=IMCS start.messageboard.title=Mensajería Interna start.messageboard.no_messages=no hay mensajes +start.superusermenu=Superuser menu (use with care!) # needs translation + + # topic topic.htmltitle=tema topic.title=Nombre @@ -258,6 +261,26 @@ topic.archive_url=URL del archivo topiclist.htmltitle=lista de temas +articletype.htmltitle=Article type # needs translation +articletype.id=id # needs translation +articletype.name=Name # needs translation + +articletypelist.htmltitle=Article types # needs translation + +commentstatus.htmltitle=Comment status # needs translation +commentstatus.id=id # needs translation +commentstatus.name=Name # needs translation + +commentstatuslist.htmltitle=Comment status values # needs translation + +superusermenu.htmltitle = Super-user functions # needs translation +superusermenu.topics = Manage topics # needs translation +superusermenu.articletypes = Manage article types # needs translation +superusermenu.comment_statuses = Manage comment status values # needs translation +superusermenu.users = Manage users # needs translation +superusermenu.languages = Manage languages # needs translation +superusermenu.imcs = Manage IMCS (obsolete) # needs translation + # users user.htmltitle=usuario user.login=login diff --git a/bundles/admin_tr.properties b/bundles/admin_tr.properties index 4fdce198..547a68ef 100755 Binary files a/bundles/admin_tr.properties and b/bundles/admin_tr.properties differ diff --git a/etc/config.properties-dist b/etc/config.properties-dist index d023d44b..df4cbd10 100755 --- a/etc/config.properties-dist +++ b/etc/config.properties-dist @@ -330,6 +330,18 @@ ServletModule.Language.ObjektTemplate=templates/admin/language.template ServletModule.Language.ListTemplate=templates/admin/languagelist.template # +# config for article type +ServletModule.ArticleType.ConfirmTemplate=templates/admin/confirm.template +ServletModule.ArticleType.EditTemplate=templates/admin/articletype.template +ServletModule.ArticleType.ListTemplate=templates/admin/articletypelist.template + +# +# config for comment status +ServletModule.CommentStatus.ConfirmTemplate=templates/admin/confirm.template +ServletModule.CommentStatus.EditTemplate=templates/admin/commentstatus.template +ServletModule.CommentStatus.ListTemplate=templates/admin/commentstatuslist.template + +# # producer-related configs below # diff --git a/source/mir/servlet/ServletModule.java b/source/mir/servlet/ServletModule.java index 77cc80ef..e2e1d2ab 100755 --- a/source/mir/servlet/ServletModule.java +++ b/source/mir/servlet/ServletModule.java @@ -159,13 +159,8 @@ public abstract class ServletModule { } } theList = mainModule.getByWhereClause(null, offset); - //theList = mainModule.getByWhereClause((String)null, offset); - if (theList == null || theList.getCount() == 0 || theList.getCount() > 1) { - HTMLTemplateProcessor.process(res, templateListString, theList, out, getLocale(req)); - } - else { - deliver(req, res, theList.elementAt(0), templateObjektString); - } + + HTMLTemplateProcessor.process(res, templateListString, theList, out, getLocale(req)); } catch (Exception e) { throw new ServletModuleException(e.getMessage()); @@ -292,19 +287,17 @@ public abstract class ServletModule { try { String idParam = req.getParameter("id"); HashMap withValues = getIntersectingValues(req, mainModule.getStorageObject()); + String id = mainModule.set(withValues); - //theLog.printInfo("Showing Entity with id: " + id); - //edit(req,res); String whereParam = req.getParameter("where"); String orderParam = req.getParameter("order"); + if ((whereParam != null && !whereParam.equals("")) || (orderParam != null && !orderParam.equals(""))) { - //theLog.printDebugInfo("update to list"); list(req, res); } else { edit(req, res); } - //list(req,res); } catch (Exception e) { throw new ServletModuleException(e.getMessage()); diff --git a/source/mir/storage/Database.java b/source/mir/storage/Database.java index 979656a6..5dfb5b7f 100755 --- a/source/mir/storage/Database.java +++ b/source/mir/storage/Database.java @@ -55,7 +55,7 @@ import mir.misc.*; * Treiber, Host, User und Passwort, ueber den der Zugriff auf die * Datenbank erfolgt. * - * @version $Id: Database.java,v 1.25 2002/12/01 15:05:51 zapata Exp $ + * @version $Id: Database.java,v 1.26 2002/12/13 17:57:31 zapata Exp $ * @author rk * */ @@ -642,13 +642,17 @@ public class Database implements StorageObject { } else { throwStorageObjectException("Internal Error: theEntityClass not set!"); } - } catch (IllegalAccessException e) { + } + catch (IllegalAccessException e) { throwStorageObjectException("No access! -- " + e.getMessage()); - } catch (IOException e) { + } + catch (IOException e) { throwStorageObjectException("IOException! -- " + e.getMessage()); - } catch (InstantiationException e) { + } + catch (InstantiationException e) { throwStorageObjectException("No Instatiation! -- " + e.getMessage()); - } catch (SQLException sqe) { + } + catch (SQLException sqe) { throwSQLException(sqe, "makeEntityFromResultSet"); return null; } diff --git a/source/mircoders/module/ModuleArticleType.java b/source/mircoders/module/ModuleArticleType.java new file mode 100755 index 00000000..9ef8c941 --- /dev/null +++ b/source/mircoders/module/ModuleArticleType.java @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2001, 2002 The Mir-coders group + * + * This file is part of Mir. + * + * Mir is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Mir is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Mir; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * In addition, as a special exception, The Mir-coders gives permission to link + * the code of this program with the com.oreilly.servlet library, any library + * licensed under the Apache Software License, The Sun (tm) Java Advanced + * Imaging library (JAI), The Sun JIMI library (or with modified versions of + * the above that use the same license as the above), and distribute linked + * combinations including the two. You must obey the GNU General Public + * License in all respects for all of the code used other than the above + * mentioned libraries. If you modify this file, you may extend this exception + * to your version of the file, but you are not obligated to do so. If you do + * not wish to do so, delete this exception statement from your version. + */ + +package mircoders.module; + +import java.io.*; +import java.lang.*; +import java.util.*; +import java.sql.*; +import javax.servlet.*; +import javax.servlet.http.*; + +import freemarker.template.*; + +import mir.servlet.*; +import mir.module.*; +import mir.entity.*; +import mir.misc.*; +import mir.storage.*; +import mir.entity.*; +import mir.storage.*; +import mir.log.*; + +public class ModuleArticleType extends AbstractModule { + static LoggerWrapper logger = new LoggerWrapper("Module.ArticleType"); + + public ModuleArticleType (StorageObject theStorage) { + + if (theStorage == null) + logger.warn("ModuleArticleType -- StorageObject was null!"); + + this.theStorage = theStorage; + } +} diff --git a/source/mircoders/module/ModuleCommentStatus.java b/source/mircoders/module/ModuleCommentStatus.java new file mode 100755 index 00000000..ff9bf0b8 --- /dev/null +++ b/source/mircoders/module/ModuleCommentStatus.java @@ -0,0 +1,61 @@ +/* + * Copyright (C) 2001, 2002 The Mir-coders group + * + * This file is part of Mir. + * + * Mir is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Mir is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Mir; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * In addition, as a special exception, The Mir-coders gives permission to link + * the code of this program with the com.oreilly.servlet library, any library + * licensed under the Apache Software License, The Sun (tm) Java Advanced + * Imaging library (JAI), The Sun JIMI library (or with modified versions of + * the above that use the same license as the above), and distribute linked + * combinations including the two. You must obey the GNU General Public + * License in all respects for all of the code used other than the above + * mentioned libraries. If you modify this file, you may extend this exception + * to your version of the file, but you are not obligated to do so. If you do + * not wish to do so, delete this exception statement from your version. + */ + +package mircoders.module; + +import java.io.*; +import java.lang.*; +import java.util.*; +import java.sql.*; +import javax.servlet.*; +import javax.servlet.http.*; + +import freemarker.template.*; + +import mir.servlet.*; +import mir.module.*; +import mir.entity.*; +import mir.misc.*; +import mir.storage.*; +import mir.entity.*; +import mir.storage.*; +import mir.log.*; + +public class ModuleCommentStatus extends AbstractModule { + static LoggerWrapper logger = new LoggerWrapper("Module.CommentStatus"); + + public ModuleCommentStatus (StorageObject theStorage) { + if (theStorage == null) + logger.warn("ModuleCommentStatus -- StorageObject was null!"); + + this.theStorage = theStorage; + } +} diff --git a/source/mircoders/servlet/ServletModuleAdmin.java b/source/mircoders/servlet/ServletModuleAdmin.java new file mode 100755 index 00000000..0cb87c42 --- /dev/null +++ b/source/mircoders/servlet/ServletModuleAdmin.java @@ -0,0 +1,87 @@ +/* + * Copyright (C) 2001, 2002 The Mir-coders group + * + * This file is part of Mir. + * + * Mir is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Mir is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Mir; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * In addition, as a special exception, The Mir-coders gives permission to link + * the code of this program with the com.oreilly.servlet library, any library + * licensed under the Apache Software License, The Sun (tm) Java Advanced + * Imaging library (JAI), The Sun JIMI library (or with modified versions of + * the above that use the same license as the above), and distribute linked + * combinations including the two. You must obey the GNU General Public + * License in all respects for all of the code used other than the above + * mentioned libraries. If you modify this file, you may extend this exception + * to your version of the file, but you are not obligated to do so. If you do + * not wish to do so, delete this exception statement from your version. + */ + +package mircoders.servlet; + +import java.io.*; +import java.sql.*; +import java.util.*; +import javax.servlet.*; +import javax.servlet.http.*; + +import org.apache.struts.util.MessageResources; + +import freemarker.template.*; + +import mir.servlet.*; +import mir.misc.*; +import mir.producer.*; +import mir.generator.*; +import mir.producer.*; +import mir.entity.adapter.*; +import mir.util.*; +import mir.log.*; + +import mircoders.global.*; + +public class ServletModuleAdmin extends ServletModule +{ + private static ServletModuleAdmin instance = new ServletModuleAdmin(); + public static ServletModule getInstance() { return instance; } + + private ServletModuleAdmin() { + logger = new LoggerWrapper("ServletModule.Admin"); + defaultAction = "showSuperUserMenu"; + } + + public void superusermenu(HttpServletRequest aRequest, HttpServletResponse aResponse) throws ServletModuleException { + // ML: experiment in using the producer's generation system instead of the + // old one... + + URLBuilder urlBuilder = new URLBuilder(); + int count; + + try { + Map responseData = ServletHelper.makeGenerationData(getLocale(aRequest)); + urlBuilder.setValue("module", "Admin"); + urlBuilder.setValue("do", "superusermenu"); + + responseData.put("thisurl" , urlBuilder.getQuery()); + + ServletHelper.generateResponse(aResponse.getWriter(), responseData, "superusermenu.template"); + } + catch (Throwable e) { + e.printStackTrace(new PrintWriter(new LoggerToWriterAdapter(logger, logger.ERROR_MESSAGE))); + + throw new ServletModuleException(e.getMessage()); + } + } +} diff --git a/source/mircoders/servlet/ServletModuleArticleType.java b/source/mircoders/servlet/ServletModuleArticleType.java new file mode 100755 index 00000000..6cfb27b1 --- /dev/null +++ b/source/mircoders/servlet/ServletModuleArticleType.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2001, 2002 The Mir-coders group + * + * This file is part of Mir. + * + * Mir is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Mir is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Mir; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * In addition, as a special exception, The Mir-coders gives permission to link + * the code of this program with the com.oreilly.servlet library, any library + * licensed under the Apache Software License, The Sun (tm) Java Advanced + * Imaging library (JAI), The Sun JIMI library (or with modified versions of + * the above that use the same license as the above), and distribute linked + * combinations including the two. You must obey the GNU General Public + * License in all respects for all of the code used other than the above + * mentioned libraries. If you modify this file, you may extend this exception + * to your version of the file, but you are not obligated to do so. If you do + * not wish to do so, delete this exception statement from your version. + */ + +package mircoders.servlet; + +import java.io.*; +import java.sql.*; +import java.util.*; +import javax.servlet.*; +import javax.servlet.http.*; + +import mir.servlet.*; +import mir.module.*; +import mir.misc.*; +import mir.entity.*; +import mir.storage.*; +import mir.log.*; + +import mircoders.entity.*; +import mircoders.storage.*; +import mircoders.module.*; + +public class ServletModuleArticleType extends ServletModule +{ + private static ServletModuleArticleType instance = new ServletModuleArticleType(); + public static ServletModule getInstance() { return instance; } + + private ServletModuleArticleType() { + logger = new LoggerWrapper("ServletModule.ArticleType"); + + templateListString = MirConfig.getProp("ServletModule.ArticleType.ListTemplate"); + templateObjektString = MirConfig.getProp("ServletModule.ArticleType.EditTemplate"); + templateConfirmString = MirConfig.getProp("ServletModule.ArticleType.ConfirmTemplate"); + + try { + mainModule = new ModuleArticleType(DatabaseArticleType.getInstance()); + } + catch (StorageObjectException e) { + logger.error("Initialization of ServletModuleArticleType failed!: " + e.getMessage()); + } + } +} diff --git a/source/mircoders/servlet/ServletModuleCommentStatus.java b/source/mircoders/servlet/ServletModuleCommentStatus.java new file mode 100755 index 00000000..a1446180 --- /dev/null +++ b/source/mircoders/servlet/ServletModuleCommentStatus.java @@ -0,0 +1,70 @@ +/* + * Copyright (C) 2001, 2002 The Mir-coders group + * + * This file is part of Mir. + * + * Mir is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Mir is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Mir; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * In addition, as a special exception, The Mir-coders gives permission to link + * the code of this program with the com.oreilly.servlet library, any library + * licensed under the Apache Software License, The Sun (tm) Java Advanced + * Imaging library (JAI), The Sun JIMI library (or with modified versions of + * the above that use the same license as the above), and distribute linked + * combinations including the two. You must obey the GNU General Public + * License in all respects for all of the code used other than the above + * mentioned libraries. If you modify this file, you may extend this exception + * to your version of the file, but you are not obligated to do so. If you do + * not wish to do so, delete this exception statement from your version. + */ + +package mircoders.servlet; + +import java.io.*; +import java.sql.*; +import java.util.*; +import javax.servlet.*; +import javax.servlet.http.*; + +import mir.servlet.*; +import mir.module.*; +import mir.misc.*; +import mir.entity.*; +import mir.storage.*; +import mir.log.*; + +import mircoders.entity.*; +import mircoders.storage.*; +import mircoders.module.*; + +public class ServletModuleCommentStatus extends ServletModule +{ + private static ServletModuleCommentStatus instance = new ServletModuleCommentStatus(); + public static ServletModule getInstance() { return instance; } + + private ServletModuleCommentStatus() { + logger = new LoggerWrapper("ServletModule.CommentStatus"); + + templateListString = MirConfig.getProp("ServletModule.CommentStatus.ListTemplate"); + templateObjektString = MirConfig.getProp("ServletModule.CommentStatus.EditTemplate"); + templateConfirmString = MirConfig.getProp("ServletModule.CommentStatus.ConfirmTemplate"); + + try { + mainModule = new ModuleCommentStatus(DatabaseCommentStatus.getInstance()); + } + catch (StorageObjectException e) { + logger.error("Initialization of ServletModuleCommentStatus failed!: " + e.getMessage()); + } + } +} diff --git a/source/mircoders/servlet/ServletModuleContent.java b/source/mircoders/servlet/ServletModuleContent.java index 3ccd7cc2..4843d3ca 100755 --- a/source/mircoders/servlet/ServletModuleContent.java +++ b/source/mircoders/servlet/ServletModuleContent.java @@ -62,7 +62,7 @@ import mircoders.localizer.*; * ServletModuleContent - * deliver html for the article admin form. * - * @version $Id: ServletModuleContent.java,v 1.26 2002/12/02 12:33:24 zapata Exp $ + * @version $Id: ServletModuleContent.java,v 1.27 2002/12/13 17:57:31 zapata Exp $ * @author rk, mir-coders * */ @@ -328,7 +328,7 @@ public class ServletModuleContent extends ServletModule HashMap withValues = getIntersectingValues(req, DatabaseContent.getInstance()); String[] topic_id = req.getParameterValues("to_topic"); String content_id = req.getParameter("id"); -// withValues.put("publish_path", StringUtil.webdbDate2path((String)withValues.get("date"))); + if(user != null) withValues.put("user_id", user.getId()); withValues.put("is_produced", "0"); if (!withValues.containsKey("is_published")) @@ -341,8 +341,8 @@ public class ServletModuleContent extends ServletModule String whereParam = req.getParameter("where"); String orderParam = req.getParameter("order"); + if ((whereParam!=null && !whereParam.equals("")) || (orderParam!=null && !orderParam.equals(""))){ - //theLog.printDebugInfo("update to list"); list(req,res); } else diff --git a/source/mircoders/servlet/ServletModuleLanguage.java b/source/mircoders/servlet/ServletModuleLanguage.java index c8a0d3cb..0def750c 100755 --- a/source/mircoders/servlet/ServletModuleLanguage.java +++ b/source/mircoders/servlet/ServletModuleLanguage.java @@ -67,6 +67,7 @@ public class ServletModuleLanguage extends ServletModule templateListString = MirConfig.getProp("ServletModule.Language.ListTemplate"); templateObjektString = MirConfig.getProp("ServletModule.Language.ObjektTemplate"); templateConfirmString = MirConfig.getProp("ServletModule.Language.ConfirmTemplate"); + try { mainModule = new ModuleLanguage(DatabaseLanguage.getInstance()); } diff --git a/source/mircoders/servlet/ServletModuleUsers.java b/source/mircoders/servlet/ServletModuleUsers.java index 1bac541d..d9b57f21 100755 --- a/source/mircoders/servlet/ServletModuleUsers.java +++ b/source/mircoders/servlet/ServletModuleUsers.java @@ -80,7 +80,8 @@ public class ServletModuleUsers extends mir.servlet.ServletModule public void edit(HttpServletRequest req, HttpServletResponse res) throws ServletModuleException { - String idParam = req.getParameter("id"); + String idParam = req.getParameter("id"); + if (idParam == null) throw new ServletModuleException("ServletModuleUser.edit: invalid call: (id) not specified"); diff --git a/source/mircoders/storage/DatabaseCommentStatus.java b/source/mircoders/storage/DatabaseCommentStatus.java new file mode 100755 index 00000000..86588d3a --- /dev/null +++ b/source/mircoders/storage/DatabaseCommentStatus.java @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2001, 2002 The Mir-coders group + * + * This file is part of Mir. + * + * Mir is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * Mir is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Mir; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * In addition, as a special exception, The Mir-coders gives permission to link + * the code of this program with the com.oreilly.servlet library, any library + * licensed under the Apache Software License, The Sun (tm) Java Advanced + * Imaging library (JAI), The Sun JIMI library (or with modified versions of + * the above that use the same license as the above), and distribute linked + * combinations including the two. You must obey the GNU General Public + * License in all respects for all of the code used other than the above + * mentioned libraries. If you modify this file, you may extend this exception + * to your version of the file, but you are not obligated to do so. If you do + * not wish to do so, delete this exception statement from your version. + */ + +package mircoders.storage; + +/** + * Title: + * Description: + * Copyright: Copyright (c) 2001 + * Company: + * @author: + * @version 1.0 + */ + +import java.lang.*; +import java.sql.*; +import java.io.*; +import java.util.*; + +import freemarker.template.*; + +import mir.storage.*; +import mir.entity.*; +import mir.misc.*; + + +public class DatabaseCommentStatus extends Database implements StorageObject{ + + private static DatabaseCommentStatus instance; + + public static DatabaseCommentStatus getInstance() throws StorageObjectException { + if (instance == null) { + synchronized (DatabaseCommentStatus.class) { + if (instance == null) { + instance = new DatabaseCommentStatus(); + instance.myselfDatabase = instance; + } + } + } + + return instance; + } + + private DatabaseCommentStatus() throws StorageObjectException { + super(); + this.hasTimestamp = false; + this.theTable = "comment_status"; + } +} \ No newline at end of file diff --git a/templates/admin/articletype.template b/templates/admin/articletype.template new file mode 100755 index 00000000..abfe3a45 --- /dev/null +++ b/templates/admin/articletype.template @@ -0,0 +1,51 @@ + + + ${config["Mir.Name"]} | ${lang("articletype.htmltitle")} + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ ${lang("articletype.id")}: + ${data.id} +
+ ${lang("articletype.name")}: + +
+ + + + + + + +
+ +
+ + + + diff --git a/templates/admin/articletypelist.template b/templates/admin/articletypelist.template new file mode 100755 index 00000000..55b7d15a --- /dev/null +++ b/templates/admin/articletypelist.template @@ -0,0 +1,89 @@ + + + ${config["Mir.Name"]} | ${lang("articletypelist.htmltitle")} + + + + + + +

+ ${lang("add")} | + ${lang("back")} +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + ${lang("articletype.id")} + + + + ${lang("articletype.name")} + + +   +
${entry.id} ${entry.name}  +   + ${lang("delete")} + | ${lang("edit")} + +
+ + ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)} + +  
+

+ +

+ + + + + + + + + + + + +
+
+ +

${lang("no_matches_found")}

+ + +

+ ${lang("add")} | + ${lang("back")} +

+ + + + + + diff --git a/templates/admin/comment.template b/templates/admin/comment.template index 8e66068a..f74653d6 100755 --- a/templates/admin/comment.template +++ b/templates/admin/comment.template @@ -1,8 +1,8 @@ - - ${config["Mir.Name"]} | ${lang("comment.htmltitle")} - - + + ${config["Mir.Name"]} | ${lang("comment.htmltitle")} + + diff --git a/templates/admin/commentstatus.template b/templates/admin/commentstatus.template new file mode 100755 index 00000000..0a6d67dd --- /dev/null +++ b/templates/admin/commentstatus.template @@ -0,0 +1,51 @@ + + + ${config["Mir.Name"]} | ${lang("commentstatus.htmltitle")} + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ ${lang("commentstatus.id")}: + ${data.id} +
+ ${lang("commentstatus.name")}: + +
+ + + + + + + +
+ +
+ + + + diff --git a/templates/admin/commentstatuslist.template b/templates/admin/commentstatuslist.template new file mode 100755 index 00000000..2ca6b94f --- /dev/null +++ b/templates/admin/commentstatuslist.template @@ -0,0 +1,89 @@ + + + ${config["Mir.Name"]} | ${lang("commentstatuslist.htmltitle")} + + + + + + +

+ ${lang("add")} | + ${lang("back")} +

+ + + + + + + + + + + + + + + + + + + + + + + + + +
+ + ${lang("commentstatus.id")} + + + + ${lang("commentstatus.name")} + + +   +
${entry.id} ${entry.name}  +   + ${lang("delete")} + | ${lang("edit")} + +
+ + ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)} + +  
+

+ +

+ + + + + + + + + + + + +
+
+ +

${lang("no_matches_found")}

+ + +

+ ${lang("add")} | + ${lang("back")} +

+ + + + + + diff --git a/templates/admin/content.template b/templates/admin/content.template index 633d64db..741f068a 100755 --- a/templates/admin/content.template +++ b/templates/admin/content.template @@ -20,7 +20,7 @@ - + + @@ -78,11 +78,6 @@ -
 ${lang("content.comments")}${lang("content.comments")} ${lang("content.published")} : checked> @@ -31,6 +31,7 @@
${lang("content.import_date")}: @@ -65,7 +66,6 @@ ${lang("content.topic")}  -  / ${lang("content.feature")}: 
+ ${lang("content.title")}:  @@ -111,7 +107,6 @@
- ${lang("content.subtitle")}: 
diff --git a/templates/admin/head.template b/templates/admin/head.template index 7c25dede..37fb6c00 100755 --- a/templates/admin/head.template +++ b/templates/admin/head.template @@ -1,4 +1,4 @@ - +
diff --git a/templates/admin/head_nonavi.template b/templates/admin/head_nonavi.template index 95660c1d..9019b5a2 100755 --- a/templates/admin/head_nonavi.template +++ b/templates/admin/head_nonavi.template @@ -1,4 +1,4 @@ - + - class="list1"class="list2" > - - - - - - - - - -
diff --git a/templates/admin/language.template b/templates/admin/language.template index 5b034a55..6a0c4017 100755 --- a/templates/admin/language.template +++ b/templates/admin/language.template @@ -9,7 +9,7 @@
- + diff --git a/templates/admin/languagelist.template b/templates/admin/languagelist.template index 5ea92b38..d22c92ad 100755 --- a/templates/admin/languagelist.template +++ b/templates/admin/languagelist.template @@ -1,49 +1,61 @@ - - ${config["Mir.Name"]} | ${lang("languagelist.htmltitle")} - - + + ${config["Mir.Name"]} | ${lang("languagelist.htmltitle")} + + + + - +

+ ${lang("add")} | + ${lang("back")} +

- - -
- - - - - + +
${lang("language.name")}${lang("language.code")} 
+ + + + + + + + + + + + + + + + + +
${lang("language.name")}${lang("language.code")} 
${entry.name} ${entry.code}  +   + ${lang("delete")} | + ${lang("edit")} + +
${data.count} ${lang("records")} + / ${lang("show_from_to", data.from, data.to)} 
+ +

+ + ${lang("list.previous")}  + + + ${lang("list.next")} + + +

${lang("no_matches_found")}

+ - -
${entry.name} ${entry.code}  ${lang("delete")} - | ${lang("edit")}
${data.count} ${lang("records")} - / ${lang("show_from_to", data.from, data.to)} 
+

+ ${lang("add")} | + ${lang("back")} +

-

- - ${lang("list.previous")}  - - -${lang("list.next")} - - - -

${lang("no_matches_found")}

- - - + + diff --git a/templates/admin/producerqueue.template b/templates/admin/producerqueue.template index ad39d7c2..f9a8637b 100755 --- a/templates/admin/producerqueue.template +++ b/templates/admin/producerqueue.template @@ -40,7 +40,7 @@
-${lang("producer.jobqueue.refresh")}

+${lang("producer.jobqueue.refresh")}



diff --git a/templates/admin/start_admin.template b/templates/admin/start_admin.template index 0f22eb23..1088ace7 100755 --- a/templates/admin/start_admin.template +++ b/templates/admin/start_admin.template @@ -105,114 +105,92 @@

${lang("start.producers.produceAllNew")}
${lang("start.producers.advanced")} - + + +
 
+ ${lang("start.superusermenu")} +   - - - -- not finished yet -- - - ${lang("start.coverage.title")} - -

- -   ${lang("edit")}
- -   ${lang("add")} -

- - - - ${lang("start.topics.title")} - -

- -   ${lang("edit")}
- -   ${lang("add")} - -

- - ${lang("start.images.title")} - -

- -   ${lang("edit")}
- -   ${lang("add")} - -

+ + Middle column + + - ${lang("start.audio.title")} + ${lang("start.images.title")} + -

- -   ${lang("edit")}
- -   ${lang("add")} - -

+

+ +   ${lang("edit")}
+ +   ${lang("add")} +

- ${lang("start.video.title")} + ${lang("start.audio.title")} + -

- -   ${lang("edit")}
- -   ${lang("add")} +

+ +   ${lang("edit")} +
-

+ +   ${lang("add")} + +

- ${lang("start.other_media.title")} - -

- -   ${lang("edit")}
- -   ${lang("add")} - -

- - - ${lang("start.mediafolder.title")} - -

- -   ${lang("edit")}
- -   ${lang("add")} - -

- -- not finished yet -- - - ${lang("start.languages.title")} - -

- -   ${lang("edit")}
- -   ${lang("add")} - -

- - - ${lang("start.imcs.title")} + ${lang("start.video.title")} + + +

+ +   ${lang("edit")} +
+ + +   ${lang("add")} + + +

+ + ${lang("start.other_media.title")} + + +

+ +   ${lang("edit")} +
+ + +   ${lang("add")} + + +

+ + ${lang("start.mediafolder.title")} + + +

+ +   ${lang("edit")} +
+ + +   ${lang("add")} + + -

- -   ${lang("edit")}
- -   ${lang("add")} - +   + + RIGHT COLUMN -   - internal messageboard diff --git a/templates/admin/superusermenu.template b/templates/admin/superusermenu.template new file mode 100755 index 00000000..a9b8583b --- /dev/null +++ b/templates/admin/superusermenu.template @@ -0,0 +1,33 @@ + + + ${config["Mir.Name"]} | ${lang("superusermenu.htmltitle")} + + + + + + + ${lang("superusermenu.topics")} + +

+ ${lang("superusermenu.articletypes")} + +

+ ${lang("superusermenu.comment_statuses")} + +

+ ${lang("superusermenu.users")} + +

+ ${lang("superusermenu.languages")} + +

+ ${lang("superusermenu.imcs")} + + + + + + + + diff --git a/templates/admin/topic.template b/templates/admin/topic.template index d64e2363..f70c2185 100755 --- a/templates/admin/topic.template +++ b/templates/admin/topic.template @@ -1,58 +1,70 @@ - - ${config["Mir.Name"]} | ${lang("topic.htmltitle")} - - + + ${config["Mir.Name"]} | ${lang("topic.htmltitle")} + + - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- ${lang("topic.title")}: - -
${lang("topic.description")}: - -
${lang("topic.filename")}: - -
${lang("topic.main_url")} - - -
${lang("topic.archive_url")}: - -
- - - - -
- - +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + ${lang("topic.title")}: + + + +
+ ${lang("topic.description")}: + + +
${lang("topic.filename")}: + +
${lang("topic.main_url")} + + +
${lang("topic.archive_url")}: + +
+ + + + + +
+
+ + diff --git a/templates/admin/topiclist.template b/templates/admin/topiclist.template index a7f5560e..3028554e 100755 --- a/templates/admin/topiclist.template +++ b/templates/admin/topiclist.template @@ -1,63 +1,69 @@ - - ${config["Mir.Name"]} | ${lang("topiclist.htmltitle")} - - + + ${config["Mir.Name"]} | ${lang("topiclist.htmltitle")} + + - + - - - - - - - - - - - class="list1"class="list2" > - - - - - - - - - - -
- ${lang("topic.title")} - ${lang("topic.description")} - ${lang("topic.main_url")}
${lang("topic.archive_url")}
 
${entry.title} ${entry.description}  - ${entry.main_url}
- ${entry.archiv_url}
 ${lang("delete")} - | ${lang("edit")}
- ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)} 
-

- -

- - - - - - - - - - - - -
-
+ - -

${lang("no_matches_found")}

- - - + ${lang("add")} | + ${lang("back")} + + + + + + + + + + + + + + + + + + + + + +
${lang("topic.title")}${lang("topic.description")}${lang("topic.main_url")}
${lang("topic.archive_url")}
 
${entry.title} ${entry.description} ${entry.main_url}
${entry.archiv_url}
  + ${lang("delete")} + | ${lang("edit")} +
+ ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)} +  
+

+ +

+ + + + + + + + + + + + +
+
+

+ +

${lang("no_matches_found")}

+ + + ${lang("add")} | + ${lang("back")} + + + diff --git a/templates/admin/user.template b/templates/admin/user.template index cf562191..078413ef 100755 --- a/templates/admin/user.template +++ b/templates/admin/user.template @@ -1,7 +1,7 @@ - ${config["Mir.Name"]} | ${lang("user.htmltitle")} - + ${config["Mir.Name"]} | ${lang("user.htmltitle")} + @@ -9,39 +9,51 @@
- - - - - - - - - - - - - - - - - - -
- ${lang("user.login")}: - -
- ${lang("user.password")}: - -
- ${lang("user.admin")}:(?) - checked> -
- - - - -
+ + + + + + + + + + + + + + + + + + + + + + + +
+ ${lang("user.login")}: + +
+ ${lang("user.password")}: + +
+ + ${lang("user.admin")}: + + + checked> +
+ + + + + + + +
+ diff --git a/templates/admin/userlist.template b/templates/admin/userlist.template index 140bebe4..8ee984d6 100755 --- a/templates/admin/userlist.template +++ b/templates/admin/userlist.template @@ -1,48 +1,60 @@ - - ${config["Mir.Name"]} | ${lang("userlist.htmltitle")} - - - - - - - - - - - - - - - class="list1"class="list2" > - - - - - - - - - -
${lang("user.login")}${lang("user.admin")}
${entry.login} ${entry.is_admin}  ${lang("delete")} - | ${lang("edit")}
${data.count} ${lang("records")} - / ${lang("show_from_to", data.from, data.to)} 
- -

- - ${lang("list.previous")}  - - -${lang("list.next")} - - - -

${lang("no_matches_found")}

-
- - + + ${config["Mir.Name"]} | ${lang("userlist.htmltitle")} + + + + + +

+ ${lang("add")} | + ${lang("back")} +

+ + + + + + + + + + + + + + + + + + + +
${lang("user.login")}${lang("user.admin")}
${entry.login} ${entry.is_admin}  + ${lang("delete")} + | ${lang("edit")} +
+ ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)} +  
+

+ + + ${lang("list.previous")}  + + + ${lang("list.next")} + +

+ +

${lang("no_matches_found")}

+
+ +

+ ${lang("add")} | + ${lang("back")} +

+ + + diff --git a/web/style/admin.css b/web/style/admin.css index cc18dfa1..91b7df57 100755 --- a/web/style/admin.css +++ b/web/style/admin.css @@ -1,45 +1,72 @@ +body { + margin: 6px; + background-color: #ffffff; + url(../img/bgimage.jpg) no-repeat; +} - - body {margin: 6px; background-color: #ffffff; url(../img/bgimage.jpg) no-repeat;} - h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote - {font-family:arial, helvetica, sans-serif;} - h6, p, li, dt, dd, div, td, blockquote - {font-size: small;} - - a:link {color: #cc0033;text-decoration:none;} - a:visited {color: #660033;text-decoration:none;} - a:hover {color: #ff3333;text-decoration:none;} - - .dark {background-color: #990000; color: #ffffff; text-decoration:none;} - .middle {background-color: #cc0033; color: #ffffff; text-decoration:none;} - .pink {background-color: #FF9966; color: #ffffff; text-decoration:none;} - .darkgrey {background-color: #999966; color: #000000; text-decoration:none;} - .grey {background-color: #dddddd; color: #000000; text-decoration:none;} - .litegrey {background-color: #eeeeee; color: #990000; text-decoration:none;} - .wite {background-color: #ffffff; color: #990000; text-decoration:none;} - .list1 {background-color: #FFFFCC; color: #000000; text-decoration:none;} - .list2 {background-color: #FFCC99; color: #000000; text-decoration:none;} - .list3 {background-color: #FFFF99; color: #000000; text-decoration:none;} - .list4 {background-color: #CCCC99; color: #000000; text-decoration:none;} - - .pagetitle {font-size: x-large; color: #cc0033; font-weight: bold;} - .litetitel {font-size: large; color: #ffffff; font-weight: bold;} - .darktitel {font-size: large; color: #cc0033; font-weight: bold;} - .spezialtext {font-size: small; color: #CC0000;} - .text {font-size: small;} - .small {font-size: x-small;} - .x-small {font-size: xx-small;} - - .witetext {font-size: large; color: #ffffff; text-decoration:none;} - .witesmall {font-size: small; color: #ffffff; text-decoration:none;} - .witex-small {font-size: x-small; color: #ffffff; text-decoration:none;} - - .lynx {display:none;} +h1, h2, h3, h4, h5, h6, p, li, dt, dd, div, td, blockquote { + font-family: arial, helvetica, sans-serif; +} + +h6, p, li, dt, dd, div, td, blockquote { + font-size: small; +} - .editfieldname { - font-size: large; - color: #ffffff; - font-weight: bold; - text-decoration:none; - background-color: #dddddd; - } \ No newline at end of file +a:link {color: #cc0033;text-decoration:none;} +a:visited {color: #660033;text-decoration:none;} +a:hover {color: #ff3333;text-decoration:none;} + +.dark {background-color: #990000; color: #ffffff; text-decoration:none;} +.middle {background-color: #cc0033; color: #ffffff; text-decoration:none;} +.pink {background-color: #FF9966; color: #ffffff; text-decoration:none;} +.darkgrey {background-color: #999966; color: #000000; text-decoration:none;} +.grey {background-color: #dddddd; color: #000000; text-decoration:none;} +.litegrey {background-color: #eeeeee; color: #990000; text-decoration:none;} +.wite {background-color: #ffffff; color: #990000; text-decoration:none;} +.list1 {background-color: #FFFFCC; color: #000000; text-decoration:none;} +.list2 {background-color: #FFCC99; color: #000000; text-decoration:none;} +.list3 {background-color: #FFFF99; color: #000000; text-decoration:none;} +.list4 {background-color: #CCCC99; color: #000000; text-decoration:none;} + +.pagetitle {font-size: x-large; color: #cc0033; font-weight: bold;} +.litetitel {font-size: large; color: #ffffff; font-weight: bold;} +.darktitel {font-size: large; color: #cc0033; font-weight: bold;} +.spezialtext {font-size: small; color: #CC0000;} +.text {font-size: small;} +.small {font-size: x-small;} +.x-small {font-size: xx-small;} + +.witetext {font-size: large; color: #ffffff; text-decoration:none;} +.witesmall {font-size: small; color: #ffffff; text-decoration:none;} +.witex-small {font-size: x-small; color: #ffffff; text-decoration:none;} + +.lynx { display:none; } + +.editfieldname { + font-size: normal; + color: #000000; + font-weight: bold; + text-decoration:none; + background-color: #CCCCCC; +} + +.menucommand { + font-family: arial, helvetica, sans-serif; + font-size: normal; + font-weight: bold; + color: #CC0000; +} + +.majorcommand { + font-family: arial, helvetica, sans-serif; + font-size: normal; + font-weight: bold; + color: #CC0000; +} + +.minorcommand { + font-family: arial, helvetica, sans-serif; + font-size: normal; + font-weight: bold; + color: #CC0000; +} \ No newline at end of file