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",
31
    "ordering": false,
32
    "columnDefs" : [ 
33
        {"visible" : false, "targets" : [0]},
5097 dpurdie 34
<%If NOT canActionControl("AdminSdk") Then %>
35
        {"visible" : false, "targets" : [4]},
5051 dpurdie 36
<%End If%>
37
        ],
38
    });
39
 
5097 dpurdie 40
<%If canActionControl("AdminSdk") Then %>
5051 dpurdie 41
//  Wire up an 'Add' button
42
$( '#addSdk' ).click(function() {
43
    $('#popmenu').load('sdk_names_new.asp');
44
    });
5097 dpurdie 45
 
46
$( '#addSdkView' ).click(function() {
47
    $('#popmenu').load('sdk_view_new.asp');
48
    });
5051 dpurdie 49
<%End If%>
50
 
51
// Edit the current SDK entry
52
function editSdkEntry(sdkId)
53
{
54
    $('#popmenu').load('sdk_names_edit.asp', {sdkId: sdkId});
55
}
56
 
57
//  Listen for any trigger to force the table to be refreshed
58
$('#sdk_version').on("sdkNameEdited", function(){
59
    $('#sdk_names_body').dataTable().api().ajax.reload();
60
    });
61
 
62
//# sourceURL=sdk_names_body.asp
63
</script>
64
<div>
65
<table class="full_table">
66
  <!-- Section Header ---->
67
  <tr>
68
     <td nowrap class="form_ttl">SDK Names</td>
69
  </tr>
70
 
71
  <!-- Section Body ---->
72
  <tr>
73
  <td>
74
    <div class="rounded_box">
5097 dpurdie 75
        <table id=sdk_names_body class="full_table" >
76
            <thead>
77
            <tr class="body_col form_align">
78
              <th width="1%"> SDK ID
79
              <th width="10%"> SDK Name
80
              <th> SDK Comment
81
              <th width="10%"> Base View
82
              <th width="1%"> Edit
83
            </thead>
84
        </table>
85
        <div class=bg_dialog>&nbsp;
86
            <span id="addSdk" title="Create New SDK Family">
87
<%If canActionControl("AdminSdk") Then %>
88
            <img src="icons/btn_add.gif" width="13" height="13" align="absmiddle" border="0" hspace="3" >
5051 dpurdie 89
<%Else%>
5097 dpurdie 90
            <img src="icons/btn_add_dis.gif" width="13" height="13" align="absmiddle" border="0" hspace="3" >
5051 dpurdie 91
<%End If%>
5097 dpurdie 92
            <a class=abtnItem>New SDK Family</a>
93
            </span>
94
 
95
        </div>
96
<%If (not IsEmpty(Eval("rmDebug"))) AND rmDebug <> "" Then %>
97
    <div class="rmDebug" >RmDebug: <%=rmDebug%></div>
98
<%End If%>
5051 dpurdie 99
    </div>
100
</table>
101
</div>