-
Notifications
You must be signed in to change notification settings - Fork 2
/
display.php
57 lines (55 loc) · 1.61 KB
/
display.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CopyDoc | Display</title>
<link rel="icon" href="images/copydoc.ico" />
<!-- Custom style:css -->
<link rel="stylesheet" href="css/style.css">
<!-- end style:css -->
<style>
body {
padding: 10px;
margin: 0;
width: 100%;
font-family: sans-serif;
box-sizing: border-box;
}
</style>
<script>
window.print();
</script>
</head>
<body>
<table style="border-collapse: separate;">
<tbody>
<?php
for ($i = 1; $i < 16; $i++) {
?>
<tr>
<?php for ($j = 1; $j < 3; $j++) { ?>
<td>
<div>
<?php foreach ($_POST['text'] as $k => $text) {
$text = str_replace('<<', '<b>', $text);
$text = str_replace('>>', '</b>', $text);
$text = str_replace('<>', '<br>', $text);
?>
<?php if ($_POST['type'][$k] == 'header'): ?>
<h6 class="<?php echo $_POST['sty'][$k] . ' ' . $_POST['size'][$k] ?>"><?php echo $text ?></h6>
<?php else: ?>
<p class="<?php echo $_POST['sty'][$k] . ' ' . $_POST['size'][$k] ?>"><?php echo $text ?></p>
<?php endif; ?>
<?php } ?>
</div>
</td>
<?php } ?>
</tr>
<?php }
?>
</tbody>
</table>
</body>
</html>