head	1.9;
access;
symbols
	TIGRIS_1_1_0RC2:1.5
	TIGRIS_1_1_0RC1:1.5
	TIGRIS_1_1:1.5.0.4
	TIGRIS_1_0_8:1.5
	TIGRIS_1_0_8RC3:1.5
	TIGRIS_1_0_8RC2:1.5
	TIGRIS_1_0_8RC1:1.5
	TIGRIS_1_0_7:1.5
	TIGRIS_1_0_7RC3:1.5
	TIGRIS_1_0_7RC2:1.5
	TIGRIS_1_0_7RC1:1.5
	TIGRIS_1_0_6:1.5
	TIGRIS_1_0_6RC5:1.5
	TIGRIS_1_0_6RC4:1.5
	TIGRIS_1_0_6RC3:1.5
	TIGRIS_1_0_6RC2:1.5
	TIGRIS_1_0_6RC1:1.5
	TIGRIS_1_0_5:1.5
	TIGRIS_1_0_5RC6:1.5
	TIGRIS_1_0_5RC5:1.5
	TIGRIS_1_0_5RC4:1.5
	TIGRIS_1_0_5RC3:1.5
	TIGRIS_1_0_5RC2:1.5
	TIGRIS_1_0_5RC1:1.5
	TIGRIS_1_0_4:1.5
	TIGRIS_1_0_3:1.5
	TIGRIS_1_0_2:1.5
	TIGRIS_1_0_1:1.5
	TIGRIS_1_0:1.5.0.6
	TIGRIS_1_0_0:1.5
	TIGRIS_1_0_0_RC1:1.5.0.2
	dlr:1.1.1
	HELM_PEER_PORT_BRANCH:1.1.1.1;
locks; strict;
comment	@# @;


1.9
date	2001.05.23.02.04.15;	author dlr;	state dead;
branches;
next	1.8;

1.8
date	2001.05.23.01.22.13;	author ms;	state Exp;
branches;
next	1.7;

1.7
date	2001.03.29.23.45.02;	author susank;	state Exp;
branches;
next	1.6;

1.6
date	2001.03.29.22.30.20;	author elicia;	state Exp;
branches;
next	1.5;

1.5
date	2001.03.14.00.41.10;	author elicia;	state Exp;
branches;
next	1.4;

1.4
date	2001.03.05.19.34.25;	author elicia;	state Exp;
branches;
next	1.3;

1.3
date	2001.02.26.22.27.28;	author elicia;	state Exp;
branches;
next	1.2;

1.2
date	2001.02.21.01.08.31;	author dlr;	state Exp;
branches;
next	1.1;

1.1
date	2001.02.06.20.06.43;	author elicia;	state Exp;
branches
	1.1.1.1
	1.1.2.1;
next	;

1.1.1.1
date	2001.02.21.00.36.59;	author dlr;	state Exp;
branches;
next	;

1.1.2.1
date	2001.02.16.22.48.26;	author elicia;	state Exp;
branches;
next	;


desc
@@


1.9
log
@Removed WM templates in favor of Velocity templates.
@
text
@<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
  <TR>
    <TD class="Header" nowrap><b>Add News Item Advanced Options:</b> <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN>
    <P><SPAN class="StatText">$headline</TD>
  </TR>
</TABLE>

<P>
<FORM ACTION="$servletName" METHOD="POST" ENCTYPE="application/x-www-form-urlencoded">
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="3" BORDER="0" WIDTH="100%">
  <TR>
    <TD></TD>
    <TD WIDTH="210" class="InputHeader" VALIGN="TOP">
      <B>Publish:</B>
    </TD>
    <TD WIDTH="100%" VALIGN="TOP" class="PlainText">
## Set date defaults as current date
## In case of error, set to user-entered values
## If they had selected "immediately", default to today's date
#if (($publish.equals("immediately")) || (!$errors))
{
  #set $defaultMonth = $current_month
  #set $defaultDay = $current_day
  #set $defaultYear = $current_year
} #else {
  #set $defaultMonth = $publish_month
  #set $defaultDay = $publish_day
  #set $defaultYear = $publish_year
}
         #if (($publish.equals("immediately")) || (!$errors))
         {
           <INPUT name="publish" type="radio" value="immediately" CHECKED >Immediately&nbsp;
           <BR>
           <INPUT name="publish" type="radio" value="date">On date:
      } #else {
           <INPUT name="publish" type="radio" value="immediately">Immediately&nbsp;
           <BR>
           <INPUT name="publish" type="radio" value="date" CHECKED>On date:
      }
      <SELECT name = "publish_month">
      #parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectMonth.wm"
      </SELECT>
      &nbsp;
      <SELECT name="publish_day">
      #parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectDay.wm"
      </SELECT>
