-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.php
219 lines (214 loc) · 9.54 KB
/
index.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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
<?php
include_once('common.php');
include_once('partials/stats.php');
include_once('partials/header.php');
?>
<div class="container">
<div id="content">
<div class="jumbotron">
<div class="container">
<span id="title_fix"></span>
<p class="about"><span><strong>DV<span style="color: #ea2f10;">-IMPACT</span></strong></span> Database is an online resource for disease variants and their impacts on domain-peptide protein interaction networks. <a href='faqs/'>Read more...</a></p>
</div>
<div class="row">
<div class="col-md-3">
<div class="list-group">
<li class="list-group-item">Can-VD Statistics</li>
<li class="list-group-item">Proteins
<span data-color="alert-info" class="badge">
<?php echo number_format(intval($protein_count));?>
</span>
</li>
<li class="list-group-item">Domains/PWMs
<span data-color="alert-info" class="badge">
<?php echo number_format(intval($domain_count)) .' / '. number_format(intval($pwm_count));?>
</span>
</li>
<li class="list-group-item">Interactions
<span data-color="alert-info" class="badge">
<?php echo number_format(intval($interaction_count));?>
</span>
</li>
<li class="list-group-item">Variants
<span data-color="alert-info" class="badge">
<?php echo number_format(intval($mutation_count));?>
</span>
</li>
<li class="list-group-item">Rewiring Effects
<span data-color="alert-info" class="badge">
<?php echo number_format(intval($rewire_count));?>
</span>
</li>
</div>
<div class="panel panel-default">
<div class="panel-heading">
<a href="./announce/">Announcements and News</a>
</div>
<div class="panel-body">
<?php
$query = 'SELECT * FROM announcements WHERE `show_homepage`=1 AND `show`=1 ORDER BY id DESC;';
$stmt = $dbh->prepare($query);
$stmt->execute();
while ($row = $stmt->fetch()) {
?>
<div style="margin-bottom:15px;">
<span>
<a href="./announce/"><?php echo $row[2];?></a><br>
<small><?php echo $row[1];?></small>
</span>
<?php echo substr($row[3], 0, strpos($row[3], ".") + 1); ?>
<br><a href='announce/'>Read more...</a>
</div>
<?php } ?>
</div>
</div>
</div>
<div class="col-md-9">
<form id="search_form" action="./network/" method="get" >
<div class="input-group input-group-lg">
<input type="search" id="search_input" name="genename" class="form-control" placeholder="Enter a protein name or Ensembl ID. Examples: LYN, CRK, ENSP00000348602" >
<span class="input-group-btn">
<button type="submit" class="btn btn-danger" type="button" id="search_btn">Search</button>
<button class="btn btn-default" type="button" id="advanced_btn">Advanced</button>
</span>
</div>
<div id="advanced-search-box" style="display:none">
<div class="form-signin">
<div class="col-md-12" style="margin-bottom:10px;">
<h3 style="">Mutation Types</h3>
</div>
<div class="col-md-4">
<div class="form-group">
<label class="control-label">Mutation Type</label>
<input type='hidden' value='true' name="main_search">
<?php
//Get all Mutation Types
$query = "SELECT DISTINCT Mut_Description FROM T_Mutations;";
$stmt = $dbh->prepare($query);
$stmt->execute();
while ($row = $stmt->fetch()) {
?>
<div class="checkbox">
<label>
<input type="checkbox" checked name="mut_type[]" id="variant-effect-0"
value="<?php echo $row[0] ?>">
<?php echo $row[0] ?>
</label>
</div>
<?php } ?>
</div>
</div>
<div class="col-md-3">
<div class="form-group">
<label class="control-label">Variant Data Sources</label><br>
<?php
//Get all database sources.
$query = "SELECT DISTINCT Source FROM T_Mutations;";
$stmt = $dbh->prepare($query);
$stmt->execute();
while ($row = $stmt->fetch()) {
?>
<label class="checkbox-inline" for="data-source-box-0">
<input type="checkbox" checked name="source[]" id="data-source-box-0"
value="<?php echo trim($row[0]); ?>">
<?php echo $row[0]; ?>
</label>
<?php } ?>
</div>
</div>
</div>
</form>
</div>
<div id="browse-and-tabs">
<ul class="nav nav-tabs" id="browse-tabs">
<li class="active"><a data-tab="protein">Tissues/Cancer Types</a></li>
<li><a data-tab="cancer">Proteins</a></li>
<li><a data-tab="tumor">PWMs</a></li>
</ul>
<div id="tissue-table">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Tissue</th>
<th>Total Variants (Mutations)</th>
<th>Gain of Interaction</th>
<th>Loss of Interaction</th>
<th>Total Proteins</th>
<th>Details</th>
</tr>
</thead>
<tbody id="tissue-table-body"></tbody>
</table>
<ul class="pager" id="tissue-page" data-page=0>
<li><a id="tissue-back">Previous</a></li>
<span class='num-viewer'> Viewing
<span id="tissue-start">1</span>-
<span id="tissue-end">10</span> of <span id="tissue-total">40</span></span>
<li><a id="tissue-forward">Next</a></li>
</ul>
</div>
<script src="assets/scripts/home.js"></script>
<div id="protein-table">
<table class="table table-striped table-hover">
<thead>
<tr>
<th>Protein ID</th>
<th>Protein Name</th>
<th>Domain</th>
<th>Gain of Interactions</th>
<th>Loss of Interactions</th>
<th>Total Interactions</th>
<th>Details</th>
</tr>
</thead>
<tbody id="protein-table-body">
</tbody>
</table>
<ul class="pager" id="protein-page" data-page=0>
<li><a id="protein-back">Previous</a></li>
<span class='num-viewer'> Viewing
<span id="protein-start">1</span>-
<span id="protein-end">20</span> of <span id="protein-total">40</span></span>
<li><a id="protein-forward">Next</a></li>
</ul>
</div>
<div class="modal fade" id="testing">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">PWM Logo</h4>
</div>
<p id="actual-image-content" class="row text-center"></p>
</div>
</div>
</div>
<div id="pwm-table">
<table class="table table-striped table-hover" id="pwm-actual-table">
<thead>
<tr>
<th>PWM</th>
<th>Logo</th>
<th>PWM</th>
<th>Logo</th>
</tr>
</thead>
<tbody id="pwm-table-body"></tbody>
</table>
<ul class="pager" id="pwm-page" data-page=0>
<li><a id="pwm-back">Previous</a></li>
<span class='num-viewer'> Viewing
<span id="pwm-start">1</span>-
<span id="pwm-end">20</span> of <span id="pwm-total">40</span>
</span>
<li><a id="pwm-forward">Next</a></li>
</ul>
</div>
</div>
</div>
</div>
<?php include_once('partials/footer.php'); ?>
</div>
</div>
</body>
</html>