-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathviewAllCNVByAccessionAndCopyNumbers.blade.php
57 lines (45 loc) · 1.81 KB
/
viewAllCNVByAccessionAndCopyNumbers.blade.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
@php
include resource_path() . '/views/system/config.blade.php';
$organism = $info['organism'];
$accession = $info['accession'];
$cnv_result_arr = $info['cnv_result_arr'];
@endphp
<head>
<title>{{ $config_organism }}-KB</title>
<link rel="shortcut icon" href="{{ asset('css/images/Header/kbcommons_icon.ico') }}">
<script src="https://code.jquery.com/jquery-3.6.0.min.js" integrity="sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=" crossorigin="anonymous"></script>
</head>
<body>
<!-- Back button -->
<a href="{{ route('system.tools.GenVarX', ['organism'=>$organism]) }}"><button> < Back </button></a>
<br />
<br />
<h3><b>CNV regions and CNs of accession {{ $accession }}:</b></h3>
@php
if (isset($cnv_result_arr) && is_array($cnv_result_arr) && !empty($cnv_result_arr) && !is_null($cnv_result_arr)) {
echo "<div style=\"width:auto; height:auto; border:3px solid #000; max-height:1000px; overflow:scroll;\">";
echo "<table style=\"text-align:center; width:100%;\">";
// Table header
echo "<tr>";
foreach ($cnv_result_arr[0] as $key => $value) {
echo "<th style=\"border:1px solid black; text-align:center; min-width:80px;\">" . $key . "</th>";
}
echo "</tr>";
// Table row
for ($i = 0; $i < count($cnv_result_arr); $i++) {
// Table row
echo "<tr bgcolor=\"" . ($i % 2 ? "#FFFFFF" : "#DDFDD") . "\">";
foreach ($cnv_result_arr[$i] as $key => $value) {
echo "<td style=\"border:1px solid black; min-width:80px;\">" . $value . "</td>";
}
echo "</tr>";
}
echo "</table>";
echo "</div>";
} else {
echo "<p>No CNV data found!!!</p>";
}
@endphp
</body>
<script type="text/javascript">
</script>