Subversion Repositories DevTools

Rev

Rev 7244 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7244 Rev 7277
Line 31... Line 31...
31
bCanEdit = canActionControl("ConfigureBuildService")
31
bCanEdit = canActionControl("ConfigureBuildService")
32
'----------------------------------------------
32
'----------------------------------------------
33
'-------------------------------------------------
33
'-------------------------------------------------
34
Sub InsertJavaScript %>
34
Sub InsertJavaScript %>
35
<script type="text/javascript" charset="utf-8">
35
<script type="text/javascript" charset="utf-8">
-
 
36
    $(document).ready(function(){
-
 
37
    	// Wire up the buttons
-
 
38
    	$('.btnEdit').click( function(){
-
 
39
            var el = $(this);
-
 
40
            var trel = el.closest("tr");
-
 
41
            var bp_id = trel.data("bp_id");
-
 
42
           MM_openVixIFrame('wAddBuildPlatform.asp?type=edit&bp_id=' + bp_id + '&rfile=<%=scriptName%><%=objPMod.ComposeURL()%>','Edit Build Platform');
-
 
43
        });
-
 
44
 
-
 
45
    	$('.btnDel').click( function(){
-
 
46
            var el = $(this);
-
 
47
            var trel = el.closest("tr");
-
 
48
            var bp_id = trel.data("bp_id");
-
 
49
			var platform_name = trel.find('td:eq(0)').text();
-
 
50
			var url = '_DeleteBuildPlatform.asp?bp_id=' + bp_id + '&rfile=<%=scriptName%><%=objPMod.ComposeURL()%>'
-
 
51
            vixConfirm('Remove Build Platform \''+ platform_name +'\' from this list?',{title:'Delete Build Platform', button:'Delete', url: url});
-
 
52
        });
-
 
53
    });
36
</script>
54
</script>
37
<%End Sub
55
<%End Sub
-
 
56
'-------------------------------------------------
38
%>
57
%>
39
<html>
58
<html>
40
<head>
59
<head>
41
<title>Build Machine Administration</title>
60
<title>Build Machine Administration</title>
42
<link rel="shortcut icon" href="<%=FavIcon%>"/>
61
<link rel="shortcut icon" href="<%=FavIcon%>"/>
Line 78... Line 97...
78
					<th>Edit</th>         
97
					<th>Edit</th>         
79
                </tr>
98
                </tr>
80
                </thead>
99
                </thead>
81
 
100
 
82
          <%
101
          <%
83
          ' Load some action buttons
-
 
84
          Call objBtnControl.LoadActionButtons ( Array("btnEditBuildPlatforms", "btnDeleteBuildPlatforms"), OraDatabase )
-
 
85
          objBtnControl.ButtonSpacer = 1
-
 
86
 
-
 
87
          If NOT bCanEdit Then
-
 
88
            Call objBtnControl.Active  ( "btnEditBuildPlatforms", "N" )
-
 
89
            Call objBtnControl.Active  ( "btnDeleteBuildPlatforms", "N" )
-
 
90
          End If
-
 
91
          
-
 
92
          Dim rsQry
102
          Dim rsQry
93
          Dim bp_id
103
          Dim bp_id
94
          Dim bp_name
104
          Dim bp_name
95
          Dim description, active, activeChecked
105
          Dim description, active, activeChecked
96
          DIM Query          
106
          DIM Query          
Line 116... Line 126...
116
              bp_name = rsQry("bp_name")
126
              bp_name = rsQry("bp_name")
117
              active = rsQry("bp_active")
127
              active = rsQry("bp_active")
118
              If active = "Y" Then activeChecked = "checked" Else activeChecked = ""
128
              If active = "Y" Then activeChecked = "checked" Else activeChecked = ""
119
              description = rsQry("bp_description")
129
              description = rsQry("bp_description")
120
              %>
130
              %>
121
              <tr style="vertical-align:top;">
131
              <tr style="vertical-align:top;" data-bp_id="<%=bp_id%>">
122
                <td nowrap>
132
                <td nowrap>
123
					<%=bp_name%>
133
					<%=bp_name%>
124
				</td>
134
				</td>
125
                <td nowrap><input type="checkbox" disabled <%=activeChecked%> ></td>
135
                <td nowrap><input type="checkbox" disabled <%=activeChecked%> ></td>
126
                <td wrap><%=description%></td>
136
                <td wrap><%=description%></td>
127
                <td wrap><%=rsQry("machTypes")%></td>
137
                <td wrap><%=rsQry("machTypes")%></td>
128
                <td nowrap class=tight>
138
                <td nowrap class=tight>
-
 
139
				<%
-
 
140
                    BuildJsButton bCanEdit, "btnEdit", "Edit Build Platform", "src='icons/i_edit.gif'"
129
				<%Call objBtnControl.Render( Array("btnEditBuildPlatforms", "btnDeleteBuildPlatforms"), objAccessControl )%></td>
141
                    BuildJsButton bCanEdit, "btnDel ", "Delete Build Platform", "src='icons/i_remove.gif'"
-
 
142
                 %>
-
 
143
				</td>
130
              </tr> 
144
              </tr> 
131
              <%
145
              <%
132
              rsQry.MoveNext()
146
              rsQry.MoveNext()
133
          Wend
147
          Wend
134
          rsQry.Close()
148
          rsQry.Close()