Rev 5957 | Rev 6594 | Go to most recent revision | Blame | Compare with Previous | 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_login.asp"--><!--#include file="_access_control_general.asp"--><script>// Configure the Summary Tabletable = $('#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 , className: "dt-nowrap" }]});// Process each row of table data before it is presented to the table scroller// Process the raw Ajax data// Create ref to project// Add buttons$('#sdk_names_body').on('xhr.dt', function ( e, settings, json ) {$.each(json.aaData, function(idx,row){row[3] = "<a href='rtree.asp?proj_id=" + row[5] + "'>" + row[3] + "<a>";row[5] = '';<%If canActionControl("AdminSdk") Then %>row[5] += "<img class='editSdkName' data-sdk_id='" + row[0] + "' title='Edit SDK Name properties' style='height:12px;width:12px;border-style:none' src='images/i_edit.gif' />";<%Else%>row[5] += "<img class='NoeditSdkName' data-sdk_id='" + row[0] + "' title='Edit SDK Name properties' style='height:12px;width:12px;border-style:none' src='images/i_edit_disable.gif' />";<%End If%>row[5] += "<img class='showSDKs' data-sdk_id='" + row[0] + "' title='Show Versions' style='height:12px;width:12px;border-style:none;margin-left:3px;' src='images/i_open.gif' />";});} );<%If canActionControl("AdminSdk") Then %>// Wire up an 'Add' button$( '#addSdk' ).click(function() {$('#popmenu').load('sdk_names_new.asp');});<%End If%>// Edit Properties of the SDK Name$('#sdk_names_body tbody').on( 'click', '.editSdkName', function (e) {$('#popmenu').load('sdk_names_edit.asp', {sdkId: $(this).data().sdk_id});} );// Select the SDK Version for display/edit$('#sdk_names_body tbody').on( 'click', '.showSDKs', function (e) {var sdk_id = $(this).data().sdk_id;$("#sdk_names_body").trigger('newPageBody', {url: 'sdk_versions.asp', data : {sdk_id : sdk_id }});} );// Double click in row - Select the SDK Version for display/edit//$('#sdk_names_body tbody').on( 'dblclick', 'tr', function () {// $("#sdk_names_body").trigger('newPageBody', {url: 'sdk_versions.asp', data : {sdk_id : table.row(this).data()[0]}});//} );// Single click on row - Highlight selected row$('#sdk_names_body tbody').on( 'click', 'tr', function () {if ( $(this).hasClass('selected') ) {$(this).removeClass('selected');}else {table.$('tr.selected').removeClass('selected');$(this).addClass('selected');}} );// 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 display" ><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%"> Configure</thead></table><div class=bg_dialog style="position:relative"> <span id="addSdk" title="Create New SDK Family" style="float:left"><%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><%Call Destroy_All_Objects%>