-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
265 lines (111 loc) · 5.68 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<title>NerdSquad</title>
<!-- Bootstrap core CSS -->
<link href="../css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this templates -->
<link rel="stylesheet" type="text/css" href="../css/style.css">
<link rel="stylesheet" type="text/css" href="../css/panel.css">
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,600,700' rel='stylesheet' type='text/css'>
<!--<link rel="stylesheet" type="text/css" href="../css/bootstrap-theme.min.css">-->
</head>
<body>
<!----------------Creating the navigation panel---------------------->
<header>
<div class="navbar navbar-inverse navbar-fixed-top " role="navigation">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<p id="profile">ThoughtSpot2.0</p>
</div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right" id="mainmenu">
<li ><a href=""><span class="glyphicon glyphicon-question-sign" ></span> How're you feeling</a></li>
<li ><a style="" href=""><span class="glyphicon glyphicon-user" ></span> Thoughts</a></li>
<li ><a href=""><span class="glyphicon glyphicon-envelope" ></span> Contact a specialist</a></li>
</ul>
</div>
</div>
</div>
</header>
<!------------------------------------------------------------------->
<div class="col-sm-3 col-sm-offset-1 blog-sidebar">
<div class="sidebar-module sidebar-module-inset" id="right-panel">
<h1>ThoughtSpot Resources</h1>
<!--Create 'search' element -->
<form action="">
<input id="search" type="search" name="googlesearch">
<input type="image" src="../images/loupe1.png" alt="Submit" style="width:15px; height:15px;">
</form>
<br>
<p class="show">Show me: </p>
<div class="dropdown dropdown-right">
<p class=" dropdown-show" data-toggle="dropdown" id="resourcename">all resources <span class="glyphicon glyphicon-collapse-down" ></span></p>
<ul class="dropdown-menu" role="menu">
<li><a href="#" onClick="recp('Family')" > Family and Friends </a></li>
<li><a href="#" onClick="recp('Health')" > Health and Social Services </a></li>
<li><a href="#" onClick="recp('Legal')" > Legal and Financial </a></li>
<li><a href="#" onClick="recp('Recreation')" > Recreation and Culture </a></li>
<li><a href="#" onClick="recp('Spirituality')" > Spirituality and Wellbeing </a></li>
<li><a href="#" onClick="recp('Work')" > Work and School </a></li>
<li><a href="#" onClick="recp('Sex')" > Sex and Relationships </a></li>
</ul>
</div>
<div id="list">
</div>
</div>
</div><!-- /.blog-sidebar -->
<div id="bodycontainer">
<?php include("../maps/index.php"); ?>
</div> <!-- /container -->
<footer class="footer">
<p id="footer">ThoughtSpot2.©</p>
</footer>
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<script src="../js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="../js/ie10-viewport-bug-workaround.js"></script>
<script src="../js/ie-emulation-modes-warning.js"></script>
<script type="text/javascript">
function recp(cate) {
$('#list').load('data.php?cate=' + cate);
if(cate == "Family"){
var element = document.getElementById("resourcename");
element.innerHTML = "Family and Friends";
}else if(cate == "Health"){
var element = document.getElementById("resourcename");
element.innerHTML = "Health and Social Services";
}else if(cate == "Legal"){
var element = document.getElementById("resourcename");
element.innerHTML = "Legal and Financial";
}else if(cate == "Recreation"){
var element = document.getElementById("resourcename");
element.innerHTML = "Recreation and Culture";
}else if(cate == "Spirituality"){
var element = document.getElementById("resourcename");
element.innerHTML = "Spirituality and Wellbeing";
}else if(cate == "Work"){
var element = document.getElementById("resourcename");
element.innerHTML = "Work and School";
}else if(cate == "Sex"){
var element = document.getElementById("resourcename");
element.innerHTML = "Sex and Relationships";
}
}
</script>
</body>
</html>