File: history.xsl

package info (click to toggle)
foobillardplus 3.43~svn170%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 86,620 kB
  • ctags: 2,010
  • sloc: ansic: 125,581; makefile: 268; xml: 32; sh: 1
file content (199 lines) | stat: -rw-r--r-- 7,953 bytes parent folder | download | duplicates (5)
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
<?xml version="1.0" encoding="utf-8"?>
<!-- Edited by FooBillard++ -->
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/start">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<title><xsl:value-of select="title"/></title>
<style type="text/css" media="all">
@import url("styles.css");
</style>
<!--[if IE 5]>
<style type="text/css"> 
#outerWrapper #contentWrapper #leftColumn1 {
  width: 200px;
}
</style>
<![endif]-->
<!--[if IE]>
<style type="text/css"> 
#outerWrapper #contentWrapper #content {
  zoom: 1;
}
</style>
<![endif]-->
<script language="JavaScript">
function toggle(toggleMe) {
  document.getElementById(toggleMe).style.visibility = "visible";
  if(document.getElementById(toggleMe).style.display == "none" ) {
    document.getElementById(toggleMe).style.display = "";
  }
  else {
    document.getElementById(toggleMe).style.display = "none";
  }
}
</script>
</head>
<body>
<div id="header">
  <div id="logo"><img src="images/logo.jpg" alt="Logo" width="299" height="54" /></div>
  <div id="links"><a href="mailto:foobillardplus@go4more.de">Contact Us</a></div>
  <div class="clearFloat"></div>
