From 386e5efa787066632dabe1965c7272146ac72b63 Mon Sep 17 00:00:00 2001 From: zapata Date: Tue, 29 Apr 2003 02:36:50 +0000 Subject: [PATCH] Gif icons for the External image handler dramatically improved --- source/mir/media/MirMedia.java | 28 +- source/mircoders/media/ImageProcessor.java | 93 +++- source/mircoders/media/MediaHandlerAudio.java | 25 +- source/mircoders/media/MediaHandlerGeneric.java | 31 +- .../mircoders/media/MediaHandlerImagesExtern.java | 46 +- source/mircoders/media/MediaHandlerImagesJpeg.java | 22 +- source/mircoders/media/MediaHandlerImagesPng.java | 24 +- .../mircoders/servlet/ServletModuleOpenIndy.java | 556 ++++++++++----------- .../servlet/ServletModuleUploadedMedia.java | 12 +- templates/admin/FUNCTIONS.template | 428 ++++++++-------- templates/admin/FUNCTIONS_media.template | 214 ++++---- templates/admin/abuse.filters.template | 40 +- templates/admin/abuse.log.template | 18 +- templates/admin/abuse.template | 54 +- templates/admin/articletype.template | 54 +- templates/admin/articletypelist.template | 28 +- templates/admin/audio.template | 148 +++--- templates/admin/audiolist.template | 2 +- templates/admin/breaking.template | 26 +- templates/admin/breakinglist.template | 48 +- templates/admin/comment.template | 112 ++--- templates/admin/commentlist.template | 352 ++++++------- templates/admin/commentstatus.template | 22 +- templates/admin/commentstatuslist.template | 38 +- templates/admin/confirm.template | 10 +- templates/admin/content.template | 296 +++++------ templates/admin/contentlist.template | 180 +++---- templates/admin/fileedit.template | 30 +- templates/admin/fileeditlist.template | 72 +-- templates/admin/foot.template | 32 +- templates/admin/head.template | 26 +- templates/admin/head_nonavi.template | 26 +- templates/admin/hiddenlist.template | 144 +++--- templates/admin/image.template | 204 ++++---- templates/admin/imagelist.template | 4 - templates/admin/infomessage.template | 26 +- templates/admin/language.template | 18 +- templates/admin/languagelist.template | 36 +- templates/admin/linksimcs.template | 54 +- templates/admin/linksimcslist.template | 126 ++--- templates/admin/login.template | 78 +-- templates/admin/media.template | 184 +++---- templates/admin/mediafolder.template | 16 +- templates/admin/mediafolderlist.template | 68 +-- templates/admin/medialist.template | 2 +- templates/admin/message.template | 34 +- templates/admin/messagelist.template | 34 +- templates/admin/producerqueue.template | 136 ++--- templates/admin/start_admin.template | 278 +++++------ templates/admin/superusermenu.template | 26 +- templates/admin/topic.template | 18 +- templates/admin/topiclist.template | 36 +- templates/admin/user.template | 80 +-- templates/admin/usererror.template | 50 +- templates/admin/userlist.template | 42 +- templates/admin/video.template | 176 +++---- templates/admin/videolist.template | 2 +- 57 files changed, 2512 insertions(+), 2453 deletions(-) diff --git a/source/mir/media/MirMedia.java b/source/mir/media/MirMedia.java index 9f0caf14..298809e8 100755 --- a/source/mir/media/MirMedia.java +++ b/source/mir/media/MirMedia.java @@ -18,13 +18,13 @@ * 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 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. + * the code of this program with 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 mir.media; @@ -79,7 +79,7 @@ import freemarker.template.SimpleList; * ) and just override the things that need to be specific. see MediaHandlerAudio * * @author , the Mir-coders group - * @version $Id: MirMedia.java,v 1.17 2003/04/21 12:42:46 idfx Exp $ + * @version $Id: MirMedia.java,v 1.18 2003/04/29 02:36:50 zapata Exp $ */ public interface MirMedia{ @@ -121,7 +121,17 @@ public interface MirMedia{ */ public abstract InputStream getIcon (Entity ent) throws MediaExc, MediaFailure; - /** + + /** + * + * @param ent + * @return + * @throws MediaExc + * @throws MediaFailure + */ + public abstract String getIconMimeType (Entity aMediaEntity, Entity aMediaType) throws MediaExc, MediaFailure; + + /** * gets the final content representation for the media * in the form of a URL (String) that allows someone to * download, look at or listen to the media. (HREF, img src diff --git a/source/mircoders/media/ImageProcessor.java b/source/mircoders/media/ImageProcessor.java index 1d953736..0b152a75 100755 --- a/source/mircoders/media/ImageProcessor.java +++ b/source/mircoders/media/ImageProcessor.java @@ -18,13 +18,13 @@ * 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 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. + * the code of this program with 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. */ @@ -36,11 +36,14 @@ import java.io.FileOutputStream; import java.io.IOException; import java.io.OutputStream; -import javax.media.jai.InterpolationBilinear; -import javax.media.jai.JAI; +import javax.media.jai.InterpolationBicubic; +import javax.media.jai.*; import javax.media.jai.ParameterBlockJAI; import javax.media.jai.PlanarImage; +import java.awt.image.*; +import java.awt.*; + import mir.log.LoggerWrapper; import com.sun.media.jai.codec.ByteArraySeekableStream; @@ -66,22 +69,38 @@ public class ImageProcessor { private byte[] imageData; private int iconWidth; private int iconHeight; - private String imageType; -// public ImageScaler( + public ImageProcessor(SeekableStream anImageStream) throws IOException { + PlanarImage tempImage = JAI.create("stream", anImageStream); + + + ParameterBlockJAI params = new ParameterBlockJAI("format"); + params.addSource(tempImage); + params.setParameter("dataType", DataBuffer.TYPE_BYTE); + + ImageLayout layout = new ImageLayout(); + layout.setColorModel(ColorModel.getRGBdefault()); + layout.setSampleModel( + new PixelInterleavedSampleModel(DataBuffer.TYPE_BYTE, + layout.getSampleModel(tempImage).getWidth(), + layout.getSampleModel(tempImage).getHeight(), + 3, + 3*layout.getSampleModel(tempImage).getWidth(), + new int[] {2,1,0})); + + RenderingHints hints = new RenderingHints(JAI.KEY_IMAGE_LAYOUT, layout); + + image = JAI.create("format", params, hints); - public ImageProcessor(SeekableStream anImageStream, String anImageType) throws IOException { - image = JAI.create("stream", anImageStream); scaledImage = image; - imageType = anImageType; } - public ImageProcessor(File aFile, String anImageType) throws IOException { - this(new FileSeekableStream(aFile), anImageType); + public ImageProcessor(File aFile) throws IOException { + this(new FileSeekableStream(aFile)); } - public ImageProcessor(byte[] anImageData, String anImageType) throws IOException { - this(new ByteArraySeekableStream(anImageData), anImageType); + public ImageProcessor(byte[] anImageData) throws IOException { + this(new ByteArraySeekableStream(anImageData)); } public void descaleImage(int aMaxSize) throws java.io.IOException { @@ -163,17 +182,43 @@ public class ImageProcessor { return scaledImage.getHeight(); } - public void writeScaledData(OutputStream aStream) { - JAI.create("encode", scaledImage, aStream, imageType, null); + public void writeScaledData(OutputStream aStream, String anImageType) { + +// ParameterBlockJAI params = new ParameterBlockJAI("BandSelect"); +// params.addSource(scaledImage); +// params.setParameter("bandIndices", new int[] {0,1,2}); +// PlanarImage tempImage = JAI.create("BandSelect", params); + + JAI.create("encode", scaledImage, aStream, anImageType, null); } - public byte[] getScaledData() { + public byte[] getScaledData(String anImageType) { ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); - writeScaledData(outputStream); + writeScaledData(outputStream, anImageType); return outputStream.toByteArray(); } - public void writeScaledData(File aFile) throws IOException { - writeScaledData(new FileOutputStream(aFile)); + public void writeScaledData(File aFile, String anImageType) throws IOException { + writeScaledData(new FileOutputStream(aFile), anImageType); } } + + + + + + + + + + + + + + + + + + + + diff --git a/source/mircoders/media/MediaHandlerAudio.java b/source/mircoders/media/MediaHandlerAudio.java index a3201655..05a9c8da 100755 --- a/source/mircoders/media/MediaHandlerAudio.java +++ b/source/mircoders/media/MediaHandlerAudio.java @@ -18,19 +18,20 @@ * 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 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. + * the code of this program with 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.media; -import mir.media.MirMedia; +import mir.media.*; +import mir.entity.*; /** * Handles audio media, like mp3 and maybe it could also handle some other. @@ -39,7 +40,7 @@ import mir.media.MirMedia; * @see mir.media.MediaHandlerGeneric * @see mir.media.MirMedia * @author mh - * @version $Id: MediaHandlerAudio.java,v 1.8 2003/04/21 12:42:48 idfx Exp $ + * @version $Id: MediaHandlerAudio.java,v 1.9 2003/04/29 02:36:50 zapata Exp $ */ public class MediaHandlerAudio extends MediaHandlerGeneric implements MirMedia @@ -47,11 +48,11 @@ public class MediaHandlerAudio extends MediaHandlerGeneric implements MirMedia private static String tinyIcon; private static String bigIcon; - - static { + + static { tinyIcon = configuration.getString("Producer.Icon.TinyAudio"); bigIcon = configuration.getString("Producer.Icon.BigAudio"); - } + } public String getTinyIcon() { diff --git a/source/mircoders/media/MediaHandlerGeneric.java b/source/mircoders/media/MediaHandlerGeneric.java index bb0ad5d8..c8cb1945 100755 --- a/source/mircoders/media/MediaHandlerGeneric.java +++ b/source/mircoders/media/MediaHandlerGeneric.java @@ -18,13 +18,13 @@ * 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 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. + * the code of this program with 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.media; @@ -32,9 +32,12 @@ package mircoders.media; import java.io.File; import java.io.FileInputStream; import java.io.InputStream; +import javax.servlet.ServletContext; + +import freemarker.template.SimpleList; import mir.config.MirPropertiesConfiguration; -import mir.config.MirPropertiesConfiguration.PropertiesConfigExc; +import mir.config.MirPropertiesConfiguration$PropertiesConfigExc; import mir.entity.Entity; import mir.log.LoggerWrapper; import mir.media.MediaExc; @@ -42,7 +45,6 @@ import mir.media.MediaFailure; import mir.media.MirMedia; import mir.misc.FileUtil; import mir.misc.StringUtil; -import freemarker.template.SimpleList; /** @@ -62,7 +64,7 @@ import freemarker.template.SimpleList; * * @see mir.media.MirMedia * @author mh - * @version $Id: MediaHandlerGeneric.java,v 1.19 2003/04/21 12:42:48 idfx Exp $ + * @version $Id: MediaHandlerGeneric.java,v 1.20 2003/04/29 02:36:50 zapata Exp $ */ public class MediaHandlerGeneric implements MirMedia @@ -136,9 +138,16 @@ public class MediaHandlerGeneric implements MirMedia } public InputStream getIcon (Entity ent) throws MediaExc, MediaFailure { - return null; + return null; } + public String getIconMimeType (Entity aMediaEntity, Entity aMediaType) throws MediaExc, MediaFailure { + ServletContext servletContext = MirPropertiesConfiguration.getContext(); + String fileName = aMediaEntity.getId()+"."+aMediaType.getValue("name"); + + return servletContext.getMimeType(fileName); + }; + public String getStoragePath() { return configuration.getString("Producer.Media.Path"); diff --git a/source/mircoders/media/MediaHandlerImagesExtern.java b/source/mircoders/media/MediaHandlerImagesExtern.java index e9eb66a6..e8b623ae 100755 --- a/source/mircoders/media/MediaHandlerImagesExtern.java +++ b/source/mircoders/media/MediaHandlerImagesExtern.java @@ -18,13 +18,13 @@ * 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 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. + * the code of this program with 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.media; @@ -78,27 +78,27 @@ public class MediaHandlerImagesExtern extends MediaHandlerGeneric String date = anImageEntity.getValue("date"); String datePath = StringUtil.webdbDate2path(date); String ext = "." + mediaTypeEnt.getValue("name"); - String filePath = datePath + anImageEntity.getId() + ext; - String iconFilePath = MirPropertiesConfiguration.instance().getString("Producer.StorageRoot") + getIconStoragePath() + filePath; + String fileBasePath = datePath + anImageEntity.getId(); + String filePath = fileBasePath + ext; + String iconPath = getIconStoragePath() + fileBasePath + ".jpg"; + String iconStoragePath = configuration.getString("Producer.StorageRoot") + iconPath; String imageFilePath = getStoragePath() + File.separator + filePath; File imageFile = new File(imageFilePath); - File iconFile = new File(iconFilePath); + File iconFile = new File(iconStoragePath); if (!imageFile.exists()) { throw new MediaExc("error in MediaHandlerImagesExtern.produce(): " + filePath + " does not exist!"); } else { - ImageProcessor processor = new ImageProcessor(imageFile, "JPEG"); + ImageProcessor processor = new ImageProcessor(imageFile); processor.descaleImage(maxIconSize, minDescaleRatio, minDescaleReduction); File dir = new File(iconFile.getParent()); if (dir!=null && !dir.exists()){ dir.mkdirs(); } - processor.writeScaledData(iconFile); - - logger.info(processor.getWidth()+"x"+processor.getHeight()); + processor.writeScaledData(iconFile, "JPEG"); anImageEntity.setValueForProperty("img_height", new Integer(processor.getHeight()).toString()); anImageEntity.setValueForProperty("img_width", new Integer(processor.getWidth()).toString()); @@ -106,7 +106,7 @@ public class MediaHandlerImagesExtern extends MediaHandlerGeneric anImageEntity.setValueForProperty("icon_height", new Integer(processor.getScaledHeight()).toString()); anImageEntity.setValueForProperty("icon_width", new Integer(processor.getScaledWidth()).toString()); - anImageEntity.setValueForProperty("icon_path", getIconStoragePath()+filePath); + anImageEntity.setValueForProperty("icon_path", iconPath); anImageEntity.setValueForProperty("publish_path", filePath); anImageEntity.update(); @@ -122,22 +122,22 @@ public class MediaHandlerImagesExtern extends MediaHandlerGeneric public InputStream getIcon(Entity anImageEntity) throws MediaExc, MediaFailure { try { - Entity mediaType = DatabaseUploadedMedia.getInstance().getMediaType( - anImageEntity); + String filePath = + configuration.getString("Producer.StorageRoot") + anImageEntity.getValue("icon_path"); - String date = anImageEntity.getValue("date"); - String datePath = StringUtil.webdbDate2path(date); - String ext = "." + mediaType.getValue("name"); - String filePath = MirPropertiesConfiguration.instance().getString("Producer.StorageRoot") + - getIconStoragePath() + datePath + anImageEntity.getId() + ext; + logger.info(filePath); return new FileInputStream(new File(filePath)); } catch (Throwable t) { - throw new MediaFailure(t); + return null; } } + public String getIconMimeType(Entity anImageEntity, Entity aMediaType) { + return "image/jpeg"; + } + public String getStoragePath() { return configuration.getString("Producer.Image.Path"); diff --git a/source/mircoders/media/MediaHandlerImagesJpeg.java b/source/mircoders/media/MediaHandlerImagesJpeg.java index 76c46644..751b6e13 100755 --- a/source/mircoders/media/MediaHandlerImagesJpeg.java +++ b/source/mircoders/media/MediaHandlerImagesJpeg.java @@ -18,13 +18,13 @@ * 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 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. + * the code of this program with 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.media; @@ -42,7 +42,7 @@ import mir.media.MirMedia; * @see mir.media.MirMedia * @see mircoders.media.MediaHandlerImages * @author mh, mir-coders group - * @version $Id: MediaHandlerImagesJpeg.java,v 1.5 2003/04/21 12:42:48 idfx Exp $ + * @version $Id: MediaHandlerImagesJpeg.java,v 1.6 2003/04/29 02:36:50 zapata Exp $ */ @@ -52,9 +52,11 @@ public class MediaHandlerImagesJpeg extends MediaHandlerImages implements MirMed return JPEG; } - public String getDescr(Entity mediaType) - { + public String getDescr(Entity mediaType) { return "image/jpeg"; } + public String getIconMimeType(Entity aMedia, Entity aMediaType) { + return "image/jpeg"; + } } diff --git a/source/mircoders/media/MediaHandlerImagesPng.java b/source/mircoders/media/MediaHandlerImagesPng.java index bf281fd0..cbc9d0a4 100755 --- a/source/mircoders/media/MediaHandlerImagesPng.java +++ b/source/mircoders/media/MediaHandlerImagesPng.java @@ -18,13 +18,13 @@ * 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 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. + * the code of this program with 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.media; @@ -42,7 +42,7 @@ import mir.media.MirMedia; * @see mir.media.MirMedia * @see mircoders.media.MediaHandlerImages * @author mh ,mir-coders - * @version $Id: MediaHandlerImagesPng.java,v 1.6 2003/04/21 12:42:48 idfx Exp $ + * @version $Id: MediaHandlerImagesPng.java,v 1.7 2003/04/29 02:36:50 zapata Exp $ */ @@ -52,9 +52,11 @@ public class MediaHandlerImagesPng extends MediaHandlerImages implements MirMedi return PNG; } - public String getDescr(Entity mediaType) - { - return "image/png"; + public String getDescr(Entity mediaType) { + return "image/png"; } + public String getIconMimeType(Entity aMedia, Entity aMediaType) { + return "image/png"; + } } diff --git a/source/mircoders/servlet/ServletModuleOpenIndy.java b/source/mircoders/servlet/ServletModuleOpenIndy.java index 2e9a56af..9e7f5be4 100755 --- a/source/mircoders/servlet/ServletModuleOpenIndy.java +++ b/source/mircoders/servlet/ServletModuleOpenIndy.java @@ -122,7 +122,7 @@ import mircoders.storage.DatabaseTopics; * open-postings to the newswire * * @author mir-coders group - * @version $Id: ServletModuleOpenIndy.java,v 1.83 2003/04/26 15:42:17 zapata Exp $ + * @version $Id: ServletModuleOpenIndy.java,v 1.84 2003/04/29 02:36:50 zapata Exp $ * */ @@ -702,350 +702,345 @@ public class ServletModuleOpenIndy extends ServletModule + /** + * Method for querying a lucene index + * + * @param req + * @param res + * @throws ServletModuleExc + * @throws ServletModuleUserExc + * @throws ServletModuleFailure + */ - /** - * Method for querying a lucene index - * - * @param req - * @param res - * @throws ServletModuleExc - * @throws ServletModuleUserExc - * @throws ServletModuleFailure - */ - - public void search(HttpServletRequest req, HttpServletResponse res) - throws ServletModuleExc, ServletModuleUserExc, ServletModuleFailure { - try { - final String[] search_variables = { "search_content", "search_boolean", "search_creator", - "search_topic", "search_hasImages", "search_hasAudio", "search_hasVideo", "search_sort", - "search_submit", "search_back", "search_forward" }; - HTTPRequestParser requestParser = new HTTPRequestParser(req); - - int increment=10; + public void search(HttpServletRequest req, HttpServletResponse res) throws ServletModuleExc, ServletModuleUserExc, ServletModuleFailure { + try { + final String[] search_variables = { + "search_content", "search_boolean", "search_creator", + "search_topic", "search_hasImages", "search_hasAudio", "search_hasVideo", "search_sort", + "search_submit", "search_back", "search_forward"}; + HTTPRequestParser requestParser = new HTTPRequestParser(req); - HttpSession session = req.getSession(false); + int increment = 10; - String queryString=""; + HttpSession session = req.getSession(false); - Map mergeData = new HashMap(); + String queryString = ""; - KeywordSearchTerm dateTerm = new KeywordSearchTerm("date_formatted","search_date","webdb_create_formatted","webdb_create_formatted","webdb_create_formatted"); - UnIndexedSearchTerm whereTerm = new UnIndexedSearchTerm("","","","where","where"); - TextSearchTerm creatorTerm = new TextSearchTerm("creator","search_creator","creator","creator","creator"); - TextSearchTerm titleTerm = new TextSearchTerm("title","search_content","title","title","title"); - TextSearchTerm descriptionTerm = new TextSearchTerm("description","search_content","description","description","description"); - ContentSearchTerm contentTerm = new ContentSearchTerm("content_data","search_content","content","",""); - TopicSearchTerm topicTerm = new TopicSearchTerm(); - ImagesSearchTerm imagesTerm = new ImagesSearchTerm(); - AudioSearchTerm audioTerm = new AudioSearchTerm(); - VideoSearchTerm videoTerm = new VideoSearchTerm(); + Map mergeData = new HashMap(); - //make the query available to subsequent iterations + KeywordSearchTerm dateTerm = new KeywordSearchTerm("date_formatted", "search_date", "webdb_create_formatted", "webdb_create_formatted", "webdb_create_formatted"); + UnIndexedSearchTerm whereTerm = new UnIndexedSearchTerm("", "", "", "where", "where"); + TextSearchTerm creatorTerm = new TextSearchTerm("creator", "search_creator", "creator", "creator", "creator"); + TextSearchTerm titleTerm = new TextSearchTerm("title", "search_content", "title", "title", "title"); + TextSearchTerm descriptionTerm = new TextSearchTerm("description", "search_content", "description", "description", "description"); + ContentSearchTerm contentTerm = new ContentSearchTerm("content_data", "search_content", "content", "", ""); + TopicSearchTerm topicTerm = new TopicSearchTerm(); + ImagesSearchTerm imagesTerm = new ImagesSearchTerm(); + AudioSearchTerm audioTerm = new AudioSearchTerm(); + VideoSearchTerm videoTerm = new VideoSearchTerm(); - Iterator j = Arrays.asList(search_variables).iterator(); - while (j.hasNext()) { - String variable = (String) j.next(); + //make the query available to subsequent iterations - mergeData.put(variable, requestParser.getParameter(variable)); - } + Iterator j = Arrays.asList(search_variables).iterator(); + while (j.hasNext()) { + String variable = (String) j.next(); - try{ - mergeData.put("topics", topicsModule.getTopicsAsSimpleList()); - } - catch(Throwable e) { - logger.debug("Can't get topics: " + e.toString()); - } + mergeData.put(variable, requestParser.getParameter(variable)); + } - String searchBackValue = req.getParameter("search_back"); - String searchForwardValue = req.getParameter("search_forward"); + try { + mergeData.put("topics", topicsModule.getTopicsAsSimpleList()); + } + catch (Throwable e) { + logger.debug("Can't get topics: " + e.toString()); + } - if (searchBackValue != null){ - int totalHits = ((Integer) session.getAttribute("numberOfHits")).intValue(); - int newPosition=((Integer)session.getAttribute("positionInResults")).intValue()-increment; - if (newPosition<0) - newPosition=0; + String searchBackValue = req.getParameter("search_back"); + String searchForwardValue = req.getParameter("search_forward"); + + if (searchBackValue != null) { + int totalHits = ( (Integer) session.getAttribute("numberOfHits")).intValue(); + int newPosition = ( (Integer) session.getAttribute("positionInResults")).intValue() - increment; + if (newPosition < 0) + newPosition = 0; + if (newPosition >= totalHits) + newPosition = totalHits - 1; + session.setAttribute("positionInResults", new Integer(newPosition)); + } + else { + if (searchForwardValue != null) { + int totalHits = ( (Integer) session.getAttribute("numberOfHits")).intValue(); + int newPosition = ( (Integer) session.getAttribute("positionInResults")).intValue() + increment; + if (newPosition < 0) + newPosition = 0; if (newPosition >= totalHits) - newPosition=totalHits-1; - session.setAttribute("positionInResults",new Integer(newPosition)); + newPosition = totalHits - 1; + + session.setAttribute("positionInResults", new Integer(newPosition)); } else { - if (searchForwardValue != null){ - int totalHits = ((Integer) session.getAttribute("numberOfHits")).intValue(); - int newPosition=((Integer)session.getAttribute("positionInResults")).intValue()+increment; - if (newPosition<0) - newPosition=0; - if (newPosition >= totalHits) - newPosition=totalHits-1; - - session.setAttribute("positionInResults",new Integer(newPosition)); - } - else { - String indexPath=configuration.getString("IndexPath"); + String indexPath = configuration.getString("IndexPath"); + String creatorFragment = creatorTerm.makeTerm(req); + if (creatorFragment != null) { + queryString = queryString + " +" + creatorFragment; + } - String creatorFragment = creatorTerm.makeTerm(req); - if (creatorFragment != null){ - queryString = queryString + " +" + creatorFragment; - } - - // search title, description, and content for something - // the contentTerm uses param "search_boolean" to combine its terms - String contentFragment = contentTerm.makeTerm(req); - if (contentFragment != null){ - logger.debug("contentFragment: " + contentFragment); - queryString = queryString + " +" + contentFragment; - } + // search title, description, and content for something + // the contentTerm uses param "search_boolean" to combine its terms + String contentFragment = contentTerm.makeTerm(req); + if (contentFragment != null) { + logger.debug("contentFragment: " + contentFragment); + queryString = queryString + " +" + contentFragment; + } - String topicFragment = topicTerm.makeTerm(req); - if (topicFragment != null){ - queryString = queryString + " +" + topicFragment; - } + String topicFragment = topicTerm.makeTerm(req); + if (topicFragment != null) { + queryString = queryString + " +" + topicFragment; + } - String imagesFragment = imagesTerm.makeTerm(req); - if (imagesFragment != null){ - queryString = queryString + " +" + imagesFragment; - } + String imagesFragment = imagesTerm.makeTerm(req); + if (imagesFragment != null) { + queryString = queryString + " +" + imagesFragment; + } - String audioFragment = audioTerm.makeTerm(req); - if (audioFragment != null){ - queryString = queryString + " +" + audioFragment; - } + String audioFragment = audioTerm.makeTerm(req); + if (audioFragment != null) { + queryString = queryString + " +" + audioFragment; + } - String videoFragment = videoTerm.makeTerm(req); - if (videoFragment != null){ - queryString = queryString + " +" + videoFragment; - } + String videoFragment = videoTerm.makeTerm(req); + if (videoFragment != null) { + queryString = queryString + " +" + videoFragment; + } - if (queryString == null || queryString == ""){ - queryString = ""; - } - else{ - try{ - Searcher searcher = null; - try { - searcher = new IndexSearcher(indexPath); - } - catch(IOException e) { - logger.debug("Can't open indexPath: " + indexPath); - throw new ServletModuleExc("Problem with Search Index! : "+ e.toString()); - } + if (queryString == null || queryString == "") { + queryString = ""; + } + else { + try { + Searcher searcher = null; + try { + searcher = new IndexSearcher(indexPath); + } + catch (IOException e) { + logger.debug("Can't open indexPath: " + indexPath); + throw new ServletModuleExc("Problem with Search Index! : " + e.toString()); + } - Query query = null; - try { - query = QueryParser.parse(queryString, "content", new StandardAnalyzer()); - } - catch(Exception e) { - searcher.close(); - logger.debug("Query don't parse: " + queryString); - throw new ServletModuleExc("Problem with Query String! (was '"+queryString+"')"); - } + Query query = null; + try { + query = QueryParser.parse(queryString, "content", new StandardAnalyzer()); + } + catch (Exception e) { + searcher.close(); + logger.debug("Query don't parse: " + queryString); + throw new ServletModuleExc("Problem with Query String! (was '" + queryString + "')"); + } - Hits hits = null; - try { - hits = searcher.search(query); - } - catch(IOException e) { - searcher.close(); - logger.debug("Can't get hits: " + e.toString()); - throw new ServletModuleExc("Problem getting hits!"); - } + Hits hits = null; + try { + hits = searcher.search(query); + } + catch (IOException e) { + searcher.close(); + logger.debug("Can't get hits: " + e.toString()); + throw new ServletModuleExc("Problem getting hits!"); + } - int start = 0; - int end = hits.length(); + int start = 0; + int end = hits.length(); - String sortBy=req.getParameter("search_sort"); - if (sortBy == null || sortBy.equals("")){ - throw new ServletModuleExc("Please let me sort by something!(missing search_sort)"); - } + String sortBy = req.getParameter("search_sort"); + if (sortBy == null || sortBy.equals("")) { + throw new ServletModuleExc("Please let me sort by something!(missing search_sort)"); + } - // here is where the documents will go for storage across sessions - ArrayList theDocumentsSorted = new ArrayList(); + // here is where the documents will go for storage across sessions + ArrayList theDocumentsSorted = new ArrayList(); - if (sortBy.equals("score")){ - for(int i = start; i < end; i++) { - theDocumentsSorted.add(hits.doc(i)); - } + if (sortBy.equals("score")) { + for (int i = start; i < end; i++) { + theDocumentsSorted.add(hits.doc(i)); } - else{ - // then we'll sort by date! - Map dateToPosition = new HashMap(end,1.0F); //we know how big it will be - for(int i = start; i < end; i++) { - String creationDate=(hits.doc(i)).get("creationDate"); - // do a little dance in case two contents created at the same second! - if (dateToPosition.containsKey(creationDate)){ - ((ArrayList) (dateToPosition.get(creationDate))).add(new Integer(i)); - } - else{ - ArrayList thePositions = new ArrayList(); - thePositions.add(new Integer(i)); - dateToPosition.put(creationDate,thePositions); - } - } - Set keys = dateToPosition.keySet(); - ArrayList keyList= new ArrayList(keys); - Collections.sort(keyList); - if (sortBy.equals("date_desc")){ - Collections.reverse(keyList); - } - else{ - if (!sortBy.equals("date_asc")){ - throw new ServletModuleExc("don't know how to sort by: "+ sortBy); - } + } + else { + // then we'll sort by date! + Map dateToPosition = new HashMap(end, 1.0F); //we know how big it will be + for (int i = start; i < end; i++) { + String creationDate = (hits.doc(i)).get("creationDate"); + // do a little dance in case two contents created at the same second! + if (dateToPosition.containsKey(creationDate)) { + ( (ArrayList) (dateToPosition.get(creationDate))).add(new Integer(i)); } - ListIterator keyTraverser = keyList.listIterator(); - while (keyTraverser.hasNext()){ - ArrayList positions = (ArrayList)dateToPosition.get((keyTraverser.next())); - ListIterator positionsTraverser=positions.listIterator(); - while (positionsTraverser.hasNext()){ - theDocumentsSorted.add(hits.doc(((Integer)(positionsTraverser.next())).intValue())); - } + else { + ArrayList thePositions = new ArrayList(); + thePositions.add(new Integer(i)); + dateToPosition.put(creationDate, thePositions); } } - - try{ - searcher.close(); + Set keys = dateToPosition.keySet(); + ArrayList keyList = new ArrayList(keys); + Collections.sort(keyList); + if (sortBy.equals("date_desc")) { + Collections.reverse(keyList); } - catch (IOException e){ - logger.debug("Can't close searcher: " + e.toString()); - throw new ServletModuleFailure("Problem closing searcher(normal):" + e.getMessage(), e); + else { + if (!sortBy.equals("date_asc")) { + throw new ServletModuleExc("don't know how to sort by: " + sortBy); + } } + ListIterator keyTraverser = keyList.listIterator(); + while (keyTraverser.hasNext()) { + ArrayList positions = (ArrayList) dateToPosition.get( (keyTraverser.next())); + ListIterator positionsTraverser = positions.listIterator(); + while (positionsTraverser.hasNext()) { + theDocumentsSorted.add(hits.doc( ( (Integer) (positionsTraverser.next())).intValue())); + } + } + } - - session.removeAttribute("numberOfHits"); - session.removeAttribute("theDocumentsSorted"); - session.removeAttribute("positionInResults"); - - session.setAttribute("numberOfHits",new Integer(end)); - session.setAttribute("theDocumentsSorted",theDocumentsSorted); - session.setAttribute("positionInResults",new Integer(0)); - + try { + searcher.close(); } - catch (IOException e){ + catch (IOException e) { logger.debug("Can't close searcher: " + e.toString()); - throw new ServletModuleFailure("Problem closing searcher: " + e.getMessage(), e); + throw new ServletModuleFailure("Problem closing searcher(normal):" + e.getMessage(), e); } - } - } - } - - try { - ArrayList theDocs = (ArrayList)session.getAttribute("theDocumentsSorted"); - if (theDocs != null){ - mergeData.put("numberOfHits", ((Integer)session.getAttribute("numberOfHits")).toString()); - List theHits = new Vector(); - int pIR=((Integer)session.getAttribute("positionInResults")).intValue(); - int terminus; - int numHits=((Integer)session.getAttribute("numberOfHits")).intValue(); + session.removeAttribute("numberOfHits"); + session.removeAttribute("theDocumentsSorted"); + session.removeAttribute("positionInResults"); - if (!(pIR+increment>=numHits)){ - mergeData.put("hasNext","y"); - } - else { - mergeData.put("hasNext", null); - } - if (pIR>0){ - mergeData.put("hasPrevious","y"); - } - else { - mergeData.put("hasPrevious", null); - } + session.setAttribute("numberOfHits", new Integer(end)); + session.setAttribute("theDocumentsSorted", theDocumentsSorted); + session.setAttribute("positionInResults", new Integer(0)); - if ((pIR+increment)>numHits){ - terminus=numHits; - } - else { - terminus=pIR+increment; } - for(int i = pIR; i < terminus; i++) { - Map h = new HashMap(); - Document theHit = (Document)theDocs.get(i); - whereTerm.returnMeta(h,theHit); - creatorTerm.returnMeta(h,theHit); - titleTerm.returnMeta(h,theHit); - descriptionTerm.returnMeta(h,theHit); - dateTerm.returnMeta(h,theHit); - imagesTerm.returnMeta(h,theHit); - audioTerm.returnMeta(h,theHit); - videoTerm.returnMeta(h,theHit); - theHits.add(h); + catch (IOException e) { + logger.debug("Can't close searcher: " + e.toString()); + throw new ServletModuleFailure("Problem closing searcher: " + e.getMessage(), e); } - mergeData.put("hits",theHits); } } - catch (Throwable e) { - logger.error("Can't iterate over hits: " + e.toString()); + } - throw new ServletModuleFailure("Problem getting hits: " + e.getMessage(), e); - } + try { + ArrayList theDocs = (ArrayList) session.getAttribute("theDocumentsSorted"); + if (theDocs != null) { - mergeData.put("queryString",queryString); + mergeData.put("numberOfHits", ( (Integer) session.getAttribute("numberOfHits")).toString()); + List theHits = new Vector(); + int pIR = ( (Integer) session.getAttribute("positionInResults")).intValue(); + int terminus; + int numHits = ( (Integer) session.getAttribute("numberOfHits")).intValue(); - deliver(req, res, mergeData, null, searchResultsTemplate); + if (! (pIR + increment >= numHits)) { + mergeData.put("hasNext", "y"); + } + else { + mergeData.put("hasNext", null); + } + if (pIR > 0) { + mergeData.put("hasPrevious", "y"); + } + else { + mergeData.put("hasPrevious", null); + } + + if ( (pIR + increment) > numHits) { + terminus = numHits; + } + else { + terminus = pIR + increment; + } + for (int i = pIR; i < terminus; i++) { + Map h = new HashMap(); + Document theHit = (Document) theDocs.get(i); + whereTerm.returnMeta(h, theHit); + creatorTerm.returnMeta(h, theHit); + titleTerm.returnMeta(h, theHit); + descriptionTerm.returnMeta(h, theHit); + dateTerm.returnMeta(h, theHit); + imagesTerm.returnMeta(h, theHit); + audioTerm.returnMeta(h, theHit); + videoTerm.returnMeta(h, theHit); + theHits.add(h); + } + mergeData.put("hits", theHits); + } } - catch (NullPointerException n){ - throw new ServletModuleFailure("Null Pointer: "+n.toString(), n); + catch (Throwable e) { + logger.error("Can't iterate over hits: " + e.toString()); + + throw new ServletModuleFailure("Problem getting hits: " + e.getMessage(), e); } - } - /* - * Method for dynamically generating a pdf using iText - */ + mergeData.put("queryString", queryString); + deliver(req, res, mergeData, null, searchResultsTemplate); + } + catch (NullPointerException n) { + throw new ServletModuleFailure("Null Pointer: " + n.toString(), n); + } + } - public void getpdf(HttpServletRequest req, HttpServletResponse res) - throws ServletModuleExc, ServletModuleUserExc, ServletModuleFailure { - String ID_REQUEST_PARAM = "id"; - try { - String idParam = req.getParameter(ID_REQUEST_PARAM); - if (idParam != null) { - ByteArrayOutputStream out = new ByteArrayOutputStream(); - PDFGenerator pdfMaker = new PDFGenerator(out); + /* + * Method for dynamically generating a pdf using iText + */ - RE re = new RE("[0-9]+"); + public void getpdf(HttpServletRequest req, HttpServletResponse res) throws ServletModuleExc, ServletModuleUserExc, ServletModuleFailure { + String ID_REQUEST_PARAM = "id"; + try { + String idParam = req.getParameter(ID_REQUEST_PARAM); + if (idParam != null) { + ByteArrayOutputStream out = new ByteArrayOutputStream(); + PDFGenerator pdfMaker = new PDFGenerator(out); + RE re = new RE("[0-9]+"); - REMatch[] idMatches=re.getAllMatches(idParam); + REMatch[] idMatches = re.getAllMatches(idParam); - if (idMatches.length > 1){ - pdfMaker.addLine(); - for (int i = 0; i < idMatches.length; i++){ - REMatch aMatch = idMatches[i]; - String id=aMatch.toString(); - EntityContent contentEnt = (EntityContent)contentModule.getById(id); - pdfMaker.addIndexItem(contentEnt); + if (idMatches.length > 1) { + pdfMaker.addLine(); + for (int i = 0; i < idMatches.length; i++) { + REMatch aMatch = idMatches[i]; + String id = aMatch.toString(); + EntityContent contentEnt = (EntityContent) contentModule.getById(id); + pdfMaker.addIndexItem(contentEnt); - } - } + } + } - for (int i = 0; i < idMatches.length; i++){ - REMatch aMatch = idMatches[i]; + for (int i = 0; i < idMatches.length; i++) { + REMatch aMatch = idMatches[i]; - String id=aMatch.toString(); + String id = aMatch.toString(); - EntityContent contentEnt = (EntityContent)contentModule.getById(id); - pdfMaker.add(contentEnt); + EntityContent contentEnt = (EntityContent) contentModule.getById(id); + pdfMaker.add(contentEnt); - } + } - pdfMaker.stop(); - res.setContentType("application/pdf"); - byte[] content = out.toByteArray(); - res.setContentLength(content.length); - res.getOutputStream().write(content); - res.getOutputStream().flush(); + pdfMaker.stop(); + res.setContentType("application/pdf"); + byte[] content = out.toByteArray(); + res.setContentLength(content.length); + res.getOutputStream().write(content); + res.getOutputStream().flush(); - } - else { - throw new ServletModuleExc("Missing id."); - } } - catch (Throwable t) { - logger.error(t.toString()); - throw new ServletModuleFailure(t); + else { + throw new ServletModuleExc("Missing id."); } - } + catch (Throwable t) { + logger.error(t.toString()); + throw new ServletModuleFailure(t); + } + + } + public String generateOnetimePassword() { Random r = new Random(); int random = r.nextInt(); @@ -1061,8 +1056,7 @@ public class ServletModuleOpenIndy extends ServletModule return returnString.substring(5); } - public void deliver(HttpServletRequest aRequest, HttpServletResponse aResponse, Map aData, Map anExtra, String aGenerator) - throws ServletModuleFailure { + public void deliver(HttpServletRequest aRequest, HttpServletResponse aResponse, Map aData, Map anExtra, String aGenerator) throws ServletModuleFailure { try { deliver(aResponse.getWriter(), aRequest, aResponse, aData, anExtra, aGenerator); } diff --git a/source/mircoders/servlet/ServletModuleUploadedMedia.java b/source/mircoders/servlet/ServletModuleUploadedMedia.java index 6349e424..ba34a639 100755 --- a/source/mircoders/servlet/ServletModuleUploadedMedia.java +++ b/source/mircoders/servlet/ServletModuleUploadedMedia.java @@ -76,7 +76,7 @@ import freemarker.template.SimpleList; * ServletModuleBilder - * liefert HTML fuer Bilder * - * @version $Id: ServletModuleUploadedMedia.java,v 1.27 2003/04/26 00:42:22 zapata Exp $ + * @version $Id: ServletModuleUploadedMedia.java,v 1.28 2003/04/29 02:36:51 zapata Exp $ * @author RK, the mir-coders group */ @@ -391,17 +391,17 @@ public abstract class ServletModuleUploadedMedia String idParam = req.getParameter("id"); if (idParam!=null && !idParam.equals("")) { try { - EntityUploadedMedia ent = (EntityUploadedMedia)mainModule.getById(idParam); + EntityUploadedMedia ent = (EntityUploadedMedia) mainModule.getById(idParam); Entity mediaType = ent.getMediaType(); MirMedia mediaHandler; - ServletContext ctx = MirPropertiesConfiguration.getContext(); - String fName = ent.getId()+"."+mediaType.getValue("name"); - mediaHandler = MediaHelper.getHandler(mediaType); InputStream in = mediaHandler.getIcon(ent); - res.setContentType(ctx.getMimeType(fName)); + if (in==null) + throw new ServletModuleExc("no icon available"); + + res.setContentType(mediaHandler.getIconMimeType(ent, mediaType)); //important that before calling this res.getWriter was not called first ServletOutputStream out = res.getOutputStream(); diff --git a/templates/admin/FUNCTIONS.template b/templates/admin/FUNCTIONS.template index a7c207ab..b312836c 100755 --- a/templates/admin/FUNCTIONS.template +++ b/templates/admin/FUNCTIONS.template @@ -2,53 +2,53 @@ - - - - - - - - - + + + + + + + + + - - - - - - - - - - - - - + + + + + + + + + + + + + - - - - - + + + + +
- ${indexVariable} - -   -
+ ${indexVariable} + +   +
- ${entry[indexVariable]} - - ${lang("delete")} - | ${lang("edit")} -
+ ${entry[indexVariable]} + + ${lang("delete")} + | ${lang("edit")} +
- ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)} -
+ ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)} +
creates browse links, only called if necessary -

