Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5049 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'|  form_new_sdk_version.asp
5
'|  Create a new version of an SDK
6
'|
7
'=====================================================
8
%>
9
<%
10
Option explicit
11
' Good idea to set when using redirect
12
Response.Expires = 0   ' always load the page, dont store
13
%>
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/formating.asp"-->
17
<!--#include file="common/qstr.asp"-->
18
<!--#include file="common/common_subs.asp"-->
19
<%
20
'------------ ACCESS CONTROL ------------------
21
%>
22
<!--#include file="_access_control_general.asp"-->
23
<%
24
'------------ Variable Definition -------------
5050 dpurdie 25
Dim parSdkTag_id
26
 
5049 dpurdie 27
'------------ Constants Declaration -----------
28
'------------ Variable Init -------------------
5050 dpurdie 29
parSdkTag_id = Request("sdktag_id")
30
if parSdkTag_id = "" Then parSdkTag_id = 0
5049 dpurdie 31
%>
32
<html>
33
   <head>
34
        <title>Release Manager</title>
35
        <meta http-equiv="Pragma" content="no-cache">
36
        <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
37
        <link rel="stylesheet" href="images/release_manager_style.css" type="text/css">
38
        <link rel="stylesheet" href="images/navigation.css" type="text/css">
39
        <script language="JavaScript" src="images/common.js"></script>
40
        <script type="text/javascript" language="javascript" src="jquery/jquery.js"></script>
41
        <script type="text/javascript" language="javascript" src="jquery/jquery-ui.js"></script>
5050 dpurdie 42
        <script type="text/javascript" language="javascript" src="jquery/jquery.dataTables.js"></script>
43
        <script type="text/javascript" language="javascript" src="jquery/dataTables.scroller.js"></script>
44
        <link rel="stylesheet" href="jquery/dataTables.vix.css" type="text/css">
5049 dpurdie 45
        <link rel="stylesheet" href="jquery/jquery-ui.css" type="text/css">
46
        <script src="jquery/form-validator/jquery.form-validator.min.js"></script>
47
        <link rel="stylesheet" href="jquery/form-validator.css" type="text/css">
48
        <!-- TIPS -->
49
        <!-- DROPDOWN MENUS -->
50
        <!--#include file="_menu_def.asp"-->
51
        <script language="JavaScript1.2" src="images/popup_menu.js"></script>
5051 dpurdie 52
        <!-- Script associated with the display of the SDK Names side panel -->
5050 dpurdie 53
        <script type="text/javascript" charset="utf-8">
54
        $(document).ready(function() {
55
            var tableEl = $('#sdk_names');
56
 
57
            // Disable caching of AJAX responses
58
            $.ajaxSetup ({
59
                cache: false 
60
            });
61
 
62
            //  Configure the Summary Table
63
            var table = tableEl.DataTable({
64
                    deferRender:    true,
65
                    dom:            "t",
66
                    sScrollY: $( document ).height() - 200,
67
                    scrollCollapse: true,
68
                    processing: true,
69
                    retrieve:true,
70
                    serverSide: true,
71
                    ajaxSource: "sdk_names_json.asp",
72
                    "ordering": false,
73
                    "columnDefs" : [ 
74
                        {"visible" : false, "targets" : [0]},
75
                        {"visible" : false, "targets" : [2]},
76
                        {"visible" : false, "targets" : [3]},
77
                        ],
78
                    });
79
 
5051 dpurdie 80
            //  Centralise the loading of the body of the page
81
            //
82
            function load_page_body(url, data) {
83
                $('#sdk_version').off();
84
                $('#sdk_version').empty();
85
                $('#sdk_version').load(url, data);
86
            }
87
 
5050 dpurdie 88
                    // Process click on the table row
89
                    // Display versions available for this SDK
90
                    //      this - a DOM node
91
                    //      $(this) - The jquery wrapped node
92
                    //
93
            tableEl.on( 'click', 'tbody tr', function () {
94
                    var sdk_id = table.row( this ).data()[0];
5051 dpurdie 95
                    load_page_body('sdk_versions.asp', {sdk_id: sdk_id});
5050 dpurdie 96
                    });
97
 
98
 
99
<%If objAccessControl.IsActive("CreateNewProject") Then %>
5051 dpurdie 100
            //  Wire up an 'Add New SDK' button
101
            $( '#addSdkName' ).click(function() {
102
                load_page_body('sdk_names_body.asp');
5050 dpurdie 103
                });
104
<%End If%>
5051 dpurdie 105
 
106
        //  Listen for any trigger to force the table to be refreshed
107
        //  Listen on 'document' as the event will trickle up
108
        $(document).on("sdkNameEdited", function(){
109
            table.ajax.reload();
110
            });
111
 
112
        // Listen for new page body reload requests
113
        $(document).on("newPageBody", function(e, args){
114
console.log ("nePageBody:" + args.url + args.data);
115
            load_page_body(args.url, args.data);
116
 
117
            });
5050 dpurdie 118
        });
119
        </script>
120
      <!-- DROPDOWN MENUS -->
5049 dpurdie 121
   </head>
122
   <body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0">
123
 
124
      <!-- MENU LAYERS -------------------------------------->
125
      <div id="popmenu" class="menuskin" onmouseover="clearhidemenu();highlightmenu(event,'on')"
126
         onmouseout="highlightmenu(event,'off');dynamichide(event)">
127
      </div>
128
      <!-- TIPS LAYERS -------------------------------------->
129
      <div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10">&nbsp;</div>
130
      <!----------------------------------------------------->
131
      <!-- HEADER -->
132
      <!--#include file="_header.asp"-->
133
      <!-- BODY ---->
134
      <table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EEEFEF">
135
         <tr>
5050 dpurdie 136
            <td width="10%" background="images/bg_home_orange.gif" valign="top" class=side_panel>
137
                <!-- Side panel -->
138
               <table id=sdk_names class="full_table side_panel_table">
139
                <thead>
140
                    <tr class="body_col form_align">
141
                        <th>
142
                        <th>SDK Names
143
                        <th>
144
                        <th>
145
                </thead>
146
               </table>
147
            </td>
5049 dpurdie 148
            <td width="5%"  rowspan="2" valign="top"></td>
149
            <td width="80%" rowspan="2" align="center" valign="top">
150
               <!-- Main display panel -->
5051 dpurdie 151
               <div id=sdk_version></div>
152
               <!-- End Main display panel -->
5049 dpurdie 153
            <td width="5%"  rowspan="2" valign="top"></td>
154
         </tr>
155
         <tr>
5051 dpurdie 156
            <!-- Side panel Bottom-->
157
            <td valign="bottom" align="center" background="images/bg_home_orange.gif">
158
<%If objAccessControl.IsActive("CreateNewProject") Then %>
159
                <img id=addSdkName src="images/bt_new_project.gif" width="16" height="16" border="0" vspace="5" hspace="5" align="right" alt="Create new SDK Family" title="Create new SDK Family">
160
<%End If%>
161
            </td>
5049 dpurdie 162
            <td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td>
163
        </tr>
164
      </table>
165
<!-- FOOTER -->
166
<!--#include file="_footer.asp"-->
167
</body>
168
</html>
169
<%
170
Call Destroy_All_Objects
171
%>