#if ($isDecember)
{
      &nbsp;
      <SELECT name="publish_year">
      #parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectYear.wm"
      </SELECT>
}
          </TD>
  </TR>


  <TR>
    <TD></TD>
    <TD class="InputHeader" VALIGN="TOP">
      <B>Remove:</B>
    </TD>
    <TD WIDTH="100%" VALIGN="TOP" class="PlainText">
## Set date defaults as current date plus a month
## In case of error, set to user-entered values
## If they had selected "never", default to one month from now
#if (($remove.equals("never")) || (!$errors))
{
  #set $defaultMonth = $default_remove_month
  #set $defaultDay = $current_day
  #set $defaultYear = $current_year
} #else {
  #set $defaultMonth = $remove_month
  #set $defaultDay = $remove_day
  #set $defaultYear = $remove_year
}
         #if (($remove.equals("never")) || (!$errors))
         {
           <INPUT name="remove" type="radio" value="never" CHECKED >Never&nbsp;
           <BR>
           <INPUT name="remove" type="radio" value="date">On date:
         } #else {
           <INPUT name="remove" type="radio" value="never" >Never&nbsp;
           <BR>
           <INPUT name="remove" type="radio" value="date" CHECKED>On date:
         }
      <SELECT name = "remove_month">
      #parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectMonth.wm"
      </SELECT>
      &nbsp;
      <SELECT name="remove_day">
      #parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectDay.wm"
      </SELECT>
      &nbsp;
      <SELECT name="remove_year">
      #parse "$SANDBOX;/helm/templates/org/tigris/helm/project/SelectYear.wm"
      </SELECT>
          </TD>
  </TR>
  <TR>
    <TD colspan="3">&nbsp;</TD>
  </TR>
  <TR>
    <TD></TD>
    <TD>&nbsp;</TD>
    <TD WIDTH="100%" ><input type="hidden" name="newsID" value="$newsItem.getID()"><input type="Submit" name="Button" value="Add News Item"></TD>
  </TR>
</FORM>
</TABLE>


@


1.8
log
@fixed npe in year
@
text
@@


1.7
log
@merges UI cleanup changes from sc10inst
PR:
Obtained from:
Submitted by:
Reviewed by:
@
text
@d47 2
d53 1
@


1.6
log
@adjusted row spacing
@
text
@d3 1
a3 1
    <TD class="Header" nowrap>Add News Item Advanced Options: <SPAN CLASS="ProjectNameHeader"><A HREF="$currentProject.getProjectHome()">$currentProject.getName()</a></SPAN>
@


1.5
log
@handling variables different because of change in servlet to do add after advanced page
@
text
@d10 1
a10 1
<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="2" BORDER="0" WIDTH="100%">
a53 3
  <TR>
    <TD colspan="3">&nbsp;</TD>
  </TR>
@


1.4
log
@tweaked spacing, fonts, layout, etc.
@
text
@d4 1
a4 1
    <P><SPAN class="StatText">$newsItem.getEventDate() : $newsItem.getHeadline()</TD>
@


1.3
log
@removed debugging code
@
text
@d7 1
a8 1

d16 1
a16 1
    <TD WIDTH="100%" VALIGN="TOP" class="InputHeader">
d53 5
d63 1
a63 1
    <TD WIDTH="100%" VALIGN="TOP" class="InputHeader">
d101 3
d106 1
a106 1
    <TD WIDTH="100%"><input type="hidden" name="newsID" value="$newsItem.getID()"><input type="Submit" name="Button" value="Add News Item"></TD>
@


1.2
log
@This is the highest revision from the HELM_PEER_PORT_BRANCH.  The previous import caused too many conflicts to resolve manually
@
text
@a0 1
errors=$errors
@


1.1
log
@broke up add and edit into two steps (advanced options optional)
@
text
@d1 1
@


1.1.1.1
log
@Replacing the HEAD with the HELM_PEER_PORT_BRANCH.
@
text
@a0 1
errors=$errors
@


1.1.2.1
log
@ported to turbine
@
text
@a0 1
errors=$errors
@

