anchor.diff:  %>
   <%@ page import="java.net.URLEncoder" %>
   
  -<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
  +<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
   <%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
  +<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
  +<%@ taglib uri="admin" prefix="admin" %>
   <jsp:useBean id="webManager" class="org.jivesoftware.util.WebManager" />
   <% webManager.init(request, response, session, application, out ); %>
   
  
positive.code:         response.sendRedirect("muc-default-settings.jsp?success=true&mucname="+URLEncoder.encode(mucname, "UTF-8"));
          return;
      }
  %>
  
  <html>
  <head>
  <title><fmt:message key="muc.default.settings.title"/></title>
  <meta name="subPageID" content="muc-defaultsettings"/>
  <meta name="extraParams" content="<%= "mucname="+URLEncoder.encode(mucname, "UTF-8") %>"/>
  <meta name="helpPage" content="set_group_chat_room_creation_permissions.html"/>
  </head>
  <body>
  
  <p>
  <fmt:message key="muc.default.settings.info" />
  <fmt:message key="groupchat.service.settings_affect" /> <b><a href="muc-service-edit-form.jsp?mucname=<%= URLEncoder.encode(mucname, "UTF-8") %>"><%= StringUtils.escapeHTMLTags(mucname) %></a></b>
  </p>
  
  <%  if (errors.size() > 0) { %>
  
      <div class="jive-error">
      <table cellpadding="0" cellspacing="0" border="0">
      <tbody>
          <tr><td class="jive-icon"><img src="images/error-16x16.gif" width="16" height="16" border="0" alt=""></td>
          <td class="jive-icon-label">
          <% if (errors.get("csrf") != null) { %>
              <fmt:message key="global.csrf.failed" />
          <% } else {  %>
              <fmt:message key="muc.default.settings.error" />
          <% } %>
          </td></tr>
      </tbody>
      </table>
      </div><br>
  
  <%  } else if (success) { %>
  
      <div class="jive-success">
      <table cellpadding="0" cellspacing="0" border="0">
      <tbody>
          <tr><td class="jive-icon"><img src="images/success-16x16.gif" width="16" height="16" border="0" alt=""></td>
          <td class="jive-icon-label">
              <fmt:message key="muc.default.settings.update" />
          </td></tr>
      </tbody>
      </table>
      </div><br>
  
  <%  } %>
  
  <!-- BEGIN 'Default Room Settings' -->
  <form action="muc-default-settings.jsp?save" method="post">
      <input type="hidden" name="csrf" value="${csrf}">
      <input type="hidden" name="mucname" value="<%= StringUtils.escapeForXML(mucname) %>" />
      <div class="jive-contentBoxHeader">
          <fmt:message key="muc.default.settings.title" />
      </div>
      <div class="jive-contentBox">
          <table cellpadding="3" cellspacing="0" border="0">
          <tbody>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_publicroom" value="true" id="publicRoom" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.publicRoom", true)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="publicRoom"><fmt:message key="muc.default.settings.public_room" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_persistentroom" value="true" id="persistentRoom" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.persistent", false)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="persistentRoom"><fmt:message key="muc.default.settings.persistent_room" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_moderatedroom" value="true" id="moderated" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.moderated", false)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="moderated"><fmt:message key="muc.default.settings.moderated" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_membersonly" value="true" id="membersOnly" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.membersOnly", false)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="membersOnly"><fmt:message key="muc.default.settings.members_only" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_nonanonymous" value="true" id="nonanonymous" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.canAnyoneDiscoverJID", true)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="nonanonymous"><fmt:message key="muc.default.settings.can_anyone_discover_jid" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_allowinvites" value="true" id="allowInvites" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.canOccupantsInvite", false)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="allowInvites"><fmt:message key="muc.default.settings.allow_invites" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_changesubject" value="true" id="changeSubject" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.canOccupantsChangeSubject", false)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="changeSubject"><fmt:message key="muc.default.settings.change_subject" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_reservednick" value="true" id="reservedNick" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.loginRestrictedToNickname", false)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="reservedNick"><fmt:message key="muc.default.settings.reserved_nick" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_canchangenick" value="true" id="canChangeNick" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.canChangeNickname", true)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="canChangeNick"><fmt:message key="muc.default.settings.can_change_nick" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_registration" value="true" id="registration" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.registrationEnabled", true)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="registration"><fmt:message key="muc.default.settings.registration" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_enablelogging" value="true" id="enableLogging" type="checkbox"
                      <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.logEnabled", true)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="enableLogging"><fmt:message key="muc.default.settings.enable_logging" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      &nbsp;
                  </td>
                  <td width="99%">
                      <label for="roomconfig_maxusers"><fmt:message key="muc.default.settings.max_users" />:</label>
                      &nbsp;
                      <input type="number" name="roomconfig_maxusers" id="roomconfig_maxusers" min="1" value="<%= MUCPersistenceManager.getIntProperty(mucname, "room.maxUsers", 30) == 0  ? "" : MUCPersistenceManager.getIntProperty(mucname, "room.maxUsers", 30)%>" size="5">
                      <fmt:message key="muc.room.edit.form.empty_nolimit" />
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_broadcastmoderator" value="true" id="broadcastModerator" type="checkbox"
                          <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.broadcastModerator", true)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="broadcastModerator"><fmt:message key="muc.default.settings.broadcast_presence_moderator" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_broadcastparticipant" value="true" id="broadcastParticipant" type="checkbox"
                          <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.broadcastParticipant", true)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="broadcastParticipant"><fmt:message key="muc.default.settings.broadcast_presence_participant" /></label>
                  </td>
              </tr>
              <tr>
                  <td width="1%">
                      <input name="roomconfig_broadcastvisitor" value="true" id="broadcastVisitor" type="checkbox"
                          <%= ((MUCPersistenceManager.getBooleanProperty(mucname, "room.broadcastVisitor", true)) ? "checked" : "") %>>
                  </td>
                  <td width="99%">
                      <label for="broadcastVisitor"><fmt:message key="muc.default.settings.broadcast_presence_visitor" /></label>
                  </td>
              </tr>
              <tr>
                  <td>
  
negative.code:                 </td>
                  <td><label for="allowpm"><fmt:message key="muc.default.settings.allowpm" /></label>
                      <select name="roomconfig_allowpm" id="allowpm">
                          <option value="none" ${allowpm eq 'none' ? 'selected' : ''}><fmt:message key="muc.default.settings.none" /></option>
                          <option value="moderators" ${allowpm eq 'moderators' ? 'selected' : ''}><fmt:message key="muc.default.settings.moderator" /></option>
                          <option value="participants" ${allowpm eq 'participants' ? 'selected' : ''}><fmt:message key="muc.default.settings.participant" /></option>
                          <option value="anyone" ${allowpm eq 'anyone' ? 'selected' : ''}><fmt:message key="muc.default.settings.anyone" /></option>
                      </select>
                  </td>
              </tr>
          </tbody>
          </table>
      </admin:contentBox>
      <input type="submit" value="<fmt:message key="global.save_settings" />">
  
      </form>
      <!-- END 'Default Room Settings' -->
  
  </body>
  </html>
  