+

@@ -65,7 +65,7 @@
-

+

extra navigation @@ -74,7 +74,7 @@ [+] ${lang("add")}   [<] ${lang("back")}   [<<<] ${lang("head.start")} -

+

@@ -98,72 +98,72 @@ 4 functions to create Table rows with input-fields - - - ${label}: - - - - - - + + + ${label}: + + + + + + - - - ${label}: - - - - - - + + + ${label}: + + + + + + - - - ${label}: - - - - checked>   - - - + + + ${label}: + + + + checked>   + + + - - - ${label}: - + + + ${label}: +
- ${hint} + ${hint}
- - - - - - + + + + + +
- - - ${label}: - + + + ${label}: +
- ${hint} + ${hint}
- - - - - - + + + + + +
complete search-form for contenentries, not sure if it works from everywhere @@ -181,12 +181,12 @@ class="table-head"class="small bg-neutral" valign="bottom"> ${lang("contentsearch.publishedstate")} class="table-head"class="small bg-neutral" valign="bottom"> ${lang("contentsearch.articletype")} class="table-head"class="small bg-neutral" valign="bottom"> ${lang("contentsearch.order")} - class="table_head"class="small bg_neutral" valign="bottom">   + class="table_head"class="small bg_neutral" valign="bottom">   class="listrow2"> class="listrow2"> - @@ -226,44 +226,44 @@ browse function, only called if necessary - -

