-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
74 lines (65 loc) · 3.02 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
<?php
// show all warning and errors
error_reporting(E_ALL);
ini_set('display_errors', 1);
// the maximum execution time, in seconds. If set to zero, no time limit is imposed.
set_time_limit(0);
// module
if(isset($_GET['route'])) {
$module = $_GET['route'];
} else {
$module = 'main';
}
// route
$route = $module.'/index.php';
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="language" content="en" />
<link rel="stylesheet" type="text/css" href="css/main.css" />
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<script type="text/javascript" src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<title>Twitter Digger</title>
</head>
<body>
<div class="container">
<nav class="navbar navbar-inverse" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="./">Twitter Digger</a>
</div>
</div><!-- /.container-fluid -->
</nav>
<div class="row">
<div class="col-md-3">
<div class="well well-sm">
<ul class="nav nav-pills nav-stacked" id="yw1">
<li<?php echo ($module == 'main')?' class="active"':'';?>><a href="index.php"><span class="glyphicon glyphicon-dashboard"></span> Dashboard</a></li>
<li<?php echo ($module == 'collect-tweets')?' class="active"':'';?>><a href="index.php?route=collect-tweets"><span class="glyphicon glyphicon-floppy-disk"></span> Collect Tweets</a></li>
<li<?php echo ($module == 'term-frequency')?' class="active"':'';?>><a href="index.php?route=term-frequency"><span class="glyphicon glyphicon-signal"></span> Term Frequency</a></li>
<li<?php echo ($module == 'burstiness')?' class="active"':'';?>><a href="index.php?route=burstiness"><span class="glyphicon glyphicon-fire"></span> Burstiness</a></li>
<li<?php echo ($module == 'named-entities')?' class="active"':'';?>><a href="index.php?route=named-entities"><span class="glyphicon glyphicon-th-list"></span> Named Entities</a></li>
<li<?php echo ($module == 'content-quality')?' class="active"':'';?>><a href="index.php?route=content-quality"><span class="glyphicon glyphicon-ok"></span> Content Quality</a></li>
</ul>
</div>
</div>
<div class="col-md-9">
<?php include($route);?>
</div>
</div>
<div id="footer">
Copyright © 2014
</div><!-- footer -->
</div><!-- page -->
</body>
</html>