-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcoverpage.php
130 lines (104 loc) · 2.97 KB
/
coverpage.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Coverpage</title>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/tailwind.min.css" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=Times+New+Roman&display=swap" rel="stylesheet">
<link href="./static/css/paper.css" rel="stylesheet">
<link src="./static/js/pdf.js">
<style>
body {
font-family: 'Times New Roman', serif;
margin: 0;
padding: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: 'Times New Roman', serif;
}
#vspace {
height: 50px;
}
@media print {
.no-print,
.no-print * {
display: none !important;
}
}
</style>
<style>
@page {
size: A4
}
</style>
</head>
<body class="A4">
<section class="sheet padding-20mm" id="sheet">
<div class="container mx-auto text-center mt-4">
<img src="./static/images/reliance.png" alt="Reliance College" class="w-40 mx-auto">
<div class="mt-8">
<h1 class="text-4xl font-bold">RELIANCE COLLEGE</h1>
<h2 class="text-lg font-bold">Chabahil, Kathmandu</h2>
<p>[Affiliated to TU]</p>
</div>
<div class="flex justify-center items-center mt-8">
<!-- Replace the CSS-generated lines with the "middlelines.png" image -->
<img src="./static/images/lines.svg" alt="Middle Lines" class="mx-auto" width="" height="">
</div>
<div id="vspace"></div>
<div class="mt-8">
<h3 class="text-2xl">Lab Reports of</h3>
<h4 class="text-xl font-bold">
<?= $_GET['subject'] ?>
</h4>
</div>
<div id="vspace"></div>
<div class="grid grid-cols-2 gap-x-8 mt-16">
<div class="text-left">
<p class="font-bold">Submitted By:</p>
<p>Name:
<?= $_GET['name'] ?>
</p>
<p>Semester:
<?= $_GET['semester'] ?>
</p>
<p>Program:
<?= $_GET['program'] ?>
</p>
<p>Registration No:
<?= $_GET['registernumber'] ?>
</p>
</div>
<div class="text-right">
<p class="font-bold">Submitted To:</p>
<p>
<?= $_GET['teachersname'] ?>
</p>
<p>Lecturer/Faculty Member</p>
<p>
<?= $_GET['department'] ?> Department
</p>
</div>
</div>
</div>
</section>
<script>
document.getElementById('copyLinkButton').addEventListener('click', function () {
const currentUrl = window.location.href;
const tempInput = document.createElement('input');
tempInput.value = currentUrl;
document.body.appendChild(tempInput);
tempInput.select();
document.execCommand('copy');
document.body.removeChild(tempInput);
alert('Link copied to clipboard!');
});
</script>
</body>
</html>