- - [ < ] ${lang("list.previous")}   - - - ${lang("list.next")} [ > ] - -

-
+ +

+ + [ < ] ${lang("list.previous")}   + + + ${lang("list.next")} [ > ] + +

+
multifunctional help - popup or not - big or small designs - - - - - - - [ ? ] ${lang("help")}[?] - - - - - - - [ ? ] ${lang("help")} - - [?] - - + + + + + + + [ ? ] ${lang("help")}[?] + + + + + + + [ ? ] ${lang("help")} + + [?] + + @@ -287,93 +287,93 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- ${lang("content.attachments")} -
- ${lang("content.images")}: - - [+] ${lang("content.addimage")} | - ${lang("content.uploadimage")} -
- edit  - - [-] ${lang("delete")} -
- ${lang("content.audio")}: - - [+] ${lang("content.addaudio")} | - ${lang("content.uploadaudio")} -
- edit  - - [-] ${lang("delete")} -
- ${lang("content.video")}: - - [+] ${lang("content.addvideo")} | - ${lang("content.uploadvideo")} -
- edit  - - [-] ${lang("delete")} -
- ${lang("content.other")}: - - [+] ${lang("content.addother")} | - ${lang("content.uploadother")} -
- edit  - - [-] ${lang("delete")} -
+ ${lang("content.attachments")} +
+ ${lang("content.images")}: + + [+] ${lang("content.addimage")} | + ${lang("content.uploadimage")} +
+ edit  + + [-] ${lang("delete")} +
+ ${lang("content.audio")}: + + [+] ${lang("content.addaudio")} | + ${lang("content.uploadaudio")} +
+ edit  + + [-] ${lang("delete")} +
+ ${lang("content.video")}: + + [+] ${lang("content.addvideo")} | + ${lang("content.uploadvideo")} +
+ edit  + + [-] ${lang("delete")} +
+ ${lang("content.other")}: + + [+] ${lang("content.addother")} | + ${lang("content.uploadother")} +
+ edit  + + [-] ${lang("delete")} +
diff --git a/templates/admin/FUNCTIONS_media.template b/templates/admin/FUNCTIONS_media.template index a836b66f..bf21f42a 100755 --- a/templates/admin/FUNCTIONS_media.template +++ b/templates/admin/FUNCTIONS_media.template @@ -1,6 +1,6 @@ - the complete medialist-template in two functions - not used for image-list because imagelist uses other display method + the complete medialist-template in two functions + not used for image-list because imagelist uses other display method @@ -13,51 +13,51 @@ - - - - - - - - + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + +
${lang("search")}:${lang("medialist.search_text_in")}:${lang("media.published")}:${lang("media.mediafolder")}: [+] ${lang("add")}
${lang("search")}:${lang("medialist.search_text_in")}:${lang("media.published")}:${lang("media.mediafolder")}: [+] ${lang("add")}
- - - - - - - - - - -   -
+ + + + + + + + + + +   +
@@ -69,75 +69,75 @@ - - + ${lang("media.icon")} + + + ${lang("media.size")} + ${lang("media.mediafolder")} + ${lang("media.creator")} +   - - - class="listrow1"class="listrow2" > - - - - - - - - - - - - + + + class="listrow1"class="listrow2" > + + + + + + + + + + + + - - - + + + diff --git a/templates/admin/abuse.filters.template b/templates/admin/abuse.filters.template index 06bd9d9e..1c020483 100755 --- a/templates/admin/abuse.filters.template +++ b/templates/admin/abuse.filters.template @@ -34,37 +34,37 @@ - ${config["Mir.Name"]} | ${lang("userlist.htmltitle")} - + ${config["Mir.Name"]} | ${lang("userlist.htmltitle")} +

