-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
179 lines (139 loc) · 4.43 KB
/
index.php
File metadata and controls
179 lines (139 loc) · 4.43 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
<?php
if(SUPER_USER == "1") {
$page = new HtmlPage();
$page->PrintHeaderExt();
include APP_PATH_VIEWS . 'HomeTabs.php';
$QuickDeleter = new \UIOWA\QuickDeleter\QuickDeleter();
$jsObject = $module->generateJavascriptObject();
?>
<script>
let UIOWA_QD = JSON.parse(<?= json_encode($jsObject) ?>.replaceAll("<", "<")
.replaceAll(">", ">")
.replaceAll(""", '"').replaceAll("&", "&"));
</script>
<div id='qdContainer' style='padding-top: 55px; padding-bottom: 10px;'>
<div id="qdTopContainer" style='text-align:center'>
<h2>Quick Project Deleter</h2>
<?php $module->generateNavLinks() ?>
<hr/>
<div>
<?php
if($_GET["report-id"] == 1) {
echo "My Projects";
} else if($_GET["report-id"] == 2) {
echo "All Projects";
} else if($_GET["report-id"] == 3) {
echo "Custom Report";
}
?>
</div>
<br/>
<button type="button" id="qdReviewSubmit" class="buttonFormatting bigButtonFormatting" style="visibility: hidden;">Review and Submit</button>
</div>
</div>
<div class="modal">
<div class="modal-content">
<span>Review Project Status Changes <button class="modal-close buttonFormatting" style="display: inline; width: 50px; float:right;">Close</button></span>
<hr/>
<div class="modal-delete-table"></div>
<hr id="modal-table-hr" style="display: none;"/>
<div class="modal-restore-table"></div>
<hr/>
<button type="button" id="qdSubmit" class="buttonFormatting bigButtonFormatting">Submit</button>
</div>
</div>
<div id="qdTopContainer" style='text-align:center'>
<table id="qdTable"></table>
</div>
</div>
<style>
/* make the display the full width */
div#outer
{
width: 50%;
}
#pagecontainer
{
max-width: 80%;
/*cursor: progress;*/
}
table thead tr th {
background-color: #aed8ff;
}
table thead tr td {
background-color: #aed8ff;
}
table.dataTable tbody tr:hover td {
background-color: #b7b7b7 !important;
}
.deleteTableHeader {
background-color: #fd3e3e !important;
}
.deleteTableRow {
background-color: #ff9e9e !important;
}
.restoreTableHeader {
background-color: #02c139 !important;
}
.restoreTableRow {
background-color: #8cd58c !important;
}
thead input {
width: 100%;
}
/* The Modal (background) */
.modal {
display: none; /* Hidden by default */
position: fixed; /* Stay in place */
z-index: 1; /* Sit on top */
left: 0;
top: 0;
width: 100%; /* Full width */
height: 100%; /* Full height */
overflow: scroll; /* Enable scroll if needed */
background-color: rgb(0,0,0); /* Fallback color */
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}
/* Modal Content/Box */
.modal-content {
background-color: #fefefe;
margin: 15% auto; /* 15% from the top and centered */
padding: 20px;
border: 1px solid #888;
width: 40%; /* Could be more or less, depending on screen size */
}
/* The Close Button */
button .modal-close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
cursor: pointer;
}
.tableFormatting {
border: 1px solid black;
padding: 3px;
}
.buttonFormatting {
border: 0;
border-radius: 10px;
background-color: #aed8ff;
}
.bigButtonFormatting {
font-size: 20px;
}
</style>
<script src="<?= $module->getUrl("/QuickDeleter.js") ?>"></script>
<script type="text/javascript" src="https://cdn.datatables.net/1.13.4/js/jquery.dataTables.min.js"></script>
<script type="text/javascript" src="https://cdn.datatables.net/select/1.6.2/js/dataTables.select.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.13.4/css/jquery.dataTables.min.css"/>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/select/1.6.2/css/select.dataTables.min.css"/>
<?php
} else {
echo "Something went wrong";
}