Changeset 17928
- Timestamp:
- 08/22/08 06:45:32 (3 months ago)
- Files:
-
- trunk/core/web/jsp/process/modifyPhase.jsp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/core/web/jsp/process/modifyPhase.jsp
r17766 r17928 23 23 net.project.xml.XMLFormatter, 24 24 net.project.process.ProgressReportingMethod, 25 net.project.util.DateFormat, 25 26 net.project.util.Validator" 26 27 %> … … 220 221 self.document.getElementById("phase.percentComplete").className = cssClass; 221 222 self.document.getElementById("percentcomplete").disabled = isFieldDisabled; 222 <%-- bfd-3281: Calendar image is enabled when the 223 Manually report&.this phase 224 option is not selected.--%> 223 <%-- bfd-3281: Calendar image is enabled when the Manually report&.this phase option is not selected.--%> 225 224 if(isFieldDisabled){ 226 225 self.document.getElementById("star").style.visibility ='hidden'; … … 232 231 } 233 232 else{ 234 <% java.text.SimpleDateFormat sf = new java.text.SimpleDateFormat("M/d/yy");%>233 <%DateFormat sf = DateFormat.getInstance();%> 235 234 self.document.getElementById("star").style.visibility ='visible'; 236 235 self.document.getElementById("endd").style.visibility ='visible'; 237 self.document.getElementById("startdate").value = "<%try{ out.print(sf.format (m_phase.getStart()));}catch(Exception ee){} %>";238 self.document.getElementById("enddate").value = "<% try{ out.print(sf.format (m_phase.getEnd()));}catch(Exception ee){} %>";236 self.document.getElementById("startdate").value = "<%try{ out.print(sf.formatDate(m_phase.getStart()));}catch(Exception ee){} %>"; 237 self.document.getElementById("enddate").value = "<% try{ out.print(sf.formatDate(m_phase.getEnd()));}catch(Exception ee){} %>"; 239 238 self.document.getElementById("percentcomplete").value = "<%try{ out.print(Math.round(Float.parseFloat(m_phase.getPercentComplete())));}catch(Exception ee){} %>"; 240 239 } … … 383 382 <td nowrap> 384 383 <input type="text" id="startdate" name="startdate" size="10" maxlength="10" value="<%=startDefault%>"> 385 <%-- bfd-3281: Calendar image is enabled when the 386 Manually report&.this phase 387 option is not selected.--%> 384 <%-- bfd-3281: Calendar image is enabled when the Manually report&.this phase option is not selected.--%> 388 385 <span id="star" style="visibility:hidden"> <util:insertCalendarPopup fieldName="startdate" /></span> 389 386 </td> … … 392 389 <td nowrap> 393 390 <input type="text" id="enddate" name="enddate" size="10" maxlength="10" value="<%=endDefault%>"> 394 <%-- bfd-3281: Calendar image is enabled when the 395 Manually report&.this phase 396 option is not selected.--%> 391 <%-- bfd-3281: Calendar image is enabled when the Manually report&.this phase option is not selected.--%> 397 392 <span id="endd" style="visibility:hidden"> <util:insertCalendarPopup fieldName="enddate" /></span> 398 393 </td>
