-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpublishing-status.php
112 lines (92 loc) · 3.25 KB
/
publishing-status.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
<!DOCTYPE html>
<html>
<head>
<title>Publishing Status | Kaitaia Publishing Collective</title>
<?php include 'templates/head-meta.html'; ?>
<?php include 'templates/head-css.html'; ?>
<!-- required for pages with the login modal form -->
<link rel="stylesheet" href="login-modal.css">
<style>
body, html {
height: 100%;
font-family: "Inconsolata", sans-serif;
}
.menu {
display: none;
}
</style>
</head>
<body>
<?php
session_start();
?>
<!-- Nav Links (sit on top) -->
<?php include 'templates/nav.php'; ?>
<section class="w3-white w3-large px-48 pb-48">
<header class="w3-container mt-55" id="home">
<h1 class="w3-center">Publishing Status</h1>
<p class="w3-center w3-text-grey">Select a manuscript from the list to manage its publishing status:</p>
</header>
<!-- Manuscripts Table -->
<div class="w3-responsive w3-margin-top w3-padding-bottom">
<table class="w3-table-all w3-hoverable">
<thead>
<tr class="w3-light-grey">
<th>...</th>
<th>Title</th>
<th>Author</th>
<th>Email</th>
<th>Date Received</th>
<th>Download</th>
</tr>
</thead>
<tbody>
<?php include 'templates/dummy-table-rows.php'; ?>
</tbody>
</table>
</div>
</section>
<!-- Publishing Status Update Form -->
<section class="w3-light-grey w3-large px-64 pt-24 pb-48">
<div>
<form action="#" method="POST" class="w3-container w3-card w3-white w3-round w3-padding">
<h3>Selected: <b>The Great Adventure by John Doe</b></h3>
<!-- Update Publishing Status -->
<label for="publishing_status" class="w3-text-dark-grey"><b>Update Publishing Status</b></label>
<select id="publishing_status" name="publishing_status" class="w3-select w3-border w3-round w3-margin-bottom">
<option value="" disabled selected>Choose a status</option>
<option value="not_sent">Not sent to printer</option>
<option value="printer_has_it">Printer has it</option>
<option value="being_printed">Being printed</option>
<option value="ready_to_publish">Ready to publish</option>
</select>
<!-- Save Button -->
<button type="submit" class="w3-button w3-blue w3-round w3-block">Save Status</button>
</form>
</div>
</section>
<!-- Footer -->
<?php include 'templates/footer.php'; ?>
<!-- Including modals here, just before the end of the body -->
<?php include 'author-login.html'; ?>
<?php include 'staff-login.html'; ?>
<?php include 'staff-add.html'; ?>
<script>
// Tabbed Menu
function openMenu(evt, menuName) {
var i, x, tablinks;
x = document.getElementsByClassName("menu");
for (i = 0; i < x.length; i++) {
x[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablink");
for (i = 0; i < x.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" w3-dark-grey", "");
}
document.getElementById(menuName).style.display = "block";
evt.currentTarget.firstElementChild.className += " w3-dark-grey";
}
document.getElementById("myLink").click();
</script>
</body>
</html>