Source code of tbs_us_examples_prmserial.htm

  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
 
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>TinyButStrong - Example of parameter serial</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="./tbs_us_examples_styles.css" rel="stylesheet" type="text/css" />
<style type="text/css">
.style0 {
    background-color:#E4F1E4;
}
.style1 {
    background-color:#C5C5E2;
}
.style2 {
    background-color:#A9E2C6;
}
.style3 {
    background-color:#FFD5AA;
}
.row0 {
    background-color:#CACACA;
}
.table0 {
    background-color:#F0F0F0;
}
</style>
</head>
<body>
<div id="main-body">
  <h1>Example of parameter <samp>serial</samp></h1>
  <div class="w3cinfo"> this TBS template is W3C compliant <a href="http://validator.w3.org/check?uri=referer"><img src="http://www.w3.org/Icons/valid-xhtml11" alt="Valid XHTML 1.1" height="31" width="88" style="border:none;" /></a> </div>
  <div id="example">
    <p>Parameter <samp>serial</samp> enables you to display several records in a main block. For that, you must use sub-blocks.</p>
    <p> Example of parameter <samp>serial</samp> used for a multi-columns display: </p>
    <table border="1" cellpadding="2" cellspacing="0" class="table0" style="margin-left:auto; margin-right:auto;">
      <tr class="row0">
        <th colspan="4" align="center"> Position / Title</th>
      </tr>
      <tr>
        <td>&gt;</td>
        <td align="center"><strong>[bx_1.rank]</strong><br />
          <span class="text-mini">[bx_1.title;block=td]</span><br /></td>
        <td align="center"><strong>[bx_2.rank]</strong> <br />
          <span class="text-mini">[bx_2.title;block=td;.]</span><br /></td>
        <td align="center"><strong>[bx_3.rank]</strong><br />
          <span class="text-mini">[bx_3.title;block=td;.]</span><br />
          [bx;block=tr;serial]</td>
      </tr>
      <tr>
        <td valign="middle">&nbsp;</td>
        <td colspan="2" valign="middle" class="text-mini">This line is optional, it enables you to<br />
          define the empty cell.</td>
        <td align="center" valign="middle" class="style0"><span class="text-mini">[bx_0;block=td]</span> <br />
          [bx;block=tr;serial]</td>
      </tr>
    </table>
    <p> Example of parameter <samp>serial</samp> used for a complex display:</p>
    <table border="1" cellpadding="2" cellspacing="0" class="table0"  style="margin-left:auto; margin-right:auto;">
      <tr class="row0">
        <th colspan="2" align="center">Position / Title</th>
      </tr>
      <tr>
        <td>&gt;</td>
        <td align="center"><table width="100%" border="0" cellspacing="0" cellpadding="2">
            <tr>
              <td colspan="2" align="center"><table width="130" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="style1"><strong>[bz_1.rank]</strong> [bz_1.title;block=td]</td>
                  </tr>
                </table></td>
              <td colspan="2" align="center"><table width="130" border="0" cellpadding="0" cellspacing="0">
                  <tr>
                    <td class="style2"><strong>[bz_3.rank]</strong> [bz_3.title;block=td;.]</td>
                  </tr>
                </table></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
              <td colspan="2" align="center"><table width="130" border="0" cellspacing="0" cellpadding="0">
                  <tr>
                    <td class="style3"><strong>[bz_2.rank]</strong> [bz_2.title;block=td;.]</td>
                  </tr>
                </table></td>
              <td>&nbsp;</td>
            </tr>
          </table>
          [bz;block=tr;serial] </td>
      </tr>
    </table>
  </div>
</div>
</body>
</html>