| Line 103... |
Line 103... |
| 103 |
<form name="filter" method="get" action="<%=scriptName%>">
|
103 |
<form name="filter" method="get" action="<%=scriptName%>">
|
| 104 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
104 |
<table width="100%" border="0" cellspacing="0" cellpadding="0">
|
| 105 |
<tr>
|
105 |
<tr>
|
| 106 |
<td width="1" valign="middle" background="images/bg_action_norm.gif"><img src="images/spacer.gif" width="5" height="35"></td>
|
106 |
<td width="1" valign="middle" background="images/bg_action_norm.gif"><img src="images/spacer.gif" width="5" height="35"></td>
|
| 107 |
<td width="100%" valign="middle" background="images/bg_action_norm.gif"><%
|
107 |
<td width="100%" valign="middle" background="images/bg_action_norm.gif"><%
|
| - |
|
108 |
Dim bEnableUse : bEnableUse = FALSE
|
| 108 |
If Request("rtag_id") = "" OR _
|
109 |
If Request("rtag_id") = "" OR _
|
| 109 |
Request("pv_id") = "" OR _
|
110 |
Request("pv_id") = "" OR _
|
| 110 |
bIsPatch OR _
|
111 |
bIsPatch OR _
|
| - |
|
112 |
(NOT bCanInsertPkg) OR _
|
| 111 |
(NOT objAccessControl.UserLogedIn) OR _
|
113 |
(NOT objAccessControl.UserLogedIn) OR _
|
| 112 |
(NOT canActionInProject() ) OR _
|
114 |
(NOT canActionInProject() ) OR _
|
| 113 |
(ReleaseMode = enumDB_RELEASE_IN_CLOSED_MODE) OR _
|
115 |
(ReleaseMode = enumDB_RELEASE_IN_CLOSED_MODE) OR _
|
| 114 |
(ReleaseMode = enumDB_RELEASE_IN_ARCHIVE_MODE) OR _
|
116 |
(ReleaseMode = enumDB_RELEASE_IN_ARCHIVE_MODE) OR _
|
| - |
|
117 |
(ReleaseMode = enumDB_RELEASE_IN_RESTRICTIVE_MODE AND NOT canActionControlInProject("AlterReleaseContentsInRestrictiveMode")) OR _
|
| 115 |
(ReleaseMode = enumDB_RELEASE_IN_CCB_MODE) _
|
118 |
(ReleaseMode = enumDB_RELEASE_IN_CCB_MODE AND NOT canActionControlInProject("AlterReleaseContentsInRestrictiveMode")) _
|
| 116 |
Then
|
119 |
Then
|
| 117 |
'Response.write "HERE"& Request("rtag_id")
|
120 |
bEnableUse = FALSE
|
| 118 |
Response.write "<img src='images/abtn_use_this_version_off.gif' width='108' height='26' hspace='1' border='0'>"
|
- |
|
| 119 |
|
- |
|
| 120 |
Else
|
121 |
Else
|
| 121 |
|
- |
|
| 122 |
|
- |
|
| 123 |
If pkgInfoHash.Item("can_edit_in_project") = "1" OR _
|
- |
|
| 124 |
canShowControlInProject("EditPackageInExternalProjects") _
|
- |
|
| 125 |
|
- |
|
| 126 |
Then
|
- |
|
| 127 |
Response.write "<a href='"& scriptName &"?"& Persists_Query_String( "action=true" ) &"' onClick='return confirmAction(""You are about to insert "& sPkg_Name &" "& sPkg_Version &" into a project release. \nDo you want to proceed?"");'><img src='images/abtn_use_this_version.gif' alt='Use this version in project release.' width='107' height='25' hspace='1' border='0'></a>"
|
122 |
bEnableUse = TRUE
|
| 128 |
End If
|
- |
|
| 129 |
|
- |
|
| 130 |
|
- |
|
| 131 |
End If
|
123 |
End If
|
| - |
|
124 |
|
| - |
|
125 |
If bEnableUse Then
|
| - |
|
126 |
Response.write "<a href='"& scriptName &"?"& Persists_Query_String( "action=true" ) &"' onClick='return confirmAction(""You are about to insert "& sPkg_Name &" "& sPkg_Version &" into a project release. \nDo you want to proceed?"");'><img src='images/abtn_use_this_version.gif' alt='Use this version in project release.' width='107' height='25' hspace='1' border='0'></a>"
|
| - |
|
127 |
Else
|
| - |
|
128 |
Response.write "<img src='images/abtn_use_this_version_off.gif' width='108' height='26' hspace='1' border='0'>"
|
| - |
|
129 |
End If
|
| 132 |
|
130 |
|
| 133 |
Response.write "<img src='images/spacer.gif' width='25' height='25'>"
|
131 |
Response.write "<img src='images/spacer.gif' width='25' height='25'>"
|
| 134 |
If filterInUse Then
|
132 |
If filterInUse Then
|
| 135 |
Response.write "<input type='image' name='btn' src='images/abtn_filter_on.gif' width='25' height='25' border='0' alt='Apply filter. (Filter is in use!)'>"
|
133 |
Response.write "<input type='image' name='btn' src='images/abtn_filter_on.gif' width='25' height='25' border='0' alt='Apply filter. (Filter is in use!)'>"
|
| 136 |
Else
|
134 |
Else
|