示例#1
0
文件: list_runs.php 项目: sOval/cmssw
  else
  href=mylink.href;
  var param  = 'width='+width+',height=600,scrollbars=yes';
  window.open(href, windowname, param);
  return false;
}
//-->
</script>
<?php 
echo $meta;
?>
</head>
<body>

<?php 
if ($errors = input_errors()) {
    echo $errors;
} else {
    $rows_per_page = 100;
    $url = htmlentities($_SERVER['REQUEST_URI']);
    $sqlresult = build_runselect_sql($_GET);
    $sql = $sqlresult['sql'];
    $binds = $sqlresult['binds'];
    $total_rows = count_rows($conn, $sql, $binds);
    $sum_events = fetch_sum_events($sqlresult);
    if ($total_rows == 0) {
        echo "<h3>No results found.</h3>";
    } else {
        $total_pages = total_pages($total_rows, $rows_per_page);
        // Set the page number
        if (isset($_GET['page'])) {
示例#2
0
 $validRepMask = $RepeatMask_Status == "Yes" ? validate_library($RepeatMask_File, "Repeat Mask Library", $dbpass) : "";
 //from conf_functions.inc.php
 $file_codes = $arrayList[4];
 #single-letter code string
 $input_errors = input_errors($file_codes);
 $input_warnings = input_warnings($Input_Data_Path);
 ######## Display Input Results ###########
 $input_results_array = input_results($file_codes, $CpGAT_Status, $RepeatMask_Status, $GSQ_CompResources, $GTH_CompResources);
 // list of expected results based on one-letter code of input files (see conf_functions.inc.php)
 $input_results = $input_results_array[0];
 $tracks = $input_results_array[1];
 $remote_flag = $input_results_array[2];
 $input_results_display = $input_results == "" ? "" : "<div class=\"showhide\">\n\t\t\t\t\t\t\t<p class=\" label bold\" style=\"cursor:pointer\" title=\"Show input results\">\n\t\t\t\t\t\t\t\t<span class=\"normalfont\" style=\"font-weight:normal\">\n\t\t\t\t\t\t\t\t\tExpected Ouput: \n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t\t<span class=\"normalfont\" style=\"color: orange\"> \n\t\t\t\t\t\t\t\t    {$tracks} tracks based on input files: \n\t\t\t\t\t\t\t\t    <span class=\"heading normalfont\">\n\t\t\t\t\t\t\t\t        (click for details)\n\t\t\t\t\t\t\t\t    </span>\n\t\t\t\t\t\t\t\t</span>\n\t\t\t\t\t\t\t</p>\n\t\t\t\t\t\t\t<div class=\" hidden results\" style=\"display: none;\">\n\t\t\t\t\t\t\t\t<ul class=\"menulist bottommargin1\" id=\"input_results_1\">\n\t\t\t\t\t\t\t\t{$input_results}\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t<span class=\"heading\">Not what you expected? Check that all filenames are correct according to <a href=\"/XGDB/conf/data.php#filename_requirements\">Filename Requirements</a></span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t";
 ######## Display Input Errors and warnings ###########
 # $input_warnings="<li> this is a test</li>";
 $input_errors = input_errors($file_codes);
 // list of any input file errors based on one-letter code of input files (see conf_functions.inc.php)
 $input_errors_display = $input_errors == "" && $input_warnings == "" || !empty($Restore_From_File) ? "" : "<div class=\"showhide\">\n\t\t\t\t\t\t\t<p class=\" label bold\" style=\"cursor:pointer\" title=\"Show input errors\">\n\t\t\t\t\t\t\t\t\t<span class=\"normalfont\" style=\"color: red\">Input File Errors Exist: <span class=\"heading normalfont\">(click for details)</span></p>\n\t\t\t\t\t\t\t<div class=\" hidden error\" style=\"display: none;\">\n\t\t\t\t\t\t\t\t<ul class=\"menulist bottommargin1\" id=\"input_errors\">\n\t\t\t\t\t\t\t\t{$input_warnings}\n\t\t\t\t\t\t\t\t{$input_errors}\n\t\t\t\t\t\t\t\t</ul>\n\t\t\t\t\t\t\t\t<span class=\"heading\">See <a href=\"/XGDB/conf/data.php#filename_requirements\">Filename Requirements</a> for more information</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t";
 ############# retrieve disk space data for display ###########
 $validGB_display = $validGB * 10;
 // safety factor threshold
 $path1 = "/xGDBvm/";
 $df_array1 = df_available($path1);
 $filesys1 = $df_array1[0];
 $available1 = $df_array1[1];
 $gb1 = round($available1 / 1000000, 1);
 $gb1_display = $gb1 <= 0.1 ? "<span class=\"warning\">{$gb1}</span>" : "<span class=\"checked\">{$gb1}</span>";
 $gb1_details = $gb1 <= 0.1 ? "<span class=\"warning\">{$gb1} GB</span> may not be sufficient!" : "<span class=\"checked\">{$gb1} GB</span> is sufficient";
 $path2 = "/xGDBvm/data/";
 $df_array2 = df_available($path2);
 $filesys2 = $df_array2[0];