Subversion Repositories DevTools

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
5051 dpurdie 1
<%@LANGUAGE="VBSCRIPT"%>
2
<%
3
'=====================================================
4
'   sdk_names_body.asp
5
'   This file is designed to be injected (loaded) into a 'div' on a window
6
'
7
'   Display the SDK Names currently defined
8
'       Allow SDK Name to be edited
9
'       Allow SDK Name to be created
10
'   
11
'|
12
'=====================================================
13
%>
14
<!--#include file="common/conf.asp"-->
15
<!--#include file="common/globals.asp"-->
16
<!--#include file="common/qstr.asp"-->
17
<!--#include file="common/common_subs.asp"-->
18
<!--#include file="_access_control_general.asp"-->
19
 
20
<script>
21
//  Configure the Summary Table
22
$('#sdk_names_body').DataTable({
23
    deferRender:    true,
24
    dom: "rtiS",
25
    sScrollY: $( document ).height() - 200,
26
    scrollCollapse: true,
27
    processing: true,
28
    retrieve:true,
29
    serverSide: true,
30
    ajaxSource: "sdk_names_json.asp",
5102 dpurdie 31
    ordering: true,
32
    order: [[ 1, "asc" ]],
33
     columns: [
34
        { visible : false },
35
        { className: "dt-nowrap" },
36
        null,
37
        { className: "dt-nowrap" },
38
        { className: "dt-nowrap" },
39
        { "orderable" : false , 
5097 dpurdie 40
<%If NOT canActionControl("AdminSdk") Then %>
5102 dpurdie 41
            visible : false
5051 dpurdie 42
<%End If%>
5102 dpurdie 43
        },
44
    ],
45
});
5051 dpurdie 46
 
5097 dpurdie 47
<%If canActionControl("AdminSdk") Then %>
5051 dpurdie 48
//  Wire up an 'Add' button
49
$( '#addSdk' ).click(function() {
50
    $('#popmenu').load('sdk_names_new.asp');
51
    });
5097 dpurdie 52
 
53
$( '#addSdkView' ).click(function() {
54
    $('#popmenu').load('sdk_view_new.asp');
55
    });
5051 dpurdie 56
<%End If%>
57
 
58
// Edit the current SDK entry
59
function editSdkEntry(sdkId)
60
{
61
    $('#popmenu').load('sdk_names_edit.asp', {sdkId: sdkId});
62
}
63
 
64
//  Listen for any trigger to force the table to be refreshed
65
$('#sdk_version').on("sdkNameEdited", function(){
66
    $('#sdk_names_body').dataTable().api().ajax.reload();
67
    });
68
 
69
//# sourceURL=sdk_names_body.asp
70
</script>
71
<div>
72
<table class="full_table">
73
  <!-- Section Header ---->
74
  <tr>
75
     <td nowrap class="form_ttl">SDK Names</td>
76
  </tr>
77
 
78
  <!-- Section Body ---->
79
  <tr>
80
  <td>
81
    <div class="rounded_box">
5097 dpurdie 82
        <table id=sdk_names_body class="full_table" >
83
            <thead>
84
            <tr class="body_col form_align">
85
              <th width="1%"> SDK ID
86
              <th width="10%"> SDK Name
87
              <th> SDK Comment
5102 dpurdie 88
              <th width="10%"> Project
5097 dpurdie 89
              <th width="10%"> Base View
90
              <th width="1%"> Edit
91
            </thead>
92
        </table>
93
        <div class=bg_dialog>&nbsp;
94
            <span id="addSdk" title="Create New SDK Family">
95
<%If canActionControl("AdminSdk") Then %>
96
            <img src="icons/btn_add.gif" width="13" height="13" align="absmiddle" border="0" hspace="3" >
5051 dpurdie 97
<%Else%>
5097 dpurdie 98
            <img src="icons/btn_add_dis.gif" width="13" height="13" align="absmiddle" border="0" hspace="3" >
5051 dpurdie 99
<%End If%>
5097 dpurdie 100
            <a class=abtnItem>New SDK Family</a>
101
            </span>
102
 
103
        </div>
5098 dpurdie 104
<%If isDefined("rmDebug") Then%>
5097 dpurdie 105
    <div class="rmDebug" >RmDebug: <%=rmDebug%></div>
106
<%End If%>
5051 dpurdie 107
    </div>
108
</table>
109
</div>