<%@ page import="de.gauss.lang.DateValue, de.gauss.lang.IntegerValue, de.gauss.lang.KeySort, de.gauss.lang.StringValue, de.gauss.lang.Value, de.gauss.util.MultiProperties, de.gauss.vip.api.admin.*, de.gauss.vip.api.object.*, de.gauss.vip.api.lang.*, de.gauss.vip.application.Application, de.gauss.vip.application.ApplicationImpl, de.gauss.vip.i18n.Internationalization, de.gauss.vip.portalmanager.ContentHandler, de.gauss.vip.portalmanager.ContentHandlerBean, de.gauss.vip.portalmanager.converter.HTMLContentConverter, de.gauss.vip.portalmanager.converter.XmlContentConverter, de.gauss.vip.portalmanager.VipProfile, de.gauss.vip.portalmanager.VipUserBean, de.gauss.vip.portalmanager.VipObjectBean, de.gauss.vip.repository.RepositoryEntry, de.gauss.vip.repository.RepositoryEntryIterator, de.gauss.vip.repository.RepositoryIterator, de.gauss.vip.repository.RepositoryMap, de.gauss.vip.repository.VipObjectRepository, de.gauss.vip.security.VipAclValue, de.gauss.vip.util.forms.FormData, java.text.*, java.util.*, java.util.Date, javax.mail.*, javax.mail.internet.InternetAddress, javax.mail.internet.MimeMessage, javax.servlet.http.Cookie, de.axel.colorSchemes.csBean" %> <% long render_start = (new Date()).getTime(); // before anything else: set expiry header // one hour ago //response.setDateHeader("Expires", (long)(System.currentTimeMillis() - (long)(60 * 60 * 1000)) ); //response.setHeader("Pragma", "no-cache"); //response.setHeader("Cache-Control", "no-cache, must-revalidate"); %> <% // Initialisieren des Beans vipObjectBean.init(request); vipObjectBean.setRepositoryName("Amthor2"); vipSessionBean.init(request); vipObjectBean.setRepositoryName("Amthor2"); vipObjectBean.addDefaultAttribute("category"); vipObjectBean.addDefaultAttribute("von"); vipObjectBean.addDefaultAttribute("bis"); vipObjectBean.addDefaultAttribute("type"); vipObjectBean.addDefaultAttribute("nopublish"); vipObjectBean.addDefaultAttribute("description"); // Eigenen Eintrag über die eigene OID holen RepositoryEntry mySelf = null; mySelf = vipObjectBean.getEntry("1324"); String title = ""; String subtitle = ""; String description = ""; if ( mySelf != null ) { title = mySelf.getValue("title") != null ? mySelf.getValue("title").toString() : "" ; subtitle = mySelf.getValue("subtitle") != null ? mySelf.getValue("subtitle").toString() : "" ; description = mySelf.getValue("description") != null ? mySelf.getValue("description").toString() : "" ; } %> <%=title%> <%! public VipObjectBean vob = null; public String getAttr(RepositoryEntry e, String a) { if ( e != null ) { if ( e.getValue(a) != null ) { return e.getValue(a).toString(); } } return null; } public boolean isHtmlType(RepositoryEntry re) { if (vob != null && re != null ) { try { ObjectData od = vob.get(new StringValue(re.getValue("oid").toString())); ObjectType ot = od.getObjectType(); return ot.isHyperLinkable(); } catch ( de.gauss.vip.api.exception.VipApiException vae ) { return false; } catch ( de.gauss.base.exception.ExpandableException ea ) { return false; } } return false; } %> <% // !! vob = vipObjectBean; String bulleturl = /*VIPURL*/"../Grafiken/poebul3a.gif"; // ********************************************************************************** // Fake OID, mainly for download of binary files: String myOid = "1324"; String fakeOid = request.getParameter("oid"); boolean faked = false; // if the page gets an OID Parameter, we take this as the Navigation Point! if ( fakeOid != null && vipObjectBean.getEntry(fakeOid) != null ) { myOid = fakeOid; faked = true; } // End Fake OID // ********************************************************************************** // ********************************************************************************** // Load Color Scheme: String scScheme = null; // check for new color scheme to be set scScheme = request.getParameter("scheme"); if ( scScheme == null || scScheme.equals("") ) { // retrieve Colorscheme from session scScheme = (String)session.getAttribute("scheme"); } if ( scScheme == null || scScheme.equals("") ) { // get default scheme from file definition scScheme = cs.getDefaultColorScheme(); } session.setAttribute("scheme", scScheme); // set this scheme to the current (default) scheme cs.setDefaultColorScheme(scScheme); // retrieve values for defined scheme String ColorBackground = cs.getColorDefinition("ColorBackground"); String ColorForeground = cs.getColorDefinition("ColorForeground"); String ColorCopyright = cs.getColorDefinition("ColorCopyright"); String ColorLink = cs.getColorDefinition("ColorLink"); String ColorCurrentBg = cs.getColorDefinition("ColorCurrentBg"); String ColorCurrentHv = cs.getColorDefinition("ColorCurrentHv"); String ColorTBorder = cs.getColorDefinition("ColorTBorder"); String ColorTBg = cs.getColorDefinition("ColorTBg"); String MenuBg = cs.getColorDefinition("MenuBg"); String ContentBg = cs.getColorDefinition("ContentBg"); String OlFgColor = cs.getColorDefinition("OlFgColor"); String OlBorderColor = cs.getColorDefinition("OlBorderColor"); String OlTextColor = cs.getColorDefinition("OlTextColor"); String SchemeName = cs.getColorDefinition("SchemeName"); // End Color Scheme // ********************************************************************************** %> <%@page import="java.lang.Integer, de.gauss.vip.portalmanager.repository.* de.gauss.vip.api.object.FieldNames, java.util.*, java.text.DateFormat, java.text.SimpleDateFormat" %> <% vipObjectHandlerBean.init( request ); vipObjectHandlerBean.setRepositoryName("Amthor2"); vipObjectBean.addDefaultAttribute("target_group"); VipProfile vp = vipSessionBean.getCurrentUserProfile(request); String uid = ""; String uName = ""; String uNameMessg = " "; if ( vp != null ) { uid = vp.getUid(); uName = vp.getUserName(); uNameMessg = "Abmelden: " + uName; } if ( uid == null || uid.equals("Anonymous") ) { uid = ""; uName = ""; uNameMessg = " "; } %>
<% // Rootnavigation, top Navigation Bar RepositoryEntry rootEntry = vipObjectBean.getEntry("1"); RepositoryIterator rootNav = rootEntry != null ? vipObjectBean.getSubElements(rootEntry, "TOPIC,JSPTOPIC,FRAMETOPIC", new KeySort( "title", KeySort.ASCENDING ) ) : null; { int i = 0; while ( rootNav != null && rootNav.hasNext() && i < 5 ) // max 5 ! { RepositoryEntry navItem = rootNav.nextEntry(); i++; if ( i > 1 ) { %> <% } String navTitle = getAttr(navItem,"title") ; String url = vipObjectBean.getUrl(navItem); String subTitle = getAttr(navItem, "subtitle"); %> <% } } // /Rootnavigation, top Navigation Bar %>
<%=navTitle%>

