Skip to content

Commit 2822592

Browse files
committed
Change qslprint.php behavior for more user joy
1 parent c82fd4e commit 2822592

File tree

3 files changed

+50
-7
lines changed

3 files changed

+50
-7
lines changed

css/qsl.css

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ input#submit {
3434
padding:5px 25px; /*add some padding to the inside of the button*/
3535
background:#2e64fe; /*the colour of the button*/
3636
border:1px solid #ffffff; /*required or the default border for the browser will appear*/
37-
/*give the button curved corners, alter the size as required*/
38-
-moz-border-radius: 10px;
39-
-webkit-border-radius: 10px;
40-
border-radius: 10px;
41-
/*style the text*/
4237
color:#f3f3f3;
4338
font-size:1.1em;
4439
}
4540
input#submit:hover, input#submit:focus {
4641
background-color :#0431b4; /*make the background a little darker*/
4742
}
4843

44+
.qsl-img {
45+
border: 5px solid #eaeaea;
46+
}

qslfetch.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<body>
3131
<header class="shadow-md bg-dark px-3">
3232
<div class="row">
33-
<h4><?php echo $club_call; ?> QSL Print System</h4>
33+
<h3><?php echo $club_call; ?> QSL Print System</h3>
3434
</div>
3535
</header>
3636

qslprintpost.php

Lines changed: 46 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,50 @@
2020
# Emit!
2121
$imgfile = sprintf("cards/%s.jpg", uniqid("$club_call-", true));
2222
$image->writeImages($imgfile, true);
23-
printf("<html><head><meta http-equiv=\"refresh\" content=\"0; url=%s\" /></head></html>", $imgfile);
23+
//printf("<html><head><meta http-equiv=\"refresh\" content=\"0; url=%s\" /></head></html>", $imgfile);
2424
?>
25+
26+
<!DOCTYPE html>
27+
<html lang="en">
28+
<head>
29+
<meta charset="utf-8">
30+
<meta name="viewport" content="width=device-width, initial-scale=1">
31+
<title><?php echo $club_call; ?> QSL Print System</title>
32+
<link href="css/bootstrap.min.css" rel="stylesheet">
33+
<link href="css/qsl.css" rel="stylesheet">
34+
</head>
35+
36+
<body>
37+
<header class="shadow-md bg-dark px-3">
38+
<div class="row">
39+
<h4><?php echo $club_call; ?> QSL Print System</h4>
40+
</div>
41+
</header>
42+
43+
<main>
44+
<div class="container">
45+
<div class="row p-3">
46+
<center>
47+
<a class="btn btn-secondary" role="button" href="<?php print $imgfile; ?>" download>Click Here to Download Image for Printing</a>
48+
</center>
49+
</div>
50+
<div class="row">
51+
<div class="col-12">
52+
<center>
53+
<img class="img-fluid qsl-img" src="<?php print $imgfile; ?>" alt="QSL Card Image">
54+
</center>
55+
</div>
56+
</div>
57+
</div>
58+
</main>
59+
<footer>
60+
<div class="d-flex">
61+
<p class="text-muted">Site information &copy;&nbsp;<?php print date("Y"); ?>&nbsp;<?php print $club_name; ?><br/>
62+
Powered by <a href="https://github.com/jxmx/smooth-qsl" target="_blank">Smooth QSL</a></p>
63+
</div>
64+
</footer>
65+
<script src="js/bootstrap.min.js"></script>
66+
<script src="js/smoothqsl.js"></script>
67+
</body>
68+
</html>
69+

0 commit comments

Comments
 (0)