summaryrefslogtreecommitdiff
path: root/share/gcstar/html_models/GCstar/Shelf
blob: e699fdc79734649f4634f944f97c172e1b737aa4 (plain)
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
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
[HEADER]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!--
  Template made by Tian. It emulates a shelf display.
-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>$$PAGETITLE$$</title>
<style type="text/css">
body
{
 color:black;
}
h1
{
 text-align:left;
 margin-left:0.5em;
 font-size:200%;
 font-weight:bold;
 color:#6c7b8b;
}
h2
{
 font-size:150%;
 text-align:center;
 color:#1c86ee;
 font-weight:bold;
 height:3em;
}
h3
{
 font-size:120%;
 font-weight:bold;
 margin:1em 0;
 color:#6c7b8b;
 border-bottom:1px dashed #6c7b8b;
}
#left
{
[JAVASCRIPT]
 width:48%;
[/JAVASCRIPT]
 border:1px dashed #6c7b8b;
 background:#f0f0f0;
}
.imgbox
{
 float:left;
 padding:2em 1em 0em;
 margin:0;
}
.imgbox img
{
 margin:0;
 padding:0;
[JAVASCRIPT]
 cursor:pointer;
[/JAVASCRIPT]
}
.imginfo
{
 float:left;
 margin-top:0.5em;
[JAVASCRIPT]
 cursor:default;
[/JAVASCRIPT]
}
.info
{
 position:fixed;
 top:0;
 right:1%;
 width:48%;
 display:none;
}
.synopsis
{
 height:8em;
 overflow:auto;
 padding:0.2em;
 background:#f0f0f0;
}
table
{
 margin:0 2%;
 width:95%;
}
th
{
 font-weight:bold;
 text-align:left;
 white-space:nowrap;
 padding:0.5em;
 background:#f0f0f0;
 width:40%;
}
td
{
 padding:0.5em;
 background:#f0f0f0;
 display:block;
 min-height:1.5em;
 max-height:12em;
 overflow:auto;
}
#note
{
 text-align:center;
 padding-top:0.5em;
[JAVASCRIPT]
 width:48%;
[/JAVASCRIPT]
 color:#6c7b8b;
}
#note a
{
 font-weight:bold;
 color:#1c86ee;
}
#note a:hover
{
 color:#6c7b8b;
}
.spacer
{
  clear: both;
}
[JAVASCRIPT]
.expander
{
 padding:0;
 width:1em;
 display:block;
 float:left;
 text-align:center;
 margin-right:0.5em;
 cursor:pointer;
}
[/JAVASCRIPT]
.info
{
 position:fixed;
 top:0;
 right:1%;
 width:48%;
 display:none;
}
.details
{
 overflow: auto;
 height: 500px;
}
</style>
[JAVASCRIPT]
<script type="text/javascript">
<!--
function getBoxes()
{
  return document.getElementById("left").getElementsByTagName("div")
}
function getHeight()
{
  //From http://www.howtocreate.co.uk/tutorials/javascript/browserwindow
  myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  return myHeight - 150;
}
function init()
{
  // CSS changes from http://www.quirksmode.org/dom/changess.html
  if (!document.styleSheets) return;
  var theRules = new Array();
  if (document.styleSheets[0].cssRules)
    theRules = document.styleSheets[0].cssRules
  else if (document.styleSheets[0].rules)
    theRules = document.styleSheets[0].rules
  theRules[theRules.length-1].style.height = getHeight()+'px';

  boxes = getBoxes()
  for(i=0; i < boxes.length; i++)
  {
    box =  boxes[i]
    if (box.className == "movie")
    {
      boxes2 = box.getElementsByTagName("div")
      boxes2[0].onclick = function(evt)
      {
        div = this.parentNode
        showMe(div.getElementsByTagName("div")[1], this)
      }
    }
  }
  headers = document.getElementById("left").getElementsByTagName("h3")
  for(i=0; i < headers.length; i++)
  {
    header =  headers[i]
    header.style.cursor = 'pointer'
    header.innerHTML = '<span class="expander">−</span> ' + header.innerHTML
    header.onclick = function(evt)
    {
      table = this.nextSibling
      while (table.tagName != "TABLE") { table = table.nextSibling }
      if (table.style.display == "none")
      {
        table.style.display = "table"
        this.innerHTML = this.innerHTML.replace(/\+<\/span>/, '−</span>')
      }
      else
      {
        table.style.display = "none"
        this.innerHTML = this.innerHTML.replace(/−<\/span>/, '+</span>')
      }     
    }
  }
}
var currentBox = 0
var currentImg = 0
function showMe(box, img)
{
  hidePrevious()
  box.style.display = "block"
  img.style.background = "#4b4f63"
  img.style.padding = "1em"
  currentBox = box
  currentImg = img
}
function hidePrevious()
{
  if (currentBox)
  {
    currentBox.style.display = "none"
    currentImg.style.background = "#f0f0f0"
    currentImg.style.padding = "2em 1em 0em"
  }
}
-->
</script>
[/JAVASCRIPT]
</head>
<body [JAVASCRIPT]onload="init()"[/JAVASCRIPT]>
<h1>$$PAGETITLE$$</h1>
<div id="left">
[/HEADER]
[ITEM]
<div class="movie">
 <div class="imgbox">
  <img src="$$COVER_FIELD$$" height="$$HEIGHT_PIC$$" alt="$$TITLE_FIELD$$" title="$$TITLE_FIELD$$" />
 </div>
 <div class="info">
   <h2>$$TITLE_FIELD$$</h2>
   <div class="details">
     [LOOP0 values=GCSgroups idx=GROUP]
     <h3>$$GROUP_LABEL$$</h3>
     <table>
      [LOOP1 values=GROUP idx=VALUE]
      <tr><th>$$VALUE_LABEL$$</th><td>$$VALUE$$</td></tr>
      [/LOOP1]
     </table>
     [/LOOP0]
   </div>
 </div>
</div>
[/ITEM]
[FOOTER]
<div class="spacer">&nbsp;</div>
</div>
<p id="note">$$GENERATOR_NOTE$$</p>
</body>
</html>
[/FOOTER]
[POST]
[/POST]