<% RepositoryEntry myEntry = vipObjectBean.getEntry(myOid); boolean isTopic = false; String mySubTitle = myEntry!= null ? getAttr(myEntry, "subtitle") : "WebCam im Garten"; // due to the   crap in 8.01 String myDescription = myEntry!= null ? getAttr(myEntry, "description") : ""; String myCategory = myEntry!= null ? getAttr(myEntry, "category") : "-"; ObjectType myOt = myEntry!= null ? (ObjectType)myEntry.getValue("type") : null; String myObjectType = myOt != null ? myOt.getName() : "JSP-Seite"; boolean calendar = myCategory != null ? myCategory.trim().equalsIgnoreCase("calendar") : false; String calHint = "Diese Seite enthält einen Kalendereintrag. Schau einfach mal auf unserem Kalender nach:"; if ( calendar ) { String TimeFrom = getAttr(myEntry, "von"); String TimeUntil = getAttr(myEntry, "bis"); Date wnDate; SimpleDateFormat df = new SimpleDateFormat ("yyyy-MM-dd hh:mm:ss.S"); SimpleDateFormat dateFormatter = new SimpleDateFormat ("EEE, d. MMM, yyyy", new Locale(Locale.GERMAN.getLanguage(), Locale.GERMANY.getCountry()) ); String fromD = ""; String untilD = ""; try { wnDate = df.parse(TimeFrom); fromD = dateFormatter.format(wnDate); } catch ( java.text.ParseException pe ) { ; // ignore } try { wnDate = df.parse(TimeUntil); untilD = dateFormatter.format(wnDate); } catch ( java.text.ParseException pe ) { ; // ignore } calHint += "
" + fromD + " - " + untilD + "."; } if ( myEntry != null && vipObjectBean.isTopic(myEntry) ) isTopic = true; RepositoryEntry myTopic = myEntry != null ? vipObjectBean.getParentTopic(myEntry) : rootEntry; if ( myTopic == null ) myTopic = rootEntry; String myTopicTitle = getAttr(myTopic,"title"); String myTopicSubTitle = getAttr(myTopic,"subtitle"); String myTopicUrl = vipObjectBean.getUrl(myTopic); String myTopicOid = getAttr(myTopic, "oid"); String linkClass = ""; String currentLinkClass = "class=\"current\""; String navLinkClass = "class=\"nav\""; String NavObjTypes = "HTML,JSP,TOPIC,JSPTOPIC,DOC,PPT,XLS,PDF,FRAMETOPIC,ExternalLink"; if ( myOid.equals(myTopicOid) ) linkClass = currentLinkClass; else linkClass = navLinkClass; %> <% // Left Navigation Box RepositoryIterator currentNav = myTopic != null ? vipObjectBean.getSubElements(myTopic, NavObjTypes, new KeySort( "title", KeySort.ASCENDING ) ) : null; { int i = 0; while ( currentNav != null && currentNav.hasNext() ) { RepositoryEntry navItem = currentNav.nextEntry(); String navTitle = getAttr(navItem,"title") ; String navOid = getAttr(navItem, "oid"); String np = getAttr(navItem, "nopublish"); String url = ""; if ( "1".equals(np) || "YES".equals(np) || "yes".equals(np) || "Yes".equals(np) || "JA".equals(np) || "ja".equals(np) || "Ja".equals(np) ) continue; i++; if ( isHtmlType(navItem) ) { url = vipObjectBean.getUrl(navItem); } else { url = /*VIPURL*/"../SiteFunctions/dlproxy.jsp"; url += "?oid=" + navOid; } String subTitle = getAttr(navItem, "subtitle"); if ( myOid.equals(navOid) ) linkClass = currentLinkClass; else linkClass = navLinkClass; %> <% if ( vipObjectBean.isTopic(navItem) ) { RepositoryIterator subNav = vipObjectBean.getSubElements(navItem, NavObjTypes, new KeySort( "title", KeySort.ASCENDING ) ); while ( subNav != null && subNav.hasNext() ) { RepositoryEntry subItem = subNav.nextEntry(); String navTitleSub = getAttr(subItem,"title") ; String navOidSub = getAttr(subItem, "oid"); np = getAttr(subItem, "nopublish"); String urlSub = ""; if ( "1".equals(np) || "YES".equals(np) || "yes".equals(np) || "Yes".equals(np) || "JA".equals(np) || "ja".equals(np) || "Ja".equals(np) ) continue; if ( isHtmlType(subItem) ) { urlSub = vipObjectBean.getUrl(subItem); } else { urlSub = /*VIPURL*/"../SiteFunctions/dlproxy.jsp"; urlSub += "?oid=" + navOidSub; } String subTitleSub = getAttr(subItem, "subtitle"); if ( myOid.equals(navOidSub) ) linkClass = currentLinkClass; else linkClass = navLinkClass; %> <% } } } } %>
Farbschema
<% String sourceContent = ""; // bannerBean.getNextRandomBannerContent(pageContext, "Amthor2", "707"); %>
Anmelden
Kennung
Passwort
<%=uNameMessg%>
Seite versenden
E-Mail
Von

