You can subscribe to this list here.
| 2004 |
Jan
|
Feb
(11) |
Mar
(106) |
Apr
(146) |
May
(79) |
Jun
(233) |
Jul
(218) |
Aug
(160) |
Sep
(155) |
Oct
(80) |
Nov
(176) |
Dec
(115) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2005 |
Jan
(77) |
Feb
(106) |
Mar
(10) |
Apr
(54) |
May
(29) |
Jun
(29) |
Jul
(65) |
Aug
(80) |
Sep
|
Oct
(42) |
Nov
(45) |
Dec
(33) |
| 2006 |
Jan
(49) |
Feb
(52) |
Mar
(8) |
Apr
(3) |
May
(108) |
Jun
(43) |
Jul
(13) |
Aug
(1) |
Sep
(58) |
Oct
(66) |
Nov
(70) |
Dec
(115) |
| 2007 |
Jan
(26) |
Feb
(3) |
Mar
(17) |
Apr
(1) |
May
(4) |
Jun
(3) |
Jul
(2) |
Aug
(1) |
Sep
|
Oct
(1) |
Nov
(1) |
Dec
(1) |
| 2008 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(4) |
Jun
|
Jul
(10) |
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
(1) |
| 2009 |
Jan
(5) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(3) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Michael K. <ko...@us...> - 2006-09-15 06:38:34
|
Update of /cvsroot/cobricks/drehscheibe-in/web In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv30270 Modified Files: navigation.html.de Added Files: pagefooter.html.de pagefooter.html.en pageheader.html.en Removed Files: pagefooter.html Log Message: Index: navigation.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/navigation.html.de,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- navigation.html.de 13 Sep 2006 13:18:00 -0000 1.3 +++ navigation.html.de 15 Sep 2006 06:38:28 -0000 1.4 @@ -77,4 +77,4 @@ #end <IMG src="/images/spacer160.gif" width=150><BR> -</TD> +</TD> \ No newline at end of file --- NEW FILE: pagefooter.html.de --- #if ( $print != "true" ) <p> <div align="right"> #if ($pitemid != "") #set ($acc = $userPresenter.checkPermission("$userId", "page", "update", "itemid=$itemid")) #if ($acc != "false") <a href="$contextPath/portal/edit.html?itemid=$!pitemid&plang=$!pageLang">Edit Page</a> - #end #end <a href="$portalPresenter.getPrintLink($portalRequest)"> <font color="#808080"><img border="0" src="$contextPath/images/print_icon.gif"> Print Page</font></a> </div> #end </td> </tr> </table> </body> </html> --- NEW FILE: pageheader.html.en --- <html> <head> <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>www.in.tum.de</title> <base href="$portalRequest.getBaseUrl()"> <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> <META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"> <meta http-equiv="expires" content="0"> <META NAME="GOOGLEBOT" CONTENT="NOARCHIVE"> <META NAME="ROBOTS" CONTENT="NONE"> <link rel="stylesheet" type="text/css" href="$contextPath/style.css"> </head> <body bgcolor="#ffffff" topmargin="1" leftmargin="3" marginwidth="3" marginheight="1"> #set ( $print = "$!print" ) #if ( $print != "true" ) <TABLE cellSpacing=4 cellPadding=4 width="100%" border=0> <TBODY> <TR> <TD vAlign=center align=left> <A href="/index.html"><IMG height=50 src="/images/abakus50x50.gif" width=50 border=0></A> </TD> <TD vAlign=center align=middle><FONT color=#a1a1a1 size=+3>Department of </FONT> <FONT color="#0075cf" size=+3>Informatics</FONT><BR><FONT color=#bfbfbf size=+1>Technische Universität München</FONT> </TD> <TD vAlign=center align=right><A href="http://www.tum.de/"><IMG height=32 src="/images/tum-logo60x32.gif" width=60 border=0></A></TD> </TR> </TBODY> </TABLE> <TABLE cellSpacing=2 cellPadding=2 width="100%" bgColor=#ffffff border=0> <TBODY> <TR> <TD vAlign=center noWrap align=middle><font size="+1"> <a href="/index.html">HOME</a> | <a href="/studium/index.html">ACADEMIC</a> | <a href="/forschung/index.html">RESEARCH</a> | <a href="/fakultaet/index.html">DEPARTMENT</a> | <a href="/dienste/index.html">SERVICE</a> | <a href="/info/index.html">INFORMATION</a> | <a href="/alumni/index.html">ALUMNI</a> </font> </TD> </TR> <TR> <TD bgColor=#dddddd valign=top> <TABLE width="100%" border=0> <TBODY> <TR> #if ($!userLogin != "anonymous") <TD align=left valign=top>Login: <A href="/user/user.html"><B>$!userLogin</B></A> </TD> <TD align=right valign=top> <A href="/suche.html">Search</A> - <A href="/doku/index.html">Help</A> - <A href="/PORTAL?cmd=logout">Logout</a> <div style="margin:2px;">$portalPresenter.printLang($portalRequest)</div> #else <TD align=left valign=top> <A href="/user/login.html"><B>Login</B></A> <A href="/user/register.html"><B>New User</B></A> </TD> <TD align=right valign=top> <A href="/suche.html">Search</A> - <A href="/doku/index.html">Help</A> <div style="margin:2px;">$portalPresenter.printLang($portalRequest)</div> #end #end </TD> </TR> </TBODY> </TABLE> </TD> </TR> <tr> <td colspan=3>You are here: <a href="/index.html">Home</a> $portalPresenter.printNavigationPath($portalRequest)</td> </tr> </TBODY> </TABLE> </td> <td> </td> <td valign="top" width="95%"> <td valign="top"> <font size="-1" color="red"> $portalPresenter.displayNotifications($sessionId) </font> <table width ="100%" border=0 cellSpacing=1 cellPadding=15> <tr> #if ( $print != "true" ) $portalPresenter.parse("navigation.html",$portalRequest,"/navigation.html") #end <td valign="top"> --- pagefooter.html DELETED --- --- NEW FILE: pagefooter.html.en --- #if ( $print != "true" ) <p> <div align="right"> #if ($pitemid != "") #set ($acc = $userPresenter.checkPermission("$userId", "page", "update", "itemid=$itemid")) #if ($acc != "false") <a href="$contextPath/portal/edit.html?itemid=$!pitemid&plang=$!pageLang">Edit Page</a> - #end #end <a href="$portalPresenter.getPrintLink($portalRequest)"> <font color="#808080"><img border="0" src="$contextPath/images/print_icon.gif"> Print Page</font></a> </div> #end </td> </tr> </table> </body> </html> |
|
From: Michael K. <ko...@us...> - 2006-09-15 06:38:33
|
Update of /cvsroot/cobricks/drehscheibe-in/web/course In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv30270/course Modified Files: index.html.de navigation.html.de Log Message: Index: index.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/course/index.html.de,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- index.html.de 12 Sep 2006 12:48:23 -0000 1.3 +++ index.html.de 15 Sep 2006 06:38:29 -0000 1.4 @@ -1,5 +1,5 @@ -$portalPresenter.parse("$!contextPath/pageheader.html.de",$portalRequest) +$portalPresenter.parse("$!contextPath/pageheader.html", $portalRequest) <h1>Course Management</h1> @@ -8,9 +8,12 @@ #set ( $auser = $userManager.getUser($auserid)) #set ( $tmps = $userPresenter.checkRole("$auserid", "admin-course") ) #if ( "$!tmps" != "true" ) +#set ( $tmps = $userPresenter.checkRole("$auserid", "admin-course") ) +#if ( "$!tmps" != "true" ) #set ( $auserid = 0 ) #end #end +#end #if ( $returnCode == 1001 ) <p><div class="info">Veranstaltung wurde erfolgreich angelegt.</div></p> @@ -144,4 +147,4 @@ #end -$portalPresenter.parse("$!contextPath/pagefooter.html.de",$portalRequest) +$portalPresenter.parse("$!contextPath/pagefooter.html",$portalRequest) Index: navigation.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/course/navigation.html.de,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- navigation.html.de 12 Sep 2006 12:48:23 -0000 1.2 +++ navigation.html.de 15 Sep 2006 06:38:29 -0000 1.3 @@ -51,4 +51,3 @@ <IMG src="/images/spacer160.gif" width=110><BR> </TD> -<td valign=top> |
|
From: Michael K. <ko...@us...> - 2006-09-14 12:21:30
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/item In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21101/item Modified Files: ItemPresenter.java Log Message: Index: ItemPresenter.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/item/ItemPresenter.java,v retrieving revision 1.47 retrieving revision 1.48 diff -u -d -r1.47 -r1.48 --- ItemPresenter.java 13 Sep 2006 12:51:23 -0000 1.47 +++ ItemPresenter.java 14 Sep 2006 12:21:26 -0000 1.48 @@ -20,10 +20,12 @@ import java.util.ArrayList; import java.util.Calendar; import java.util.Collection; +import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; +import java.util.ListIterator; import java.util.Locale; import java.util.Map; import java.util.Properties; @@ -701,7 +703,7 @@ * @return The html form input field as String */ public final String printAttrInput(String itemClass, String aname, - String lang, String requestVal) + String lang, Object requestVal) { return printAttrInput(itemClass, aname, lang, requestVal, -1, MAX_NUMBER_COLS, false); @@ -710,7 +712,7 @@ public final String printAttrInput(String itemClass, String aname, String lang, VelocityContext context) { - String requestVal = (String)context.get(aname); + Object requestVal = context.get(aname); return printAttrInput(itemClass, aname, lang, requestVal); } @@ -718,7 +720,7 @@ String lang, VelocityContext context, int rows, int cols, boolean readonly) { - String requestVal = (String)context.get(aname); + Object requestVal = context.get(aname); return printAttrInput(itemClass, aname, lang, requestVal, rows, cols, readonly); } @@ -743,7 +745,7 @@ * @return The html form input field as String */ public final String printAttrInput(String itemClass, String aname, - String lang, String requestVal, + String lang, Object requestVal, int rows, int cols, boolean readonly) { String result = ""; @@ -762,7 +764,8 @@ if (oca != null) { OntologyDataType odat = oca.getOntologyDataType(); - if ((requestVal == null) || (requestVal.length() == 0)) { + if ((requestVal == null) || + (requestVal.toString().length() == 0)) { defaultVal = oca.getDefault(); } @@ -781,8 +784,8 @@ } if ((requestVal != null) - && ((requestVal.length() > MAX_NUMBER_COLS) - || (requestVal.matches("\n")))) { + && ((requestVal.toString().length() > MAX_NUMBER_COLS) + || (requestVal.toString().matches("\n")))) { rows = ROWS_FOR_LONG_INPUT; } @@ -797,15 +800,17 @@ if ((oca != null) && !oca.getValues().isEmpty()) { //There are possible values if (requestVal != null) { - result += printDropDown(itemClass, aname, requestVal, lang, - "attribute", false, readonly); + result += printDropDown(itemClass, aname, + requestVal.toString(), lang, + "attribute", false, readonly); } else { result += printDropDown(itemClass, aname, defaultVal, lang, - "attribute", false, readonly); + "attribute", false, readonly); } } else if (typeName.equals("boolean")) { if (requestVal != null) { - result += printRadio(aname, requestVal, "boolean", readonly); + result += printRadio(aname, requestVal.toString(), + "boolean", readonly); } else { result += printRadio(aname, defaultVal, "boolean", readonly); } @@ -815,9 +820,8 @@ if (maxLength > -1) { if (maxLength > MAX_NUMBER_COLS) { rows = (maxLength / MAX_NUMBER_COLS) + 1; - return printAttrInput(itemClass, aname, lang, requestVal, - rows, MAX_NUMBER_COLS, readonly); + rows, MAX_NUMBER_COLS, readonly); } else { result += (" size=\"" + maxLength + "\" maxlength=\"" + maxLength + "\""); @@ -826,11 +830,13 @@ result += (" size=\"" + cols + "\""); } - if ((requestVal != null) && (requestVal.length() > 0)) { - result += (" value=\"" + requestVal + "\""); + String value = ""; + if ((requestVal != null) && (requestVal.toString().length() > 0)) { + value = printAttribute(requestVal, lang); } else if (defaultVal != null) { - result += (" value=\"" + defaultVal + "\""); + value = defaultVal; } + result += (" value=\"" + value + "\""); if (readonly) { result += " readonly=\"readonly\""; @@ -859,8 +865,8 @@ result += ">"; - if ((requestVal != null) && (requestVal.length() > 0)) { - result += requestVal; + if ((requestVal != null) && (requestVal.toString().length() > 0)) { + result += requestVal.toString(); } else if (defaultVal != null) { result += defaultVal; } @@ -1048,13 +1054,6 @@ result += (">" + next + "</option>\n"); } - result += "<option"; - - if (selected == null || selected.equals("")) { - result += " selected=\"selected\""; - } - - result += " value=\"\">no value</option>"; } else if (type.equals("state")) { OntologyClassAttr oca = this.ontology.getClass(itemClass) .getAttribute("state"); @@ -1564,6 +1563,26 @@ /** + * Set all item attributes as variables in the given Velocity + * context. + */ + public void setItemAttrInContext(Item item, VelocityContext context) + { + try { + Map attr = item.getAttributes(); + Iterator i = attr.keySet().iterator(); + while (i.hasNext()) { + String key = (String)i.next(); + String newkey = key.replace('.', '_'); + context.put(newkey, attr.get(key)); + } + } catch (Exception e) { + logger.info(LogUtil.ex("failed", e)); + } + } + + + /** * Determine the template to be used for displaying the details * of an item. * @@ -1599,13 +1618,86 @@ return avalue; } - /** * */ public String getItemTypeIcon(String itemclass) { - return "/images/itemtype.gif"; + String aname = "item.display.icon."+itemclass; + String avalue = coreManager.getProperty(aname); + if (avalue == null) + avalue = coreManager.getProperty("item.display.icon.default"); + if (avalue == null) return "/images/itemtype.gif"; + return avalue; } + Map categoryListCache = null; + + /** + * + */ + public String getCategoryOptions(String categoryclassname, + String lang, + Set selcat) + { + logger.error("getCategoryOptions: "+selcat); + logger.error("getCategoryOptions: "+selcat.getClass().getName()); + + if (categoryListCache==null) categoryListCache = new HashMap(); + String key = lang+";"+categoryclassname; + List categories = (List)categoryListCache.get(key); + if (categories==null) { + Map attrs = new HashMap(); + if (categoryclassname!=null && categoryclassname.trim().length()>0) + attrs.put("categoryclass", categoryclassname); + List tmpResult = categoryManager.getCategories(attrs); + List tmpSort = new ArrayList(); // strings: name;id + ListIterator i = tmpResult.listIterator(); + while (i.hasNext()) { + Category c = (Category)i.next(); + logger.error("--"+c.getId()); + String key2 = c.getTitle(lang)+";"+Integer.toString(c.getId()); + tmpSort.add(key2); + } + Collections.sort(tmpSort); + categories = new ArrayList(); + i = tmpSort.listIterator(); + while (i.hasNext()) { + String tmps = (String)i.next(); + int cid = Integer. + parseInt(tmps.substring(tmps.lastIndexOf(";")+1)); + categories.add(categoryManager.getCategory(cid)); + } + categoryListCache.put(key, categories); + } + StringBuffer result = new StringBuffer(""); + + Iterator ii = selcat.iterator(); + while (ii.hasNext()) { + Integer catid = (Integer)ii.next(); + Category c = categoryManager.getCategory(catid.intValue()); + result.append("<option value=\""); + result.append(Integer.toString(c.getId())); + result.append("\" selected"); + result.append(">"); + result.append(c.getTitle(lang)); + result.append("</option>\n"); + } + ListIterator i = categories.listIterator(); + while (i.hasNext()) { + Category c = (Category)i.next(); + if (selcat == null || + (!selcat.contains(new Integer(c.getId())))) { + result.append("<option value=\""); + result.append(Integer.toString(c.getId())); + result.append("\""); + result.append(">"); + result.append(c.getTitle(lang)); + result.append("</option>\n"); + } + } + + return result.toString(); + } + } |
|
From: Michael K. <ko...@us...> - 2006-09-14 12:21:29
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/portal In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21101/portal Modified Files: PortalManagerImpl.java PortalPresenter.java Log Message: Index: PortalPresenter.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/portal/PortalPresenter.java,v retrieving revision 1.44 retrieving revision 1.45 diff -u -d -r1.44 -r1.45 --- PortalPresenter.java 13 Sep 2006 12:51:23 -0000 1.44 +++ PortalPresenter.java 14 Sep 2006 12:21:26 -0000 1.45 @@ -520,7 +520,7 @@ HttpServletRequest request = portalRequest.getHttpServletRequest(); String uri = request.getRequestURI(); - logger.info("navigation: "+uri); + uri = portalRequest.getPagePath()+portalRequest.getPageName(); int poslast = uri.lastIndexOf("/"); String pagename = ""; String fullpagename = ""; @@ -542,7 +542,7 @@ PortalFolder pf = portalManager.getPortalFolder(tmpurl); String tmpname = tmps; if (pf != null) - tmpname = pf.getTitle("$!lang"); + tmpname = pf.getTitle(portalRequest.getLang()); result.append(" → "); result.append("<a href=\""); result.append(tmpurl); @@ -551,7 +551,7 @@ result.append("</a>"); } if (pagename!=null && pagename.length()>0 && - (!(pagename.startsWith("index.")))) { + (!(pagename.equals("index")))) { result.append(" → "); result.append("<a href=\""); tmpurl = tmpurl + fullpagename; Index: PortalManagerImpl.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/portal/PortalManagerImpl.java,v retrieving revision 1.85 retrieving revision 1.86 diff -u -d -r1.85 -r1.86 --- PortalManagerImpl.java 12 Sep 2006 12:40:50 -0000 1.85 +++ PortalManagerImpl.java 14 Sep 2006 12:21:26 -0000 1.86 @@ -470,20 +470,11 @@ Object content = page.getPageContent(lang); if (content == null) { - logger.warn("Failed getting content for page "+pagePath+pageName - +","+lang+" - sending error 404"); - /* - pagePath = notFoundPath; - pageName = "notfound.html"; - int pos = pagePath.indexOf("/"); - if (pos > -1) { - pageName = pagePath.substring(pos+1); - pagePath = pagePath.substring(0, pos+1); + if (!pageName.equals("favicon.ico")) { + logger.warn("Failed getting content for page " + +pagePath+pageName + +","+lang+" - sending error 404"); } - page = getObject(pagePath, pageName); - printPage(portalRequest, page, out); - return; - */ HttpServletResponse response = portalRequest.getHttpServletResponse(); response.setStatus(404); |
|
From: Michael K. <ko...@us...> - 2006-09-14 12:21:29
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/user In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21101/user Modified Files: UserPresenter.java Log Message: Index: UserPresenter.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/user/UserPresenter.java,v retrieving revision 1.38 retrieving revision 1.39 diff -u -d -r1.38 -r1.39 --- UserPresenter.java 12 Sep 2006 12:41:08 -0000 1.38 +++ UserPresenter.java 14 Sep 2006 12:21:26 -0000 1.39 @@ -842,4 +842,17 @@ return user.getUserLogin(); } + public String getUserName(int userid) + { + User user = userManager.getUser(userid); + if (user == null) return ""; + return user.getName(); + } + + public String getUserName(User user) + { + if (user == null) return ""; + return user.getName(); + } + } |
|
From: Michael K. <ko...@us...> - 2006-09-14 12:21:29
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/category In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21101/category Modified Files: Category.java CategoryPresenter.java Log Message: Index: CategoryPresenter.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/category/CategoryPresenter.java,v retrieving revision 1.20 retrieving revision 1.21 diff -u -d -r1.20 -r1.21 --- CategoryPresenter.java 13 Sep 2006 12:51:23 -0000 1.20 +++ CategoryPresenter.java 14 Sep 2006 12:21:26 -0000 1.21 @@ -278,6 +278,16 @@ return categoryManager.getCategory(catid.intValue()); } + public Category getCategory(int catid) + { + return categoryManager.getCategory(catid); + } + + public Category getCategory(Category category) + { + return category; + } + /** * This auxiliary method is used to get the category object with the given ID. Index: Category.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/category/Category.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- Category.java 27 Jun 2006 10:13:12 -0000 1.16 +++ Category.java 14 Sep 2006 12:21:26 -0000 1.17 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004-2005 Cobricks Group. All rights reserved. + * Copyright (c) 2004-2006 Cobricks Group. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted under the terms of the Cobricks Software @@ -113,7 +113,7 @@ o = getAttribute("title_es"); if (o!=null) return o.toString(); - return null; + return "no title"; } |
|
From: Michael K. <ko...@us...> - 2006-09-13 13:32:20
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/util In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21262/org/cobricks/util Added Files: assignUserRole.java Log Message: --- NEW FILE: assignUserRole.java --- /* * Copyright (c) 2006 Cobricks Group. All rights reserved. * * This file is part of a free software package; you can redistribute * it and/or modify it under the terms of the Cobricks Software Licence; * either version 1.0 of the License, or (at your option) any later * version (see www.cobricks.de). * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. */ package org.cobricks.util; import java.util.HashMap; import java.util.Map; import java.util.Properties; import java.io.File; import org.apache.log4j.Logger; import org.apache.log4j.PropertyConfigurator; import org.cobricks.core.*; import org.cobricks.core.util.*; import org.cobricks.user.*; /** * Assign a user given user role to a given user. * * @author mic...@ac... * @version $Date: 2006/09/13 13:32:12 $ */ public class assignUserRole { static Logger logger = Logger.getLogger(assignUserRole.class); private CoreManager coreManager = null; public static void main(String[] args) { Map params = new HashMap(); for (int i=0; i < args.length;) { String tmps = args[i++]; if (tmps.equals("-c")) { params.put("configdir", args[i++]); } if (tmps.equals("-u")) { params.put("userlogin", args[i++]); } if (tmps.equals("-r")) { params.put("userrole", args[i++]); } } assignUserRole tool = new assignUserRole(params); try { tool.doIt(); } catch (Exception e) { e.printStackTrace(); logger.error(LogUtil.ex("Failed assigning role", e)); } } String userlogin = null; String userrole = null; public assignUserRole(Map params) { // configdir initialisation String configDir = (String)params.get("configdir"); if (configDir == null) configDir = "conf"; userlogin = (String)params.get("userlogin"); userrole = (String)params.get("userrole"); if (userrole == null) userrole = "admin"; PropertyConfigurator. configure(configDir+File.separator+"log.properties"); coreManager = new CoreManager(); // load Cobricks configuration (properties) Properties properties = new Properties(); properties.put("configdir", configDir); PropertiesUtil.loadProperties(configDir, properties, coreManager); // initialize CoreManager object ... try { coreManager.init(properties); } catch (CobricksException e) { // Fatal error System.err.println(e.toString()); System.exit(-1); } // initialize all the other components // this call instantiates all manager and presenter objects coreManager.initComponents(properties); } public void doIt() throws Exception { ComponentDirectory componentDirectory = coreManager.getComponentDirectory(); UserManager userManager = (UserManager) componentDirectory.getManager("userManager"); // look for user int userid = userManager.getUserIdForUserLogin(userlogin); if (userid < 1) { logger.error("user "+userlogin+" not found!"); return; } User u = userManager.getUser(userid); // look for user role AccessControl accessControl = userManager.getAccessControl(); AccessRole role = accessControl.getAccessRoleByName(userrole); if (role == null) { logger.error("access role "+userrole+" not found!"); return; } int roleid = role.getId(); // add user role try { accessControl.addUser(roleid, userid, true); } catch (Exception e) { logger.warn("Failed adding role to user: "+e.toString()); } } } |
|
From: Michael K. <ko...@us...> - 2006-09-13 13:32:16
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/core/util In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv21262/org/cobricks/core/util Added Files: HTMLUtil.java Log Message: --- NEW FILE: HTMLUtil.java --- /* * Copyright (c) 2006 Cobricks Group. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted under the terms of the Cobricks Software * License, either version 1.0 of the License, or (at your option) any * later version (see www.cobricks.org). * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. */ package org.cobricks.core.util; import java.net.*; import java.io.*; import java.util.*; import org.apache.log4j.Logger; /** * Class with static methods for converting HTML to text * * @author mic...@ac... * @version $Date: 2006/09/13 13:32:12 $ */ public class HTMLUtil { static Logger logger = Logger.getLogger(HTMLUtil.class); /** * Convert HTML to formatted plain text - * currently quite simple: * - all \n and Spaces are compressed * - <p> results in empty line * - <br> results in linebreak * - <ul>/<ol> are formatted ... * - other tags are removed */ // parse through the string and stop at the following // characters: ' ', '-', '\n', '\t', '\f', '<' // specially handle '<' characters static public String formatHTMLString(String html, int width) { if (html == null) return ""; StringBuffer out = new StringBuffer(""); HTMLFormatterTask task = new HTMLFormatterTask(html, out, width); int p = 0; int pold = 0; int pclose = 0; int listlevel = 0; while (true) { p = findNextBreak(task, pold); if (p < 0) break; char b = html.charAt(p); // handle text before break character if (b == '-') appendString(task, html.substring(pold, p), "-"); else if (b == '&') { int pend = html.indexOf(";", p); if (pend<0 || pend > p+6) pend = p+4; String htmlchar = getHTMLCharacter(html.substring(p+1,pend)); appendString(task, html.substring(pold, p), htmlchar); p = pend; } else appendString(task, html.substring(pold, p), " "); // handle break p++; if (b != '<') { pold = p; continue; } // now handle '<' // find closing '>' pclose = html.indexOf(">", p); if (pclose < 0) { logger.error("missing > in tag at "+(p-1)); pold = p; continue; } // get tag name String tag = html.substring(p, pclose); tag = tag.trim(); int ptmp = tag.indexOf(" "); if (ptmp > -1) tag = tag.substring(0, ptmp); // handle some tags if (tag.equalsIgnoreCase("br") || tag.equalsIgnoreCase("/tr")) { newline(task); } if (tag.equalsIgnoreCase("ul") || tag.equalsIgnoreCase("ol")) { task.listlevel++; } if (tag.equalsIgnoreCase("/ul") || tag.equalsIgnoreCase("/ol")) { task.listlevel--; newline(task); } if (tag.length()==3 && (tag.startsWith("/h") || tag.startsWith("/H"))) { newline(task); newline(task, false); } if (tag.equalsIgnoreCase("quote")) { task.listlevel++; adaptListLevel(task); newline(task); } if (tag.equalsIgnoreCase("/quote")) { task.listlevel--; newline(task); } if (tag.equalsIgnoreCase("li")) { task.listlevel--; newline(task); task.listlevel++; appendString(task, "- ", ""); } if (tag.equalsIgnoreCase("p")) { newline(task); newline(task, true); } if (tag.equalsIgnoreCase("/p")) { newline(task); newline(task, false); } if (tag.equalsIgnoreCase("/center")) { newline(task); newline(task, false); } // TBD: handle <a> tag!!! // ignore all other tags pold = pclose+1; continue; } // add characters behind last break to result string if (html.length()>pold) { appendString(task, html.substring(pold), ""); } newline(task); return task.out.toString(); } static int findNextBreak(HTMLFormatterTask task, int start) { String s = task.html; int p = s.indexOf(" ", start); int pt = s.indexOf("\n", start); if ((pt>-1) && (pt<p || p<0)) p = pt; pt = s.indexOf("\r", start); if ((pt>-1) && (pt<p || p<0)) p = pt; pt = s.indexOf("\f", start); if ((pt>-1) && (pt<p || p<0)) p = pt; pt = s.indexOf("\t", start); if ((pt>-1) && (pt<p || p<0)) p = pt; pt = s.indexOf("-", start); if ((pt>-1) && (pt<p || p<0)) p = pt; pt = s.indexOf("<", start); if ((pt>-1) && (pt<p || p<0)) p = pt; pt = s.indexOf("&", start); if ((pt>-1) && (pt<p || p<0)) { int ps = s.indexOf(";", pt); if (ps > -1 && (ps-pt <= 5)) p = pt; } return p; } static void appendString(HTMLFormatterTask task, String add, String post) { if (add.trim().length()<1) return; int length = task.currentline.length(); length += add.length(); length += post.trim().length(); if (length <= task.maxlinelength) { task.currentline.append(add); task.currentline.append(post); } else { newline(task); task.currentline.append(add); task.currentline.append(post); } } static void newline(HTMLFormatterTask task) { newline(task, false); } static void newline(HTMLFormatterTask task, boolean force) { int len = (task.currentline.toString()).trim().length(); if (task.out.length()<1 && len<1) return; if (force==false && len<1) return; task.currentline.append("\n"); task.out.append(task.currentline.toString()); task.currentline = new StringBuffer(""); if (task.listlevel > 0) { for (int i=0; i<task.listlevel; i++) { task.currentline.append(" "); } } } // if the listlevel changed and a new line has already begun ... static void adaptListLevel(HTMLFormatterTask task) { int len = (task.currentline.toString()).trim().length(); if (len>0) return; task.currentline = new StringBuffer(""); if (task.listlevel > 0) { for (int i=0; i<task.listlevel; i++) { task.currentline.append(" "); } } } static String getHTMLCharacter(String name) { if (name.equals("amp")) return "&"; if (name.equals("nbsp")) return " "; if (name.equals("auml")) return "ä"; if (name.equals("ouml")) return "ö"; if (name.equals("uuml")) return "ü"; if (name.equals("Auml")) return "Ã"; if (name.equals("Ouml")) return "Ã"; if (name.equals("Uuml")) return "Ã"; if (name.equals("szlig")) return "Ã"; return "?"; } static public void main(String[] args) { StringBuffer content = new StringBuffer(""); try { BufferedReader in = new BufferedReader(new FileReader(args[0])); String s = null; while ((s = in.readLine())!=null) { content.append(s); content.append("\n"); } String res = HTMLUtil.formatHTMLString(content.toString(), 70); System.err.println("---------1--------2---------3---------4"+ "---------5--------6---------7----."); System.err.println(res); System.err.println("---------1--------2---------3---------4"+ "---------5--------6---------7----."); } catch (Exception e) { logger.error(LogUtil.ex("main", e)); } } } class HTMLFormatterTask { public String html; public int maxlinelength; public StringBuffer out; public StringBuffer currentline; public int listlevel; public HTMLFormatterTask(String s, StringBuffer o, int max) { html = s; out = o; maxlinelength = max; currentline = new StringBuffer(""); listlevel=0; } } |
Update of /cvsroot/cobricks/drehscheibe-in/web/item In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv19859 Modified Files: itemsearch.html.de Added Files: attribute_fields.html Removed Files: delete-item.html.de delete-success.html.de diplom.html.de error-item.html.de forschungsprojekt.html.de forschungsschwerpunkt.html.de fww-beitrag.hrml.de fww-beitrag.html.de idp.html.de item-edit.html.de item-success.html.de itemsearch-error.html.de itemsearch-result.html.de job.html.de listitems.html.de mitteilung.html.de read-job-item.html.de sep.html.de termin-offiziel.html.de termin.html.de update-success.html.de Log Message: --- job.html.de DELETED --- --- idp.html.de DELETED --- Index: itemsearch.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/item/itemsearch.html.de,v retrieving revision 1.12 retrieving revision 1.13 diff -u -d -r1.12 -r1.13 --- itemsearch.html.de 25 Feb 2005 12:54:19 -0000 1.12 +++ itemsearch.html.de 13 Sep 2006 13:28:31 -0000 1.13 @@ -1,563 +1,76 @@ -#parse ("pageheader.html.de") -#parse ("navigation-main.html.de") -<td valign=top> -#set($selectedLangs = $portalRequest.getRequestParameterValues("_languages")) - -#if(!$selectedLangs) - #set($selectedLangs = [$lang]) -#end -#set($itemclass = "item") - -<h1 class="title">Informationssuche</h1><p> - -<!-- this file for item-query! --> - - -<form action="itemsearch.html.de" method="post"> - #set ( $type = "$!typeid" ) - #set ( $gruppe = "$!lehrstuhl" ) - #set ( $time = "$!timespan" ) - #set ( $searchtext = "$!genericquerystring") - #set ( $user = "$!publisherlogin") - #set ( $mode = "$!mode") - #set ( $community = $!categories) - - - - - #if ($type != "") - - #if($type != "0") - #set ($xpathType="/item[itemclass='$type']") - #else - #set($xpathType="/item") - #end - - #if($gruppe!="") - #set ($xpathGruppe="and /item[lehrstuhl='$gruppe']") - #else - #set($xpathGruppe="") - #end - - #if($time!="0") - #set ($xpathTime="and /item/creationtime>=TODAY-$time") - #else - #set($xpathTime="") - #end - - #if($user!="") - #set ($xpathUser="and /item[author]='$user'") - #else - #set($xpathUser="") - #end - - #if($searchtext!="") - #set ($xpathText="and /item[title='$searchtext']") - #else - #set($xpathText="") - #end - - - #if($community!="") - #set ($xpathCommunity="and /item/categories/category[@id=$community]") - #else - #set($xpathCommunity="") - #end - <!-- - /item/categories/category[@id=24] --> - - - #if(($type == "/item")&&($gruppe=="")&&($time=="")&&($user=="")&&($searchtext=="")&&($user=="")&&($community=="")) - #set ($xpath = "/item") - #else - - #set ($xpath = "$xpathType $xpathGruppe $xpathTime $xpathUser $xpathText $xpathCommunity") - #end - - <!-- $xpath --> - <!-- category --> - +$portalPresenter.parse("$contextPath/pageheader.html", $portalRequest) - - #set ($result = $itemManager.searchItems($xpath)) - - ##set($result=$itemManagerImpl.sortItemsByAttribute(result1,"title")) - - #if (($result)) - <!-- fuer "Anzeige"="Nur Titel, verlinkt (Default)" --> - #if($mode=="link") - <p> - Items mit folgenden Eigenschaften:<br> - #if($time!="0") - -In den letzten $time Tagen eingelegt<br> - #end - #if($user!="") - - Publiziert von Benutzer "$user"<br> - #end - #if($searchtext!="") - - Titel, Autor oder Beschreibung enthält "$searchtext"<br> - #end - - - </p> - <p> - <b>$result.size() Element(e) gefungen.</b> - </p> - <p> - <table> - <tboby> - #foreach ($item in $result) - <tr bgcolor="#ffffff"> - <td valign="top"> - #set ($title = false) - #set ($title = $item.getTitle()) - #if ($title) - <a href="listitems.html.de?itemclass=$item.getItemClass()&itemid=$item.getId()">$title</a>($item.getAttribute("creationtime")) - #else - <a href="listitems.html.de?itemclass=$item.getItemClass()&itemid=$item.getId()">Item hat keinen Titel</a>($item.getAttribute("creationtime")) - #end - - </td> - <td> - - <a href="/ITEM?cmd=deleteitem&cmd.success=/item/delete-success.html.de&itemid=$item.getId()">Löschen</a> - </td> - <td> - - <a href="/item/item-edit.html.de?itemclass=$item.getItemClass()&itemid=$item.getId()">Edit</a> - </td> - </tr> - #end - </tbody> - </table> - </p> - #end - - <!-- fuer "Anzeige"=" Detailansicht" --> - #if($mode=="detail") - #foreach ($item in $result) - - #set($selectedLangs = $portalRequest.getRequestParameterValues("_languages")) - #if(!$selectedLangs) - #set($selectedLangs = [$lang]) - #end - - #set($itemclass = $item.getItemClass()) - #set($itemid= $item.getId()) - <form action="$contextPath/ITEM" method="get"> - - #foreach($lg in $selectedLangs) - <input type="hidden" name="_languages" value="${lg}"/> - #end - <input type="hidden" name="cmd" value="updateitem"/> - <input type="hidden" name="itemclass" value="$item.getItemClass()"/> - <input type="hidden" name="itemid" value="$item.getId()"/> +<em><a href="index.html">Item Component</a> - +<a href="itemsearch.html">Item Search</a> +</em> - <table> +<h1>Cobricks-2 - Item Search</h1> - <tbody> - #foreach($lg in $selectedLangs) - <tr> - <td noWrap align=left colSpan=2><b>Titel:</b> (max. 80-100 Zeichen) - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "title_${lg}", $lang, $itemPresenter.printAttribute($item.getAttribute("title_${lg}"),$lang), 1, 50, false) - </td> - </tr> - #end - - #if($itemclass=="forschungsproj") - <tr> - <td noWrap align=left colSpan=2><b>Status des Projekts:</b></td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "status", $lang, $itemPresenter.printAttribute($item.getAttribute("status"),$lang), 1, 20, false) - </td> - </tr> - #end - - #if(($itemclass=="termin")||($itemclass=="terminoffiziell")) - <tr> - <td noWrap align=left colSpan=2><b>Ab:</b></td></tr> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "creationtime", $lang, $itemPresenter.printAttribute($item.getAttribute("creationtime"),$lang), 1, 20, false) - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2><b>Bis:</b></td></tr> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "expirationtime", $lang, $itemPresenter.printAttribute($item.getAttribute("expirationtime"),$lang), 1, 20, false) - </td> - </tr> - #end - - #foreach($lg in $selectedLangs) - <tr> - <td noWrap align=left colSpan=2><b>Beschreibung</b> (in HTML, d.h. - mit <p>, <br> etc.) - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "description_${lg}", $lang, $itemPresenter.printAttribute($item.getAttribute("description_${lg}"),$lang), 15, 80, false) - </td> - </tr> - #end - - #if($itemclass=="forschungsproj") - <tr> - <td noWrap align=left colSpan=2><b>Schlagworte:</b></td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "keywords", $lang, $itemPresenter.printAttribute($item.getAttribute("keywords"),$lang), 1, 20, false) - </td> - </tr> - #end - - #if(($itemclass=="forschungschwer")||($itemclass=="forschungsproj")) - <tr> - <td noWrap align=left colSpan=2><b>Ansprechpartner:</b></td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "ansprechpartner", $lang, $itemPresenter.printAttribute($item.getAttribute("ansprechpartner"),$lang), 1, 20, false) - </td> - </tr> - #end - - #if($itemclass=="msg") - <tr> - <td noWrap align=left colSpan=2><b>Autor:</b></td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - #set($userLogin=$item.getAttribute("author")) - #set ( $auserid = $userManager.getUserIdForUserLogin($userLogin) ) - - #if(("$!userLogin.getAttribute('basic.personal.firstname')" == "")&&("$!userLogin.getAttribute('basic.personal.lastname')" == "")) - $userLogin - #else - $!userLogin.getAttribute("basic.personal.firstname") - $!userLogin.getAttribute("basic.personal.lastname") - #end - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2><b>Zufgriff:</b></td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "permission", $lang, $itemPresenter.printAttribute($item.getAttribute("permission"), $lang), 1, 30, false) - </td> - </tr> - #end - - #if(($itemclass!="msg")||($itemclass!="termin")||($itemclass!="terminoffiziell")||($itemclass!="fww")) - <tr> - <td noWrap align=left>Lehrstuhl: </td> - <td noWrap align=left> - $itemPresenter.printAttrInput($itemclass, "lehrstuhl", $lang, $itemPresenter.printAttribute($item.getAttribute("lehrstuhl"), $lang), 1, 20, false) - </td> - </tr> - #end - - #if($itemclass=="forschungschwer") - <tr> - <td noWrap align=left colSpan=2><b>Autor:</b></td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - #set($userLogin=$item.getAttribute("author")) - #set ( $auserid = $userManager.getUserIdForUserLogin($userLogin) ) - #if(("$!userLogin.getAttribute('basic.personal.firstname')" == "")&&("$!userLogin.getAttribute('basic.personal.lastname')" == "")) - $userLogin - #else - $!userLogin.getAttribute("basic.personal.firstname") - $!userLogin.getAttribute("basic.personal.lastname") - #end - </td> - </tr> - #end +#if ($returnCode == 2004) + <p><div class="error">Failed searching for "$!XPathQuery".</div></p> +#end - #if(($itemclass=="diplom")||($itemclass=="sep")||($itemclass=="idp")) - <tr> - <td noWrap align=left>Aufgabensteller: </td> - <td noWrap align=left> - $itemPresenter.printAttrInput($itemclass, "aufgabesteller", $lang, $itemPresenter.printAttribute($item.getAttribute("aufgabesteller"), $lang), 1, 20, false) - </td> - </tr> - <tr> - <td noWrap align=left>Betreuer: </td> - <td noWrap align=left> - $itemPresenter.printAttrInput($itemclass, "betreuer", $lang, $itemPresenter.printAttribute($item.getAttribute("betreuer"),$lang), 1, 20, false) - </td> - </tr> - - #end - <tr> - <td colSpan=2><b>Communities:</b></td> - </tr> - <tr> - <td> - $categoryPresenter.printCategorySelection("categories", "community", "") - </td> - <td vAlign=top>Die Communities/Kategorien werden dazu benutzt, das - Item den Interessengebieten von Benutzern und den verschiedenen - Themenseiten zuzuordnen. Bitte wählen Sie die Communites zu Ihrem - Item gewissenhaft aus (thematisch passend, nicht zu viele). <a - href="/community/read.html.de">Informationen zu den - einzelnen Communities</a>. - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2><b>Verweis zu weiteren - Informationen</b> (URL, optional): - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "url", $lang, $itemPresenter.printAttribute($item.getAttribute("url"), $lang), 1, 80, false) - </td> - </tr> - #if(($itemclass=="forschungschwer")||($itemclass=="forschungsproj")) - <tr> - <td noWrap align=left colSpan=2><b>URL eines Images zum Projekt</b> - (z.B. Projektlogo): - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "imageurl", $lang, $itemPresenter.printAttribute($item.getAttribute("imageuri"), $lang), 1, 80, false) - </td> - </tr> - #end - - #if(($itemclass!="termin")||($itemclass!="terminoffiziell")) - <tr> - <td colSpan=2><b>Verfallsdatum:</b></td> - </tr> - <tr> - <td colSpan=2> - $itemPresenter.printAttrInput($itemclass, "expirationtime", $lang, $itemPresenter.printAttribute($item.getAttribute("expirationtime"), $lang), 1, 20, false) - </td> - </tr> +#if ($returnCode == 1004) +#if ($itemlist.isEmpty()) + <h2>No results found</h2> + <b>No items were found that match your query</b> "$xPathQuery" <br/> + <b>Please try again.</b> +#else + <h2>$itemlist.size() result(s) found</h2> + <b>Your query</b> "$xPathQuery" <b>led to the following result(s):</b> + <ul> + #foreach ($item in $itemlist) + #set ($title = false) + #set ($title = $item.getTitle()) + #if ($title) + <li><a href="item.html?itemid=$item.getId()&fromSearch=true">$title</a></li> + #else + <li><a href="item.html?itemid=$item.getId()&fromSearch=true">No title specified for this item</a> #end - - #if($itemclass!="msg") - <tr> - <td noWrap align=left><b>Autor:</b></td> - <td noWrap align=left> - #set($userLogin=$item.getAttribute("author")) - #set ( $auserid = $userManager.getUserIdForUserLogin($userLogin) ) - #if(("$!userLogin.getAttribute('basic.personal.firstname')" == "")&&("$!userLogin.getAttribute('basic.personal.lastname')" == "")) - $userLogin - #else - $!userLogin.getAttribute("basic.personal.firstname") - $!userLogin.getAttribute("basic.personal.lastname") - #end - </td> - </tr> - #end - - #if($itemclass=="forschungsproj") - <tr> - <td noWrap align=left colSpan=2><b>Kooperationspartner - (Forschung):</b> - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "partnerforschung", $lang, $itemPresenter.printAttribute($item.getAttribute("partnerforschung"), $lang), 1, 80, false) - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2><b>Kooperationspartner - (Praxis):</b> - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "partnerpraxis", $lang, $itemPresenter.printAttribute($item.getAttribute("partnerpraxis"), $lang), 1, 80, false) - </td> - </tr> - <tr> - <td noWrap align=left colSpan=2><b>Mögliche kommerzielle - Anwendungen:</b></td> - </tr> - <tr> - <td noWrap align=left colSpan=2> - $itemPresenter.printAttrInput($itemclass, "anwendungen", $lang, $itemPresenter.printAttribute($item.getAttribute("anwendungen"), $lang), 1, 80, false) - </td> - </tr> - #end - - </tbody> - </table> - - <p>Letzte Ãnderung: (durch ) - #if($item.getAttribute("updater")) - $item.getAttribute("updater") - #end - </p> - -<input type="hidden" name="globalid" value="$itemPresenter.printAttribute($item.getAttribute("globalid"), $lang)"/> -<input type="hidden" name="updater" value="${userId}"/> -<input type="hidden" name="updatetime" value="$portalPresenter.getCurrentDateTime($lang)"/> -<input type="hidden" name="creator" value="$itemPresenter.printAttribute($item.getAttribute("creator"), $lang)"/> -<input type="hidden" name="creationtime" value="$itemPresenter.printAttribute($item.getAttribute("creationtime"), $lang)"/> -<!-- TBD --><input type="hidden" name="_lang" value="${lang}"/> -<input type="hidden" name="cmd" value="updateitem"/> -<input type="hidden" name="cmd.success" value="item/listitems.html.de"/> -<input type="hidden" name="cmd.error" value="$contextPath/item/error-item.html.de"/> - - - -<p> - <table><tr> - <td><input type="submit" value="Update"/></form></td> - <td> - <form action="$contextPath/ITEM" method="get"> - <input type="hidden" name="cmd" value="deleteitem"/> - <input type="hidden" name="cmd.success" value="$contextPath/item/delete-success.html.de"/> - <!-- <input type="hidden" name="cmd.error" value="$contextPath/item/itemdelete_error.html"/> --> - <input type="hidden" name="itemid" value="$itemid"> - <input type="submit" value="Löschen"> -</form> - </td> - </tr></table> - - - -</p> - - #end - #end - #else - <p> - <h3 color="red">Keine Einträge gefunden.</h3> - Versuchen Sie bitte einen oder mehrere Suchkriterien zu ändern. - </p> - #end - - #end -<p> -Mit folgendem Formular können Sie die publizierten Inhalte (Items) nach -verschiedenen Kriterien durchsuchen. Parallel gibt es noch die Möglichkeit, -direkt in den <a href="/servlet/Community">Community-Sichten</a> zu browsen. +#set ( $accedit = $userPresenter.checkPermission($userId, "item", "update", $i) ) +#set ( $accdel = $userPresenter.checkPermission($userId, "item", "delete", $i) ) +#if ( "$!accedit" == "true" ) +- <a href="itemupdate.html?itemid=$i.getId()">edit</a> +#end +#if ( "$!accdel" == "true" ) +- <a href="/ITEM?cmd=deleteitem&cmd.success=/item/itemlist.html&cmd.error=/item/itemlist.html&itemid=$i.getId()&itemclass=$!itemclass">delete</a> +#end + </li> + #end + </ul> +#end +#end -<p> - <table border="0" cellpadding="2" cellspacing="0" width="100%"> - <tbody> - <tr> - <td align="left" nowrap="nowrap" valign="top"><b>Typ:</b><br> - <select name="typeid" size="1"> - <option value="0" selected="selected">-- beliebig --</option> - <option value="msg">Mitteilung</option> - <option value="termin">Termin</option> - <option value="">Bookmark</option> - <option value="sep">Systementwicklungsprojekt</option> - <option value="diplom">Diplomarbeit</option> - <option value="idp">Interdisziplinäres Projekt</option> - <option value="">Mitteilung/Konversation</option> - <option value="forschungschwer">Forschungsschwerpunkt</option> - <option value="forschungsproj">Forschungsprojekt</option> - <option value="terminoffiziell">Termin (offiziell)</option> - <option value="job">Jobangebot</option> - <option value="fww">FWW Beitrag</option> - <option value="">Fachbereich VWM</option> - </select> - <br> - </td> - <td align="left" nowrap="nowrap" valign="top"><b>Gruppe:</b><br> - $itemPresenter.printAttrInput($itemclass, "lehrstuhl", $lang, null, 1, 20, false) - </td> - </tr> - <tr> - <td colspan="3" align="left" nowrap="nowrap" valign="top">Suchtext:<br> - <input name="genericquerystring" size="40" value="" type="text"> - </td> - </tr> - <tr> - <td align="left" nowrap="nowrap" valign="top"><br><b>Nicht älter als:</b><br> - <select name="timespan"> - <option value="0" selected="selected">-- beliebig --</option> - <option value="7">Eine Woche</option> - <option value="31">Ein Monat</option> - <option value="365">Ein Jahr</option> - </select> - </td> - - <!-- loch nicht gemacht --> - <td align="left" nowrap="nowrap" valign="top"><br><b>Sortierung:</b><br> - <input name="sortorder" value="title_de" type="radio"> Titel<br> - <input name="sortorder" value="author" type="radio"> Autor<br> - <input name="sortorder" value="publisheddate" type="radio"> Erstellungsdatum<br> - <input name="sortorder" value="lastupdated" type="radio"> Ãnderungsdatum<br> - <input name="sortorder" value="groupname" type="radio"> Gruppe<br> - </td> - <td align="left" nowrap="nowrap" valign="top"><br><b>Reihenfolge:</b><br> - <input name="sortdirection" value="ASC" type="radio"> Aufsteigend<br> - <input name="sortdirection" value="DESC" type="radio"> Absteigend<br> - </td> - <td align="left" nowrap="nowrap" valign="top"><br><b>Anzeige:</b><br> - <input name="mode" value="link" type="radio" checked="checked"> Nur Titel, verlinkt (Default)<br> - <input name="mode" value="detail" type="radio"> Detailansicht<br> - <br> - </td> - </tr> - <tr> - <td colspan=2> - <br><b>In den Communities:</b><br> - $categoryPresenter.printCategorySelection("categories", "community", "") - - <!-- #set ( $categoryclass = "community" ) - #set ( $parentid = "$!parentid" ) - #set ( $catid = "$!catid") - #set ( $title = "$!title") +## Show a textarea where the user can enter its query +## This query is then processed by the ItemServlet +<form action="$contextPath/ITEM" method="get"> + <table> + <tr> + <td><b>Please enter your query here:</b></td> + </tr> + <tr> + <td><textarea name="xPathQuery" cols="80" rows="5"></textarea></td> + </tr> + </table> - <select name="categories" size="5" multiple> - #foreach( $i in $categoryPresenter.getCategories($!categoryclass, $!parentid, $!title) ) - <option value="$!i.getId()"> - $!i.getTitle() - </option> - #end - </select> - --> + <input type="hidden" name="cmd" value="xpathsearchitem"> + <input type="hidden" name="cmd.success" value="$contextPath/item/itemsearch.html"> + <input type="hidden" name="cmd.error" value="$contextPath/item/itemsearch.html"> - - - - + <input type="submit" value="Search"/> +</form> - - - - - - - </td> - </tr> - <tr> - <td colspan=2> - <br><b>Vom Benutzer:</b><br> - <input name="publisherlogin" size="30"> - </td> - </tr> - </tbody> - </table> - - <input type="submit" value="Search"/> +<p>Examples for queries are:</p> +<pre> + /item[itemclass='item'] + /item[itemclass='portalpage' and name='index.html'] + /item[itemclass='portalpage'] and /item/folders/category/id=12 +</pre> +<form action="$contextPath/item/index.html" method="get"> + <input type="submit" value="Back to item overview"/> </form> -<td> -#parse ("pagefooter.html") - +$portalPresenter.parse("$contextPath/pagefooter.html", $portalRequest) --- delete-success.html.de DELETED --- --- error-item.html.de DELETED --- --- listitems.html.de DELETED --- --- fww-beitrag.html.de DELETED --- --- read-job-item.html.de DELETED --- --- forschungsschwerpunkt.html.de DELETED --- --- sep.html.de DELETED --- --- update-success.html.de DELETED --- --- itemsearch-error.html.de DELETED --- --- item-edit.html.de DELETED --- --- item-success.html.de DELETED --- --- forschungsprojekt.html.de DELETED --- --- mitteilung.html.de DELETED --- --- itemsearch-result.html.de DELETED --- --- diplom.html.de DELETED --- --- NEW FILE: attribute_fields.html --- ## CURRENT_ATTR = aname ## SUB_DEL = yes (if del radio button should be displayed) ## item = item object #if($itemPresenter.isMultiLang($itemclass, $CURRENT_ATTR)) #set($mlAttr = $item.getMultiLangAttr($CURRENT_ATTR)) #set($aLangs = $mlAttr.keySet()) #if(${selectedLangs}) #foreach($slg in ${selectedLangs}) #if(!($aLangs.contains($slg))) <tr valign="top"><td> <table> <tr><td><b>$CURRENT_ATTR</b></td> <td>(in <b>$itemPresenter.getLanguageName($slg)</b>)</td></tr> <tr><td colspan="2">$itemPresenter.printDescription($itemclass, "$CURRENT_ATTR", "$slg")</td></tr> </table></td> <td> #if(!($portalRequest.getRequestParameter("${CURRENT_ATTR}_${slg}"))) $itemPresenter.printAttrInput($itemclass, "${CURRENT_ATTR}_${slg}", $lang, $item.getAttribute("${CURRENT_ATTR}_${slg}")) #else $itemPresenter.printAttrInput($itemclass, "${CURRENT_ATTR}_${slg}", $lang, $portalRequest.getRequestParameter("${CURRENT_ATTR}_${slg}")) #end </td> #if($SUB_DEL) #if("$!SUB_DEL" == "yes") <td>$itemPresenter.printRadio("_subDel_${CURRENT_ATTR}_${slg}", "delete", "subdel", false)</td> #end #end </tr> #end #end #end #else <tr valign="top"> <td><b>$CURRENT_ATTR</b> <br/>$itemPresenter.printDescription($itemclass, $CURRENT_ATTR, $lang)</td> <td> #if(!($portalRequest.getRequestParameter("$CURRENT_ATTR"))) $itemPresenter.printAttrInput($itemclass, $CURRENT_ATTR, $lang, $itemPresenter.printAttribute($item.getAttribute($CURRENT_ATTR), $lang)) #else $itemPresenter.printAttrInput($itemclass, $CURRENT_ATTR, $lang, $portalRequest.getRequestParameter("$CURRENT_ATTR")) #end </td> #if($SUB_DEL) #if("$!SUB_DEL" == "yes") <td>$itemPresenter.printRadio("_subDel_${CURRENT_ATTR}", "delete", "subdel", false)</td> #end #end </tr> #end --- termin-offiziel.html.de DELETED --- --- delete-item.html.de DELETED --- --- termin.html.de DELETED --- --- fww-beitrag.hrml.de DELETED --- |
|
From: Michael K. <ko...@us...> - 2006-09-13 13:23:47
|
Update of /cvsroot/cobricks/drehscheibe-in/web/doku In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17973 Modified Files: index.html.de Log Message: Index: index.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/doku/index.html.de,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- index.html.de 3 Sep 2004 10:24:42 -0000 1.3 +++ index.html.de 13 Sep 2006 13:23:43 -0000 1.4 @@ -1,110 +1,16 @@ -#parse ( "pageheader.html.de" ) -#parse ( "navigation-main.html.de" ) -<td> +$portalPresenter.parse("$contextPath/pageheader.html.de",$portalRequest) - <H1 class=title>Dokumentation</H1> - <P>Bei der Informationsdrehscheibe handelt es sich um eine - Community-Anwendung zum Informationsaustausch in und um die Fakultät für - Informatik der TU München (ein <A href="http://portal.mba.tum.de/">erster - Ableger</A> wurde inzwischen auch für die BWL-Fakultät der TU realisiert). - Die Drehscheibe soll einen zentralen Anlaufpunkt für die - Informationsbeschaffung von Studierenden und Lehrenden der Fakultät für - Informatik dienen.</P> - <P>Die Funktionalitäten der Drehscheibe kann man folgendermassen - zusammenfassen: - <UL type=square> - <LI><A - href="/doku/user-veranst.html.de">Veranstaltungs-/Vorlesungsverzeichnis - </A><BR>(Veranstaltungsdaten, Dozenten und Räume zu Veranstaltungen, - Skripten zu Veranstaltungen) - <UL> - <LI><A href="/doku/user-veranst.html.de#suche">Suche - von Veranstaltungen</A> (des aktuellen Semesters, früherer Semester - oder auch zukünftiger Semester) - <LI><A - href="/doku/user-veranst.html.de#details">Datailinformationen - zu einer Veranstaltung</A> - <LI><A - href="/doku/user-veranst.html.de#uebersicht">Übersicht - über alle Veranstaltungen eines Semesters</A> - <LI><A href="/doku/user-timetable.html.de">Erstellung - und Pflege eines persönlichen Stundenplans</A> </LI></UL> - <P></P> - <LI><A - href="/doku/user-mitteilungen.html.de">Informationsaustauschplattform</A> - (Mitteilungen zu Veranstaltungen und zu anderen Themen) - <UL> - <LI><A - href="/doku/user-mitteilungen.html.de#view">Mitteilungen - auf den Portalseiten</A> - <LI><A - href="/doku/user-mitteilungen.html.de#suche">Suche - nach Mitteilungen und Mitteilungsübersicht</A> - <LI><A - href="/doku/user-mitteilungen.html.de#publish">Veröffentlichen - neuer Mitteilungen</A> - <LI><A - href="/doku/user-mitteilungen.html.de#pflege">Korrigieren - und Löschen veröffentlichter Mitteilungen</A> </LI></UL> - <LI><A - href="/doku/user-communities.html.de">Communities</A> - (Kategorien, in denen Mitteilungen und andere Information veröffentlicht - werden können) - <P></P> - <LI><A - href="/doku/user-adressbuch.html.de">Adressbuch</A> - <UL> - <LI><A - href="/doku/user-adressbuch.html.de#pflege">Pflege - der eigenen Adressinformation</A> (im Benutzerprofil) - <LI><A - href="/doku/user-adressbuch.html.de#suche">Suche nach - anderen eingetragenen Benutzern</A> - <LI><A - href="/doku/user-adressbuch.html.de#classlist">Jahrgangslisten</A> +<h1>Dokumentation</h1> - <LI><A - href="/doku/user-adressbuch.html.de#photos">Photoalbum</A> - </LI></UL> - <P></P> - <LI><A - href="/doku/user-languages.html.de">Spracheinstellung</A> +<p>Diese Web-Site stellt nicht nur statische Information zur +Verfügung, sondern erlaubt es Ihnen als Benutzer auch, die +Informationsanzeige zu personalisieren, Benachrichtigungen über neue +Informationen zu abonieren und selbst Information zu publizieren. Auf +diesen Seiten finden Sie Informationen dazu, wie Sie die Web-Site +"bediehnen" können.</p> - <P></P> - <LI><A - href="/doku/user-calender.html.de">Terminkalender</A> - </LI></UL> - <P></P> - <P>Neben einem allgemeinen anonymen Zugriff wird auch ein personalisierter - Zugriff auf die Daten angeboten. Anhand eines persönlichen Benutzerprofils - kann die Darstellung der Daten adaptiert werden und es kann konfiguriert - werden, dass bestimmte Informationen aktiv per E-Mail zugestellt werden. - <UL> - <LI><A href="/doku/user-user.html.de">Information zu - Anmeldung/Benutzerprofil</A> </LI></UL> - <P></P> - <P>An der Schaffung von Möglichkeiten für eine Nutzung der Daten in der - Drehscheibe in anderen (Web-)Anwendungen wird momentan noch gearbeitet. - <UL> - <LI><A href="/doku/user-export.html.de">Export von - Daten</A> </LI></UL> - <P></P> - <P> - <HR> +<p>"Under construction ..."</p> - <P></P>Neuerdings ist ein Zugang zu den Funktionalitäten der Drehscheibe - auch über WAP möglich - <UL> - <LI><A - href="/doku/wap/index.html.de">WAP-Funktionalitäten der - Drehscheibe</A> </LI></UL> - <P> - <HR> - <P></P> - <P>Korrekturen oder Ergänzungen zu dieser Dokumentation sind immer - willkommen. Bitte per E-Mail an dre...@in... oder direkt an - ko...@in... richten.</P></TD> -#parse ( "pagefooter.html" ) - \ No newline at end of file +$portalPresenter.parse("$contextPath/pagefooter.html.de",$portalRequest) |
|
From: Michael K. <ko...@us...> - 2006-09-13 13:22:19
|
Update of /cvsroot/cobricks/drehscheibe-in/web/user In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17291 Removed Files: navigation.html.de Log Message: --- navigation.html.de DELETED --- |
|
From: Michael K. <ko...@us...> - 2006-09-13 13:21:23
|
Update of /cvsroot/cobricks/drehscheibe-in/web/user In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv17163 Added Files: index.html.de Log Message: --- NEW FILE: index.html.de --- $portalPresenter.parse("$!contextPath/pageheader.html.de",$portalRequest) <h1>Benutzerverwaltung</h1> #if ($!userLogin != "anonymous") <p>Sie sind als Benutzer "$userLogin" angemeldet.</p> <p>Ihre Benutzerkennung können sie folgendermaÃen verwalten:</p> <ul> <li><a href="user.html">Benutzerprofil editieren</a> <li>TBD <p> <li><a href="change_password.html">Password ändern</a> <p> <li><a href="user_delete.html">Benutzerprofil löschen</a> </ul> #else <p>Sie sind momanten nicht als Benutzer angemeldet.</p> <p><a href="/user/login.html">Melden Sie sich entweder mit einer vorhandenen Kennung auf der Plattform an</a> oder <a href="/user/register.html">richten Sie eine neue lokale Kennung ein</a>.</p> #end $portalPresenter.parse("$!contextPath/pagefooter.html.de",$portalRequest) |
|
From: Michael K. <ko...@us...> - 2006-09-13 13:18:07
|
Update of /cvsroot/cobricks/drehscheibe-in/web In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv15656 Modified Files: navigation.html.de notfound.html.de Log Message: Index: navigation.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/navigation.html.de,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- navigation.html.de 12 Sep 2006 12:54:11 -0000 1.2 +++ navigation.html.de 13 Sep 2006 13:18:00 -0000 1.3 @@ -1,6 +1,5 @@ -<TD vAlign=top width=150 bgColor=#e0e0e0 > -<BR><A - class=hnav +<td valign=top width=150 bgColor="#e0e0e0"> +<BR><A class=hnav href="/index.html.de"><B>HOME</B></A><BR> <A class=sub href="/schulportal/index.html.de">Schulportal</A><BR><BR><A Index: notfound.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/notfound.html.de,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- notfound.html.de 12 Sep 2006 12:54:11 -0000 1.3 +++ notfound.html.de 13 Sep 2006 13:18:00 -0000 1.4 @@ -6,7 +6,7 @@ <p>Die angeforderte Webseite konnte leider auf dem Server nicht gefunden werden.</p> -<p>Benutzen Sie die <a href="suche.html">Suche</a> um die gewünschte +<p>Benutzen Sie die <a href="/suche.html">Suche</a> um die gewünschte Information zu finden.</p> $portalPresenter.parse("$!contextPath/pagefooter.html.de",$portalRequest) |
|
From: Michael K. <ko...@us...> - 2006-09-13 13:12:25
|
Update of /cvsroot/cobricks/drehscheibe-in/web/item In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv13713 Added Files: itemdelete.html.de Log Message: --- NEW FILE: itemdelete.html.de --- $portalPresenter.parse("$contextPath/pageheader.html", $portalRequest) <em><a href="index.html">Item Component</a> - <a href="itemdelete.html">Item Delete</a></em> <h1>Cobricks-2 - Item Delete</h1> #if ($returnCode == 1002) <p><div class="success">Item deleted.</div></p> #elseif ($returnCode == 2002) <p><div class="error">Failed deleting item.</div></p> #end <form action="$contextPath/ITEM" method="get"> <input type="hidden" name="cmd" value="deleteitem"/> <input type="hidden" name="cmd.success" value="$contextPath/item/itemdelete.html"/> <input type="hidden" name="cmd.error" value="$contextPath/item/itemdelete.html"/> Item with itemid=<input name="itemid" type="text" size="5"> <input type="submit" value="Delete"> </form> $portalPresenter.parse("$contextPath/pagefooter.html", $portalRequest) |
|
From: Michael K. <ko...@us...> - 2006-09-13 13:09:58
|
Update of /cvsroot/cobricks/drehscheibe-in/web/item In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv12557 Added Files: index.html.en item.html.de itemcreate.html.de itemlist.html.en itemupdate.html.de itemupdate_start.html.de itemupdate_upload.html.de template-date.html template-msg.html template.html templateedit-date.html templateedit-msg.html templateedit.html Log Message: --- NEW FILE: template-date.html --- #set($format = $portalPresenter.getDateTimeFormatter($language, true)) <table border="1pt" cellpadding="5pt" width="100%"> <tr><td> #set($imageurl = $item.getAttributeAsString("imageurl")) #if("$!imageurl"!="") <img align="right" valign="top" width="80" src="$imageurl"/> #end #set($title = $item.getTitle("$!language")) #if($title) <b>$title</b> #else <b>$item.getTitle()</b> <br><font size="-2">(Kein Titel in der angefragten Sprache $language verfügbar.)</font> #end <br/> #set($creator = $item.getAttribute("creator")) #set($creationtime = $item.getAttribute("creationtime")) #if($creator) (von <a href="$contextPath/user/user.html?auserlogin=$creator.getUserLogin()">$creator.getName()</a> #if("$!creationtime"!="") , am/um $format.format($creationtime) #end ) #elseif("$!creationtime"!="") (am/um $format.format($creationtime)) #end <p> #set($starttime = $item.getAttribute("starttime")) #set($endtime = $item.getAttribute("endtime")) <p>Ab: $format.format($starttime)</p> <p>Bis: $format.format($endtime)</p> <table width="95%"><tr bgcolor="#dfdfdf" width="100%"><td> #set($content = $item.getContent("$!language")) #if("$content"!="") <pre>$content </pre> #else $item.getContent() <br/>(Kein Inhalt in der angefragten Sprache "$language" verfügbar.) #end </td></tr></table><br/> #set($location = $item.getAttributeAsString("location")) #if("$location"!="") <b>Ort:</b> $location<br/><br/> #end #set($expirationtime = $item.getAttribute("expirationtime")) #if($expirationtime) Verfallsdatum: $format.format($expirationtime)<br/><br/> #end #set($uri = $item.getAttributeAsString("url")) #if($uri) Link zu zusätzlicher Information:<br/> <a href="$uri">$uri</a><br/><br/> #end #set($updater = $item.getAttribute("updater")) #set($updatetime = $item.getAttribute("updatetime")) #if($updater) Letzte Aktualisierung durch <a href="$contextPath/user/user.html?auserlogin=$updater.getUserLogin()"> $updater.getName()</a> #if($updatetime) , am/um $format.format($updatetime) #end <br/> #elseif($updatetime) Letzte Aktualisierung am/um $format.format($updatetime)<br/> #end <p>Kategorien, denen die Mitteilung zugeordnet ist: <ul> #foreach ($c in $item.getAttribute("categories")) <li>$c.getTitle($language) #end #if (!$item.getAttribute("categories")) <li>keine Kategorien #end </ul> </td></tr> </table> --- NEW FILE: itemlist.html.en --- $portalPresenter.parse("$contextPath/pageheader.html", $portalRequest) <em><a href="index.html">Item Component</a> - <a href="itemlist.html">Item List</a> </em> <h1>Cobricks-2 - Item List</h1> #if ($returnCode == 1002) <p><div class="success">Item deleted.</div></p> #elseif ($returnCode == 2002) <p><div class="error">Failed deleting item.</div></p> #end #if ("$!itemclass" == "") #set ( $itemclass = "item" ) #end List of items with itemclass = "$itemclass" <p> <ul> #set ($iresult = $itemManager.searchItems($itemPresenter.constructSearchXPath($portalRequest))) #foreach ($i in $iresult) <li>$!i.getId(): $!i.getTitle() - <a href="item.html?itemid=$i.getId()">show</a> #set ( $accedit = $userPresenter.checkPermission($userId, "item", "update", $i) ) #set ( $accdel = $userPresenter.checkPermission($userId, "item", "delete", $i) ) #if ( "$!accedit" == "true" ) - <a href="itemupdate.html?itemid=$i.getId()">edit</a> #end #if ( "$!accdel" == "true" ) - <a href="/ITEM?cmd=deleteitem&cmd.success=/item/itemlist.html&cmd.error=/item/itemlist.html&itemid=$i.getId()&itemclass=$!itemclass">delete</a> #end #end </ul> $portalPresenter.parse("$contextPath/pagefooter.html", $portalRequest) --- NEW FILE: templateedit-msg.html --- #if($catid) #set($selectedCat = $!categoryPresenter.getCategory($catid)) #end <table cellspacing="10"> #foreach($lg in $selectedLangs) <tr><td colspan="2"> <b>Titel (max. 80-100 Zeichen)</b> (in <b>$itemPresenter.getLanguageName($lg)</b>)</td></tr> <tr><td colspan="2"> $itemPresenter.printAttrInput("item", "title_${lg}", $lang, $velocityContext, 1, 50, false) <br><font size="-1">(bitte möglichst aussagekräftig wählen - also nicht nur "Vortrag" oder "Jobangebot", sondern auch Thema)</font> </td></tr> #end #foreach($lg in $selectedLangs) <tr><td colspan="2"> <b>Inhalt</b> (in <b>$itemPresenter.getLanguageName($lg)</b>, in HTML, d.h. mit <p>, <br> etc.; keine <table>) </td></tr> <tr><td colspan="2"> $itemPresenter.printAttrInput($itemclass, "content_${lg}", $lang, $velocityContext, 15, 80, false) </td></tr> #end <tr><td nowrap align=left colSpan=2> <b>Zufgriff:</b> </td></tr> <tr><td noWrap align=left colSpan=2> $itemPresenter.printAttrInput($itemclass, "permission", $lang, null, 1, 30, false) </td></tr> <tr> <td colSpan=2><b>Kategorien:</b></td></tr> <tr> <td valign="top"> #set ( $categoryclass = "community" ) #set ( $parentid = "$!parentid" ) #set ( $catid = "$!catid") #set ( $title = "$!title") #set ( $selcatid = $selectedCat.getId() ) <select name="categories" size="10" multiple> #foreach( $i in $categoryPresenter.getSortedCategories($!categoryclass, $!parentid, $!title, "$!lang") ) #if("$!selcatid"=="$!i.getId()") <option value="$!i.getId()" selected> $!i.getTitle() </option> #else <option value="$!i.getId()"> $!i.getTitle() </option> #end #end </select> </td> <td vAlign=top>Die Kategorien werden dazu benutzt, das Item den Interessengebieten von Benutzern und den verschiedenen Themenseiten zuzuordnen. Bitte wählen Sie die Communites zu Ihrem Item gewissenhaft aus (thematisch passend, nicht zu viele). <a href="/community/read.html.de">Informationen zu den einzelnen Communities</a>. </td> </tr> <tr><td noWrap align=left colSpan=2> <b>Verweis zu weiteren Informationen</b> (URL, optional): </td></tr> <tr> <td noWrap align=left colSpan=2> $itemPresenter.printAttrInput($itemclass, "url", $lang, null, 1, 80, false) </td></tr> <tr><td colSpan=2><b>Verfallsdatum:</b></td></tr> <tr><td colSpan=2> $itemPresenter.printAttrInput($itemclass, "expirationtime", $lang, null, 1, 20, false) </td></tr> </table> --- NEW FILE: itemupdate_upload.html.de --- $portalPresenter.parse("$contextPath/pageheader.html", $portalRequest) <em><a href="index.html">Item Component</a> - <a href="itemupdate_start.html">Item Update</a></em> <h1>Cobricks-2 - Item Update (Upload Example)</h1> #if($returnCode == 1003) <div class="success">Successfully updated item.</div><br/> #elseif($returnCode == 2003) <div class="error">Failed updating item. The following error(s) ocurred: <ul>#foreach($error in $errors) <li>$corePresenter.printErrorMessage($error, "$!lang")</li> #end</ul></div><br/> #end #set($item = $itemPresenter.getItem($itemid)) #if(!$itemPresenter.isInteger($itemid)) <div class="error">Item Id $!itemid is not an integer.</div> <form action="$contextPath/item/itemupdate_start.html" method="get"> <input type="submit" value="Back"/> </form> #elseif(!$item) <div class="error">Item with item Id $!itemid does not exist.</div> <form action="$contextPath/item/itemupdate_start.html" method="get"> <input type="submit" value="Back"/> </form> #else #set ($acc = $userPresenter.checkPermission("$userId", "item", "update", "itemid=$itemid")) #if ($acc == "false") <div class="error"> You do not have the appropriate permissions to update this item. </div> #else <form action="$contextPath/ITEM" method="get"> <input type="hidden" name="cmd" value="deleteitem"/> <input type="hidden" name="cmd.success" value="$contextPath/item/itemdelete.html"/> <input type="hidden" name="cmd.error" value="$contextPath/item/itemdelete.html"/> <input type="hidden" name="itemid" value="$itemid"/> <p> <table><tr> <td><input type="submit" value="Delete"/></td> <td>(if you want to delete this item)</td> </tr></table> </p> </form> #set($itemclass = $item.getItemClass()) #set($selectedLangs = $portalRequest.getRequestParameterValues("_languages")) #if(!$selectedLangs) #set($selectedLangs = [$lang]) #end <p>This form presents an example of how to update an item with uploading a file to the webspace of the server (and setting the url of the uploaded file as an attribute).</p> <form action="$contextPath/ITEM" method="get"> <input type="hidden" name="itemid" value="$!itemid"> #foreach($lg in $selectedLangs) <input type="hidden" name="_languages" value="${lg}"/> #end <p> <b>Item class</b> $itemPresenter.printDropDown("itemclass", $itemclass, "itemclass", false) <p> <table cellspacing="10"> #set($CURRENT_ATTR = "title") $portalPresenter.parse("attribute_fields.html", $portalRequest) #set($CURRENT_ATTR = "content") $portalPresenter.parse("attribute_fields.html", $portalRequest) </table> <table cellspacing="10"><tr valign="top"> <td><b>State</b><br/>$itemPresenter.printDescription($itemclass, "state", $lang)</td> <td>$itemPresenter.printDropDown("state", $itemPresenter.printAttribute($item.getAttribute("state"), $lang), "state", false)</td> <td align="right"><b>Location</b><br/>$itemPresenter.printDescription($itemclass, "location", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "location", $lang, $itemPresenter.printAttribute($item.getAttribute("location"), $lang), 1, 50, false)</td> </tr><tr valign="top"> <td><b>Expiration<br/>time</b><br/>$itemPresenter.printDescription($itemclass, "expirationtime", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "expirationtime", $lang, $itemPresenter.printAttribute($item.getAttribute("expirationtime"), $lang), 1, 20, false)</td> <td align="right"><b>Origin</b><br/>$itemPresenter.printDescription($itemclass, "origin", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "origin", $lang, $itemPresenter.printAttribute($item.getAttribute("origin"), $lang), 1, 50, false)</td> </tr></table> </p> <input type="hidden" name="globalid" value="$itemPresenter.printAttribute($item.getAttribute("globalid"), $lang)"/> <input type="hidden" name="updater" value="${userId}"/> <input type="hidden" name="updatetime" value="$portalPresenter.getCurrentDateTime($lang)"/> <input type="hidden" name="creator" value="$itemPresenter.printAttribute($item.getAttribute("creator"), $lang)"/> <input type="hidden" name="creationtime" value="$itemPresenter.printAttribute($item.getAttribute("creationtime"), $lang)"/> <!-- TBD --><input type="hidden" name="_lang" value="${lang}"/> <input type="hidden" name="cmd" value="updateitem"/> <input type="hidden" name="cmd.success" value="$contextPath/item/itemupdate_upload.html"/> <input type="hidden" name="cmd.error" value="$contextPath/item/itemupdate_upload.html"/> <p> <!-- upload the file specified in the attribute uploadfile to the file $WEBSPACE/tmp/item$!itemid --> <input type="hidden" name="uploadfileattrs" value="uploadfile"> <input type="hidden" name="uploadfilenames" value="tmp/item$!itemid"> <p> #set ( $fileurl = $item.getAttribute("uploadfile") ) #if ( "$!fileurl"!="" ) Current file: <a href="$fileurl">$fileurl</a><br> #end <input type="file" size="40" name="uploadfile"> </p> <p> <table><tr> <td><input type="submit" value="Save changes / upload file"/></td> <td><input type="reset" value="Reset all values"/></td> </tr></table> </p> </form> #end #end $portalPresenter.parse("$contextPath/pagefooter.html", $portalRequest) --- NEW FILE: templateedit-date.html --- #if($catid) #set($selectedCat = $!categoryPresenter.getCategory($catid)) #end <table cellspacing="10"> #foreach($lg in $selectedLangs) <tr><td colspan="2"> <b>Titel (max. 80-100 Zeichen)</b> (in <b>$itemPresenter.getLanguageName($lg)</b>)</td></tr> <tr><td colspan="2"> $itemPresenter.printAttrInput("item", "title_${lg}", $lang, $velocityContext, 1, 50, false) <br><font size="-1">(bitte möglichst aussagekräftig wählen - also nicht nur "Vortrag" oder "Jobangebot", sondern auch Thema)</font> </td></tr> #end <tr><td colSpan=2><b>Anfangstermin:</b></td></tr> <tr><td colSpan=2> $itemPresenter.printAttrInput($itemclass, "starttime", $lang, null, 1, 20, false) </td></tr> <tr><td colSpan=2><b>Endtermin:</b></td></tr> <tr><td colSpan=2> $itemPresenter.printAttrInput($itemclass, "endtime", $lang, null, 1, 20, false) </td></tr> #foreach($lg in $selectedLangs) <tr><td colspan="2"> <b>Beschreibung</b> (in <b>$itemPresenter.getLanguageName($lg)</b>, in HTML, d.h. mit <p>, <br> etc.; keine <table>) </td></tr> <tr><td colspan="2"> $itemPresenter.printAttrInput($itemclass, "content_${lg}", $lang, $velocityContext, 15, 80, false) </td></tr> #end <tr><td nowrap align=left colSpan=2> <b>Zufgriff:</b> </td></tr> <tr><td noWrap align=left colSpan=2> $itemPresenter.printAttrInput($itemclass, "permission", $lang, null, 1, 30, false) </td></tr> <tr> <td colSpan=2><b>Kategorien:</b></td></tr> <tr> <td valign="top"> #set ( $categoryclass = "community" ) #set ( $parentid = "$!parentid" ) #set ( $catid = "$!catid") #set ( $title = "$!title") #set ( $selcatid = $selectedCat.getId() ) <select name="categories" size="10" multiple> #foreach( $i in $categoryPresenter.getSortedCategories($!categoryclass, $!parentid, $!title, "$!lang") ) #if("$!selcatid"=="$!i.getId()") <option value="$!i.getId()" selected> $!i.getTitle() </option> #else <option value="$!i.getId()"> $!i.getTitle() </option> #end #end </select> </td> <td vAlign=top>Die Kategorien werden dazu benutzt, das Item den Interessengebieten von Benutzern und den verschiedenen Themenseiten zuzuordnen. Bitte wählen Sie die Communites zu Ihrem Item gewissenhaft aus (thematisch passend, nicht zu viele). <a href="/community/read.html.de">Informationen zu den einzelnen Communities</a>. </td> </tr> <tr><td noWrap align=left colSpan=2> <b>Verweis zu weiteren Informationen</b> (URL, optional): </td></tr> <tr><td noWrap align=left colSpan=2> $itemPresenter.printAttrInput($itemclass, "url", $lang, null, 1, 80, false) </td></tr> </table> --- NEW FILE: templateedit.html --- #foreach($lg in $selectedLangs) <input type="hidden" name="_languages" value="${lg}"/> #end <table cellspacing="10"> #foreach($lg in $selectedLangs) <tr valign="top"> <td><table> <tr><td><b>Title</b></td> <td>(in <b>$itemPresenter.getLanguageName($lg)</b>)</td></tr> <tr><td colspan="2">$itemPresenter.printDescription($itemclass, "title", $lg)</td></tr> </table></td> <td>$itemPresenter.printAttrInput("item", "title_${lg}", $lang, $velocityContext, 1, 50, false)</td> </tr> #end #foreach($lg in $selectedLangs) <tr valign="top"> <td><table> <tr><td><b>Content</b></td> <td>(in <b>$itemPresenter.getLanguageName($lg)</b>)</td></tr> <tr><td colspan="2">$itemPresenter.printDescription($itemclass, "content", $lg)</td></tr> </table></td> <td>$itemPresenter.printAttrInput($itemclass, "content_${lg}", $lang, $velocityContext, 15, 80, false)</td> </tr> #end </table> <table cellspacing="10"> <tr><td><b>State</b><br/>$itemPresenter.printDescription($itemclass, "state", $lang)</td> <td>$itemPresenter.printDropDown("state", "$!state", "state", false)</td></tr> <tr><td><b>Location</b><br/>$itemPresenter.printDescription($itemclass, "location", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "location", $lang, "$!location", 1, 50, false)</td> </tr> <tr><td><b>Origin</b><br/>$itemPresenter.printDescription($itemclass, "origin", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "origin", $lang, "$!origin", 1, 50, false)</td> </tr> <tr><td><b>URL</b><br/>$itemPresenter.printDescription($itemclass, "url", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "url", $lang, "$!url", 1, 50, false)</td></tr> <tr><td><b>ImageURL</b><br/>$itemPresenter.printDescription($itemclass, "imageurl", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "imageurl", $lang, "$!imageurl", 1, 50, false)</td></tr> <tr><td><b>Expiration<br/>time</b><br/>$itemPresenter.printDescription($itemclass, "expirationtime", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "expirationtime", $lang, "$!expirationtime", 1, 20, false)</td></tr> </table> </p> <p> <table border="0"><tr><td valign="top"> <b>Kategorien</b> </td><td valign="top"> $categoryPresenter.printCategorySelection("categories", "", "$lang"); </td> </tr></table> </p> #if(!($itemclass == "item")) #set($attrNames = $itemPresenter.getAttributeNames($itemclass)) #set($itemAttrs = $itemPresenter.getAttributeNames("item")) #set($attrNames = $itemPresenter.removeDuplicates($attrNames, $itemAttrs)) #set($attrNames = $corePresenter.sortList($attrNames) ) #if(!$attrNames.isEmpty()) <hr/> <p> <h3>Further Attributes:</h3> <table cellspacing="10"> #foreach($attr in $attrNames) #if($itemPresenter.isMultiLang($itemclass, $attr)) #foreach($lg in $selectedLangs) <tr valign="top"> <td><b>$attr</b> (in <b>$itemPresenter.getLanguageName($lg)</b>) <br/>$itemPresenter.printDescription($itemclass, $attr, $lg)</td> <td>$itemPresenter.printAttrInput($itemclass, "${attr}_${lg}", $lang, $velocityContext)</td> </tr> #end #else <tr valign="top"> <td><b>$attr</b> <br/>$itemPresenter.printDescription($itemclass, $attr, $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, $attr, $lang, $velocityContext)</td> </tr> #end #end </table> </p> #end #end --- NEW FILE: itemupdate_start.html.de --- $portalPresenter.parse("$contextPath/pageheader.html", $portalRequest) <em><a href="index.html">Item Component</a> - <a href="itemupdate_start.html">Item Update</a></em> <h1>Cobricks-2 - Item Update</h1> <form action="$contextPath/item/itemupdate.html" method="get"> <p>Enter item ID and all languages in which you would like to perform updates:</p> <table cellspacing="10"> <tr valign="top"> <td><b>Item ID</b></td> <td><input name="itemid" type="text" size="15"/></td> <td>(must be a number)</td> </tr> <tr valign="top"> <td><b>Languages</b></td> <td>$itemPresenter.printDropDown("_languages", $lang, "language", true)</td> <td>(multiple selection possible)</td> </tr> </table> <br/> <input type="submit" value="Show update form"/> </form> </p> $portalPresenter.parse("$contextPath/pagefooter.html", $portalRequest) --- NEW FILE: itemcreate.html.de --- $portalPresenter.parse("$contextPath/pageheader.html", $portalRequest) #set ( $auserlogin = "$!auserlogin" ) #if ( $auserlogin == "" ) #set ( $auserlogin = $userLogin ) #end #set ( $auserid = $userManager.getUserIdForUserLogin($auserlogin) ) #set ( $auser = $userManager.getUser($auserid)) #if("$!itemclass"=="") #set($itemclass = "item") #end #set ( $itemname = $itemManager.getOntology().getClass("$itemclass").getDescription("de") ) #if ("$!itemname"=="") #set ($itemname = "Item") #end <h1>$!itemname veröffentlichen</h1> #if($returnCode == 2001) <div class="error">Fehler beim Veröffentlichen eines Items: <ul>#foreach($error in $errors) <li>$corePresenter.printErrorMessage($error, "$!lang")</li> #end</ul></div><br/> #end #set($selectedLangs = $portalRequest.getRequestParameterValues("_languages")) #if(!$selectedLangs) #set($selectedLangs = [$lang]) #end <form action="$contextPath/ITEM" method="post" enctype="multipart/form-data"> <input type="hidden" name="itemclass" value="${itemclass}"/> <input type="hidden" name="cmd" value="createitem"/> <input type="hidden" name="cmd.success" value="$contextPath/item/index.html"/> <input type="hidden" name="cmd.error" value="$contextPath/item/itemcreate.html"/> <input type="hidden" name="cmd.noaccess" value="$contextPath/noaccess.html"/> <input type="hidden" name="creator" value="${auserid}"/> #foreach($lg in $selectedLangs) <input type="hidden" name="_languages" value="${lg}"/> #end #set ($itemtemplate = $itemPresenter.getItemEditTemplate("$!itemclass")) #if ($itemtemplate == "") #set ( $itemtemplate = "/item/templateedit.html" ) #end $portalPresenter.parse("$itemtemplate",$portalRequest,"/item/templateedit.html") <p> <input type="submit" value="$itemname veröffentlichen"/> </p> <hr/> <h2>Attachment hinzufügen</h2> <table> <tr valign="top"> <td><b>Title: </b></td> <td>$itemPresenter.printNewAttrInput("_fileTitle", "$!_fileTitle", 20)</td> </tr><tr> <td><b>Comment: </b></td> <td>$itemPresenter.printNewAttrInput("_fileComment", "$!_fileComment", 80)</td> </tr> <tr> <td><b>File</b></td> <td><input type="file" name="_file" value="$!_file"></td> </tr> </table> </p> <h2>Anmerkung hinzufügen</h2> <table> <tr><td>Title:</td><td><input type="text" size="30" name="_annTitle" value="$!_annTitle"></td></tr> <tr><td>Content:</td><td><input type="text" size="60" name="_annContent" value="$!_annContent"></td></tr> <tr><td>Rating:</td><td> $portalPresenter.printSelect("_annRating", "0,1,2,3,4,5", "0,1,2,3,4,5", "$!rating") </td></tr> </table> </p> <p> <input type="submit" value="$itemname mit Attachments und Anmerkungen veröffentlichen"/> </p> </form> $portalPresenter.parse("$contextPath/pagefooter.html", $portalRequest) --- NEW FILE: item.html.de --- $portalPresenter.parse("$contextPath/pageheader.html", $portalRequest) #set ( $auserlogin = "$!auserlogin" ) #if ( $auserlogin == "" ) #set ( $auserlogin = $userLogin ) #end #set ( $auserid = $userManager.getUserIdForUserLogin($auserlogin) ) #set ( $auser = $userManager.getUser($auserid)) #set($item = $itemPresenter.getItem($itemid)) #set($itemclass = $item.getItemClass()) #set ( $itemname = $itemManager.getOntology().getClass("$itemclass").getDescription("de") ) #if ("$!itemname"=="") #set ($itemname = "Item") #end <h3>$itemname</h3> #if ($returnCode == 1005) <p><div class="success">Anmerkung angefügt.</div></p> #elseif ($returnCode == 1006) <p><div class="success">Anmerkung entfernt.</div></p> #elseif ($returnCode == 1007) <p><div class="success">Attachment angefügt.</div></p> #elseif ($returnCode == 1008) <p><div class="success">Attachment entfernt.</div></p> #elseif ($returnCode == 2005) <p><div class="error">Fehler beim Hinzufügen einer Anmerkung.</div></p> #elseif ($returnCode == 2006) <p><div class="error">Fehler beim Entfernen einer Anmerkung.</div></p> #elseif ($returnCode == 2007) <p><div class="error">Fehler beim Hinzufügen eines Attachments.</div></p> #elseif ($returnCode == 2008) <p><div class="error">Fehler beim Entfernen eines Attachments.</div></p> #end ## Print this item in the language the user has specified or, if no ## language was specified, print out the item in the default language #if (!$language) #set($language = $lang) #end ## get item display template defined in the properties #set ($itemtemplate = $itemPresenter.getItemTemplate("details", $item)) <p> $portalPresenter.parse("$itemtemplate",$portalRequest,"/item/template.html") </p> ## Print attachments <h3>Attachments:</h3> <ul> #foreach ($ia in $item.getAttachments()) <li>$!ia.getTitle() (<a href="/ITEM?cmd=geta&aid=$!ia.getId()">$!ia.getMimeType()</a>): $!ia.getComment() von $ia.getPublisherId() - <a href="$contextPath/ITEM?cmd=removeattachment&cmd.success=$contextPath/item/item.html&cmd.error=$contextPath/item/item.html&itemid=$itemid&itemaid=$ia.getId()">löschen</a> #end </ul> <p>Neues Attachment hinzufügen:<br/> <form action="$contextPath/ITEM" method="post" enctype="multipart/form-data"> <input type="hidden" name="itemid" value="$itemid"> <input type="hidden" name="cmd" value="addattachment"> <input type="hidden" name="cmd.success" value="$contextPath/item/item.html"> <input type="hidden" name="cmd.error" value="$contextPath/item/item.html"> <table border="0"> <tr><td>Titel:</td><td><input type="text" size="30" name="_fileTitle"></td></tr> <tr><td>Kommentar:</td><td><input type="text" size="60" name="_fileComment"></td></tr> <tr><td>Datei:</td><td><input type="file" name="_file"></td></tr> </table> <input type="submit" value="Attachment hinzufügen"/> </form> <br/> ## Print annotations and a form to insert annotations <h3>Anmerkungen:</h3> <ul> #foreach ($ia in $item.getAnnotations()) <li>$!ia.getTitle() ($ia.getId()): $!ia.getContent(), rating = $!ia.getRating() von $ia.getCreatorId() - <a href="$contextPath/ITEM?cmd=removeannotation&cmd.success=$contextPath/item/item.html&cmd.error=$contextPath/item/item.html&itemid=$itemid&itemaid=$ia.getId()">löschen</a> #end </ul> <p>Neue Anmerkung hinzufügen:<br/> <form action="$contextPath/ITEM"> <input type="hidden" name="itemid" value="$itemid"> <input type="hidden" name="cmd" value="addannotation"> <input type="hidden" name="cmd.success" value="$contextPath/item/item.html"> <input type="hidden" name="cmd.error" value="$contextPath/item/item.html"> <table border="0"> <tr><td>Titel:</td><td><input type="text" size="30" name="title"></td></tr> <tr><td>Inhalt:</td><td><input type="text" size="60" name="content"></td></tr> <tr><td>Bewertung:</td><td> $portalPresenter.printSelect("rating", "0,1,2,3,4,5", "0,1,2,3,4,5", "$!rating") </td></tr> </table> <input type="submit" value="Anmerkung hinzufügen"/> </form> <br/> <a href="/item/itemupdate.html?itemid=$itemid">Item editieren</a> $portalPresenter.parse("$contextPath/pagefooter.html", $portalRequest) --- NEW FILE: itemupdate.html.de --- $portalPresenter.parse("$contextPath/pageheader.html", $portalRequest) <h1>Cobricks-2 - Item Update</h1> #if($createdItem) #set($itemid= $!createdItem.getLocalId()) #set($item = $itemManager.getItem($itemid)) #end #if($itemid) #set($item = $itemPresenter.getItem($itemid)) #set($item = $itemManager.getItem($itemid)) #end #if($returnCode == 1003) <div class="success">Successfully updated item.</div><br/> #elseif($returnCode == 2003) <div class="error">Failed updating item. The following error(s) ocurred: <ul>#foreach($error in $errors) <li>$corePresenter.printErrorMessage($error, "$!lang")</li> #end</ul></div><br/> #end #set($item = $itemPresenter.getItem($itemid)) #if(!$itemPresenter.isInteger($itemid)) <div class="error">Item Id $!itemid is not an integer.</div> <form action="$contextPath/item/itemupdate_start.html" method="get"> <input type="submit" value="Back"/> </form> #elseif(!$item) <div class="error">Item with item Id $!itemid does not exist.</div> <form action="$contextPath/item/itemupdate_start.html" method="get"> <input type="submit" value="Back"/> </form> #else #set ($acc = $userPresenter.checkPermission("$userId", "item", "update", "itemid=$itemid")) #if ($acc == "false") <div class="error"> You do not have the appropriate permissions to update this item. </div> #else <form action="$contextPath/ITEM" method="get"> <input type="hidden" name="cmd" value="deleteitem"/> <input type="hidden" name="cmd.success" value="$contextPath/item/itemdelete.html"/> <input type="hidden" name="cmd.error" value="$contextPath/item/itemdelete.html"/> <input type="hidden" name="itemid" value="$itemid"/> <p> <table><tr> <td><input type="submit" value="Delete"/></td> <td>(if you want to delete this item)</td> </tr></table> </p> </form> #set($itemclass = $item.getItemClass()) #set($selectedLangs = $portalRequest.getRequestParameterValues("_languages")) #if(!$selectedLangs) #set($selectedLangs = [$lang]) #end <form action="$contextPath/ITEM" method="get"> <input type="hidden" name="itemid" value="$!itemid"> #foreach($lg in $selectedLangs) <input type="hidden" name="_languages" value="${lg}"/> #end <p> <b>Item class</b> $itemPresenter.printDropDown("itemclass", $itemclass, "itemclass", false) <p> <table cellspacing="10"> #set($CURRENT_ATTR = "title") $portalPresenter.parse("attribute_fields.html", $portalRequest) #set($CURRENT_ATTR = "content") $portalPresenter.parse("attribute_fields.html", $portalRequest) </table> <table cellspacing="10"><tr valign="top"> <td><b>State</b><br/>$itemPresenter.printDescription($itemclass, "state", $lang)</td> <td>$itemPresenter.printDropDown("state", $itemPresenter.printAttribute($item.getAttribute("state"), $lang), "state", false)</td> <td align="right"><b>Location</b><br/>$itemPresenter.printDescription($itemclass, "location", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "location", $lang, $itemPresenter.printAttribute($item.getAttribute("location"), $lang), 1, 50, false)</td> </tr><tr valign="top"> <td><b>Expiration<br/>time</b><br/>$itemPresenter.printDescription($itemclass, "expirationtime", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "expirationtime", $lang, $itemPresenter.printAttribute($item.getAttribute("expirationtime"), $lang), 1, 20, false)</td> <td align="right"><b>Origin</b><br/>$itemPresenter.printDescription($itemclass, "origin", $lang)</td> <td>$itemPresenter.printAttrInput($itemclass, "origin", $lang, $itemPresenter.printAttribute($item.getAttribute("origin"), $lang), 1, 50, false)</td> </tr></table> </p> <input type="hidden" name="globalid" value="$itemPresenter.printAttribute($item.getAttribute("globalid"), $lang)"/> <input type="hidden" name="updater" value="${userId}"/> <input type="hidden" name="updatetime" value="$portalPresenter.getCurrentDateTime($lang)"/> <input type="hidden" name="creator" value="$itemPresenter.printAttribute($item.getAttribute("creator"), $lang)"/> <input type="hidden" name="creationtime" value="$itemPresenter.printAttribute($item.getAttribute("creationtime"), $lang)"/> <!-- TBD --><input type="hidden" name="_lang" value="${lang}"/> <input type="hidden" name="cmd" value="updateitem"/> <input type="hidden" name="cmd.success" value="$contextPath/item/itemupdate.html"/> <input type="hidden" name="cmd.error" value="$contextPath/item/itemupdate.html"/> <input type="hidden" name="cmd.changedItemClass" value="$contextPath/item/itemupdate_changedIC.html"/> #set($allAttrs = $itemPresenter.getAttributeNames($itemclass)) #set($itemAttrs = $itemPresenter.getAttributeNames("item")) #set($attrs = $itemPresenter.removeDuplicates($allAttrs, $itemAttrs)) #if(!$attrs.isEmpty()) <p> <table cellspacing="10"> #foreach($attr in $attrs) #set($CURRENT_ATTR = $attr) $portalPresenter.parse("attribute_fields.html", $portalRequest) #end </table> </p> #end <hr/> <p> <h2>Change/add custom attributes:</h2> #set($temp = $item.getAttributeNames()) #set($custattrs = $itemPresenter.removeDuplicates($temp, $allAttrs)) <table cellspacing="10"> #if(!$custattrs.isEmpty()) <tr><td colspan="4"><b>Previously defined:</b></td></tr> #foreach($cattr in $custattrs) <tr valign="top"> <td><b>$cattr</b></td> <td colspan="3">$itemPresenter.printNewAttrInput($cattr, $itemPresenter.printAttribute($item.getAttribute($cattr), $lang), 80)</td> </tr> #end #end <tr><td colspan="4"><b>Defined by yourself:</b></td></tr> <tr valign="top"> <td><b>Attribute name</b></td> <td>$itemPresenter.printNewAttrInput("_customAname_1", null, 10)</td> <td><b>Attribute value</b></td> <td>$itemPresenter.printNewAttrInput("_customAvalue_1", null, 80)</td> </tr> <tr valign="top"> <td><b>Attribute name</b></td> <td>$itemPresenter.printNewAttrInput("_customAname_2", null, 10)</td> <td><b>Attribute value</b></td> <td>$itemPresenter.printNewAttrInput("_customAvalue_2", null, 80)</td> </tr> <tr valign="top"> <td><b>Attribute name</b></td> <td>$itemPresenter.printNewAttrInput("_customAname_3", null, 10)</td> <td><b>Attribute value</b></td> <td>$itemPresenter.printNewAttrInput("_customAvalue_3", null, 80)</td> </tr> </table> </p> <hr/> <p> <table><tr> <td><input type="submit" value="Save changes"/></td> <td><input type="reset" value="Reset all values"/></td> </tr></table> </p> </form> #end #end $portalPresenter.parse("$contextPath/pagefooter.html", $portalRequest) --- NEW FILE: template-msg.html --- #set($format = $portalPresenter.getDateTimeFormatter($language, true)) <table border="1pt" cellpadding="5pt" width="100%"> <tr><td> #set($imageurl = $item.getAttributeAsString("imageurl")) #if("$!imageurl"!="") <img align="right" valign="top" width="80" src="$imageurl"/> #end #set($title = $item.getTitle("$!language")) #if($title) <b>$title</b> #else <b>$item.getTitle()</b> <br><font size="-2">(Kein Titel in der angefragten Sprache $language verfügbar.)</font> #end <br/> #set($creator = $item.getAttribute("creator")) #set($creationtime = $item.getAttribute("creationtime")) #if($creator) (von <a href="$contextPath/user/user.html?auserlogin=$creator.getUserLogin()">$creator.getName()</a> #if("$!creationtime"!="") , am/um $format.format($creationtime) #end ) #elseif($creationtime) (am/um $format.format($creationtime)) #end <p> <table width="95%"><tr bgcolor="#dfdfdf" width="100%"><td> #set($content = $item.getContent("$!language")) #if("$content"!="") <pre>$content </pre> #else $item.getContent() <br/>(Kein Inhalt in der angefragten Sprache "$language" verfügbar.) #end </td></tr></table><br/> #set($location = $item.getAttributeAsString("location")) #if("$location"!="") <b>Ort:</b> $location<br/><br/> #end #set($expirationtime = $item.getAttribute("expirationtime")) #if($expirationtime) Verfallsdatum: $format.format($expirationtime)<br/><br/> #end #set($uri = $item.getAttributeAsString("url")) #if($uri) Link zu zusätzlicher Information:<br/> <a href="$uri">$uri</a><br/><br/> #end #set($updater = $item.getAttribute("updater")) #set($updatetime = $item.getAttribute("updatetime")) #if($updater) Letzte Aktualisierung durch <a href="$contextPath/user/user.html?auserlogin=$updater.getUserLogin()"> $updater.getName()</a> #if($updatetime) , am/um $format.format($updatetime) #end <br/> #elseif($updatetime) Letzte Aktualisierung am/um $format.format($updatetime)<br/> #end <p>Kategorien, denen die Mitteilung zugeordnet ist: <ul> #foreach ($c in $item.getAttribute("categories")) <li>$c.getTitle($language) #end #if (!$item.getAttribute("categories")) <li>keine Kategorien #end </ul> </td></tr> </table> --- NEW FILE: index.html.en --- $portalPresenter.parse("$contextPath/pageheader.html", $portalRequest) <h1>Dynamische Inhalte</h1> #if ( $returnCode == 1001 ) <p><div class="success">Item erfolgreich veröffentlicht.</div></p> #end <p>Als registrierter Benutzer können Sie Ankündigungen und Mitteilungen publizieren, die dann an interessierte Benutzer weitergeleitet werden und in ausgewählten Bereichen dieser Website dargestellt werden.</p> <p>Folgende Typen von dynamischen Inhalten können angelegt werden:</p> <ul> <li><a href="itemcreate.html?itemclass=tummsg">Mitteilung (tummsg)</a> <li><a href="itemcreate.html?itemclass=tumdate">Veranstaltungsankündigung (tumdate)</a> <p> <li><a href="termin.html">Veranstaltungsankündigung - offiziell (odate)</a> <li><a href="bookmark.html">Mitteilung (bookmark)</a> <p> <li><a href="da.html">Diplomarbeitsangebot (da)</a> <li><a href="idp.html">IdP-Angebot (da)</a> <li><a href="sypro.html">Systementwicklungsprojektangebot (sypro)</a> <p> <li><a href="job.html">Jobangebot (da)</a> <p> <li><a href="sypro.html">Systementwicklungsprojektangebot (fww)</a> <li><a href="sypro.html">Systementwicklungsprojektangebot (vwm)</a> <li><a href="sypro.html">Systementwicklungsprojektangebot (fipro)</a> <li><a href="sypro.html">Systementwicklungsprojektangebot (fipra)</a> <li><a href="sypro.html">Systementwicklungsprojektangebot (fidoc)</a> <li><a href="sypro.html">Systementwicklungsprojektangebot (conv)</a> </ul> <table width="100%" border=0> <tbody> <tr><td> <table cellSpacing=0 cellPadding=5 width="100%" border=0> <tbody> <tr><td bgColor=#0075ba> <b><font color=#ffffff>Aktuelle Veranstaltungen</font></b> </td></tr> <tr><td bgColor=#dddddd> <table border=0> <tbody> #set ($iresult = $itemPresenter.searchItemsByValue("starttime",["tumdate","odate"],[],10,10)) #if (($iresult)) #foreach ($i in $iresult) #set ( $itemclass = $i.getAttribute("itemclass") ) <tr><td vAlign=top> #if($itemclass=="diplom") <img alt=- src="images/itemtypeicon-da.gif"> #elseif($itemclass=="sep") <img alt=- src="images/itemtypeicon-sypro.gif"> #else <img alt=- src="images/itemtype.gif"> #end </td> <td> <a href="/item/item.html?itemid=$i.getId()">$i.getTitle() xxx</a> #if($i.getAttribute("expirationtime")) [$i.getAttribute("expirationtime")] #end </td></tr> #end #end </tbody></table> </td></tr></tbody></table> </td></tr></tbody></table> <table width="100%" border=0> <tbody> <tr><td> <table cellSpacing=0 cellPadding=5 width="100%" border=0> <tbody> <tr><td bgColor=#0075ba> <b><font color=#ffffff>Neue Mitteilungen</font></b> </td></tr> <tr><td bgColor=#dddddd> <table border=0> <tbody> #set ($iresult = $itemPresenter.searchItemsByCreationtime("10")) #if (($iresult)) #foreach ($i in $iresult) #set ( $itemclass = $i.getAttribute("itemclass") ) <tr><td vAlign=top> <img alt=- src="$itemPresenter.getItemTypeIcon()"> </td> <td> <a href="/item/item.html?itemid=$i.getId()">$i.getTitle()</a> #if($i.getAttribute("expirationtime")) [$i.getAttribute("expirationtime")] #end </td></tr> #end #end </tbody></table> </td></tr></tbody></table> </td></tr></tbody></table> $portalPresenter.parse("$contextPath/pagefooter.html", $portalRequest) --- NEW FILE: template.html --- ## default item display (if no special display was defined in the ## properties ## Divide the attributes of this item into two categories: ## 1. The standard attributes (standardAttrs): Attributes that are ## defined in the ontology ## 2. The additional attributes (additionalAttrs): Attributes that ## aren't defined in the item ontology #set($map = $itemPresenter.categorizeItemAttributes($item)) #set($standardAttrs = $map.get("standard")) #set($additionalAttrs = $map.get("additional")) #set($format = $portalPresenter.getDateTimeFormatter($language, true)) <table border="1pt" cellpadding="5pt" width="100%"> <tr><td> #set($imageurl = $standardAttrs.get("imageurl")) #if("$!imageurl"!="") <img align="right" valign="top" width="80" src="$imageurl"/> #end #set($title = $item.getTitle("$!language")) <h2> #if($title) $title #else $item.getTitle() <br><font size="-2">Kein Titel in der angefragten Sprache $language verfügbar.)</font> #end </h2> #set($creator = $standardAttrs.get("creator")) #set($creationtime = $standardAttrs.get("creationtime")) #if($creator) (veröffentlicht durch <a href="$contextPath/user/user.html?auserlogin=$creator.getUserLogin()">$creator.getName()</a> #if("$!creationtime"!="") , am/um $format.format($creationtime) #end )<br/><br/> #elseif($creationtime) (veröffentlicht am/um $format.format($creationtime))<br/><br/> #end <br/> #set($location = $standardAttrs.get("location")) #if($location) <b>Ort:</b> $location<br/><br/> #end #set($expirationtime = $standardAttrs.get("expirationtime")) #if($expirationtime) Verfallsdatum: $format.format($expirationtime)<br/><br/> #end <table width="95%"><tr bgcolor="#dfdfdf" width="100%"><td> #set($content = $item.getContent("$!language")) #if("$content"!="") <pre>$content </pre> #else Kein Inhalt in der angefragten Sprache $language verfügbar. #end </td></tr></table><br/> #set($uri = $standardAttrs.get("url")) #if($uri) Link zu zusätzlicher Information:<br/> <a href="$uri">$uri</a><br/><br/> #end #set($updater = $standardAttrs.get("updater")) #set($updatetime = $standardAttrs.get("updatetime")) #if($updater) Letzte Aktualisierung durch <a href="$contextPath/user/user.html?auserlogin=$updater.getUserLogin()"> $updater.getName()</a> #if($updatetime) , am/um $format.format($updatetime) #end <br/> #elseif($updatetime) Letzte Aktualisierung am/um $format.format($updatetime)<br/> #end <p>Kategorien, denen das Item zugeordnet ist: <ul> #foreach ($c in $standardAttrs.get("categories")) <li>$c.getTitle($language) #end #if (!$standardAttrs.get("categories")) <li>keine Kategorien #end </ul> ## Enable the user to choose the language in which this item should ## be displayed <br/><p> <form action="item.html" method="get"> <input type="hidden" name="itemid" value="$itemid"> $itemPresenter.printDropDown("language", $lang, "language", false) <input type="submit" value="Attribute für andere Sprache anzeigen"/> </form> <br/> ## Print all standard attributes #if($standardAttrs) <hr/><h3>Alle Standardattribute der Item-Klasse:</h3> </p> $itemPresenter.printAttrs($standardAttrs, $map.get("ontClass"), $language) #end <br/> ## Print the additional attributes #if($additionalAttrs) <hr/><h3>Zusätzliche Attribute:</h3> $itemPresenter.printAdditionalAttrs($additionalAttrs, $language) #end <br/> </td></tr> </table> |
|
From: Michael K. <ko...@us...> - 2006-09-13 13:06:26
|
Update of /cvsroot/cobricks/drehscheibe-in/web/user In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv11409 Modified Files: forgot_password.txt.de registeremail.txt.de user-delete.html.de user.html.de Added Files: user-delete-res.html.de Removed Files: user-removed.html.de Log Message: --- NEW FILE: user-delete-res.html.de --- #if ($returnCode == 2010) #if ("$!userLogin" == "$!auserlogin") $!portalPresenter.doLogout($portalRequest) #set ( $userLogin = "anonymous" ) #end #end $portalPresenter.parse("$contextPath/pageheader.html.de",$portalRequest) #if ($returnCode == 1050) <div class="info"> Die Benutzerkennung <b>$auserlogin</b> wurde erfolgreich gelöscht. </div> $portalPresenter.doLogout($portalRequest) #elseif ($returnCode == 2050) <div class="error"> Fehler beim Löschen der Benutzerkennung <b>$auserlogin</b>. </div> #end $portalPresenter.parse("$contextPath/pagefooter.html.de",$portalRequest) Index: user-delete.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/user/user-delete.html.de,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- user-delete.html.de 9 Sep 2004 08:36:39 -0000 1.2 +++ user-delete.html.de 13 Sep 2006 13:06:20 -0000 1.3 @@ -1,8 +1,5 @@ -#parse ( "pageheader.html.de" ) -#parse ( "navigation-main.html.de" ) -<td valign=top> -<h1>Benutzerkennung löschen</h1> +$portalPresenter.parse("$contextPath/pageheader.html.de",$portalRequest) #set ( $auserlogin = "$!auserlogin" ) #if ( $auserlogin == "" ) @@ -12,6 +9,8 @@ #set ( $auser = $userManager.getUser($auserid)) $userPresenter.setUserAttrInContext($auser, $velocityContext) +<h1>Benutzerkennung löschen</h1> + #set ( $auth = $userPresenter.checkPermission($userId, "user", "read", "") ) #if ( $auth != "true") @@ -29,8 +28,8 @@ <form action="/USER" method="post"> <input type="hidden" name="cmd" value="delete"/> -<input type="hidden" name="cmd.success" value="/user/user-removed.html.de"> -<input type="hidden" name="cmd.error" value="/user/user.html.de"> +<input type="hidden" name="cmd.success" value="/user/user-delete-res.html.de"> +<input type="hidden" name="cmd.error" value="/user/user-delete-res.html.de"> <input type="hidden" name="path" value="$portalRequest.getPagePath()"/> <input type="hidden" name="auserid" value="$auserid" /> <input type="hidden" name="auserlogin" value="$auserlogin" /> @@ -38,5 +37,5 @@ </form> #end -</td> -#parse ( "pagefooter.html" ) + +$portalPresenter.parse("$contextPath/pagefooter.html.de",$portalRequest) Index: forgot_password.txt.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/user/forgot_password.txt.de,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- forgot_password.txt.de 12 Sep 2006 12:45:01 -0000 1.2 +++ forgot_password.txt.de 13 Sep 2006 13:06:20 -0000 1.3 @@ -1,5 +1,11 @@ -PASSWORT ZURÜCKSETZEN +PASSWORT ZURÃCKSETZEN Auf Ihre Anfrage hin, wurde das Passwort Ihrer Benutzerkennung -$!auserlogin auf einen neuen Wert gesetzt. Der neue Wert für das -Passwort lautet: $!passwd +"$!auserlogin" auf der Web-Plattform der Fakultät für Informatik +der Technischen Universität München (www.in.tum.de) auf einen +neuen Wert gesetzt. + +Der neue Wert für das Passwort lautet: "$!passwd" + +-- +Kontakt: dre...@in... --- user-removed.html.de DELETED --- Index: user.html.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/user/user.html.de,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- user.html.de 12 Sep 2006 12:45:01 -0000 1.9 +++ user.html.de 13 Sep 2006 13:06:20 -0000 1.10 @@ -44,11 +44,6 @@ <p><div class="error">Loginname <b>$auserlogin</b> existiert nicht!</div></p> #else -#set ($imageuri = $auser.getAttribute("basic.personal.imageuri")) -#if ("$!imageuri"!="") -<img align="right" width="70" src="$imageuri"> -#end - <p>Loginname: $auserlogin</p> <form action="/USER" method="post" enctype="multipart/form-data"> @@ -81,7 +76,10 @@ </td></tr></table></td> <td align="right"> <table border="0" cellpadding="5pt"><tr><td> -<em><a href="change_password.html?auserlogin=$auserlogin">Passwort ändern</a></em> +<form action="change_password.html" method="get"> +<input type="submit" value="Passwort ändern" /> +</form> +<!--<em><a href="change_password.html?auserlogin=$auserlogin">Passwort ändern</a></em>--> </td></tr></table> </td></tr> <tr><td colspan="2"> @@ -112,35 +110,47 @@ </table> -<table border="0"> -<tr><td>$userPresenter.printDescription($auserid, "basic.personal.imageuri", $lang):</td> -<td>$userPresenter.printUserAttrInput($auserid, "basic.personal.imageuri")</td></tr> -</table> +<p> </p> +<p><b>Benutzerportrait:</b></p> -<p>Wenn Sie nicht über ein online verfügbares Portraitbild verfügen, -dessen URL Sie hier angeben können, können Sie eine Bilddatei (gif, -png oder jpg) auf diesen Server laden. Wählen Sie dazu einfach eine -Datei aus Ihrem Dateisystem aus:<br> +#set ($imageuri = $auser.getAttribute("basic.personal.imageuri")) -<input type="file" size="40" name="uploadimage"> +<table border="0"> +<tr><td width=110 valign=top> +#if ("$!imageuri"!="") +<img align="right" width="100" src="$imageuri"> +#else +<b>Kein Bild verfügbar</b> +#end +</td><td valign=top> + +<p>Sie können entweder ein Bild auf den Server hochladen oder mit +einem Bild, das bereits auf einem Web-Server zur Verfügung steht, +verlinken:</p> +<p>1. Bild hochladen<br> +<input type="file" size="40" name="uploadimage"><br> +<font size="-2">Optimales Format: 130x100 Pixel, Dateitypen: JPG, PNG oder GIF</font></p> +<p><b>oder</b></p> +<p>2. Bild verlinken<br> +$userPresenter.printUserAttrInput($auserid, "basic.personal.imageuri")<br> +<font size="-2">URL (Pfad) zum Bild angeben, z.B. http://www.mein-bild.de/foto.jpg</font></p> +</td></tr></table><br> <p> +<table border="0" width="100%"><tr><td> <input type="submit" value="Benutzerprofil aktualisieren"> - +</td><td width="100%" align="right"> +<div align="right"> +<form action="user-delete.html" method="get"> +<input type="submit" value="Benutzerkennung löschen" /> +</form> +</div> </td></tr></table> </td></tr></table> -</form> +</td></tr></table> -<form action="/USER" method="post"> -<input type="hidden" name="cmd" value="delete"/> -<input type="hidden" name="cmd.success" value="/user/user.html"> -<input type="hidden" name="cmd.error" value="/user/user.html"> -<input type="hidden" name="path" value="$portalRequest.getPagePath()"/> -<input type="hidden" name="auserlogin" value="$auserlogin" /> -<input type="hidden" name="auserid" value="$auserid" /> -<input type="submit" value="Benutzerkennung löschen" /> </form> #end Index: registeremail.txt.de =================================================================== RCS file: /cvsroot/cobricks/drehscheibe-in/web/user/registeremail.txt.de,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- registeremail.txt.de 30 May 2006 14:14:31 -0000 1.1 +++ registeremail.txt.de 13 Sep 2006 13:06:20 -0000 1.2 @@ -1,10 +1,14 @@ BENUTZERREGISTRIERUNG -Sie haben sich erfolgreich auf der Web-Plattform der Fakultät für -Informatik der Technischen Universität München registriert. +Sie haben sich erfolgreich auf der Web-Plattform der Fakultät für +Informatik der Technischen Universität München (www.in.tum.de) +registriert. Ihre Benutzerkennung lautet: "$!auserlogin" Ihr Passwort lautet: "$!passwd" -Sie können sich unter folgender URL anmelden: -http://www.in.tum.de/login.html +Sie können sich unter folgender URL anmelden: +http://www.in.tum.de/user/login.html + +-- +Kontakt: dre...@in... |
|
From: Michael K. <ko...@us...> - 2006-09-13 12:51:31
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/item In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5670/org/cobricks/item Modified Files: ItemPresenter.java Log Message: Index: ItemPresenter.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/item/ItemPresenter.java,v retrieving revision 1.46 retrieving revision 1.47 diff -u -d -r1.46 -r1.47 --- ItemPresenter.java 23 May 2006 06:34:20 -0000 1.46 +++ ItemPresenter.java 13 Sep 2006 12:51:23 -0000 1.47 @@ -1392,41 +1392,26 @@ - // tbd: add possibility to specify class/categories/maxrows ... + // tbd: add possibility to specify class/categories ... // caching in itemmanager rein List cachedResults = null; long cacheTimestamp = 0; - public List searchItemsByCreationtime() + public List searchItemsByCreationtime(String maxrows) { long now = (new java.util.Date()).getTime(); if (cacheTimestamp>0 && cacheTimestamp>now-100000) return cachedResults; try { + int maxrowsint = 5; + try { + maxrowsint = Integer.parseInt(maxrows); + } catch (Exception e) { } cachedResults = itemManager.searchItemsByTimestamp("creationtime", 0, true, true, - null, null, 5); - cacheTimestamp = now; - return cachedResults; - } catch (Exception e) { - logger.error(LogUtil.ex("Failed loading items", e)); - return null; - } - } - - - public List searchMessagesByCreationtime(List categories) - { - long now = (new java.util.Date()).getTime(); - if (cacheTimestamp>0 && cacheTimestamp>now-100000) - return cachedResults; - try { - cachedResults = - itemManager.searchItemsByTimestamp("creationtime", 0, - true, true, - null, null, 5); + null, null, maxrowsint); cacheTimestamp = now; return cachedResults; } catch (Exception e) { @@ -1437,79 +1422,6 @@ /** - * - */ - public String constructSearchXPath(PortalRequest portalRequest) - { - String itemclass = portalRequest.getRequestParameter("itemclass"); - if (itemclass == null) itemclass = "item"; - String result = "/item[itemclass='"+itemclass+"']"; - return result; - } - - - /** - * prints out the Channel Attrs and Item directly from the RSS-Link - */ - public String printRssChannelAttrs(String rssUrl) - { - RssChannel channel = new RssChannel(); - try { - channel = channel.getRssChannel(rssUrl); - } - catch (Exception e) { - logger.error(LogUtil.ex("Exception occured", e)); - } - - ArrayList allItems = new ArrayList(); - allItems = channel.getItems(); - RssItem rssItem = new RssItem(); - - int count = allItems.size(); - String itemOutput = new String(); - - int x = 0; - do { - rssItem = (RssItem) allItems.get(x); - itemOutput = (itemOutput + - "<b>Item Nr.: </b>"+" " + (x+1) + "</br>\n" + - "<b>Titel: </b>" + rssItem.getTitle() + "</br>\n" + - "<b>Content: </b>" + rssItem.getDescription() + "</br>\n" + - "<b>Link: </b>" + rssItem.getLink() + "</br>\n"); - - x++; - } while (x < count); - - String a = ("<b>Titel: </b>" + channel.getTitle() + "</br>\n <b>Link: </b>" + channel.getLink() + - "</br>\n <b>Content: </b>" + channel.getDescription() + "</br>\n" + - "<b>Anzahl Items: </b>" + count + "</br>\n <br>" + itemOutput); - - return a; - } - - - /** - * Determine the template to be used for displaying the details - * of an item. - * - * @param mode The display mode, currently only "detail" is - * supported - * @param item The item - * @return The full name of the template to be used in - * Velocities #parse command - */ - public String getItemTemplate(String mode, Item item) - { - if (mode == null || mode.length()<1) mode = "details"; - String itemclass = item.getOntologyClassName(); - String aname = "item.display.template."+mode+"."+itemclass; - String avalue = coreManager.getProperty(aname); - if (avalue == null) return ""; - return avalue; - } - - - /** * This method returns the Item objects of items whose value of a given * timestamp attribute in the main table (item) is larger or small than a * given value. The items are sorted by the choosen attribute and only @@ -1525,8 +1437,9 @@ * @return If no errors were encountered during the search, an eventually * empty List of Items is returned. Otherwise null is returned. */ - public List searchItemsByValue(List itemclasses, List categories, - int days, int maxrows) + public List searchItemsByValue(String aname, + List itemclasses, List categories, + int days, int maxrows) { StringBuffer xpath = new StringBuffer(); @@ -1562,9 +1475,11 @@ } //dor date if (days>0) { + if (aname == null || aname.length()<1) + aname = "creationtime"; xpath.append(" and "); - xpath.append("/item/creationtime>=TODAY and "); - xpath.append("/item/creationtime<TODAY+"); + xpath.append("/item/"+aname+">=TODAY and "); + xpath.append("/item/"+aname+"<TODAY+"); xpath.append(days); } @@ -1596,4 +1511,101 @@ } + /** + * + */ + public String constructSearchXPath(PortalRequest portalRequest) + { + String itemclass = portalRequest.getRequestParameter("itemclass"); + if (itemclass == null) itemclass = "item"; + String result = "/item[itemclass='"+itemclass+"']"; + return result; + } + + + /** + * prints out the Channel Attrs and Item directly from the RSS-Link + */ + public String printRssChannelAttrs(String rssUrl) + { + RssChannel channel = new RssChannel(); + try { + channel = channel.getRssChannel(rssUrl); + } + catch (Exception e) { + logger.error(LogUtil.ex("Exception occured", e)); + } + + ArrayList allItems = new ArrayList(); + allItems = channel.getItems(); + RssItem rssItem = new RssItem(); + + int count = allItems.size(); + String itemOutput = new String(); + + int x = 0; + do { + rssItem = (RssItem) allItems.get(x); + itemOutput = (itemOutput + + "<b>Item Nr.: </b>"+" " + (x+1) + "</br>\n" + + "<b>Titel: </b>" + rssItem.getTitle() + "</br>\n" + + "<b>Content: </b>" + rssItem.getDescription() + "</br>\n" + + "<b>Link: </b>" + rssItem.getLink() + "</br>\n"); + + x++; + } while (x < count); + + String a = ("<b>Titel: </b>" + channel.getTitle() + "</br>\n <b>Link: </b>" + channel.getLink() + + "</br>\n <b>Content: </b>" + channel.getDescription() + "</br>\n" + + "<b>Anzahl Items: </b>" + count + "</br>\n <br>" + itemOutput); + + return a; + } + + + /** + * Determine the template to be used for displaying the details + * of an item. + * + * @param mode The display mode, currently only "detail" is + * supported + * @param item The item + * @return The full name of the template to be used in + * Velocities #parse command + */ + public String getItemTemplate(String mode, Item item) + { + if (mode == null || mode.length()<1) mode = "details"; + String itemclass = item.getOntologyClassName(); + String aname = "item.display.template."+mode+"."+itemclass; + String avalue = coreManager.getProperty(aname); + if (avalue == null) return "/item/template.html"; + return avalue; + } + + /** + * Determine the template to be used for editing an item + * (when creating it or when updating it) + * + * @param itemclass + * @return The full name of the template to be used in + * Velocities #parse command + */ + public String getItemEditTemplate(String itemclass) + { + String aname = "item.display.template.edit."+itemclass; + String avalue = coreManager.getProperty(aname); + if (avalue == null) return "/item/templateedit.html"; + return avalue; + } + + + /** + * + */ + public String getItemTypeIcon(String itemclass) + { + return "/images/itemtype.gif"; + } + } |
|
From: Michael K. <ko...@us...> - 2006-09-13 12:51:30
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/portal In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5670/org/cobricks/portal Modified Files: PortalPresenter.java Log Message: Index: PortalPresenter.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/portal/PortalPresenter.java,v retrieving revision 1.43 retrieving revision 1.44 diff -u -d -r1.43 -r1.44 --- PortalPresenter.java 12 Sep 2006 12:40:50 -0000 1.43 +++ PortalPresenter.java 13 Sep 2006 12:51:23 -0000 1.44 @@ -518,25 +518,46 @@ { StringBuffer result = new StringBuffer(""); - // TBD: uebersetzung der pfadnamen in aussagekraeftige namen - HttpServletRequest request = portalRequest.getHttpServletRequest(); String uri = request.getRequestURI(); logger.info("navigation: "+uri); int poslast = uri.lastIndexOf("/"); + String pagename = ""; + String fullpagename = ""; + try { + pagename = uri.substring(poslast+1); + fullpagename = pagename; + int pos = pagename.indexOf("."); + if (pos > -1) + pagename = pagename.substring(0, pos); + } catch (Exception e) { } int posfirst = uri.indexOf("/"); if (poslast > posfirst) { + String tmpurl = "/"; uri = uri.substring(posfirst+1, poslast); StringTokenizer st = new StringTokenizer(uri, "/"); - String tmpurl = "/"; while (st.hasMoreTokens()) { String tmps = st.nextToken(); + tmpurl = tmpurl + tmps + "/"; + PortalFolder pf = portalManager.getPortalFolder(tmpurl); + String tmpname = tmps; + if (pf != null) + tmpname = pf.getTitle("$!lang"); result.append(" → "); result.append("<a href=\""); - tmpurl = tmpurl + tmps + "/"; result.append(tmpurl); result.append("\">"); - result.append(tmps); // TBD + result.append(tmpname); + result.append("</a>"); + } + if (pagename!=null && pagename.length()>0 && + (!(pagename.startsWith("index.")))) { + result.append(" → "); + result.append("<a href=\""); + tmpurl = tmpurl + fullpagename; + result.append(tmpurl); + result.append("\">"); + result.append(pagename); // TBD result.append("</a>"); } } |
|
From: Michael K. <ko...@us...> - 2006-09-13 12:51:30
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/util/migration In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5670/org/cobricks/util/migration Modified Files: ItemMigration.java PortalMigration.java UserMigration.java Log Message: Index: UserMigration.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/util/migration/UserMigration.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -d -r1.5 -r1.6 --- UserMigration.java 1 Sep 2006 11:33:25 -0000 1.5 +++ UserMigration.java 13 Sep 2006 12:51:24 -0000 1.6 @@ -89,8 +89,6 @@ userMigrationProps.put("basic.contact.telecom.mobile.number","basic.contact[priv].telecom.mobile"); userMigrationProps.put("basic.contact[work].telecom.telephone.number","basic.contact[work].telecom.telephone"); userMigrationProps.put("basic.personal.languagespoken","basic.personal.languagesspoken"); - //#basic_contact_comment","basic.contact[priv].postal.comment"); - //#basic_contact_commentz","basic.contact[priv].postal.commentz"); userMigrationProps.put("basic_contact_online_email","basic.contact[priv].online.email"); userMigrationProps.put("basic_contact_online_emailbounced","basic.contact[priv].online.emailbounced"); userMigrationProps.put("basic_contact_online_emailz","basic.contact[priv].online.email"); @@ -145,6 +143,7 @@ // if(cnt > 100) break; // used for testing purposes, if you don't need to test with all the records from the table Map fromMap = (Map)resIter.next(); Map toMap = new HashMap(); + toMap.put("userclass", "universityuser"); String lastName = (String)fromMap.get("basic_personal_lastname"); String firstName = (String)fromMap.get("basic_personal_firstname"); String passCrypt = (String)fromMap.get("credentials_password_crypt"); @@ -156,13 +155,13 @@ userLogin = userLogin.substring(0,userLogin.indexOf("@localhost")); } if(firstName!=null) { - toMap.put("basic.personal.firstname",firstName); + toMap.put("basic.personal.firstname",firstName); } if(lastName!=null) { - toMap.put("basic.personal.lastname",lastName); + toMap.put("basic.personal.lastname",lastName); } if(basicStatus!=null) { - toMap.put("basic.university.status",basicStatus); + toMap.put("basic.university.status",basicStatus); } if(regTime!=null) { toMap.put("basic.regtime",regTime); @@ -174,20 +173,8 @@ doubleNames.put(userLoginS,userLogin+"_"); userLogin = userLogin+"_"; } - logger.info("Creating user with following data." + - " Login : " + userLogin+ - " Firstname : " + firstName+ - " Lastname : " + lastName+ - " Status : " + basicStatus+ - " Regtime : " + regTime+ - ""); tmpUser = userManager.createUser(userLogin, toMap); usercnt++; - /* logger.info("User with following data created." + - " Name : " + tmpUser.getName()+ - " ID : " + tmpUser.getId()+ - " Login : " + tmpUser.getUserLogin()+ - "");*/ if(passCrypt!=null && tmpUser!=null) { try { logger.info(">> Inserting Password Begin"); @@ -249,6 +236,21 @@ // TBD attrName = ""; } + if (attrName.startsWith("basic.contact[work]")) { + attrName = "basic.contact-work"+attrName.substring(19); + } + if (attrName.startsWith("basic.contact[priv]")) { + attrName = "basic.contact-work"+attrName.substring(19); + } + if (attrName.indexOf("[")>0) { + int pos = attrName.indexOf("["); + int pos2 = attrName.indexOf("]"); + if (pos2 > pos) { + attrName = attrName.substring(0,pos) + +"-"+attrName.substring(pos+1,pos2) + +attrName.substring(pos2+1); + } + } if (attrName != null && attrName.length()>0) { try { if(userManager.checkUser(userLogin)){ Index: PortalMigration.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/util/migration/PortalMigration.java,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- PortalMigration.java 1 Sep 2006 11:33:25 -0000 1.2 +++ PortalMigration.java 13 Sep 2006 12:51:24 -0000 1.3 @@ -17,6 +17,7 @@ import java.text.DateFormat; import java.text.ParseException; import java.text.SimpleDateFormat; +import java.util.ArrayList; import java.util.Date; import java.util.HashMap; import java.util.HashSet; @@ -85,7 +86,8 @@ public void migrate() { logger.info(">>>>>>>>>>> Starting portal migration <<<<<<<<<<<<<"); - migratePortalTemplates(); + ((PortalManagerImpl)portalManager).initializePortalFolders(); + migratePortalTemplates(); // do not migrate templates ... migratePortalGroups(); migratePortalPages(); } @@ -98,8 +100,6 @@ { String tmps = null; logger.info(">> migrating portal templates"); - - ((PortalManagerImpl)portalManager).initializePortalFolders(); // folder for templates PortalFolder pfolder = portalManager.getPortalFolder("/templates/"); @@ -117,6 +117,8 @@ // footer, description // create items for the different headers and footers List results = fromDBAccess.sqlQuery("select * from page_template"); + // ignore templates for this time ... TBD + results = new ArrayList(); Iterator i = results.iterator(); while (i.hasNext()) { Map m = (Map)i.next(); @@ -274,15 +276,17 @@ if (pfolder == null) { logger.error("failed getting portal folder for "+path); continue; - /* - path = "/"; - pfolder = portalManager.getPortalFolder("/"); - */ } logger.info("path="+path+", pgid="+pgid+", folderid=" +pfolder.getId()); // add template includes + content = + "$portalPresenter.parse(\"$contextPath/pageheader.html\", $portalRequest)\n\n" + + content + + "\n\n$portalPresenter.parse(\"$contextPath/pagefooter.html\", $portalRequest)\n"; + + /* String tde = (String)pgrouptemplde.get(path); String ten = (String)pgrouptemplen.get(path); if (tde != null) { @@ -298,6 +302,7 @@ + content + "\n\n#parse(\"/templates/"+ten+"-f\")"; } + */ // check if the page is already there (with other // language versions) @@ -333,7 +338,9 @@ itemAttrs.put("mimetype", "text/html"); itemAttrs.put("folders", new Integer(pfolder.getId())); itemAttrs.put("creationdate", cdate); - // TBD itemAttrs.put("creator", cdate); + int userid = userManager.getUserIdForUserLogin(clogin); + if (userid > 0) + itemAttrs.put("creator", new Integer(userid)); itemAttrs.put("name", name); if (lang.equals("de")) { itemAttrs.put("title_de", title); Index: ItemMigration.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/util/migration/ItemMigration.java,v retrieving revision 1.9 retrieving revision 1.10 diff -u -d -r1.9 -r1.10 --- ItemMigration.java 1 Sep 2006 11:33:25 -0000 1.9 +++ ItemMigration.java 13 Sep 2006 12:51:24 -0000 1.10 @@ -1,5 +1,5 @@ /** - * Copyright (c) 2003-2005 Cobricks Group. All rights reserved. + * Copyright (c) 2003-2006 Cobricks Group. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted under the terms of the Cobricks Software @@ -12,6 +12,8 @@ package org.cobricks.util.migration; +import java.io.BufferedInputStream; +import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import java.text.DateFormat; @@ -30,6 +32,7 @@ import org.cobricks.core.ComponentDirectory; import org.cobricks.core.CoreManager; import org.cobricks.core.db.DBAccess; +import org.cobricks.core.util.IOUtil; import org.cobricks.item.Item; import org.cobricks.item.ItemAnnotation; import org.cobricks.item.ItemAttachment; @@ -284,11 +287,10 @@ // Checking for attachment and migrating them. List resultAttach = fromDBAccess.sqlQuery("SELECT * FROM itemattachments WHERE itemid ="+itemid+";"); if(resultAttach.size()>0) { - logger.info("attach : "+resultAttach.size()); + logger.info("migrating attachments: "+resultAttach.size()); Iterator resAttachIter = resultAttach.iterator(); while(resAttachIter.hasNext()){ attachmentMap = (Map)resAttachIter.next(); - logger.info("Map : "+attachmentMap); if(attachmentMap != null){ try{ String comment = null; @@ -344,23 +346,41 @@ } ItemAttachment newAttach = - itemManager.createItemAttachment( - tmpItem.getId(), - title, - comment, - mimetype, - size, - url2, "", - creatorid, - creationtime - ); - logger.info("Itemattachment with following data created" + - " Title : " + title+" Comment : " + comment+ - " ID : " + itemaid+" ItemID : " + tmpItem.getId()+ - " PublisherID: " + creatorid+" PublishedDate : " + creationtime+ - " Url : " + url+" Size : " + size+" Mimetype : " + mimetype); - itemManager.addItemAttachment(tmpItem,newAttach); - itemManager.updateItem(tmpItem); + itemManager. + createItemAttachment(tmpItem.getId(), + title, + comment, + mimetype, + size, + url2, + title, + creatorid, + creationtime); + logger.info("item attachment created"); + byte[] data = null; + String tmpfname = Integer.toString(itemaid); + int pos = title.lastIndexOf("."); + if (pos>-1) { + tmpfname+=title.substring(pos); + } + File file = new File("attachments.old/"+tmpfname); + logger.debug("loading attachment content from file " + +file.toString()); + try { + BufferedInputStream bis = + new BufferedInputStream(new FileInputStream(file)); + data = IOUtil.readFully(bis); + } catch (Exception e) { + logger.warn("failed reading attachment: "+e.toString()); + data = null; + } + if (data != null) { + itemManager.storeItemAttachment(newAttach, + data, + title); + /*itemManager.addItemAttachment(tmpItem, + newAttach);*/ + } } catch(Exception e) { logger.error("Failed adding Attachment to Item ",e); } |
|
From: Michael K. <ko...@us...> - 2006-09-13 12:51:30
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/user In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5670/org/cobricks/user Modified Files: userontology.xml Log Message: Index: userontology.xml =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/user/userontology.xml,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- userontology.xml 12 Sep 2006 12:41:08 -0000 1.13 +++ userontology.xml 13 Sep 2006 12:51:23 -0000 1.14 @@ -151,7 +151,7 @@ <attr name="history.org.cobricks.regtime" type="date"/> <attr name="preference.language" type="string(2)"> - <description lang="de">Sprache</description> + <description lang="de">bevorzugte Sprache</description> <description lang="en">Preferred Language</description> </attr> |
|
From: Michael K. <ko...@us...> - 2006-09-13 12:51:30
|
Update of /cvsroot/cobricks/cobricks2/src/org/cobricks/category In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv5670/org/cobricks/category Modified Files: CategoryManagerImpl.java CategoryPresenter.java properties.txt Log Message: Index: CategoryPresenter.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/category/CategoryPresenter.java,v retrieving revision 1.19 retrieving revision 1.20 diff -u -d -r1.19 -r1.20 --- CategoryPresenter.java 27 Jun 2006 10:13:12 -0000 1.19 +++ CategoryPresenter.java 13 Sep 2006 12:51:23 -0000 1.20 @@ -194,7 +194,8 @@ * @param title * @return list of categories */ - public List getCategories(String classname, String parentid,String title) + public List getCategories(String classname, String parentid, + String title) { if (categoryListCache==null) categoryListCache = new HashMap(); String key = ";"+classname+";"+parentid; @@ -207,10 +208,8 @@ if (pid>0) attrs.put("parent", new Integer(pid)); - if (title.trim().length() > 0) - attrs.put("title_en", title.trim()); - + attrs.put("title_en", title.trim()); if (classname.trim().length()>0) attrs.put("categoryclass", classname); @@ -228,7 +227,8 @@ * @param lang * @return a list of category ids */ - public List getSortedCategories(String classname, String parentid, String title, + public List getSortedCategories(String classname, String parentid, + String title, String lang) { if (categoryListCache==null) categoryListCache = new HashMap(); Index: CategoryManagerImpl.java =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/category/CategoryManagerImpl.java,v retrieving revision 1.29 retrieving revision 1.30 diff -u -d -r1.29 -r1.30 --- CategoryManagerImpl.java 27 Jun 2006 10:13:12 -0000 1.29 +++ CategoryManagerImpl.java 13 Sep 2006 12:51:23 -0000 1.30 @@ -58,12 +58,12 @@ static String COMP_NAME = "Cobricks-2 Category Component"; - static String COMP_VERSION = "V0.3 (August 2005)"; + static String COMP_VERSION = "V0.5 (August 2006)"; /** * The default value for the object cache - used in case no property is found */ - private static final int DEFAULT_CACHE_SIZE = 50; + private static final int DEFAULT_CACHE_SIZE = 200; // attributes that are stored in the categories table private static final String[] TABLE_MAIN_ATTRIBUTES = { @@ -255,8 +255,7 @@ } logger.info("getCategory("+catid+")"); result = loadCategory(catid); - if ( result != null) - { + if ( result != null) { categoryCache.insert(result); } return result; Index: properties.txt =================================================================== RCS file: /cvsroot/cobricks/cobricks2/src/org/cobricks/category/properties.txt,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- properties.txt 24 Jun 2004 06:55:34 -0000 1.1 +++ properties.txt 13 Sep 2006 12:51:23 -0000 1.2 @@ -15,3 +15,5 @@ org.cobricks.category.comp.presenter.1.name=categoryPresenter org.cobricks.category.comp.presenter.1.class=org.cobricks.category.CategoryPresenter org.cobricks.category.comp.listento= + +category.cache.maxsize=250 \ No newline at end of file |
|
From: Michael K. <ko...@us...> - 2006-09-12 12:54:21
|
Update of /cvsroot/cobricks/drehscheibe-in/web/forschung In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22164/forschung Added Files: navigation.html.de Log Message: --- NEW FILE: navigation.html.de --- <table width ="100%" border=0 cellSpacing=1 cellPadding=15> <TD vAlign=top width=150 bgColor=#e0e0e0 > <BR><A class=hnav href="/forschung/index.html.de"><B>FORSCHUNG</B></A><BR><BR><A class=sub href="/fakultaet/lehrstuehle.html.de"><B>Lehrstühle</B></A> <BR><BR><A class=sub href="/forschung/uebersicht.html.de"><B>Schwerpunkte</B></A> <BR> <A class=sub href="/forschung/uebersicht.html.de">Übersicht</A><BR> <A class=sub href="/servlet/Item_Query?cmd=queryitems&typeshort=schwerp">Suchen</A> <P><A class=sub href="/forschung/projekte.html.de"><B>Projekte</B></A> <BR> <A class=sub href="/forschung/projekte.html.de">Übersicht</A><BR> <A class=sub href="/servlet/Item_Query?cmd=queryitems&typeshort=proj">Suchen</A> <P><A class=sub href="/forschung/sfb.html.de">SFBs</A><BR><A class=sub href="/forschung/verbund.html.de">Verbünde</A><BR><A class=sub href="/forschung/publikationen.html.de">Publikationen</A><BR><A class=sub href="/forschung/veranstaltungen.html.de">Veranstaltungen</A><BR><A class=sub href="/info/stellen.html.de">Stellenangebote</A><BR> <BR><A class=sub href="/servlet/Item_Query?cmd=queryitemsdoit&timespan=30"><B>Mitteilungen</B></A><BR> <A class=sub href="/servlet/Item_Query">Suchen</A> <BR> <HR> <BR><A class=hnav href="/about.html.de">Impressum</A><BR><A class=hnav href="mailto:dre...@in...">Feedback</A><BR> #if ($!userLogin != "anonymous") <P><A class=hnav href="/admin/index.html.de">Admin</A><BR> #else #end <IMG src="/images/spacer160.gif" width=130><BR></TD> |
|
From: Michael K. <ko...@us...> - 2006-09-12 12:54:18
|
Update of /cvsroot/cobricks/drehscheibe-in/web/doku In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22164/doku Added Files: navigation.html.de Log Message: --- NEW FILE: navigation.html.de --- <TD vAlign=top width=150 bgColor=#e0e0e0 > <BR><A class=hnav href="/index.html.de"><B>HOME</B></A><BR> <A class=sub href="/schulportal/index.html.de">Schulportal</A><BR><BR><A class=hnav href="/studium/index.html.de"><B>STUDIUM</B></A><BR> <A class=sub href="http://www3.in.tum.de/studienberatung/index.html" target=_blank>Studienberatung</A><BR> <A class=sub href="http://wwwsbs.in.tum.de/internationales/" target=_blank>Internationales</A><BR> <A class=sub href="/studium/informatik/index.html.de">Informatik</A><BR> <A class=sub href="/studium/bioinformatik/index.html.de">Bioinformatik</A><BR> <A class=sub href="/studium/wirtschaftsinformatik/index.html.de">Wirtschaftsinformatik</A><BR> <A class=sub href="/studium/angewandt/index.html.de">Angewandte Informatik</A><BR> <A class=sub href="/studium/vvindex.html.de">Vorlesungen</A><BR> <A class=sub href="/studium/skripte.html.de">Skripte</A><BR><BR><A class=hnav href="/forschung/index.html.de"><B>FORSCHUNG</B></A><BR> <A class=sub href="/forschung/uebersicht.html.de">Schwerpunkte</A><BR> <A class=sub href="/forschung/projekte.html.de">Projekte</A><BR> <A class=sub href="/forschung/publikationen.html.de">Publikationen</A><BR> <A class=sub href="/info/stellen.html.de">Stellenangebote</A><BR><BR><A class=hnav href="/fakultaet/index.html.de"><B>FAKULTÄT</B></A><BR> <A class=sub href="/fakultaet/dekanat.html.de">Dekanat</A><BR> <A class=sub href="/fakultaet/lehrstuehle.html.de">Lehrstühle</A><BR> <A class=sub href="/fakultaet/professoren.html.de">Professoren</A><BR> <A class=sub href="/fakultaet/mitarbeiter.html.de">MitarbeiterInnen</A><BR> <A class=sub href="/fakultaet/fest/index.html.de">Festveranstaltungen</A><BR> <A class=sub href="/fakultaet/kolloquien/index.html.de">Kolloquium</A><BR><BR><A class=sub href="/dienste/index.html.de"><B>DIENSTE</B></A><BR> <A class=sub href="http://wwwrbg.in.tum.de/" target=_blank>Rechenbetrieb</A><BR> <A class=sub href="/dienste/bibliotheken.html.de">Bibliotheken</A><BR> <A class=sub href="/dienste/index.html.de">Servicebüros</A><BR><BR><A class=sub href="/info/index.html.de"><B>INFORMATION</B></A><BR> <A class=sub href="/fakultaet/adresse.html.de">Adresse,</A> <A class=sub href="/info/anfahrt.html.de">Anfahrt</A><BR> <A class=sub href="/info/leo.html.de">LEO, </A><A class=sub href="/info/links.html.de">Links</A><BR> <A class=sub href="/info/stellen.html.de">Jobs</A><BR><BR><A class=sub href="/alumni/index.html.de"><B>ALUMNI</B></A><BR> <A class=sub href="/alumni/adressbuch.html.de">Adressbuch</A><BR> <A class=sub href="/servlet/User_Profil?cmd=class">Jahrgangslisten</A><BR> <HR> <BR><A class=hnav href="/about.html.de">Impressum</A><BR><A class=hnav href="mailto:dre...@in...">Feedback</A><BR> #if ($!userLogin != "anonymous") <P><A class=hnav href="/admin/index.html.de">Admin</A><BR> #else #end <IMG src="/images/spacer160.gif" width=150><BR> </TD> <td valign=top> |
|
From: Michael K. <ko...@us...> - 2006-09-12 12:54:18
|
Update of /cvsroot/cobricks/drehscheibe-in/web/fakultaet In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22164/fakultaet Added Files: navigation.html.de Log Message: --- NEW FILE: navigation.html.de --- <table width ="100%" border=0 cellSpacing=1 cellPadding=15> <TD vAlign=top width=150 bgColor=#e0e0e0 > <BR><A class=hnav href="/fakultaet/index.html.de"><B>FAKULTÄT</B></A><BR> <A class=sub href="/fakultaet/garching.html.de">Standort</A><BR> <A class=sub href="/fakultaet/adresse.html.de">Adresse</A><BR> <A class=sub href="/fakultaet/dekanat.html.de">Dekanat</A><BR> <A class=sub href="/fakultaet/lehrstuehle.html.de">Lehrstühle</A><BR> <A class=sub href="/fakultaet/professoren.html.de">Professoren</A><BR> <A class=sub href="/fakultaet/mitarbeiter.html.de">MitarbeiterInnen</A><BR> <BR><A class=sub href="/fakultaet/kolloquien.html.de"><B>Veranstaltungen</B></A><BR> <A class=sub href="/fakultaet/kolloquien/index.html.de">Kolloquium</A><BR> <A href="/fakultaet/fest/index.html.de">Festveranstaltungen</A><BR> <A class=sub href="http://wwwbib.informatik.tu-muenchen.de/Fak_Schriften/" target=_blank>Fakultätsschriften</A><BR> <A class=sub href="http://wwwbib.informatik.tu-muenchen.de/Stroehlein/Auszeichnungen/auszeichnungen.html" target=_blank>Auszeichnungen</A><BR> <BR><A class=sub href="/servlet/Item_Query?cmd=queryitemsdoit&timespan=30"><B>Mitteilungen</B></A><BR> <A class=sub href="/servlet/Item_Query">Suchen</A> <HR> <BR><A class=hnav href="/about.html.de">Impressum</A><BR><A class=hnav href="mailto:dre...@in...">Feedback</A><BR> #if ($!userLogin != "anonymous") <P><A class=hnav href="/admin/index.html.de">Admin</A><BR> #else #end <IMG src="/images/spacer160.gif" width=130><BR></TD> |
|
From: Michael K. <ko...@us...> - 2006-09-12 12:54:17
|
Update of /cvsroot/cobricks/drehscheibe-in/web/alumni In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22164/alumni Added Files: navigation.html.de Log Message: --- NEW FILE: navigation.html.de --- <TD vAlign=top width=150 bgColor=#e0e0e0 > <BR><A class=navtop href="/alumni/index.html.de"><B>ALUMNI</B></A><BR><BR><A class=navtop href="/studium/skripte.html.de">Skripte</A><BR><BR><A class=navtop href="/servlet/Item_Query?cmd=queryitemsdoit&timespan=30"><B>Mitteilungen</B></A><BR><BR><A class=navtop href="/alumni/adressbuch.html.de"><B>Adressbuch</B></A><BR><BR><A class=navtop href="/servlet/User_Profil?cmd=class"><B>Jahrgangslisten</B></A><BR> <A class=navsub href="/alumni/classOf2002.html.de">Jahrgang 2002</A><BR> <A class=navsub href="/alumni/classOf2001.html.de">Jahrgang 2001</A><BR> <A class=navsub href="/alumni/classOf2000.html.de">Jahrgang 2000</A><BR> <A class=navsub href="/alumni/classOf1999.html.de">Jahrgang 1999</A><BR> <A class=navsub href="/alumni/classOf1998.html.de">Jahrgang 1998</A><BR> <A class=navsub href="/alumni/classOf1997.html.de">Jahrgang 1997</A><BR> <A class=navsub href="/alumni/classOf1996.html.de">Jahrgang 1996</A><BR><BR> <HR> <BR><A class=hnav href="/about.html.de">Impressum</A><BR><A class=hnav href="mailto:dre...@in...">Feedback</A><BR> #if ($!userLogin != "anonymous") <P><A class=hnav href="/admin/index.html.de">Admin</A><BR> #else #end <IMG src="/images/spacer160.gif" width=130><BR></TD> |