/
map-viewer.php
104 lines (94 loc) · 3.01 KB
/
map-viewer.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
<?php
/*
WebMole, an automated explorer and tester for Web 2.0 applications
Copyright (C) 2012-2013 Gabriel Le Breton, Fabien Maronnaud,
Sylvain Hallé et al.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
/* Prevent direct access to this file. */
if ($access != 'authorized')
die('You are not allowed to view this file');
?>
<div class="row" id="map-viewer">
<div class="span8">
<h2>The Circular Map
<div class="pull-right">
<div class="btn-group">
<a class="btn" data-toggle="modal" href="#source_modal" ><i class="icon-edit"></i> Insert map manually</a>
<a class="btn btn-info" data-toggle="modal" href="#upload_modal" ><i class="icon-upload"></i> Upload map</a>
</div>
</div>
</h2>
<div id="infovis"><?php /* Map is generated here */ ?></div>
<div class="btn-group-centered spacer">
<div class="btn-group">
<button class="btn circular-map active">Circular map</button>
<button class="btn force-directed">Force Directed</button>
</div>
</div>
</div>
<div class="span4">
<div id="status" class="alert alert-info"><?php /* status will be written here */ ?></div>
<h2>Nodes Info</h2>
<table class="table table-bordered table-striped">
<colgroup>
<col class="span2"></col>
<col class="span2"></col>
</colgroup>
<thead>
<tr>
<th>Properties</th>
<th>Values</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<code>Name</code>
</td>
<td id="jit-data-name"><?php // name will be written here ?></td>
</tr>
<tr>
<td>
<code>Id</code>
</td>
<td id="jit-data-id"><?php // id will be written here ?></td>
</tr>
<tr>
<td>
<code>Type</code>
</td>
<td id="jit-data-type"><?php // type will be written here ?></td>
</tr>
<tr>
<td>
<code>Path</code>
</td>
<td id="jit-data-path"><?php // path will be written here ?></td>
</tr>
<tr>
<td>
<code>Weight</code>
</td>
<td id="jit-data-weight"><?php // weight will be written here ?></td>
</tr>
</tbody>
</table>
<div id="adjencies"><?php // adjencies will be written here ?></div>
<div class="btn-group-centered spacer">
<div class="btn-group">
<button class="btn btn-danger"><i class="icon-minus-sign"></i> Delete</button>
<button class="btn btn-inverse"><i class="icon-tint icon-white"></i> Restore</button>
</div>
</div>
</div>
</div><!-- /#map-viewer -->