TinyButStrong - the PHP Template Engine

Source code of tbs_us_examples_prmsel.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
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
 
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TinyButStrong - Example of item selection</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="./tbs_us_examples_styles.css" rel="stylesheet" type="text/css" />
</head>
<body>
<h1>Example of item selection</h1>
<div id="main-body">
  <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> The plug-in named &quot;HTML&quot; can help to select items in a list, a series of radio buttons or of checkboxes.</p>
    <p> For list feeding, you just have to use a normal block bounded by the tags <span class="text-example2">&lt;option&gt;</span>.</p>
    <form action="" method="post" id="form1">
      <table width="500" border="0" cellpadding="2" cellspacing="0" class="back-special2">
        <tr>
          <td align="left" valign="top">&nbsp;</td>
          <td class="title-section2">List with values</td>
          <td class="title-section2">List without values</td>
        </tr>
        <tr>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="left" valign="top" class="title-section2">Feeding a list:</td>
          <td><select name="list_1v" size="5" multiple="multiple">
              <option value="[lst1v.id]">[lst1v.name;block=option]</option>
            </select></td>
          <td><select name="list_1" size="5" multiple="multiple">
              <option>[lst1.name;block=option]</option>
            </select></td>
        </tr>
        <tr>
          <td align="left" valign="top">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="left" valign="top" class="title-section2">Single selection:</td>
          <td><select name="list_2v" size="5" multiple="multiple">
              <option value="1">Red</option>
              <option value="2">Green</option>
              <option value="3">Blue</option>
              <option value="4">Yellow</option>
              <option value="5">White</option>
              <option>[onshow.sel1_id;ope=html;select]</option>
            </select></td>
          <td><select name="list_2" size="5" multiple="multiple">
              <option>Red</option>
              <option>Green</option>
              <option>Blue</option>
              <option>Yellow</option>
              <option>White</option>
              <option>[onshow.sel1_name;ope=html;select]</option>
            </select></td>
        </tr>
        <tr>
          <td align="left" valign="top">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="left" valign="top" class="title-section2">Multiple selection:</td>
          <td><select name="list_3v" size="5" multiple="multiple" id="list_3v">
              <option value="1">Red</option>
              <option value="2">Green</option>
              <option value="3">Blue</option>
              <option value="4">Yellow</option>
              <option value="5">White</option>
              <option>[onshow.sel2_id;ope=html;select]</option>
            </select></td>
          <td><select name="list_3" size="5" multiple="multiple" id="list_3">
              <option>Red</option>
              <option>Green</option>
              <option>Blue</option>
              <option>Yellow</option>
              <option>White</option>
              <option>[onshow.sel2_name;ope=html;select]</option>
            </select></td>
        </tr>
        <tr>
          <td align="left" valign="top">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
        <tr>
          <td align="left" valign="top" class="title-section2">Feeding and selecting:</td>
          <td><select name="list_4v" size="5" multiple="multiple" id="list_4v">
              <option value="[lst3v.id]">[lst3v.name;block=option]</option>
              <option>[onshow.sel1_id;ope=html;select]</option>
            </select></td>
          <td><select name="list_4" size="5" multiple="multiple" id="list_4">
              <option>[lst3.name;block=option]</option>
              <option>[onshow.sel1_name;ope=html;select]</option>
            </select></td>
        </tr>
        <tr>
          <td align="left" valign="top">&nbsp;</td>
          <td>&nbsp;</td>
          <td>&nbsp;</td>
        </tr>
      </table>
      <p></p>
      <table width="500" border="0" cellpadding="2" cellspacing="0" class="back-special2">
        <tr>
          <td align="left" valign="top" class="title-section2">Radio button and Checkbox selection:</td>
        </tr>
        <tr>
          <td>&nbsp;[onshow.sel1_name;ope=html;select=radio1]</td>
        </tr>
        <tr>
          <td align="left" valign="top"><input type="radio" name="radio1" id="radio1" value="Red" />
            -&gt;Red
            <input type="radio" name="radio1" id="radio2" value="Green" />
            -&gt;Green
            <input type="radio" name="radio1" id="radio3" value="Blue" />
            -&gt;Blue
            <input type="radio" name="radio1" id="radio4" value="Yellow" />
            -&gt;Yellow
            <input type="radio" name="radio1" id="radio5" value="White" />
            -&gt;White </td>
        </tr>
        <tr>
          <td>&nbsp;[onshow.sel2_name;ope=html;select=check1]</td>
        </tr>
        <tr>
          <td><input name="check1" type="checkbox" id="check1" value="Red" />
            -&gt;Red
            <input name="check1" type="checkbox" id="check2" value="Green" />
            -&gt;Green
            <input name="check1" type="checkbox" id="check3" value="Blue" />
            -&gt;Blue
            <input name="check1" type="checkbox" id="check4" value="Yellow" />
            -&gt;Yellow
            <input name="check1" type="checkbox" id="check5" value="White" />
            -&gt;White </td>
        </tr>
        <tr>
          <td align="left" valign="top">&nbsp;</td>
        </tr>
      </table>
    </form>
  </div>
</div>
</body>
</html>