-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
169 lines (139 loc) · 4.69 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
<?php
require_once ("Admin/functions.php");
if(isset($_GET['group']))
{
$groupname= $_GET['group'];
}
$dashrows = null;
$groupname= "";
$groupid = "";
$url = "";
$urlid = "";
if(isset($_GET['group']))
{
$groupname= $_GET['group'];
$row = getTDashboardgroupOnebyname($groupname);
$groupid = $row['id'];
if($groupid)
{
$dashrows = getdashboardsByGroupId($groupid);
}
}
else
{
}
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="Admin/bootstrap/css/bootstrap.min.css" type="text/css" />
<script src="Admin/bootstrap/js/jquery.min.js"></script>
<script src="Admin/bootstrap/js/bootstrap.min.js" type="text/javascript"></script>
<script src="js/annyang.min.js" id="annyang"></script>
<script src='https://code.responsivevoice.org/responsivevoice.js'></script>
<script src="js/tableau-2.min.js" type="text/javascript"></script>
<script type="text/javascript">
$( document ).ready(function() {
$("#micIndicator").hide();
$("#micIndicatorOff").hide();
$('#imgStart').click(function() {
stopTableau();
console.log('start');
});
$('#imgStop').click(function() {
console.log('stop');
startTableau();
});
});
</script>
<style type="text/css">
#wrapper {
width: 100%;
}
.navbar-default {
background-color: <?php echo $keyPairCongig['headercolor']; ?>;
}
</style>
<script type="text/javascript" src="tableau.php?group=<?php echo $groupname; ?>"></script>
</head>
<body onload="initViz('')">
<div id="wrapper">
<nav class="navbar navbar-default" role="navigation" style="margin-bottom: 0">
<div class="navbar-header">
<a class="navbar-brand" href="#" style="color:#efeded"> <?php
echo $keyPairCongig['logourl']==""?$keyPairCongig['AppName']:'<img src='.$keyPairCongig['logourl'].' alt="'.$keyPairCongig['AppName'].'" />';
?></a>
</div>
<!-- /.navbar-header -->
<!-- /.navbar-static-side -->
<ul class = "nav navbar-top-links navbar-right" style="margin-right:15px; margin-top:10px;" >
<li id="micIndicatorOff" >
<img style="background: url(./images/off.png) no-repeat;cursor:pointer;border: none;" id="imgStop" src="./images/off.png" />
<!-- <input type="image" name="button" onclick="manualStopTableau()" style="background: url(./images/off.png) no-repeat;cursor:pointer;border: none;"></input> -->
</li>
<li id="micIndicator" >
<img style="background: url(./images/on.png) no-repeat;cursor:pointer;border: none;disabled:none;" id="imgStart" src="./images/on.png" />
<!-- <input type="image" name="button" text="" onclick="manualStarTableau()" style="background: url(./images/on.png) no-repeat;cursor:pointer;border: none;"></input> -->
</li>
</ul>
</nav>
<div class="row">
<?php
$count = count($dashrows);
if($count <= 12)
{
$count = 12/$count;
}
foreach ($dashrows as $key => $value) {
$onclick =" onclick=".""."tNavigate('".$value['id']."','".$value['url']."');"."";
echo '<div class="col-md-'.$count.'" ><button class="btn btn-block btn-default btn-xs"'.$onclick.' >'.$value['dashboardname'].'</button></div>';
}
?>
</div>
<div class="row">
<div class="col-md-12">
<div id="vizContainer" ></div>
<div id="audio"></div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<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" id="myModalLabel">TOV Help</h4>
</div>
<div class="modal-body">
<p> Help page:- I am Kacie please read the Instruction to select your favorite selection fields</p>
<p> When you will say below commands then voice command will be activated and you will see the simulation in dashboard</p>
<p>
• Say:- select nomination Leonardo DiCaprio
• Say:- select year 2016
• Say:- select movie American Sniper
• Say:- select category Best Actor
• Say:- clear all films
• Say:- clear all year
• Say:- clear all nomination
• Say:- clear all category
• Say:- select all year
• Say:- select all category
• Say:- add category Best Actor
• Say:- remove category Best Actor
• Say:- reset all, start over
</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Save changes</button>
</div>
</div>
</div>
</div>
</div>
<script>
// Start listening.
annyang.start();
</script>
</body>
</html>