- [ < ] ${lang("back")}   - ${lang("abuse.showlog")} -

+ [ < ] ${lang("back")}   + ${lang("abuse.showlog")} +

- ${lang("media.icon")} - ${lang("media.title")} - ${lang("media.format")} + ${lang("media.title")} + ${lang("media.format")} - ${lang("media.size")} - ${lang("media.mediafolder")} - ${lang("media.creator")} -  
- - - - ${entry.title}  -
${entry.description}
-
- ${entry.media_descr}  - - ${entry.human_readable_size}  - - ${data.mediafolderHashdata[entry.to_media_folder]["name"]}  - - ${entry.creator}  -   - - ${lang("attach")} - - - ${lang("attach")} - - ${lang("delete")} - | ${lang("edit")} - - -
- ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)} -
+ + + + ${entry.title}  +
${entry.description}
+
+ ${entry.media_descr}  + + ${entry.human_readable_size}  + + ${data.mediafolderHashdata[entry.to_media_folder]["name"]}  + + ${entry.creator}  +   + + ${lang("attach")} + + + ${lang("attach")} + + ${lang("delete")} + | ${lang("edit")} + + +
+ ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)} +
- - ${lang("list.previous")}  - - - ${lang("list.next")} - -
+ + ${lang("list.previous")}  + + + ${lang("list.next")} + +
${lang("no_matches_found")}
- - - - - - + + + + + + - - - - + + + + - -
${lang("abuse.filter.type")}${lang("abuse.filter.expression")}  
${lang("abuse.filter.type")}${lang("abuse.filter.expression")}  
+ + - +

