| Line 1773... |
Line 1773... |
| 1773 |
End If
|
1773 |
End If
|
| 1774 |
|
1774 |
|
| 1775 |
|
1775 |
|
| 1776 |
If SSsection = "FORM" Then
|
1776 |
If SSsection = "FORM" Then
|
| 1777 |
%>
|
1777 |
%>
|
| - |
|
1778 |
<script>
|
| - |
|
1779 |
$(document).ready(function(){
|
| - |
|
1780 |
var startDateTextBox = $('#FRinitdate');
|
| - |
|
1781 |
var endDateTextBox = $('#FRduedate');
|
| - |
|
1782 |
|
| - |
|
1783 |
$.timepicker.dateRange(
|
| - |
|
1784 |
startDateTextBox,
|
| - |
|
1785 |
endDateTextBox,
|
| - |
|
1786 |
{
|
| - |
|
1787 |
constrainInput: true,
|
| - |
|
1788 |
showOn: 'both',
|
| - |
|
1789 |
buttonImageOnly : true,
|
| 1778 |
<script language="JavaScript" src="images/calendar.js"></script>
|
1790 |
buttonImage: "images/i_calendar.gif",
|
| - |
|
1791 |
buttonText: "Select Date",
|
| - |
|
1792 |
dateFormat : "D dd-M-yy",
|
| - |
|
1793 |
maxDate : 0,
|
| - |
|
1794 |
yearRange : "1970:2099",
|
| - |
|
1795 |
changeYear : true,
|
| - |
|
1796 |
changeMonth: true,
|
| - |
|
1797 |
start: { // start picker options
|
| - |
|
1798 |
onClose : function(p1,p2){
|
| - |
|
1799 |
checkForm();
|
| - |
|
1800 |
}
|
| - |
|
1801 |
},
|
| - |
|
1802 |
end: { // end picker options
|
| - |
|
1803 |
onClose : function(p1,p2){
|
| - |
|
1804 |
checkForm();
|
| - |
|
1805 |
}
|
| - |
|
1806 |
}
|
| - |
|
1807 |
}
|
| - |
|
1808 |
);
|
| - |
|
1809 |
|
| - |
|
1810 |
// Setup the submit button
|
| - |
|
1811 |
checkForm();
|
| - |
|
1812 |
})
|
| - |
|
1813 |
|
| - |
|
1814 |
// Update the Submit(Add) button based on the number of chars in the TextArea
|
| - |
|
1815 |
function checkForm()
|
| - |
|
1816 |
{
|
| - |
|
1817 |
var f1 = $("select[name=FRproj_id]").val().length > 0;
|
| - |
|
1818 |
var f2 = $("select[name=FRrtag_id]").val().length > 0;
|
| - |
|
1819 |
var f3 = $("input[name=FRinitdate]").val().length > 0;
|
| - |
|
1820 |
var f4 = $("input[name=FRduedate]").val().length > 0;
|
| - |
|
1821 |
|
| - |
|
1822 |
var ok=f1 && f2 && f3 && f4;
|
| - |
|
1823 |
var but = $("#formSubmit");
|
| - |
|
1824 |
but.toggleClass("form_btn_comp", ok);
|
| - |
|
1825 |
but.toggleClass("form_btn_comp_disabled", !ok);
|
| - |
|
1826 |
but.prop("disabled", !ok );
|
| - |
|
1827 |
}
|
| - |
|
1828 |
</script>
|
| 1779 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
1829 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
| 1780 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRproj_id','Project','R','FRvtree_id','Version Tree','R','FRrtag_id','Release','R');return document.MM_returnValue">
|
1830 |
<form action="<%=scriptName%>" method="post" name="repform">
|
| 1781 |
<tr>
|
1831 |
<tr>
|
| 1782 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
1832 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
| 1783 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
1833 |
<td width="1%" align="right" nowrap class="form_field">Project</td>
|
| 1784 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
1834 |
<td width="100%"><%Call Get_Projects( NNproj_id, Disallow_All )%></td>
|
| 1785 |
</tr>
|
1835 |
</tr>
|
| Line 1788... |
Line 1838... |
| 1788 |
<td align="right" nowrap class="form_field">Release</td>
|
1838 |
<td align="right" nowrap class="form_field">Release</td>
|
| 1789 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
1839 |
<td><%Call Get_Release_Labels ( NNproj_id, NNrtag_id, Disallow_All )%></td>
|
| 1790 |
</tr>
|
1840 |
</tr>
|
| 1791 |
<tr>
|
1841 |
<tr>
|
| 1792 |
<td colspan="3" nowrap class="form_field">Between
|
1842 |
<td colspan="3" nowrap class="form_field">Between
|
| 1793 |
<input type="text" name="FRinitdate" maxlength="10" size="12" value="<%=Request.Form("FRinitdate")%>">
|
- |
|
| 1794 |
<A onmouseover="window.status='Select a date';return true;" onmouseout="window.status='';return true;" href="javascript:show_calendar('repform.FRinitdate',null,null,null);"><img src="images/i_calendar.gif" width="16" height="16" border="0"></a>
|
1843 |
<input class="form_item" type="text" name="FRinitdate" maxlength="15" size="15" value="<%=Request.Form("FRinitdate")%>" id="FRinitdate">
|
| 1795 |
And
|
1844 |
And
|
| 1796 |
<input type="text" name="FRduedate" maxlength="10" size="12" value="<%=Request.Form("FRduedate")%>">
|
- |
|
| 1797 |
<A onmouseover="window.status='Select a date';return true;" onmouseout="window.status='';return true;" href="javascript:show_calendar('repform.FRduedate',null,null,null);"><img src="images/i_calendar.gif" width="16" height="16" border="0"></a></td>
|
1845 |
<input class="form_item" type="text" name="FRduedate" maxlength="15" size="15" value="<%=Request.Form("FRduedate")%>" id="FRduedate">
|
| 1798 |
</tr>
|
1846 |
</tr>
|
| 1799 |
<tr>
|
1847 |
<tr>
|
| 1800 |
<td nowrap class="form_field"> </td>
|
1848 |
<td nowrap class="form_field"> </td>
|
| 1801 |
<td align="right" nowrap class="form_field"> </td>
|
1849 |
<td align="right" nowrap class="form_field"> </td>
|
| 1802 |
<td><br>
|
1850 |
<td><br>
|
| 1803 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
1851 |
<input type="hidden" name="group" value="<%=parGroup%>">
|
| 1804 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
1852 |
<input type="hidden" name="repnum" value="<%=parRepNum%>">
|
| 1805 |
<input type="hidden" name="action" value="true">
|
1853 |
<input type="hidden" name="action" value="true">
|
| 1806 |
<input name="Submit" type="submit" class="form_btn" value="Submit" onClick="clickedButton=true;MM_validateForm('FRduedate','Due Date','R','FRmsg','Message details','R');return document.MM_returnValue">
|
1854 |
<input id="formSubmit" name="Submit" type="submit" class="form_btn" value="Submit">
|
| 1807 |
</td>
|
1855 |
</td>
|
| 1808 |
</tr>
|
1856 |
</tr>
|
| 1809 |
</form>
|
1857 |
</form>
|
| 1810 |
</table>
|
1858 |
</table>
|
| 1811 |
<p>
|
1859 |
<p>
|