/[clipping]/templates/tbl_c_type.tt2
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /templates/tbl_c_type.tt2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (hide annotations) (vendor branch)
Fri Jan 16 22:46:52 2004 UTC (20 years, 3 months ago) by dpavlin
Branch: MAIN, phperl
CVS Tags: r20040116, HEAD
Changes since 1.1: +0 -0 lines
initial import of downloaded version

1 dpavlin 1.1 <!-- requires action=select_c_type -->
2    
3     [% DEFAULT
4     show_c_type_id = 1
5     show_c_type_description = 1
6     show_c_type_c_news = 1
7     show_filter_c_type = 1
8     show_detail_c_type = 0
9     show_update_c_type = 0
10     show_insert_c_type = 1
11     show_download_c_type = 1
12     show_limit_c_type = 1
13    
14     limit = 20
15     offset = 0
16     %]
17    
18     <table>
19     <tr>
20    
21     <!-- header -->
22    
23     [% IF (show_c_type_id == 1) %]
24     <th><a href="[% script_name %]?template=pg_sel_c_type&limit=[% limit %]&offset=0&order_by=c_type_id">id</a></th>
25     [% END %]
26    
27    
28     [% IF (show_c_type_description == 1) %]
29     <th><a href="[% script_name %]?template=pg_sel_c_type&limit=[% limit %]&offset=0&order_by=c_type_description">description</a></th>
30     [% END %]
31    
32     [% IF (show_c_type_notes == 1) %]
33     <th><a href="[% script_name %]?template=pg_sel_c_type&limit=[% limit %]&offset=0&order_by=c_type_notes">notes</a></th>
34     [% END %]
35    
36    
37    
38     </tr>
39    
40     <!-- filter -->
41    
42     [% IF (show_filter_c_type == 1) %]
43    
44     <form method="get" action="[% script_name %]">
45     <input type="hidden" name="template" value="pg_sel_c_type">
46    
47     <tr>
48     [% IF (show_c_type_id == 1) %]
49     <td>
50     <input name="c_type_id" size="4" value="[% c_type_id %]">
51     </td>
52     [% END %]
53    
54    
55     [% IF (show_c_type_description == 1) %]
56     <td>
57     <input name="c_type_description" size="12" value="[% c_type_description %]">
58     </td>
59     [% END %]
60    
61     [% IF (show_c_type_notes == 1) %]
62     <td>
63     <input name="c_type_notes" size="12" value="[% c_type_notes %]">
64     </td>
65     [% END %]
66    
67    
68    
69     <td>
70     <input type="submit" value="filter">
71     </td>
72     </tr>
73    
74     </form>
75     [% END %]
76    
77     <!-- table -->
78    
79     [% FOREACH row = view_c_type %]
80     <tr>
81    
82     [% IF (show_c_type_id == 1) %]
83     <th>
84     <a href="[% script_name %]?template=pg_detail_c_type&c_type_id=[% row.c_type_id %]">[% row.c_type_id %]</a>
85     </th>
86     [% END %]
87    
88    
89     [% IF (show_c_type_description == 1) %]
90     <td class="td[% loop.count mod 2 %]">
91     <a href="[% script_name %]?template=pg_detail_c_type&c_type_id=[% row.c_type_id %]">[% row.c_type_description %]</a>
92     </td>
93     [% END %]
94    
95     [% IF (show_c_type_notes == 1) %]
96     <td class="td[% loop.count mod 2 %]">
97     <a href="[% script_name %]?template=pg_detail_c_type&c_type_id=[% row.c_type_id %]">[% row.c_type_notes %]</a>
98     </td>
99     [% END %]
100    
101    
102    
103    
104    
105     <td class="td[% loop.count mod 2 %]">
106     <a href="[% script_name %]?template=pg_sel_c_news&c_type_id=[% row.c_type_id %]">news</a>
107     </td>
108    
109    
110     [% IF (show_detail_c_type == 1) %]
111     <td class="td[% loop.count mod 2 %]">
112     <a href="[% script_name %]?template=pg_detail_c_type&c_type_id=[% row.c_type_id %]">detail</a>
113     </td>
114     [% END %]
115    
116     [% IF (show_update_c_type == 1) %]
117     <td class="td[% loop.count mod 2 %]">
118     <a href="[% script_name %]?template=pg_upd_c_type&c_type_id=[% row.c_type_id %]">update</a>
119     </td>
120     [% END %]
121    
122     </tr>
123     [% END %]
124    
125     [% IF (view_c_type.size == limit) %]
126     <tr>
127     <th colspan="2">
128     <a accesskey="m" href="[% script_name %]?template=pg_sel_c_type&limit=[% limit %]&offset=[% offset+limit %]&order_by=[% order_by %]">more</a>
129     </th>
130     </tr>
131     [% END %]
132    
133     </table>
134    
135     <UL>
136     [% IF (view_c_type.size == limit && show_limit_c_type == 1) %]
137     <LI> show
138     <a href="[% script_name %]?template=pg_sel_c_type&limit=20&offset=[% offset %]&order_by=[% order_by %]">20</a>,
139     <a href="[% script_name %]?template=pg_sel_c_type&limit=50&offset=[% offset %]&order_by=[% order_by %]">50</a>,
140     <a href="[% script_name %]?template=pg_sel_c_type&limit=100&offset=[% offset %]&order_by=[% order_by %]">100</a>,
141     <a href="[% script_name %]?template=pg_sel_c_type&limit=65536&offset=0&order_by=[% order_by %]">all</a><BR>
142     [% END %]
143     </UL>

  ViewVC Help
Powered by ViewVC 1.1.26