<% if ( isTopic ) { %>
<% // no spaces or newlines over here !! if ( calendar ) {%> <% } // The VIP Tags will not work with faked object ID if ( myObjectType.equalsIgnoreCase("ExternalLink") ) { %>

Link: WebCam im Garten

<%=mySubTitle%> " target="_new" onmouseover="return overlib('<%=getAttr(myEntry, "externalurl")%>');" onmouseout="return nd();">

<% } else { %>

<%=isTopic && !myOid.equals("1") ? "Thema: " : ""%><%=mySubTitle%>

<%=myDescription != null ? myDescription : ""%>

<% } // -- Check Access to the page if ( ! vipObjectBean.isOnlineReadable( new StringValue(myOid) ) ) { %>

 


Kein Zugriff auf dieses Dokument.

Bitte erst mit gültiger Benutzerkennung und Passwort anmelden.


<% } else { %>

Aktuelles Bild der Garden-Cam

<% }%>
[Letzte Änderung: 20.05.2013 09:55:22 ]

 

<% boolean start = false; RepositoryIterator myChildren = vipObjectBean.getSubElements(myEntry, NavObjTypes, new KeySort( "title", KeySort.ASCENDING ) ); while ( myChildren != null && myChildren.hasNext() ) { if ( !start ) { %>

Inhaltsverzeichnis:

    <% } start = true; RepositoryEntry anItem = myChildren.nextEntry(); String aTitle = getAttr(anItem,"title") ; String aUrl = ""; if ( isHtmlType(anItem) ) { aUrl = vipObjectBean.getUrl(anItem); } else { aUrl = /*VIPURL*/"../SiteFunctions/dlproxy.jsp"; aUrl += "?oid=" + getAttr(anItem, "oid"); } String aSubTitle = getAttr(anItem, "subtitle"); %>
  • <%=aTitle%>
    <%=aSubTitle%> mehr...
  • <% } if ( start ) { %>
<% } } %>

 

   

<% /*=etracker.getCode("18638",title,"Amthor",false)*/ %>
<% long render_end = (new Date()).getTime(); long render_sec = ( render_end - render_start ); %>