Template:AccessionNumbers: Difference between revisions
From FANTOM5_SSTAR
(Created page with "<html> <script type="text/javascript" language="javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.js"></script> <script type="text/javascript" lan...") |
No edit summary |
||
Line 1: | Line 1: | ||
<html> | <html> | ||
<style type="text/css" title="currentStyle"> | |||
@import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css"; | @import "/resource_browser/rb_js/datatables/media/css/jquery.dataTables.css"; | ||
@import "/resource_browser/rb_js/datatables/extras/TableTools/media/css/TableTools.css"; | @import "/resource_browser/rb_js/datatables/extras/TableTools/media/css/TableTools.css"; | ||
Line 12: | Line 9: | ||
color:darkgoldenrod; | color:darkgoldenrod; | ||
} | } | ||
</style> | |||
<script type="text/javascript" src="/resource_browser/rb_js/datatables/media/js/jquery.dataTables.min.js"></script> | |||
<script type="text/javascript" src="/resource_browser/rb_js/datatables/extras/TableTools/media/js/TableTools.min.js"></script> | |||
<script type="text/javascript"> | |||
<script type="text/javascript"> | <script type="text/javascript"> | ||
var sReturn =""; | |||
var m_data = new Array(); | |||
var sample_accession_number =""; | |||
var library_ids = ""; | |||
$(document).ready(function() { | $(document).ready(function() { | ||
library_ids = "</html>{{{library_id}}}<html>"; | |||
"sScrollY": " | sample_accession_number = "</html>{{{DRA_sample_Accession}}}<html>"; | ||
var accession_numbers = "</html>{{{accession_numbers}}}<html>"; | |||
var accession_numbers_content = accession_numbers.split("!"); | |||
if(accession_numbers_content.length>1 ){ | |||
var subnumbers = accession_numbers_content.split(";"); | |||
if(subnumbers.length>0 ){ | |||
var tmp; | |||
} | |||
else{ | |||
var tmp; | |||
} | |||
} | |||
motif_table = $('#example').dataTable({ | |||
"sScrollY": "500px", | |||
"bScrollCollapse": true, | "bScrollCollapse": true, | ||
"bPaginate": | "bPaginate": true, | ||
"bFilter": | "bFilter": true, | ||
"bInfo": | "bInfo": true, | ||
"aaData": m_data, | |||
"aoColumnDefs":[ | |||
{"aTargets":[0],"sTitle": "Library ID"}, | |||
{"aTargets":[1],"sTitle": "Sample Accession", "fnRender": function ( obj ) {return sample_accession_number ;}}, | |||
{"aTargets":[2],"sTitle": "Experiment Accession", "fnRender": function (obj) {return "nullll;}}, | |||
{"aTargets":[3],"sTitle": "Run Accession","fnRender": function (obj) {return "nullll2; }} | |||
], | |||
"aaSorting": [[ 0, "asc" ]], | |||
}); | }); | ||
============Other TEST================== | ============Other TEST================== | ||
Revision as of 14:08, 28 May 2013