anchor.diff:      }
       
       function refuseDelegatedNews(pubId) {
  -    	document.listDelegatedNews.PubId.value = pubId;
  -    	$("#refuseDialog").dialog("open");
  +      document.listDelegatedNews.PubId.value = pubId;
  +      $("#refuseDialog").dialog("open");
       }
       
       function updateDateDelegatedNews(pubId, BeginDate, BeginHour, EndDate, EndHour) {
  -    	document.listDelegatedNews.PubId.value = pubId;
  -    	$("#datesDialog #BeginDate").val(BeginDate);
  -    	$("#datesDialog #BeginHour").val(BeginHour);
  -    	$("#datesDialog #EndDate").val(EndDate);
  -    	$("#datesDialog #EndHour").val(EndHour);
  -    	$("#datesDialog").dialog("open");
  +      document.listDelegatedNews.PubId.value = pubId;
  +      $("#datesDialog #BeginDate").val(BeginDate);
  +      $("#datesDialog #BeginHour").val(BeginHour);
  +      $("#datesDialog #EndDate").val(EndDate);
  +      $("#datesDialog #EndHour").val(EndHour);
  +      $("#datesDialog").dialog("open");
       }
       
       function areDatesCorrect(beginDate, beginHour, endDate, endHour, language) {
  -    	var errorMsg = "";
  +      var errorMsg = "";
           var errorNb = 0;
           var beginDateOK = true;
  -    	if (!isWhitespace(beginDate)) {
  -        	if (!isDateOK(beginDate, language)) {
  +      if (!isWhitespace(beginDate)) {
  +          if (!isDateOK(beginDate, language)) {
                    errorMsg+="  - '<fmt:message key="delegatednews.visibilityBeginDate"/>' <fmt:message key="GML.MustContainsCorrectDate"/>\n";
  -	             errorNb++;
  -    	         beginDateOK = false;
  -           	} 
  +               errorNb++;
  +               beginDateOK = false;
  +            } 
            }
            if (!checkHour(beginHour))
            {
  
positive.code:            errorNb++;
           }
           if (!isWhitespace(endDate)) {
          	 if (!isDateOK(endDate, language)) {
              	errorMsg+="  - '<fmt:message key="delegatednews.visibilityEndDate"/>' <fmt:message key="GML.MustContainsCorrectDate"/>\n";
               	errorNb++;
             	} else {
              	if (!isWhitespace(beginDate) && !isWhitespace(endDate)) {
            			if (beginDateOK && !isDate1AfterDate2(endDate, beginDate, language)) {
                  		errorMsg+="  - '<fmt:message key="delegatednews.visibilityEndDate"/>' <fmt:message key="GML.MustContainsPostOrEqualDateTo"/> "+beginDate+"\n";
                  		errorNb++;
                		}
              	} else {
                		if (isWhitespace(beginDate) && !isWhitespace(endDate)) {
              			if (!isFuture(endDate, language)) {
                    			errorMsg+="  - '<fmt:message key="delegatednews.visibilityEndDate"/>' <fmt:message key="GML.MustContainsPostDate"/>\n";
                    			errorNb++;
                  		}
                		}
              	}
             }
           }
           if (!checkHour(endHour))
  
negative.code:     arrayPane.addArrayColumn(resources.getString("delegatednews.visibilityEndDate"));
      
      boolean isAdmin = newsScc.isAdmin();
        if(isAdmin) {
        ArrayColumn arrayColumnOp = arrayPane.addArrayColumn(resources.getString("GML.operations"));
        arrayColumnOp.setSortable(false);
        arrayPane.addArrayColumn("");
      }
      
      SimpleDateFormat hourFormat = new SimpleDateFormat(resources.getString("GML.hourFormat"));
      for (int i=0; i<listNews.size(); i++) {
        DelegatedNews delegatedNews = (DelegatedNews) listNews.get(i);
        
        int pubId = delegatedNews.getPubId();
        String instanceId = delegatedNews.getInstanceId();
        ArrayLine arrayLine = arrayPane.addArrayLine();
        arrayLine.setId("delegatedNews_"+pubId);
        arrayLine.addArrayCellLink(delegatedNews.getPublicationDetail().getName(resources.getLanguage()), "javascript:onClick=openPublication('"+pubId+"', '"+instanceId+"');");
        
        String updateDate = resources.getOutputDate(delegatedNews.getPublicationDetail().getUpdateDate());
        ArrayCellText cellUpdateDate = arrayLine.addArrayCellText(updateDate);
        cellUpdateDate.setCompareOn(delegatedNews.getPublicationDetail().getUpdateDate());
        
        arrayLine.addArrayCellText(UserNameGenerator.toString(delegatedNews.getContributorId(), "unknown"));
        
        String status = delegatedNews.getStatus();
        arrayLine.addArrayCellText(resources.getString("delegatednews.status."+status));
        
        String beginDate = "";
        String beginHour = "";
        if(delegatedNews.getBeginDate() != null) {
          beginDate = resources.getInputDate(delegatedNews.getBeginDate());
          beginHour = hourFormat.format(delegatedNews.getBeginDate());
          ArrayCellText cellBeginDate = arrayLine.addArrayCellText(resources.getOutputDateAndHour(delegatedNews.getBeginDate()));
          cellBeginDate.setCompareOn(delegatedNews.getBeginDate());
        } else {
          arrayLine.addArrayCellText("");
        }
        
        String endDate = "";
        String endHour = "";
        if(delegatedNews.getEndDate() != null) {
          endDate = resources.getInputDate(delegatedNews.getEndDate());
          endHour = hourFormat.format(delegatedNews.getEndDate());
          ArrayCellText cellEndDate = arrayLine.addArrayCellText(resources.getOutputDateAndHour(delegatedNews.getEndDate()));
          cellEndDate.setCompareOn(delegatedNews.getEndDate());
        } else {
          arrayLine.addArrayCellText("");
        }
    
        if(isAdmin) {
          IconPane iconPane = gef.getIconPane();
          Icon iconUpdate = iconPane.addIcon();
          iconUpdate.setProperties(m_context+"/util/icons/update.gif", resources.getString("GML.modify"), "javascript:onClick=updateDateDelegatedNews('"+pubId+"', '"+beginDate+"', '"+beginHour+"', '"+endDate+"', '"+endHour+"');");
          
          Icon iconValidate = iconPane.addIcon();
          iconValidate.setProperties(m_context+"/util/icons/ok.gif", resources.getString("delegatednews.action.validate"), "ValidateDelegatedNews?PubId="+pubId);
          
          Icon iconRefused = iconPane.addIcon();
          iconRefused.setProperties(m_context+"/util/icons/delete.gif", resources.getString("delegatednews.action.refuse"), "javascript:onClick=refuseDelegatedNews('"+pubId+"');");
          
          arrayLine.addArrayCellIconPane(iconPane); 
          
          arrayLine.addArrayCellText("<input type=\"checkbox\" name=\"checkedDelegatedNews\" value=\""+pubId+"\"/>");
        }
    }
  
    out.print(arrayPane.print());
    %>
  