Rev 5049 | Blame | Last modification | View Log | RSS feed
<%@LANGUAGE="VBSCRIPT"%><%'====================================================='| form_new_sdk_version.asp'| Create a new version of an SDK'|'=====================================================%><%Option explicit' Good idea to set when using redirectResponse.Expires = 0 ' always load the page, dont store%><!--#include file="common/conf.asp"--><!--#include file="common/globals.asp"--><!--#include file="common/formating.asp"--><!--#include file="common/qstr.asp"--><!--#include file="common/common_subs.asp"--><%'------------ ACCESS CONTROL ------------------%><!--#include file="_access_control_general.asp"--><%'------------ Variable Definition -------------Dim parSdkTag_id'------------ Constants Declaration -----------'------------ Variable Init -------------------parSdkTag_id = Request("sdktag_id")if parSdkTag_id = "" Then parSdkTag_id = 0%><html><head><title>Release Manager</title><meta http-equiv="Pragma" content="no-cache"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><link rel="stylesheet" href="images/release_manager_style.css" type="text/css"><link rel="stylesheet" href="images/navigation.css" type="text/css"><script language="JavaScript" src="images/common.js"></script><script type="text/javascript" language="javascript" src="jquery/jquery.js"></script><script type="text/javascript" language="javascript" src="jquery/jquery-ui.js"></script><script type="text/javascript" language="javascript" src="jquery/jquery.dataTables.js"></script><script type="text/javascript" language="javascript" src="jquery/dataTables.scroller.js"></script><link rel="stylesheet" href="jquery/dataTables.vix.css" type="text/css"><link rel="stylesheet" href="jquery/jquery-ui.css" type="text/css"><script src="jquery/form-validator/jquery.form-validator.min.js"></script><link rel="stylesheet" href="jquery/form-validator.css" type="text/css"><!-- TIPS --><!-- DROPDOWN MENUS --><!--#include file="_menu_def.asp"--><script language="JavaScript1.2" src="images/popup_menu.js"></script><script language="JavaScript" type="text/javascript">$(document).ready(function() {// $('#popmenu').load('sdk_version_new.asp', {rtag_id : <%=parRtag_id%>});if (<%=parSdkTag_id%> <= 0 )$("#main_section").css('visibility', 'hidden');});</script><script type="text/javascript" charset="utf-8">$(document).ready(function() {// Disable caching of AJAX responses$.ajaxSetup ({cache: false});function setInfo(txt) {$("#info").text( txt);}// Configure the Summary Table$('#sdk_content').DataTable({deferRender: true,dom: "frtiS",sScrollY: $( document ).height() - 255,scrollCollapse: true,processing: true,retrieve:true,serverSide: true,ajaxSource: "sdk_content_json.asp","fnServerParams": function ( aoData ) {aoData.push( { "name": "sdktag_id", "value": <%=parSdkTag_id%> } );},"ordering": true,"order": [[ 1, "asc" ]],"columns": [{ "data": "PV_ID" },{ "data": "PKG_NAME" },{ "data": "PKG_VERSION" },{ "data": "SDKPKG_CHECK" },],//"columnDefs" : [// {"visible" : false, "targets" : [0]},// ],});// Process each row of table data before it is presented to the table scroller// Process the raw Ajax data// Create a checkbox for the state// Add a data item to the entry - to allow traceback when saving$('#sdk_content').on('xhr.dt', function ( e, settings, json ) {json.aaData.forEach(function(row){var checked = row.SDKPKG_STATE == "E" ? 'checked' : '';row.SDKPKG_CHECK = '<input type="checkbox" class=clickable '+ checked +' data-pvid='+ row.PV_ID +'>';});} );// Process click on checkboxes within the datatable// this - a DOM node// $(this) - The jquery wrapped node//$('#sdk_content').on( 'click', 'tbody td :checkbox', function () {setInfo("checked:" + this.checked + ", pvid:" + $(this).data('pvid'));var table = $('#sdk_content').DataTable();var row = $(this).closest('tr');var d = table.row( row ).data();$("#progressBar").css('visibility', 'visible');$.ajax({url : 'sdk_opr_json.asp',type: "POST",data : { action : 'setSdkContentState', sdktagId : <%=parSdkTag_id%>, pv_id : $(this).data('pvid'), sdkpkg_state : this.checked ? 'E' : '-' },dataType : "json",cache: false,success:function(data, textStatus, jqXHR){//data: return data from server//console.log ("UpdateData", data);if (data.result != 0){setInfo("Error:" + ((data.error != 0) ? data.emsgSummary : "Reason not given"));//if (data.error >= 0) disableForm();return;}// call user success function//success(data);},error: function(jqXHR, textStatus, errorThrown){setInfo("Error:" + errorThrown);//disableForm();//if fails},complete : function(){$("#progressBar").css('visibility', 'hidden');}});} );});</script><!-- Script associated with the display of the SDK Namess side panel --><script type="text/javascript" charset="utf-8">$(document).ready(function() {var tableEl = $('#sdk_names');// Disable caching of AJAX responses$.ajaxSetup ({cache: false});// Configure the Summary Tablevar table = tableEl.DataTable({deferRender: true,dom: "t",sScrollY: $( document ).height() - 200,scrollCollapse: true,processing: true,retrieve:true,serverSide: true,ajaxSource: "sdk_names_json.asp","ordering": false,"columnDefs" : [{"visible" : false, "targets" : [0]},{"visible" : false, "targets" : [2]},{"visible" : false, "targets" : [3]},],});// Process click on the table row// Display versions available for this SDK// this - a DOM node// $(this) - The jquery wrapped node//tableEl.on( 'click', 'tbody tr', function () {var sdk_id = table.row( this ).data()[0];$('#sdk_version').empty();$('#sdk_version').load('sdk_versions.asp', {rtag_id: <%=parRtag_id%>, sdk_id: sdk_id});});<%If objAccessControl.IsActive("CreateNewProject") Then %>// Wire up an 'Add' button$( '#addSdk' ).click(function() {$('#popmenu').load('sdk_names_new.asp');});<%End If%>});</script><!-- DROPDOWN MENUS --><style type="text/css"></style></head><body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0"><!-- MENU LAYERS --------------------------------------><div id="popmenu" class="menuskin" onmouseover="clearhidemenu();highlightmenu(event,'on')"onmouseout="highlightmenu(event,'off');dynamichide(event)"></div><!-- TIPS LAYERS --------------------------------------><div id="formTipsLayer" style="position: absolute; z-index: 1000; visibility: hidden; left:0; top: 0; width: 10"> </div><!-----------------------------------------------------><!-- HEADER --><!--#include file="_header.asp"--><!-- BODY ----><table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#EEEFEF"><tr><td width="10%" background="images/bg_home_orange.gif" valign="top" class=side_panel><!-- Side panel --><table id=sdk_names class="full_table side_panel_table"><thead><tr class="body_col form_align"><th><th>SDK Names<th><th></thead></table></td><td width="5%" rowspan="2" valign="top"></td><td width="80%" rowspan="2" align="center" valign="top"><!-- Main display panel --><div id=sdk_version></div><table id=main_section class="full_table"><!-- Section Header ----><tr><td nowrap class="form_ttl">DON'T KNOW YET</td></tr><!-- Section Body ----><tr><td><div class="rounded_box"><table id=sdk_content class="full_table" ><thead><tr class="body_col form_align"><th width="1%"> PV_ID<th width="10%"> Package Name<th> Package Version<th width="1%"> State</thead></table><!-- Info / Ajax Progress bar --><div class='bg_dialog body_txt' style='position:relative;min-height:1em;' ><img id='progressBar' style='visibility:hidden;position: absolute' src='icons/i_processing.gif' width='79' height='14'><div id=info style='position: absolute;'></div></div></div></table><!-- End Main display panel --><td width="5%" rowspan="2" valign="top"></td></tr><tr><td valign="bottom" align="center" background="images/bg_home_orange.gif"></td><td background="images/bg_lght_gray.gif" valign="top"><img src="images/h_trsp_dot.gif" width="1" height="500"></td></tr></table><!-- FOOTER --><!--#include file="_footer.asp"--></body></html><%Call Destroy_All_Objects%>