- [ < ] ${lang("back")}   - ${lang("abuse.showlog")} + [ < ] ${lang("back")}   + ${lang("abuse.showlog")}

diff --git a/templates/admin/abuse.log.template b/templates/admin/abuse.log.template index 4eb8e2d6..b6b201ce 100755 --- a/templates/admin/abuse.log.template +++ b/templates/admin/abuse.log.template @@ -7,11 +7,11 @@ -

- [ < ] ${lang("back")}   - ${lang("abuse.showfilters")} -
-

+

+ [ < ] ${lang("back")}   + ${lang("abuse.showfilters")} +
+

@@ -35,14 +35,14 @@ - - - + + +
${lang("abuse.log.time")}${l.browser}
 
 

[ < ] ${lang("back")}   - ${lang("abuse.showfilters")} + ${lang("abuse.showfilters")}

diff --git a/templates/admin/abuse.template b/templates/admin/abuse.template index 4ac3eff1..05cd2754 100755 --- a/templates/admin/abuse.template +++ b/templates/admin/abuse.template @@ -1,7 +1,7 @@ - ${config["Mir.Name"]} | ${lang("abuse.htmltitle")} - + ${config["Mir.Name"]} | ${lang("abuse.htmltitle")} + @@ -9,7 +9,7 @@

- [ < ] ${lang("back")} + [ < ] ${lang("back")}

@@ -17,46 +17,46 @@ + + +
- - + + - - - - - +
${lang("abuse.setting")}${lang("abuse.value")}
+ + + + - - + + - - - + + + - - + + - - - -
${lang("abuse.setting")}${lang("abuse.value")}
 
 
 
 
 
 
- -
+
+ +

- > ${lang("abuse.showlog")}
- > ${lang("abuse.showfilters")} + > ${lang("abuse.showlog")}
+ > ${lang("abuse.showfilters")}

@@ -66,10 +66,10 @@

- [ < ] ${lang("back")} + [ < ] ${lang("back")}

