/*
 * Generated by the Jasper component of Apache Tomcat
 * Version: JspC/ApacheTomcat9
 * Generated at: 2026-06-25 07:04:01 UTC
 * Note: The last modified time of this file was set to
 *       the last modified time of the source file after
 *       generation to assist with modification tracking.
 */
package org.apache.jsp.blog.jsp;

import javax.servlet.*;
import javax.servlet.http.*;
import javax.servlet.jsp.*;
import org.silverpeas.components.blog.model.Archive;
import org.silverpeas.core.util.URLUtil;

public final class colonneDroite_jsp extends org.apache.jasper.runtime.HttpJspBase
    implements org.apache.jasper.runtime.JspSourceDependent,
                 org.apache.jasper.runtime.JspSourceImports {

  private static final javax.servlet.jsp.JspFactory _jspxFactory =
          javax.servlet.jsp.JspFactory.getDefaultFactory();

  private static java.util.Map<java.lang.String,java.lang.Long> _jspx_dependants;

  private static final java.util.Set<java.lang.String> _jspx_imports_packages;

  private static final java.util.Set<java.lang.String> _jspx_imports_classes;

  static {
    _jspx_imports_packages = new java.util.LinkedHashSet<>(4);
    _jspx_imports_packages.add("javax.servlet");
    _jspx_imports_packages.add("javax.servlet.http");
    _jspx_imports_packages.add("javax.servlet.jsp");
    _jspx_imports_classes = new java.util.LinkedHashSet<>(3);
    _jspx_imports_classes.add("org.silverpeas.components.blog.model.Archive");
    _jspx_imports_classes.add("org.silverpeas.core.util.URLUtil");
  }

  private volatile javax.el.ExpressionFactory _el_expressionfactory;
  private volatile org.apache.tomcat.InstanceManager _jsp_instancemanager;

  public java.util.Map<java.lang.String,java.lang.Long> getDependants() {
    return _jspx_dependants;
  }

  public java.util.Set<java.lang.String> getPackageImports() {
    return _jspx_imports_packages;
  }

  public java.util.Set<java.lang.String> getClassImports() {
    return _jspx_imports_classes;
  }

  public javax.el.ExpressionFactory _jsp_getExpressionFactory() {
    if (_el_expressionfactory == null) {
      synchronized (this) {
        if (_el_expressionfactory == null) {
          _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext()).getExpressionFactory();
        }
      }
    }
    return _el_expressionfactory;
  }

  public org.apache.tomcat.InstanceManager _jsp_getInstanceManager() {
    if (_jsp_instancemanager == null) {
      synchronized (this) {
        if (_jsp_instancemanager == null) {
          _jsp_instancemanager = org.apache.jasper.runtime.InstanceManagerFactory.getInstanceManager(getServletConfig());
        }
      }
    }
    return _jsp_instancemanager;
  }

  public void _jspInit() {
  }

  public void _jspDestroy() {
  }

  public void _jspService(final javax.servlet.http.HttpServletRequest request, final javax.servlet.http.HttpServletResponse response)
      throws java.io.IOException, javax.servlet.ServletException {

    if (!javax.servlet.DispatcherType.ERROR.equals(request.getDispatcherType())) {
      final java.lang.String _jspx_method = request.getMethod();
      if ("OPTIONS".equals(_jspx_method)) {
        response.setHeader("Allow","GET, HEAD, POST, OPTIONS");
        return;
      }
      if (!"GET".equals(_jspx_method) && !"POST".equals(_jspx_method) && !"HEAD".equals(_jspx_method)) {
        response.setHeader("Allow","GET, HEAD, POST, OPTIONS");
        response.sendError(HttpServletResponse.SC_METHOD_NOT_ALLOWED, "JSPs only permit GET, POST or HEAD. Jasper also permits OPTIONS");
        return;
      }
    }

    final javax.servlet.jsp.PageContext pageContext;
    javax.servlet.http.HttpSession session = null;
    final javax.servlet.ServletContext application;
    final javax.servlet.ServletConfig config;
    javax.servlet.jsp.JspWriter out = null;
    final java.lang.Object page = this;
    javax.servlet.jsp.JspWriter _jspx_out = null;
    javax.servlet.jsp.PageContext _jspx_page_context = null;


    try {
      response.setContentType("text/html");
      pageContext = _jspxFactory.getPageContext(this, request, response,
      			null, true, 8192, true);
      _jspx_page_context = pageContext;
      application = pageContext.getServletContext();
      config = pageContext.getServletConfig();
      session = pageContext.getSession();
      out = pageContext.getOut();
      _jspx_out = out;

      out.write('\n');
      out.write('\n');

Button searchButton = gef.getFormButton(" OK ", "javascript:onClick=search();", false);

      out.write("\n<script type=\"text/javascript\">\n	function selectDay(day) {\n		location.href = \"PostByDay?Day=\"+day;\n	}\n\n	function gotoPreviousMonth() {\n		location.href = \"PreviousMonth\";\n	}\n\n	function gotoNextMonth() {\n		location.href = \"NextMonth\";\n	}\n	\n	function search() {\n		document.searchForm.action = \"Search\";\n		document.searchForm.submit();\n	}\n</script>\n\n  \n<div id=\"zoneRecherche\" class=\"bgDegradeGris\">\n	<div id=\"titreRecherche\" class=\"bgDegradeGris header\">\n	    <h4>");
      out.print(resource.getString("GML.search"));
      out.write("</h4>\n   </div>\n   <form name=\"searchForm\" action=\"Search\" method=\"post\">\n		<input type=\"text\" name=\"WordSearch\" class=\"inputRecherche\"/>\n		");

		ButtonPane buttonPane = gef.getButtonPane();
		buttonPane.addButton(searchButton);
		out.print(buttonPane.print());
		
      out.write("\n	</form>\n</div>\n\n<div id=\"operationBlog\">\n</div>\n\n<view:areaOfOperationOfCreation/>\n	\n<div id=\"topics\" class=\"bgDegradeGris\">\n	<div id=\"titreTopics\" class=\"bgDegradeGris  header\">\n		<h4 class=\"clean\">\n			");

			  if (SilverpeasRole.ADMIN.equals(SilverpeasRole.fromString(profile))) {
				out.println("<a href=\"ViewCategory\">"+resource.getString("GML.categories")+"</a>");
			  }
			  else {
				out.println(resource.getString("GML.categories"));
			  }
			
      out.write("\n		</h4>\n	</div>\n	\n	");
 if (categories != null) { 
      out.write("\n			<ul>\n			");
 for (NodeDetail uneCategory : categories) { 
      out.write("\n					<li><a title=\"");
      out.print(uneCategory.getDescription());
      out.write("\" href=\"");
      out.print("PostByCategory?CategoryId=" + uneCategory.getNodePK().getId());
      out.write('"');
      out.write('>');
      out.print(uneCategory.getName());
      out.write("</a></li>\n			");
 } 
      out.write("\n			</ul>\n	");
 } 
      out.write("\n</div>\n\n\n	\n<div id=\"archives\" class=\"bgDegradeGris\" >\n		<div id=\"titreArchive\" class=\"bgDegradeGris header\">\n			<h4 class=\"clean\">");
      out.print(resource.getString("blog.archives"));
      out.write("</h4>\n		</div>\n	\n	   ");
 if (archives != null) { 
      out.write("\n			<ul>\n			");
 for (Archive uneArchive : archives) { 
      out.write("\n					<li><a href=\"");
      out.print("PostByArchive?BeginDate=" + uneArchive.getBeginDate() + "&amp;EndDate=" + uneArchive.getEndDate());
      out.write('"');
      out.write('>');
      out.print(resource.getString("GML.mois"+uneArchive.getMonthId()));
      out.write(' ');
      out.print(uneArchive.getYear());
      out.write("</a></li>\n			");
 } 
      out.write("\n			</ul>\n		");
 } 
      out.write("\n	</div>\n	<div id=\"calendar\" class=\"bgDegradeGris\">\n	   ");

			Calendar calendar = gef.getCalendar(m_context+"/agenda/jsp/", resource.getLanguage(), dateCalendar);
			calendar.setEmptyDayNonSelectable(true);
			calendar.setEvents(events);
		
      out.write('\n');
      out.write('	');
      out.write('	');
      out.print(calendar.print());
      out.write("\n</div>\n	<div id=\"liens\" class=\"bgDegradeGris\">\n		<div id=\"titreLiens\" class=\"bgDegradeGris  header\"> \n			<h4 class=\"clean\">\n				");

				if (SilverpeasRole.ADMIN.equals(SilverpeasRole.fromString(profile))) {
					String url = m_context + blogUrl + "Main";
						String lien = m_context + URLUtil.getURL(URLUtil.CMP_MYLINKSPEAS) + "ComponentLinks?InstanceId="+ instanceId + "&amp;UrlReturn=" + url;
						out.println("<a href=\""+lien+"\">"+resource.getString("blog.links")+"</a>");
				}
				else {
					out.println(resource.getString("blog.links"));
				}
				
      out.write("\n			</h4>\n		</div>\n	\n	   ");
 if (links != null)  { 
      out.write("\n			<ul>\n			");

		    for (LinkDetail unLink : links) {
		      	String nameLink = unLink.getName();
		      	if (nameLink.equals("")) {
		      	   nameLink = unLink.getUrl();
		      	}
		      	String lien = unLink.getUrl();
		      	String description = unLink.getDescription();
		      	if (lien.indexOf("://") == -1) {
					lien = m_context + lien;
				}
		      	String target = "";
		      	if (unLink.isPopup())
		      	   target = "target=\"_blank\"";
		      	
      out.write("\n		        <li><a title=\"");
      out.print(description);
      out.write("\" href=\"");
      out.print(lien);
      out.write('"');
      out.write(' ');
      out.print(target);
      out.write('>');
      out.print(WebEncodeHelper.javaStringToHtmlString(nameLink));
      out.write("</a></li>\n		        ");

			}
			
			
      out.write("\n			</ul>\n		");
 } 
      out.write("\n  </div>\n	\n	");
 if (StringUtil.isDefined(rssURL)) { 
      out.write("\n	   <div class=\"separateur\"><hr /></div>\n	   <a href=\"");
      out.print(m_context+rssURL);
      out.write("\"><img src=\"");
      out.print(m_context+"/util/icons/rss.gif" );
      out.write("\" border=\"0\" alt=\"rss\"/></a>\n	");
 } 
      out.write("\n<c:if test=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${post != null}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null));
      out.write("\">\n  <view:pdcClassificationPreview componentId=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${post.componentInstanceId}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null));
      out.write("\" contentId=\"");
      out.write((java.lang.String) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate("${post.id}", java.lang.String.class, (javax.servlet.jsp.PageContext)_jspx_page_context, null));
      out.write("\" />\n</c:if>\n\n");
    } catch (java.lang.Throwable t) {
      if (!(t instanceof javax.servlet.jsp.SkipPageException)){
        out = _jspx_out;
        if (out != null && out.getBufferSize() != 0)
          try {
            if (response.isCommitted()) {
              out.flush();
            } else {
              out.clearBuffer();
            }
          } catch (java.io.IOException e) {}
        if (_jspx_page_context != null) _jspx_page_context.handlePageException(t);
        else throw new ServletException(t);
      }
    } finally {
      _jspxFactory.releasePageContext(_jspx_page_context);
    }
  }
}
