Subversion Repositories DevTools

Rev

Rev 5098 | Blame | Last modification | View Log | RSS feed

<%@LANGUAGE="VBSCRIPT"%>
<%
'=====================================================
'   sdk_names_body.asp
'   This file is designed to be injected (loaded) into a 'div' on a window
'
'   Display the SDK Names currently defined
'       Allow SDK Name to be edited
'       Allow SDK Name to be created
'   
'|
'=====================================================
%>
<!--#include file="common/conf.asp"-->
<!--#include file="common/globals.asp"-->
<!--#include file="common/qstr.asp"-->
<!--#include file="common/common_subs.asp"-->
<!--#include file="_access_control_general.asp"-->

<script>
//  Configure the Summary Table
$('#sdk_names_body').DataTable({
    deferRender:    true,
    dom: "rtiS",
    sScrollY: $( document ).height() - 200,
    scrollCollapse: true,
    processing: true,
    retrieve:true,
    serverSide: true,
    ajaxSource: "sdk_names_json.asp",
    ordering: true,
    order: [[ 1, "asc" ]],
     columns: [
        { visible : false },
        { className: "dt-nowrap" },
        null,
        { className: "dt-nowrap" },
        { className: "dt-nowrap" },
        { "orderable" : false , 
<%If NOT canActionControl("AdminSdk") Then %>
            visible : false
<%End If%>
        },
    ],
});

<%If canActionControl("AdminSdk") Then %>
//  Wire up an 'Add' button
$( '#addSdk' ).click(function() {
    $('#popmenu').load('sdk_names_new.asp');
    });

$( '#addSdkView' ).click(function() {
    $('#popmenu').load('sdk_view_new.asp');
    });
<%End If%>

// Edit the current SDK entry
function editSdkEntry(sdkId)
{
    $('#popmenu').load('sdk_names_edit.asp', {sdkId: sdkId});
}

//  Listen for any trigger to force the table to be refreshed
$('#sdk_version').on("sdkNameEdited", function(){
    $('#sdk_names_body').dataTable().api().ajax.reload();
    });

//# sourceURL=sdk_names_body.asp
</script>
<div>
<table class="full_table">
  <!-- Section Header ---->
  <tr>
     <td nowrap class="form_ttl">SDK Names</td>
  </tr>

  <!-- Section Body ---->
  <tr>
  <td>
    <div class="rounded_box">
        <table id=sdk_names_body class="full_table" >
            <thead>
            <tr class="body_col form_align">
              <th width="1%"> SDK ID
              <th width="10%"> SDK Name
              <th> SDK Comment
              <th width="10%"> Project
              <th width="10%"> Base View
              <th width="1%"> Edit
            </thead>
        </table>
        <div class=bg_dialog>&nbsp;
            <span id="addSdk" title="Create New SDK Family">
<%If canActionControl("AdminSdk") Then %>
            <img src="icons/btn_add.gif" width="13" height="13" align="absmiddle" border="0" hspace="3" >
<%Else%>
            <img src="icons/btn_add_dis.gif" width="13" height="13" align="absmiddle" border="0" hspace="3" >
<%End If%>
            <a class=abtnItem>New SDK Family</a>
            </span>

        </div>
<%If isDefined("rmDebug") Then%>
    <div class="rmDebug" >RmDebug: <%=rmDebug%></div>
<%End If%>
    </div>
</table>
</div>