-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtesting2.php
More file actions
209 lines (195 loc) · 7.86 KB
/
testing2.php
File metadata and controls
209 lines (195 loc) · 7.86 KB
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
<?php
session_start();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Welcome</title>
<!-- Bootstrap CSS CDN -->
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<script src="https://unpkg.com/jquery/dist/jquery.min.js"></script>
<script src="https://unpkg.com/survey-jquery@1.9.109/survey.jquery.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/survey-jquery@1.9.109/defaultV2.min.css" />
<style>
/* Additional styles can be added here if needed */
.left-pane, .content-pane {
padding: 10px;
margin-top: 0px;
}
.left-pane {
border-right: 1px solid #ccc;
}
.card {
margin-bottom: 0px;
}
/* Styling for the dark blue div */
.dark-blue-div {
border: 2px solid #0cad5d;
border-radius: 15px;
background-color: #506fa1;
color: white;
padding: 10px;
}
.blue-card {
background-color: #506fa1;
}
/* Styling for the rounded border div */
.rounded-border-div {
border: 2px solid #0cad5d; /* You can change the border color or width as desired */
border-radius: 15px; /* This creates the rounded corners */
padding: 10px;
margin: 5px auto; /* Centers the div horizontally */
text-align: center; /* Centers the content inside */
/* color: white; */
}
/* Styling for the rounded border div */
.rounded-border-div-1 {
border: 2px solid #0cad5d; /* You can change the border color or width as desired */
border-radius: 10px; /* This creates the rounded corners */
padding: 1px;
margin: 1px auto; /* Centers the div horizontally */
text-align: center; /* Centers the content inside */
}
/* styles.css */
.white-text {
color: white;
}
.badge {
background-color: #007bff; /* Blue color */
color: white; /* White text */
padding: 5px 10px; /* Padding */
font-size: 12px; /* Font size */
border-radius: 50%; /* Rounded corners for a circular badge */
}
</style>
</head>
<body>
<!-- Dark Blue Div with Heading -->
<a href="http://162.240.104.198:8088/" style="color: blue; text-decoration: underline; text-align: right;">Go To Dashboard</a>
| <a href="logout.php" id="logoutLink" style="color: blue; text-decoration: underline; text-align: right;">Logout</a>
<div>
<div class="dark-blue-div">
<h2>DSbD Self-Assessment Tool <span style="float: right;">ROLE:
<?php
// session_start();
if(isset($_SESSION['position'])) {
echo $_SESSION['position'];
}
?>
</span>
</h2>
</div>
<div class="container-fluid">
<div class="row">
<!-- Left Pane -->
<div class="col-md-3 left-pane">
<!-- Card 1 -->
<div class="card blue-card rounded-border-div-1">
<div class="card-body">
<h5 class="card-title">
<a href="testing2.php?dc=Security Priority and Investment" style="color: white;"> <p>Security Priority and Investment </p></a>
<?php
require_once 'utils.php';
checkStatus('Security Priority and Investment');
?>
</h5>
</div>
</div>
<!-- Card 2 -->
<div class="card blue-card rounded-border-div-1">
<div class="card-body">
<h5 class="card-title white-text" >
<a href="testing2.php?dc=Incidents and Breaches" style="color: white;"> <p>Incidents and Breaches </p></a>
<?php
require_once 'utils.php';
checkStatus('Incidents and Breaches')
?>
</h5>
</div>
</div>
<!-- Card 3 -->
<div class="card blue-card rounded-border-div-1">
<div class="card-body">
<h5 class="card-title">
<a href="testing2.php?dc=Technology and Data Usage" style="color: white;"> <p>Technology and Data Usage </p></a>
<?php
require_once 'utils.php';
checkStatus('Technology and Data Usage','yeye')
?>
</h5>
</div>
</div>
<!-- Card 4 -->
<div class="card blue-card rounded-border-div-1">
<div class="card-body">
<h5 class="card-title">
<a href="testing2.php?dc=Security in technology adoption" style="color: white;"> <p>Security in technology adoption</p></a>
<?php
require_once 'utils.php';
checkStatus('Security in technology adoption','yeye')
?>
</h5>
</div>
</div>
<!-- Card 5 -->
<div class="card blue-card rounded-border-div-1">
<div class="card-body">
<h5 class="card-title">
<a href="testing2.php?dc=DSbD specific awareness" style="color: white;"> <p>DSbD-specific awareness </p></a>
<?php
require_once 'utils.php';
checkStatus('DSbD specific awareness','yeye')
?>
</h5>
</div>
</div>
</div>
<!-- Content Pane -->
<div class="col-md-9 content-pane">
<!-- <div class="dark-blue-div rounded-border-div">
<h2>
<?php
// if(isset($_GET['dc'])){
// echo $_GET['dc'];
// }
?>
</h2>
</div> -->
<div class="rounded-border-div-1" style="border: 2px solid #0cad5d; border-radius: 15px; padding: 20px; min-height: 300px; margin: 5px auto; text-align:left;">
<div id="surveyContainer"></div>
<div id="surveyElement"></div>
</div>
</div>
</div>
</div>
<div class="dark-blue-div">
<h6>DSbD Self-Assessment Tool <span style="float: right;"><button class="btn-primary">Save for later use</button></span></h6>
</div>
</div>
<!-- Bootstrap JS and Popper.js CDN -->
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.16.0/umd/popper.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<script src="./js/json.js"></script>
<script src="./js/theme.js"></script>
<script>
function logout() {
sessionStorage.removeItem("position");
sessionStorage.removeItem("username");
sessionStorage.removeItem("questionare");
sessionStorage.clear();
window.location="login.php";
}
function exit(){
}
$(document).ready(function() {
$("#logoutLink").click(function(event) {
event.preventDefault();
logout();
});
});
</script>
</body>
</html>