-
Notifications
You must be signed in to change notification settings - Fork 3
/
printSetlist.html
90 lines (75 loc) · 2.01 KB
/
printSetlist.html
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Musikteam - print sang</title>
<link href="musikstyle.css" type="text/css" rel="stylesheet" media="screen" />
<script src='js/renderModPro.js' type="text/javascript"></script>
<script type="text/javascript">
var songCount = 0;
var personCount = 0;
var printedSongs = 0;
var printedPersons = 0;
function setupPrint(numSongs, numPersons, eventTitle)
{
songCount = numSongs;
personCount = numPersons;
document.getElementById('event').innerHTML = eventTitle;
}
function insertSong(title, heading)
{
var tbl = document.getElementById('songs');
try {
var newRow = tbl.insertRow(-1);
var newCell = newRow.insertCell(0);
newCell.innerHTML = title;
var newCell = newRow.insertCell(1);
newCell = newRow.insertCell(2);
newCell.innerHTML = heading;
songCount--;
} catch (ex) {
//document.getElementById(txtError).value = ex;
}
if (songCount == 0 && personCount==0) print();
}
function insertPerson(name, role)
{
var tbl = document.getElementById('band');
try {
var newRow = tbl.insertRow(-1);
var newCell = newRow.insertCell(0);
newCell.innerHTML = name;
var newCell = newRow.insertCell(1);
newCell = newRow.insertCell(2);
newCell.innerHTML = role;
personCount--;
} catch (ex) {
//document.getElementById(txtError).value = ex;
}
if (songCount == 0 && personCount==0) print();
}
</script>
</head>
<html>
<body onLoad="javascript:window.opener.fillPrintSetWindow()">
<div align="left" id="content">
<h2 id="event"></h2>
<h3>Sange</h3>
<table id="songs" border="0">
<tr>
<td><strong>Sang<strong></td>
<td width="20"></td>
<td><strong>Overskrift<strong></td>
</tr>
</table>
<h3>Band</h3>
<table id="band" border="0">
<tr>
<td><strong>Musiker<strong></td>
<td width="20"></td>
<td><strong>Rolle<strong></td>
</tr>
</table>
</div>
</body>
</html>