</div>
<div id="outerWrapper">
  <div id="gradient">
    <div id="feature"></div>
    <div id="contentWrapper">
      <div id="content"> 
        <!-- 8 Ball -->
        <h1><xsl:value-of select="title"/></h1><br />
        <h2><a href="#" onclick="toggle('eightblock');"><xsl:value-of select="eighttitle"/></a></h2>
        <p>
        <div id="eightblock" style="display:none">
        <div class="headerdiv">
        <table>
          <tr>
            <th style="width:16%;"><xsl:value-of select="column1"/></th>
            <th style="width:16%;"><xsl:value-of select="column2"/></th>
            <th style="width:16%;"><xsl:value-of select="column3"/></th>
            <th style="width:16%;"><xsl:value-of select="column4"/></th>
            <th style="width:16%;"><xsl:value-of select="column5"/></th>
            <th style="width:16%;"><xsl:value-of select="column6"/></th>
            <th style="width:4%;"> </th>
          </tr>
        </table>
        </div>
        <div class="tablediv">
        <table>
          <xsl:for-each select="eightball">
          <xsl:sort select="date"/>
          <tr>
            <td><xsl:value-of select="date"/></td>
            <td><xsl:value-of select="player1"/></td>
            <td><xsl:value-of select="player2"/></td>
            <td><xsl:value-of select="winner"/></td>
            <td><xsl:value-of select="hits"/></td>
            <td><xsl:value-of select="rounds"/></td>
          </tr>
          </xsl:for-each>
        </table>
        </div>
        </div> <!-- End Display none -->
        </p>
        <!-- 9 Ball -->
        <h2><a href="#" onclick="toggle('nineblock');"><xsl:value-of select="ninetitle"/></a></h2>
        <p>
        <div id="nineblock" style="display:none">
        <div class="headerdiv">
        <table>
          <tr>
            <th style="width:16%;"><xsl:value-of select="column1"/></th>
            <th style="width:16%;"><xsl:value-of select="column2"/></th>
            <th style="width:16%;"><xsl:value-of select="column3"/></th>
            <th style="width:16%;"><xsl:value-of select="column4"/></th>
            <th style="width:16%;"><xsl:value-of select="column5"/></th>
            <th style="width:16%;"><xsl:value-of select="column6"/></th>
            <th style="width:4%;"> </th>
          </tr>
        </table>
        </div>
        <div class="tablediv">
        <table>
          <xsl:for-each select="nineball">
          <xsl:sort select="date"/>
          <tr>
            <td><xsl:value-of select="date"/></td>
            <td><xsl:value-of select="player1"/></td>
            <td><xsl:value-of select="player2"/></td>
            <td><xsl:value-of select="winner"/></td>
            <td><xsl:value-of select="hits"/></td>
            <td><xsl:value-of select="rounds"/></td>
          </tr>
          </xsl:for-each>
        </table>
        </div>
        </div> <!-- End Display none -->
        </p>
        <!-- Carom -->
        <h2><a href="#" onclick="toggle('caromblock');"><xsl:value-of select="caromtitle"/></a></h2>
        <p>
        <div id="caromblock" style="display:none">
        <div class="headerdiv">
        <table>
          <tr>
            <th style="width:16%;"><xsl:value-of select="column1"/></th>
            <th style="width:16%;"><xsl:value-of select="column2"/></th>
            <th style="width:16%;"><xsl:value-of select="column3"/></th>
            <th style="width:16%;"><xsl:value-of select="column4"/></th>
            <th style="width:16%;"><xsl:value-of select="column5"/></th>
            <th style="width:16%;"><xsl:value-of select="column6"/></th>
            <th style="width:4%;"> </th>
          </tr>
        </table>
        </div>
        <div class="tablediv">
        <table>
          <xsl:for-each select="caromball">
          <xsl:sort select="date"/>
          <tr>
            <td><xsl:value-of select="date"/></td>
            <td><xsl:value-of select="player1"/></td>
            <td><xsl:value-of select="player2"/></td>
            <td><xsl:value-of select="winner"/></td>
            <td><xsl:value-of select="hits"/></td>
            <td><xsl:value-of select="rounds"/></td>
          </tr>
          </xsl:for-each>
        </table>
        </div>
        </div> <!-- End Display none -->
        </p>
        <!-- Snooker -->
        <h2><a href="#" onclick="toggle('snookerblock');"><xsl:value-of select="snookertitle"/></a></h2>
        <p>
        <div id="snookerblock" style="display:none">
        <div class="headerdiv">
        <table>
          <tr>
            <th style="width:16%;"><xsl:value-of select="column1"/></th>
            <th style="width:16%;"><xsl:value-of select="column2"/></th>
            <th style="width:16%;"><xsl:value-of select="column3"/></th>
            <th style="width:16%;"><xsl:value-of select="column4"/></th>
            <th style="width:16%;"><xsl:value-of select="column5"/></th>
            <th style="width:16%;"><xsl:value-of select="column6"/></th>
            <th style="width:4%;"> </th>
          </tr>
        </table>
        </div>
        <div class="tablediv">
        <table>
          <xsl:for-each select="snookerball">
          <xsl:sort select="date"/>
          <tr>
            <td><xsl:value-of select="date"/></td>
            <td><xsl:value-of select="player1"/></td>
            <td><xsl:value-of select="player2"/></td>
            <td><xsl:value-of select="winner"/></td>
            <td><xsl:value-of select="hits"/></td>
            <td><xsl:value-of select="rounds"/></td>
          </tr>
          </xsl:for-each>
        </table>
        </div>
        </div> <!-- End Display none -->
        </p>
      </div>
      <br class="clearFloat" />
    </div>
    <img src="http://www.justdreamweaver.com/templates/link/spacer.gif" width="1" height="1" />
    <div id="footer"><a href="http://foobillardplus.sourceforge.net">Copyright (c) 2011 Foobillard++ Site (the project itself is licenced under the GPL)</a></div>
    <!--The following code must be left in place and unaltered for free usage of this theme. If you wish to remove the links, visit http://www.justdreamweaver.com/dreamweaver-template.html and purchase a template license.-->
  </div>
</div><div id="credit"><a href="http://www.justdreamweaver.com/dreamweaver-templates.html">Dreamweaver templates</a> by <a href="http://www.justdreamweaver.com">JustDreamweaver.com</a></div>
</body>
</html>
</xsl:template>
</xsl:stylesheet>