- + diff --git a/templates/admin/articletype.template b/templates/admin/articletype.template index a5db3882..5d7c98f9 100755 --- a/templates/admin/articletype.template +++ b/templates/admin/articletype.template @@ -8,37 +8,37 @@
- - - - - - - + + + + + + + - - - - - +
- ${lang("articletype.id")}: - - ${data.id} -
+ + + + - + - - - -
+ ${lang("articletype.id")}: + + ${data.id} +
- - - - - -
+ + + + + + + + + +
diff --git a/templates/admin/articletypelist.template b/templates/admin/articletypelist.template index 904a74c5..937896c1 100755 --- a/templates/admin/articletypelist.template +++ b/templates/admin/articletypelist.template @@ -5,23 +5,23 @@ - + - - - - - - - - - - - - + + + + + + + + + + + + - + diff --git a/templates/admin/audio.template b/templates/admin/audio.template index 86d16eb0..17fb6047 100755 --- a/templates/admin/audio.template +++ b/templates/admin/audio.template @@ -16,37 +16,37 @@ function openWin(url) {
- - - - - - - - - - - -
- ${lang("media.nr_of_media")} :
-
-    -
+ + + + + + + + + + + +
+ ${lang("media.nr_of_media")} :
+
+    +
- - - - - - - - - - + + + + + + + + + + @@ -55,8 +55,8 @@ function openWin(url) { - + - - - - - + + + + + @@ -88,40 +88,40 @@ function openWin(url) { - + - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + diff --git a/templates/admin/foot.template b/templates/admin/foot.template index e85a9d61..e1432d3f 100755 --- a/templates/admin/foot.template +++ b/templates/admin/foot.template @@ -1,23 +1,23 @@ -
+
   - + ${lang("media.created")}: ${data.webdb_create} / ${lang("media.changed")} ${data.webdb_lastchange}
${lang("media.published")}: ${data.publish_date} / ${data.publish_server}${data.publish_path}
@@ -67,19 +67,19 @@ function openWin(url) {
- ${lang("media.mediafolder")}: - - -
+ ${lang("media.mediafolder")}: + + +
 
- ${lang("media.is_published")} : - - checked> -
 
- ${lang("media.title")}: - - -
-   - -
-
+ ${lang("media.is_published")} : + + checked> +
 
+ ${lang("media.title")}: + + +
+   + +
+
diff --git a/templates/admin/audiolist.template b/templates/admin/audiolist.template index 0a67543a..5d8916a7 100755 --- a/templates/admin/audiolist.template +++ b/templates/admin/audiolist.template @@ -1,6 +1,6 @@ - ${config["Mir.Name"]} | ${lang("audiolist.htmltitle")} + ${config["Mir.Name"]} | ${lang("audiolist.htmltitle")} diff --git a/templates/admin/breaking.template b/templates/admin/breaking.template index 8292cf43..3ec12430 100755 --- a/templates/admin/breaking.template +++ b/templates/admin/breaking.template @@ -11,16 +11,16 @@ - - - - + + + + + ${lang("breaking.date")}: + @@ -30,19 +30,19 @@ + ${lang("breaking.text")}:
${lang("breaking.textinfo")}
- ${lang("breaking.date")}: - ${data.webdb_create_formatted}
- ${lang("breaking.text")}:
${lang("breaking.textinfo")}
- +
- - - - - + + + + +
diff --git a/templates/admin/breakinglist.template b/templates/admin/breakinglist.template index 2c074688..9b2cef8e 100755 --- a/templates/admin/breakinglist.template +++ b/templates/admin/breakinglist.template @@ -1,46 +1,46 @@ - ${config["Mir.Name"]} | ${lang("breakinglist.htmltitle")} + ${config["Mir.Name"]} | ${lang("breakinglist.htmltitle")} - + - configure this template here - - - - - - - - - - - + configure this template here + + + + + + + + + + + - -

+ +

[+] ${lang("add")}   [<<<] ${lang("head.start")} -

- - - +

+ + + -

${lang("no_matches_found")}

+

${lang("no_matches_found")}

-

+

[+] ${lang("add")}   [<<<] ${lang("head.start")} -

+

diff --git a/templates/admin/comment.template b/templates/admin/comment.template index 659759e1..9d2b339b 100755 --- a/templates/admin/comment.template +++ b/templates/admin/comment.template @@ -5,25 +5,25 @@ - - + +
- - - - - - - + + + + + + + - - - - - - +
${lang("comment.htmltitle")}
+ + + + + @@ -35,13 +35,13 @@ - - - - - - - + + + + + + + @@ -49,8 +49,8 @@ @@ -109,12 +109,12 @@ - -

+ +

[<] ${lang("list")}   [<<<] ${lang("head.start")} -

- +

+ diff --git a/templates/admin/commentlist.template b/templates/admin/commentlist.template index 3cba7fad..c3b0695e 100755 --- a/templates/admin/commentlist.template +++ b/templates/admin/commentlist.template @@ -1,7 +1,7 @@ - ${config["Mir.Name"]} | ${lang("commentlist.htmltitle")} - + ${config["Mir.Name"]} | ${lang("commentlist.htmltitle")} + @@ -12,202 +12,202 @@
- - + + -
${lang("comment.htmltitle")}
${lang("comment.date")}
- ${lang("comment.published")} checked> - + ${lang("comment.published")} checked> + @@ -68,34 +68,34 @@ - - - - - - - - - - - - - + + + + + + + + + + + + +
- ${lang("content.family")} -
- ${lang("content.parent")}: - - - ${utility.encodeHTML(article.parent.title)}
- ${lang("content.viewparent")} | - ${lang("content.clearparent")} | -
-  ${lang("content.selectparent")} -
- ${lang("content.children")}: - - ${lang("content.viewchildren")} -
+ ${lang("content.family")} +
+ ${lang("content.parent")}: + + + ${utility.encodeHTML(article.parent.title)}
+ ${lang("content.viewparent")} | + ${lang("content.clearparent")} | +
+  ${lang("content.selectparent")} +
+ ${lang("content.children")}: + + ${lang("content.viewchildren")} +
- - - - - - - - - - - - - - - - - +
${lang("commentsearch.field")}${lang("commentsearch.value")}${lang("commentsearch.publishedstate")}${lang("commentsearch.status")}${lang("commentsearch.order")} 
- - - - - - - - - - - -
+ + + + + + + + + + + + + + + + +
${lang("commentsearch.field")}${lang("commentsearch.value")}${lang("commentsearch.publishedstate")}${lang("commentsearch.status")}${lang("commentsearch.order")} 
+ + + + + + + + + + + +
-
- - - -

-   (${lang("commentlist.activate")}) -

+ + + + +

+   (${lang("commentlist.activate")}) +

- - - - - - - - - - - + + + + + + + + + + + - class="listrow1"class="listrow2"> - + class="listrow1"class="listrow2"> + - + + ${lang("commentlist.allcomments")} + + ] + + + - + + - + + - - - - - - - + + + + + + +
- - [ ${lang("list.previous")} ]  - - - [ ${lang("list.next")} ]  - -
- ${lang("comment.date")} - - ${lang("comment.article")} / ${lang("comment.title")} / ${lang("comment.creator")} / ${lang("comment.text")} - -   -
+ + [ ${lang("list.previous")} ]  + + + [ ${lang("list.next")} ]  + +
+ ${lang("comment.date")} + + ${lang("comment.article")} / ${lang("comment.title")} / ${lang("comment.creator")} / ${lang("comment.text")} + +   +
- ${entry.creationdate.formatted["dd.MM.yyyy HH:mm"]}
- ${lang("commentlist.hidden")}-
-
- ${lang("comment.status")}:
- - - ${lang("commentstatus." + entry.status.name)} - - - - - -
+ ${entry.creationdate.formatted["dd.MM.yyyy HH:mm"]}
+ ${lang("commentlist.hidden")}-
+
+ ${lang("comment.status")}:
+ + + ${lang("commentstatus." + entry.status.name)} + + + - + +
- - -
- ${lang("comment.article")}: - - ${utility.encodeHTML(entry.to_content.title)} - - (${lang("articletypes."+entry.to_content.article_type.name)}) - - [ - - ${lang("edit")} +
+ + +
+ ${lang("comment.article")}: + + ${utility.encodeHTML(entry.to_content.title)} + + (${lang("articletypes."+entry.to_content.article_type.name)}) + + [ + + ${lang("edit")} + | + + ${lang("start.show")} | - - ${lang("start.show")} - | - - ${lang("commentlist.allcomments")} - - ] -
-
- - - ${entry.title}   - - ${lang("by")}: ${entry.creator} - -
- ${utility.encodeHTML(entry.description)} - -
URL: ${entry.main_url}
-
- - - - [ ${lang("comment.operation."+op)} ] - - - - - ${lang("comment.operation."+op)} - - - - - -  |  - ${lang("edit")} - -
-   + ${entry.title}   + + ${lang("by")}: ${entry.creator} + +
+ ${utility.encodeHTML(entry.description)} + +
URL: ${entry.main_url}
+
+ + + + [ ${lang("comment.operation."+op)} ] + + + + + ${lang("comment.operation."+op)} + + + + + +  |  + ${lang("edit")} + +
+   [${lang("delete")}] -
- ${count} ${lang("records")} / ${lang("show_from_to", from, to)} -
- - [ ${lang("list.previous")} ]  - - - [ ${lang("list.next")} ]  - -
+ ${count} ${lang("records")} / ${lang("show_from_to", from, to)} +
+ + [ ${lang("list.previous")} ]  + + + [ ${lang("list.next")} ]  + +
-

-   (${lang("commentlist.activate")}) -

- +

+   (${lang("commentlist.activate")}) +

+
diff --git a/templates/admin/commentstatus.template b/templates/admin/commentstatus.template index 85736f97..bb778275 100755 --- a/templates/admin/commentstatus.template +++ b/templates/admin/commentstatus.template @@ -4,28 +4,28 @@ - +
- - - - - - - + + + + + + + + ${lang("commentstatus.id")}: - +
- ${lang("commentstatus.id")}: ${data.id}
@@ -40,7 +40,7 @@
-

[<] ${lang("back")}  

+

[<] ${lang("back")}  

diff --git a/templates/admin/commentstatuslist.template b/templates/admin/commentstatuslist.template index 3187c891..8944f9bd 100755 --- a/templates/admin/commentstatuslist.template +++ b/templates/admin/commentstatuslist.template @@ -4,33 +4,33 @@ - - + + - configure this template here - - - - - - - - - - - + configure this template here + + + + + + + + + + + - - - + + + -

${lang("no_matches_found")}

+

${lang("no_matches_found")}

- + diff --git a/templates/admin/confirm.template b/templates/admin/confirm.template index 4411e3c0..a317b1ff 100755 --- a/templates/admin/confirm.template +++ b/templates/admin/confirm.template @@ -9,7 +9,7 @@
-

${lang("confirm.really_delete")}

+

${lang("confirm.really_delete")}

@@ -23,12 +23,12 @@
-
- ${lang("confirm.text")} +
+ ${lang("confirm.text")}

- +
-
+ diff --git a/templates/admin/content.template b/templates/admin/content.template index 026a7a57..7a821a5c 100755 --- a/templates/admin/content.template +++ b/templates/admin/content.template @@ -1,7 +1,7 @@ - ${lang("content.htmltitle")} - ${lang("content.htmltitle")} + @@ -10,133 +10,133 @@
- - - - - - - - + + + + + + + + - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + - - - - - - - - - + + + + + + + + + - + - - - - - - + + + + + + - - - - - - - + + + + + + +
- - [ ${lang("content.comments")} ]    - [ ${lang("preview")} ] - - - - ${lang("content.published")} : - checked> - - - - - -
- id # : - - ${article.id} -
- ${lang("content.lastchange_date")}: - - ${utility.encodeHTML(article.webdb_lastchange)}
-
- ${lang("content.create_date")}: - - ${utility.encodeHTML(article.webdb_create)}
${lang("edit")}: -   (yyyy-mm-dd [HH:mm]) -
+ + [ ${lang("content.comments")} ]    + [ ${lang("preview")} ] + + + + ${lang("content.published")} : + checked> + + + + + +
+ id # : + + ${article.id} +
+ ${lang("content.lastchange_date")}: + + ${utility.encodeHTML(article.webdb_lastchange)}
+
+ ${lang("content.create_date")}: + + ${utility.encodeHTML(article.webdb_create)}
${lang("edit")}: +   (yyyy-mm-dd [HH:mm]) +
- ${lang("content.topic")}: - - - - - - - - - - - - - - - - - - -
- checked> - ${t.title} - -   -
- - -
-
+ ${lang("content.topic")}: + + + + + + + + + + + + + + + + + + +
+ checked> + ${t.title} + +   +
+ + +
+
- - - - - -
+ + + + + +
- + @@ -145,34 +145,34 @@ @@ -186,6 +186,6 @@ - + diff --git a/templates/admin/contentlist.template b/templates/admin/contentlist.template index 52d2271b..26482dd7 100755 --- a/templates/admin/contentlist.template +++ b/templates/admin/contentlist.template @@ -3,17 +3,17 @@ - - + + - - + + - ${config["Mir.Name"]} | ${lang("contentlist.htmltitle")} - + ${config["Mir.Name"]} | ${lang("contentlist.htmltitle")} + @@ -21,110 +21,110 @@ - + - -
- - - -

-   (${lang("commentlist.activate")}) -

-
+ + + + + +

+   (${lang("commentlist.activate")}) +

+
- - - - - - - - - - - - - + + + + + + + + + + + + +
- ${lang("content.family")} -
- ${lang("content.parent")}: - - - ${utility.encodeHTML(article.parent.title)}
- ${lang("content.viewparent")} | - ${lang("content.clearparent")} | -
-  ${lang("content.selectparent")} -
- ${lang("content.children")}: - - ${lang("content.viewchildren")} -
+ ${lang("content.family")} +
+ ${lang("content.parent")}: + + + ${utility.encodeHTML(article.parent.title)}
+ ${lang("content.viewparent")} | + ${lang("content.clearparent")} | +
+  ${lang("content.selectparent")} +
+ ${lang("content.children")}: + + ${lang("content.viewchildren")} +
- - - - - - + + + + + + - - class="listrow1"class="listrow2"> - - - - class="listrow1"class="listrow2"> + + + + - + + + - - - + + +
- - ${lang("content.creationdate")}
- ${lang("content.modificationdate")}
- ${lang("content.status")} -
-
- ${lang("content.type")} - ${lang("content.title")}
- ${lang("content.creator")} -
- ${lang("content.comment")} -  
+ + ${lang("content.creationdate")}
+ ${lang("content.modificationdate")}
+ ${lang("content.status")} +
+
+ ${lang("content.type")} - ${lang("content.title")}
+ ${lang("content.creator")} +
+ ${lang("content.comment")} +  
- ${entry.creationdate.formatted["dd.MM.yyyy HH:mm"]}
- ${entry.changedate.formatted["dd.MM.yyyy HH:mm"]}
- Pub.- HTML- -
- ${entry.title}
- ${lang("by")}: ${entry.creator}
- (${lang("articletypes." + entry.article_type.name)}) - - - - [ ${lang("content.operation."+op)} ] - - - - - [ ${lang("content.operation."+op)} ] - - - - - - | - ${lang("edit")} | - ${lang("contentlist.comments")} (${entry.commentcount}) - - - ${lang("contentlist.select")} - -
class="listrow3"class="listrow4" valign="top"> - ${entry.comment}  - - + +
+ ${entry.creationdate.formatted["dd.MM.yyyy HH:mm"]}
+ ${entry.changedate.formatted["dd.MM.yyyy HH:mm"]}
+ Pub.- HTML- +
+ ${entry.title}
+ ${lang("by")}: ${entry.creator}
+ (${lang("articletypes." + entry.article_type.name)}) + + + + [ ${lang("content.operation."+op)} ] + + + + + [ ${lang("content.operation."+op)} ] + + + + + + | + ${lang("edit")} | + ${lang("contentlist.comments")} (${entry.commentcount}) + + + ${lang("contentlist.select")} + +
class="listrow3"class="listrow4" valign="top"> + ${entry.comment}  + + [${lang("delete")}] - -
- ${count} ${lang("records")} / ${lang("show_from_to", from, to)} -
+ ${count} ${lang("records")} / ${lang("show_from_to", from, to)} +
- -

-   ( ${lang("commentlist.activate")}) -

- -
+ +

+   ( ${lang("commentlist.activate")}) +

+ +
diff --git a/templates/admin/fileedit.template b/templates/admin/fileedit.template index 6317856e..28d8c332 100755 --- a/templates/admin/fileedit.template +++ b/templates/admin/fileedit.template @@ -1,6 +1,6 @@ - ${config["Mir.Name"]} | ${lang("fileedit.htmltitle")} + ${config["Mir.Name"]} | ${lang("fileedit.htmltitle")} @@ -9,25 +9,25 @@

- ${lang("fileedit.filename")} : ${filename}
- ${lang("fileedit.subdirectory")} : ${subdirectory} + ${lang("fileedit.filename")} : ${filename}
+ ${lang("fileedit.subdirectory")} : ${subdirectory}


- - - - - -   - -

- -

-   - + + + + + +   + +

+ +

+   +


diff --git a/templates/admin/fileeditlist.template b/templates/admin/fileeditlist.template index cfbac44a..968877dc 100755 --- a/templates/admin/fileeditlist.template +++ b/templates/admin/fileeditlist.template @@ -1,7 +1,7 @@ - ${config["Mir.Name"]} | ${lang("fileeditlist.htmltitle")} - + ${config["Mir.Name"]} | ${lang("fileeditlist.htmltitle")} + @@ -16,32 +16,32 @@ - - - - - + + + + + - - - - + + + + - - - - - - - - - - - - + + + + + + + + + + + +
${lang("fileeditlist.dirname")} 
${lang("fileeditlist.dirname")} 
 .. ${lang("edit")}
 .. ${lang("edit")}
${item} ${lang("edit")}
${item} ${lang("edit")}
@@ -53,28 +53,28 @@ - - - - + + + + - - - - - - - + + + + + + + +

${lang("no_matches_found")}

+
${lang("fileeditlist.filename")} 
${lang("fileeditlist.filename")} 
${item}  ${lang("edit")}
-

${lang("no_matches_found")}

-
- - - - - + + + + +
- ${lang("foot.top")} - - |   ${lang("back")} [ < ]   - - - ${config["Mir.Shortname"]} - ${config["Mir.Version"]} -
+ ${lang("foot.top")} + + |   ${lang("back")} [ < ]   + + + ${config["Mir.Shortname"]} - ${config["Mir.Version"]} +
- - - + + + diff --git a/templates/admin/head.template b/templates/admin/head.template index 52d13892..a2cf60d8 100755 --- a/templates/admin/head.template +++ b/templates/admin/head.template @@ -1,18 +1,18 @@ - - - - + + + +
-   - ${config["Mir.Name"]} - - - [ < ] ${lang("back")}  | - - ${lang("head.start")} | - ${lang("head.logout")} -
+   + ${config["Mir.Name"]} + + + [ < ] ${lang("back")}  | + + ${lang("head.start")} | + ${lang("head.logout")} +

diff --git a/templates/admin/head_nonavi.template b/templates/admin/head_nonavi.template index b34f0852..1cdb1116 100755 --- a/templates/admin/head_nonavi.template +++ b/templates/admin/head_nonavi.template @@ -1,18 +1,18 @@ - - - + + + - - - + + + - +
-   - ${config["Mir.Name"]} -
+   + ${config["Mir.Name"]} +
- ${login_user.login} ${lang("head.logged_in")} | - ${lang("head.logout")} -
+ ${login_user.login} ${lang("head.logged_in")} | + ${lang("head.logout")} +


diff --git a/templates/admin/hiddenlist.template b/templates/admin/hiddenlist.template index 537e0c36..043c8ea2 100755 --- a/templates/admin/hiddenlist.template +++ b/templates/admin/hiddenlist.template @@ -1,7 +1,7 @@ - ${config["Mir.Name"]} | ${lang("start.content.hidden")} - + ${config["Mir.Name"]} | ${lang("start.content.hidden")} + @@ -9,55 +9,55 @@ - - - - - + + + + +
- ${lang("start.content.hidden")} -
+
+ ${lang("start.content.hidden")} +
- - - - - - ${lang("month")} - - ${lang("year")} - - -   - - + + + + + + ${lang("month")} + + ${lang("year")} + + +   + +
-
@@ -69,40 +69,40 @@ - +
-

${lang("start.content.hidden")} | ${lang("month")}: ${data.month} , ${lang("year")}:${data.year}

-
+

${lang("start.content.hidden")} | ${lang("month")}: ${data.month} , ${lang("year")}:${data.year}

+
-

${i.title}
- ${lang("content.creator")}: ${i.creator}
- ${lang("message.date")}: ${i.webdb_create_formatted}
-
- additional media, type: audio
- additional media, type: video
- additional media, type: other
- additional media, type: image
-

- -

- ${lang("content.abstract")}:
- ${i.description_parsed} -

- -

- ${lang("content.content")}:
- ${i.content_data_parsed} -

-

 

-
-

 

+

${i.title}
+ ${lang("content.creator")}: ${i.creator}
+ ${lang("message.date")}: ${i.webdb_create_formatted}
+
+ additional media, type: audio
+ additional media, type: video
+ additional media, type: other
+ additional media, type: image
+

+ +

+ ${lang("content.abstract")}:
+ ${i.description_parsed} +

+ +

+ ${lang("content.content")}:
+ ${i.content_data_parsed} +

+

 

+
+

 

-
${lang("no_matches_found")}
+
${lang("no_matches_found")}
diff --git a/templates/admin/image.template b/templates/admin/image.template index e4a40605..1e89c10e 100755 --- a/templates/admin/image.template +++ b/templates/admin/image.template @@ -17,120 +17,120 @@ function openWin(url) {
- - - - - - - - - - - - - -
- ${lang("media.nr_of_media")} :
-
-    -
+ + + + + + + + + + + + + +
+ ${lang("media.nr_of_media")} :
+
+    +
- - - - + + + + - - - + + + - - - - + + + + - +
- - - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + class="listrow1"class="listrow2" >
- -    - - ${lang("media.created")}: ${data.webdb_create} - / ${lang("media.changed")} ${data.webdb_lastchange}
- ${lang("media.published")}: ${data.publish_date} / ${data.publish_server}${data.publish_path}
- ${lang("media.format")}: ${data.mimetype} / ${data.media_descr}
- ${lang("media.size")}: ${data.human_readable_size}
- ${lang("media.rights")}: ${data.rightsHashdata[to_rights]["name"]}
-
+ +    + + ${lang("media.created")}: ${data.webdb_create} + / ${lang("media.changed")} ${data.webdb_lastchange}
+ ${lang("media.published")}: ${data.publish_date} / ${data.publish_server}${data.publish_path}
+ ${lang("media.format")}: ${data.mimetype} / ${data.media_descr}
+ ${lang("media.size")}: ${data.human_readable_size}
+ ${lang("media.rights")}: ${data.rightsHashdata[to_rights]["name"]}
+
- ${lang("media.mediafolder")}: - - -
 
- ${lang("media.is_published")} : - - checked> -
 
- ${lang("media.title")}: - - -
-   - -
-
+ ${lang("media.mediafolder")}: + + +
 
+ ${lang("media.is_published")} : + + checked> +
 
+ ${lang("media.title")}: + + +
+   + +
+
- + ${lang("media.is_published")} checked> diff --git a/templates/admin/imagelist.template b/templates/admin/imagelist.template index 08e99707..b166e3f3 100755 --- a/templates/admin/imagelist.template +++ b/templates/admin/imagelist.template @@ -39,12 +39,8 @@ function openWin(url) {
- - - - ${entry.title}  diff --git a/templates/admin/infomessage.template b/templates/admin/infomessage.template index 66ac36d6..a7f22218 100755 --- a/templates/admin/infomessage.template +++ b/templates/admin/infomessage.template @@ -6,19 +6,19 @@ - - - + + +
-

- ${lang("infomessage."+message, argument1, argument2)} -

-

-
- [<<<] ${lang("head.start")}    - -

- -
+

+ ${lang("infomessage."+message, argument1, argument2)} +

+

+
+ [<<<] ${lang("head.start")}    + +

+ +
diff --git a/templates/admin/language.template b/templates/admin/language.template index 189a5113..de733de8 100755 --- a/templates/admin/language.template +++ b/templates/admin/language.template @@ -9,22 +9,22 @@ - - - - + + + + - - + + - + +
- + -

[<] ${lang("back")}  

diff --git a/templates/admin/languagelist.template b/templates/admin/languagelist.template index 3e61489a..5ee774f4 100755 --- a/templates/admin/languagelist.template +++ b/templates/admin/languagelist.template @@ -5,32 +5,32 @@ - + - configure this template here - - - - - - - - - - - + configure this template here + + + + + + + + + + + - - - + + + -

${lang("no_matches_found")}

+

${lang("no_matches_found")}

- + diff --git a/templates/admin/linksimcs.template b/templates/admin/linksimcs.template index c0dc87ba..ab40ab18 100755 --- a/templates/admin/linksimcs.template +++ b/templates/admin/linksimcs.template @@ -8,28 +8,28 @@
- - - - + + + + + ${lang("linkimcs.name")}: + ${lang("linkimcs.continent")}: @@ -42,30 +42,30 @@
- +
- - - + + +
${lang("linkimcs.sort-by")}: +
${lang("linkimcs.language")}: + + +
- - - - - + + + + +
diff --git a/templates/admin/linksimcslist.template b/templates/admin/linksimcslist.template index b723fa36..6d6c2f4d 100755 --- a/templates/admin/linksimcslist.template +++ b/templates/admin/linksimcslist.template @@ -1,6 +1,6 @@ - ${config["Mir.Name"]} | ${lang("linkimcslist.htmltitle")} + ${config["Mir.Name"]} | ${lang("linkimcslist.htmltitle")} @@ -9,92 +9,92 @@
- - - - - - - - - - - - - - - - - -
${lang("linkimcslist.search_in")}:${lang("linkimcs.parent")}:${lang("linkimcs.language")}: 
- - - - - - - - -
-
- + + + + + + + + + + + + + + + + + +
${lang("linkimcslist.search_in")}:${lang("linkimcs.parent")}:${lang("linkimcs.language")}: 
+ + + + + + + + +
+ + + ${lang("linkimcs.name")} - - - - + ${lang("linkimcs.parent")} + + + + - + - + class="list1"class="list2" > - - - - - - + + + + + + + ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)}
- ${lang("linkimcs.name")} - ${lang("linkimcs.parent")} - ${lang("linkimcs.url")} - ${lang("linkimcs.sort_by")} - ${lang("linkimcs.language")} -   + ${lang("linkimcs.url")} + ${lang("linkimcs.sort_by")} + ${lang("linkimcs.language")} +  
${entry.title} ${parent}${entry.url}${entry.sortpriority}${data.language} ${lang("delete")} - | ${lang("edit")} - ${entry.title} ${parent}${entry.url}${entry.sortpriority}${data.language} ${lang("delete")} + | ${lang("edit")} +
- ${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)}  

- ${lang("list.previous")}  + ${lang("list.previous")}  ${lang("list.next")} diff --git a/templates/admin/login.template b/templates/admin/login.template index a48ca7e4..279f8c6f 100755 --- a/templates/admin/login.template +++ b/templates/admin/login.template @@ -11,7 +11,7 @@ - +

@@ -23,54 +23,54 @@ ) }

- -
+ +
-
${lang("login.title")}
- -
- - +
${lang("login.title")}
+ +
+ +
- + - - - - - - - - - - - - - - - - - - -
${lang("login.name")}:
${lang("login.password")}:
${lang("login.language")}: - -
- -
+ + + + + + + + + + + + + + + + + + +
${lang("login.name")}:
${lang("login.password")}:
${lang("login.language")}: + +
+ +
-
+

- - + + diff --git a/templates/admin/media.template b/templates/admin/media.template index 897f852a..a1907ada 100755 --- a/templates/admin/media.template +++ b/templates/admin/media.template @@ -16,71 +16,71 @@ function openWin(url) {
- - - - - - - - - - - - -
- ${lang("media.nr_of_media")} :
-
-    -
+ + + + + + + + + + + + +
+ ${lang("media.nr_of_media")} :
+
+    +
- - - - - - - - - - - + + + + + + + + + + + - +
- - - - - - + + + + + + - - - - + + + + @@ -90,43 +90,43 @@ function openWin(url) { - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + +
- -    - - ${lang("media.created")}: ${data.webdb_create} - / ${lang("media.changed")} ${data.webdb_lastchange}
- ${lang("media.published")}: ${data.publish_date} / ${data.publish_server}${data.publish_path}
- ${lang("media.format")}: ${data.mimetype} / ${data.media_descr}
- ${lang("media.size")}: ${data.human_readable_size}
- ${lang("media.rights")}: ${data.rightsHashdata[to_rights]["name"]}
-
+ +    + + ${lang("media.created")}: ${data.webdb_create} + / ${lang("media.changed")} ${data.webdb_lastchange}
+ ${lang("media.published")}: ${data.publish_date} / ${data.publish_server}${data.publish_path}
+ ${lang("media.format")}: ${data.mimetype} / ${data.media_descr}
+ ${lang("media.size")}: ${data.human_readable_size}
+ ${lang("media.rights")}: ${data.rightsHashdata[to_rights]["name"]}
+
- ${lang("media.mediafolder")}: - - -
+ ${lang("media.mediafolder")}: + + +
 
- ${lang("media.is_published")} : - - checked> -
 
- ${lang("media.title")}: - - -
-   - -
-
 
+ ${lang("media.is_published")} : + + checked> +
 
+ ${lang("media.title")}: + + +
+   + +
+
- + ${lang("media.is_published")} checked> diff --git a/templates/admin/mediafolder.template b/templates/admin/mediafolder.template index 66c865e2..0389eb9f 100755 --- a/templates/admin/mediafolder.template +++ b/templates/admin/mediafolder.template @@ -10,10 +10,10 @@ - - - - + + + + @@ -25,9 +25,9 @@
- - - + + +
@@ -36,7 +36,7 @@

[<] ${lang("list")}   [<<<] ${lang("head.start")} -

+

diff --git a/templates/admin/mediafolderlist.template b/templates/admin/mediafolderlist.template index e5e7efd0..06b3a31c 100755 --- a/templates/admin/mediafolderlist.template +++ b/templates/admin/mediafolderlist.template @@ -1,6 +1,6 @@ - ${config["Mir.Name"]} | ${lang("mediafolderlist.htmltitle")} + ${config["Mir.Name"]} | ${lang("mediafolderlist.htmltitle")} @@ -8,40 +8,40 @@ - - - - - - - - - - - class="listrow1"class="listrow2" > - - - - - - - - - - + +
${lang("mediafolder.date")}${lang("mediafolder.name")}${lang("mediafolder.location")}${lang("mediafolder.comment")}${lang("mediafolder.keywords")} 
${entry.date} ${entry.name} ${entry.place} ${entry.comment} ${entry.keywords} ${lang("delete")} - | ${lang("edit")} - | ${lang("list")}
${data.count} ${lang("records")} / + + + + + + + + + + + class="listrow1"class="listrow2" > + + + + + + + + + + - - -
${lang("mediafolder.date")}${lang("mediafolder.name")}${lang("mediafolder.location")}${lang("mediafolder.comment")}${lang("mediafolder.keywords")} 
${entry.date} ${entry.name} ${entry.place} ${entry.comment} ${entry.keywords} ${lang("delete")} + | ${lang("edit")} + | ${lang("list")}
${data.count} ${lang("records")} / ${lang("show_from_to", data.from, data.to)} 
+
 

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

${lang("no_matches_found")}

@@ -49,7 +49,7 @@

[+] ${lang("add")}   [<<<] ${lang("head.start")} -

+

diff --git a/templates/admin/medialist.template b/templates/admin/medialist.template index 144e31dc..4875d556 100755 --- a/templates/admin/medialist.template +++ b/templates/admin/medialist.template @@ -1,6 +1,6 @@ - ${config["Mir.Name"]} | ${lang("other_medialist.htmltitle")} + ${config["Mir.Name"]} | ${lang("other_medialist.htmltitle")} diff --git a/templates/admin/message.template b/templates/admin/message.template index 1b3e7abb..244b2908 100755 --- a/templates/admin/message.template +++ b/templates/admin/message.template @@ -10,19 +10,19 @@ - - - - - - - - + + + + + + + + + ${lang("message.date")}: @@ -37,14 +37,14 @@ - - + + @@ -55,7 +55,7 @@ [<] ${lang("back")}   [<<<] ${lang("head.start")} -

+

diff --git a/templates/admin/messagelist.template b/templates/admin/messagelist.template index 1700a22c..c487cb68 100755 --- a/templates/admin/messagelist.template +++ b/templates/admin/messagelist.template @@ -1,7 +1,7 @@ - ${config["Mir.Name"]} | ${lang("messagelist.htmltitle")} - + ${config["Mir.Name"]} | ${lang("messagelist.htmltitle")} + @@ -9,8 +9,8 @@

- [+] ${lang("add")}   - [<<<] ${lang("head.start")} + [+] ${lang("add")}   + [<<<] ${lang("head.start")}

@@ -18,28 +18,28 @@
- ${lang("message.date")}: ${data.date}
- ${lang("message.textinfo")} - - - + ${lang("message.textinfo")} + + + - +
+ ${lang("message.date")} + ${lang("message.title")} /
${lang("message.creator")} + ${lang("message.text")} - class="listrow1" - class="listrow2" - - > + + class="listrow1" + class="listrow2" + + > + [ ${lang("delete")} ]
+ [ ${lang("edit")} ] + @@ -53,10 +53,10 @@

- [ ${lang("list.previous")} ]  + [ ${lang("list.previous")} ]  - [ ${lang("list.next")} ] + [ ${lang("list.next")} ] diff --git a/templates/admin/producerqueue.template b/templates/admin/producerqueue.template index 8e40598f..ce9631bb 100755 --- a/templates/admin/producerqueue.template +++ b/templates/admin/producerqueue.template @@ -1,6 +1,6 @@ - ${config["Mir.Name"]} | ${lang("producerqueue.htmltitle")} + ${config["Mir.Name"]} | ${lang("producerqueue.htmltitle")} @@ -12,33 +12,33 @@

${lang("producer.producerlist.title")}

- ${lang("message.date")} - ${lang("message.title")} /
${lang("message.creator")}
- ${lang("message.text")}
${entry.webdb_create}  ${entry.title}
${lang("by")}: ${entry.creator}
${entry.description}  - [ ${lang("delete")} ]
- [ ${lang("edit")} ] -
- - - - - - - - - - - - - - class="listrow2"class="listrow2"> - - - - - - - - - - - - - + + + + + + + + + + + + + + class="listrow2"class="listrow2"> + + + + + + + + + + + + +
${lang("producer.verb.name")}${lang("producer.verb.description")}
${p.name}
${v.name} [!]${v.name}${v.description}${lang("producer.verb.enqueue")} 
${lang("producer.verb.name")}${lang("producer.verb.description")}
${p.name}
${v.name} [!]${v.name}${v.description}${lang("producer.verb.enqueue")} 
@@ -51,46 +51,46 @@

${lang("producer.jobqueue.title")}

- - - - - - - - - - - - - class="listrow1"class="listrow2"> - - - - - - - - - - - ML: needs to be implemented - - - - - - - - - - - - - + + + + + + + + + + + + + class="listrow1"class="listrow2"> + + + + + + + + + + + ML: needs to be implemented + + + + + + + + + + + + +
${lang("producer.job.name")}${lang("producer.job.status")}${lang("producer.job.date")} 
${q.factory}(${q.verb})${q.status}${q.status}${q.lastchange["HH:mm:ss"]}${lang("producer.job.cancel")}
${lang("producer.job.empty")}
-
- ${lang("producer.jobqueue.refresh")} -
${lang("producer.job.name")}${lang("producer.job.status")}${lang("producer.job.date")} 
${q.factory}(${q.verb})${q.status}${q.status}${q.lastchange["HH:mm:ss"]}${lang("producer.job.cancel")}
${lang("producer.job.empty")}
+
+ ${lang("producer.jobqueue.refresh")} +
diff --git a/templates/admin/start_admin.template b/templates/admin/start_admin.template index 3c248a90..903f4109 100755 --- a/templates/admin/start_admin.template +++ b/templates/admin/start_admin.template @@ -10,45 +10,45 @@ - - + @@ -57,119 +57,119 @@ Middle column - + + +

${lang("start.addandedit.title")}

+
+ > ${lang("start.content.new")} +
+ + > ${lang("start.breaking.title")}  + [+] +
+ + + ${lang("start.open_by_id")}: + + + + + +
+ +

${lang("start.media.title")}

+ + + + +

${lang("start.producers.title")}

+

+ > ${lang("start.producers.produceAllNew")}
+ > ${lang("start.producers.advanced")} +

+ +

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

+ + RIGHT COLUMN - - - - - BOTTOM ROW FOR SEARCH - - - - - + + + + + BOTTOM ROW FOR SEARCH + + + + +
- -

${lang("start.administer.title")}

-

- +

+ +

${lang("start.administer.title")}

+

+ ${lang("start.administer."+a.name)}
-
+ -

- -

${lang("start.list.title")}

-

+ > ${lang("start.allarticlesoftype", lang("articletypes.openposting"))} +
+ + > ${lang("start.content.comments")} + +--> +

+ +

${lang("start.list.title")}

+

- > ${lang("start.allarticlesoftype", lang("articletypes."+a.name))}
+ > ${lang("start.allarticlesoftype", lang("articletypes."+a.name))}
-
- > ${lang("start.content.not_published")}
- > ${lang("start.content.with_media")}
- > ${lang("start.content.last_changes")}
- > ${lang("start.content.with_comments")}
-
- > ${lang("start.content.all")}
-

- -

${lang("start.extra.title")}

-

- > ${lang("start.content.hidden")} - -
+
+ > ${lang("start.content.not_published")}
+ > ${lang("start.content.with_media")}
+ > ${lang("start.content.last_changes")}
+ > ${lang("start.content.with_comments")}
+
+ > ${lang("start.content.all")}
+

+ +

${lang("start.extra.title")}

+

+ > ${lang("start.content.hidden")} + +
> ${lang("start.fileedit."+e+".title")}
-

+

- -

${lang("start.addandedit.title")}

-
- > ${lang("start.content.new")} -
- - > ${lang("start.breaking.title")}  - [+] - - - - ${lang("start.open_by_id")}: - - - - - -
- -

${lang("start.media.title")}

- - - - -

${lang("start.producers.title")}

-

- > ${lang("start.producers.produceAllNew")}
- > ${lang("start.producers.advanced")} -

- -

- ${lang("start.superusermenu")} -

- -
  - - internal messageboard - - -

${lang("start.messageboard.title")}

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

- ${m.title}
- ${m.description}
- - by: ${m.creator} / ${m.webdb_create}
-
-

-
- -

${lang("start.messageboard.no_messages")} - -

-
-

${lang("start.search.title")}

-
- -
- - -

- HELP-Demo:
- popup small-link:    popup big-link:

- newwin small-link:    newwin big-link: -

- - -
 
+ + internal messageboard + + +

${lang("start.messageboard.title")}

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

+ ${m.title}
+ ${m.description}
+ + by: ${m.creator} / ${m.webdb_create}
+
+

+
+ +

${lang("start.messageboard.no_messages")} + +

+
+

${lang("start.search.title")}

+
+ +
+ + +

+ HELP-Demo:
+ popup small-link:    popup big-link:

+ newwin small-link:    newwin big-link: +

+ + +
 
- + - + diff --git a/templates/admin/superusermenu.template b/templates/admin/superusermenu.template index 36910cd8..2e627f17 100755 --- a/templates/admin/superusermenu.template +++ b/templates/admin/superusermenu.template @@ -1,7 +1,7 @@ - ${config["Mir.Name"]} | ${lang("superusermenu.htmltitle")} - + ${config["Mir.Name"]} | ${lang("superusermenu.htmltitle")} + @@ -11,17 +11,17 @@ - + diff --git a/templates/admin/topic.template b/templates/admin/topic.template index 1eb043bd..999547df 100755 --- a/templates/admin/topic.template +++ b/templates/admin/topic.template @@ -6,8 +6,8 @@ - - + +
@@ -19,11 +19,11 @@
-

${lang("superusermenu.manage")}:

-

- > ${lang("superusermenu.topics")}
- > ${lang("superusermenu.articletypes")}
- > ${lang("superusermenu.comment_statuses")}
- > ${lang("superusermenu.users")}
- > ${lang("superusermenu.languages")}
- > ${lang("superusermenu.abuse")}
-

-
+

${lang("superusermenu.manage")}:

+

+ > ${lang("superusermenu.topics")}
+ > ${lang("superusermenu.articletypes")}
+ > ${lang("superusermenu.comment_statuses")}
+ > ${lang("superusermenu.users")}
+ > ${lang("superusermenu.languages")}
+ > ${lang("superusermenu.abuse")}
+

+
   
- - - - - + + + + + -
@@ -33,9 +33,9 @@
+
-

[<] ${lang("back")}  

+

[<] ${lang("back")}  

diff --git a/templates/admin/topiclist.template b/templates/admin/topiclist.template index 97bff9e7..21a3c584 100755 --- a/templates/admin/topiclist.template +++ b/templates/admin/topiclist.template @@ -7,32 +7,32 @@ - + - configure this template here - - - - - - - - - - - + configure this template here + + + + + + + + + + + - - - + + + -

${lang("no_matches_found")}

+

${lang("no_matches_found")}

- + diff --git a/templates/admin/user.template b/templates/admin/user.template index 1d27954c..ae0198ce 100755 --- a/templates/admin/user.template +++ b/templates/admin/user.template @@ -1,52 +1,52 @@ - ${config["Mir.Name"]} | ${lang("user.htmltitle")} - + ${config["Mir.Name"]} | ${lang("user.htmltitle")} + - - - + + +
- - - - - - - + + + + + + + - - - - - - - - - - - -
- ${lang("user.admin")}: - - checked> -
- - - - - - - -
+ + + + + + + + + + + +
+ ${lang("user.admin")}: + + checked> +
+ + + + + + + +
- -

[<] ${lang("back")}  

- - + +

[<] ${lang("back")}  

+ + diff --git a/templates/admin/usererror.template b/templates/admin/usererror.template index fc61c25c..4409c367 100755 --- a/templates/admin/usererror.template +++ b/templates/admin/usererror.template @@ -5,32 +5,32 @@ - - - - - - - - + + + + + + + - - - - +

+ + +

+ +
-

${lang("usererror.title")}

-
-
-

${lang("usererror.text")} -

-

-

${data.errorstring} +

+

${lang("usererror.title")}

+
+
+

${lang("usererror.text")} +

+

+

${data.errorstring}

-

-

-

${lang("usererror.what_to_do")} - -

-

+

${lang("usererror.what_to_do")} + +

+

diff --git a/templates/admin/userlist.template b/templates/admin/userlist.template index 432c0aea..567dddfa 100755 --- a/templates/admin/userlist.template +++ b/templates/admin/userlist.template @@ -6,30 +6,30 @@ - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + - - + + - - - + + +

${lang("no_matches_found")}

diff --git a/templates/admin/video.template b/templates/admin/video.template index 126bdf5b..7cd4fccf 100755 --- a/templates/admin/video.template +++ b/templates/admin/video.template @@ -15,22 +15,22 @@ function openWin(url) {
- - - - - - - - - - - -
- ${lang("media.nr_of_media")} :
-
-    -
+ + + + + + + + + + + +
+ ${lang("media.nr_of_media")} :
+
+    +
@@ -42,86 +42,86 @@ function openWin(url) { - + - +
- - - - - - + + + + + + - - - - + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
- -    - - ${lang("media.created")}: ${data.webdb_create} - / ${lang("media.changed")} ${data.webdb_lastchange}
- ${lang("media.published")}: ${data.publish_date} / ${data.publish_server}${data.publish_path}
- ${lang("media.format")}: ${data.mimetype} / ${data.media_descr}
- ${lang("media.size")}: ${data.human_readable_size}
- ${lang("media.rights")}: ${data.rightsHashdata[to_rights]["name"]}
-
+ +    + + ${lang("media.created")}: ${data.webdb_create} + / ${lang("media.changed")} ${data.webdb_lastchange}
+ ${lang("media.published")}: ${data.publish_date} / ${data.publish_server}${data.publish_path}
+ ${lang("media.format")}: ${data.mimetype} / ${data.media_descr}
+ ${lang("media.size")}: ${data.human_readable_size}
+ ${lang("media.rights")}: ${data.rightsHashdata[to_rights]["name"]}
+
- ${lang("media.mediafolder")}: - - -
+ ${lang("media.mediafolder")}: + + +
 
- ${lang("media.is_published")} : - - checked> -
 
- ${lang("media.title")}: - - -
-   - -
-
 
+ ${lang("media.is_published")} : + + checked> +
 
+ ${lang("media.title")}: + + +
+   + +
+
diff --git a/templates/admin/videolist.template b/templates/admin/videolist.template index 1577587e..852fb6d1 100755 --- a/templates/admin/videolist.template +++ b/templates/admin/videolist.template @@ -1,6 +1,6 @@ - ${config["Mir.Name"]} | ${lang("video.htmltitle")} + ${config["Mir.Name"]} | ${lang("video.htmltitle")} -- 2.11.0