/[clipping]/templates/tbl_c_news.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_news.tt2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations)
Fri Jan 16 22:46:52 2004 UTC (20 years, 3 months ago) by dpavlin
Branch point for: MAIN, phperl
Initial revision

1 dpavlin 1.1 <!-- requires action=select_c_news -->
2    
3     [% DEFAULT
4     show_c_news_id = 1
5     show_c_news_title = 1
6     show_c_news_c_source = 1
7     show_c_news_c_customer = 1
8     show_c_news_c_type = 1
9     show_filter_c_news = 1
10     show_detail_c_news = 0
11     show_update_c_news = 0
12     show_insert_c_news = 1
13     show_download_c_news = 1
14     show_limit_c_news = 1
15    
16     limit = 20
17     offset = 0
18     %]
19    
20     <table>
21     <tr>
22    
23     <!-- header -->
24    
25     [% IF (show_c_news_id == 1) %]
26     <th><a href="[% script_name %]?template=pg_sel_c_news&limit=[% limit %]&offset=0&order_by=c_news_id">id</a></th>
27     [% END %]
28    
29    
30     [% IF (show_c_news_section == 1) %]
31     <th><a href="[% script_name %]?template=pg_sel_c_news&limit=[% limit %]&offset=0&order_by=c_news_section">section</a></th>
32     [% END %]
33    
34     [% IF (show_c_news_page == 1) %]
35     <th><a href="[% script_name %]?template=pg_sel_c_news&limit=[% limit %]&offset=0&order_by=c_news_page">page</a></th>
36     [% END %]
37    
38     [% IF (show_c_news_title == 1) %]
39     <th><a href="[% script_name %]?template=pg_sel_c_news&limit=[% limit %]&offset=0&order_by=c_news_title">title</a></th>
40     [% END %]
41    
42     [% IF (show_c_news_abstract == 1) %]
43     <th><a href="[% script_name %]?template=pg_sel_c_news&limit=[% limit %]&offset=0&order_by=c_news_abstract">abstract</a></th>
44     [% END %]
45    
46     [% IF (show_c_news_full_text == 1) %]
47     <th><a href="[% script_name %]?template=pg_sel_c_news&limit=[% limit %]&offset=0&order_by=c_news_full_text">full_text</a></th>
48     [% END %]
49    
50    
51    
52     [% IF (show_c_news_c_source == 1) %]
53     <th><a href="[% script_name %]?template=pg_sel_c_news&limit=[% limit %]&offset=0&order_by=c_source_description">source</a></th>
54     [% END %]
55    
56     [% IF (show_c_news_c_customer == 1) %]
57     <th><a href="[% script_name %]?template=pg_sel_c_news&limit=[% limit %]&offset=0&order_by=c_customer_name">customer</a></th>
58     [% END %]
59    
60     [% IF (show_c_news_c_type == 1) %]
61     <th><a href="[% script_name %]?template=pg_sel_c_news&limit=[% limit %]&offset=0&order_by=c_type_description">type</a></th>
62     [% END %]
63    
64     </tr>
65    
66     <!-- filter -->
67    
68     [% IF (show_filter_c_news == 1) %]
69    
70     <form method="get" action="[% script_name %]">
71     <input type="hidden" name="template" value="pg_sel_c_news">
72    
73     <tr>
74     [% IF (show_c_news_id == 1) %]
75     <td>
76     <input name="c_news_id" size="4" value="[% c_news_id %]">
77     </td>
78     [% END %]
79    
80    
81     [% IF (show_c_news_section == 1) %]
82     <td>
83     <input name="c_news_section" size="12" value="[% c_news_section %]">
84     </td>
85     [% END %]
86    
87     [% IF (show_c_news_page == 1) %]
88     <td>
89     <input name="c_news_page" size="12" value="[% c_news_page %]">
90     </td>
91     [% END %]
92    
93     [% IF (show_c_news_title == 1) %]
94     <td>
95     <input name="c_news_title" size="12" value="[% c_news_title %]">
96     </td>
97     [% END %]
98    
99     [% IF (show_c_news_abstract == 1) %]
100     <td>
101     <input name="c_news_abstract" size="12" value="[% c_news_abstract %]">
102     </td>
103     [% END %]
104    
105     [% IF (show_c_news_full_text == 1) %]
106     <td>
107     <input name="c_news_full_text" size="12" value="[% c_news_full_text %]">
108     </td>
109     [% END %]
110    
111    
112    
113     [% IF (show_c_news_c_source == 1) %]
114     <td>
115     [% PROCESS 'frm_select_c_source.tt2' %]
116     </td>
117     [% END %]
118    
119     [% IF (show_c_news_c_customer == 1) %]
120     <td>
121     [% PROCESS 'frm_select_c_customer.tt2' %]
122     </td>
123     [% END %]
124    
125     [% IF (show_c_news_c_type == 1) %]
126     <td>
127     [% PROCESS 'frm_select_c_type.tt2' %]
128     </td>
129     [% END %]
130    
131     <td>
132     <input type="submit" value="filter">
133     </td>
134     </tr>
135    
136     </form>
137     [% END %]
138    
139     <!-- table -->
140    
141     [% FOREACH row = view_c_news %]
142     <tr>
143    
144     [% IF (show_c_news_id == 1) %]
145     <th>
146     <a href="[% script_name %]?template=pg_detail_c_news&c_news_id=[% row.c_news_id %]">[% row.c_news_id %]</a>
147     </th>
148     [% END %]
149    
150    
151     [% IF (show_c_news_section == 1) %]
152     <td class="td[% loop.count mod 2 %]">
153     <a href="[% script_name %]?template=pg_detail_c_news&c_news_id=[% row.c_news_id %]">[% row.c_news_section %]</a>
154     </td>
155     [% END %]
156    
157     [% IF (show_c_news_page == 1) %]
158     <td class="td[% loop.count mod 2 %]">
159     <a href="[% script_name %]?template=pg_detail_c_news&c_news_id=[% row.c_news_id %]">[% row.c_news_page %]</a>
160     </td>
161     [% END %]
162    
163     [% IF (show_c_news_title == 1) %]
164     <td class="td[% loop.count mod 2 %]">
165     <a href="[% script_name %]?template=pg_detail_c_news&c_news_id=[% row.c_news_id %]">[% row.c_news_title %]</a>
166     </td>
167     [% END %]
168    
169     [% IF (show_c_news_abstract == 1) %]
170     <td class="td[% loop.count mod 2 %]">
171     <a href="[% script_name %]?template=pg_detail_c_news&c_news_id=[% row.c_news_id %]">[% row.c_news_abstract %]</a>
172     </td>
173     [% END %]
174    
175     [% IF (show_c_news_full_text == 1) %]
176     <td class="td[% loop.count mod 2 %]">
177     <a href="[% script_name %]?template=pg_detail_c_news&c_news_id=[% row.c_news_id %]">[% row.c_news_full_text %]</a>
178     </td>
179     [% END %]
180    
181    
182    
183     [% IF (show_c_news_c_source == 1) %]
184     <td class="td[% loop.count mod 2 %]">
185     <a href="[% script_name %]?template=pg_sel_c_source&c_source_id=[% row.c_source_id %]">[% row.c_source_description %]</a>
186     </td>
187     [% END %]
188    
189     [% IF (show_c_news_c_customer == 1) %]
190     <td class="td[% loop.count mod 2 %]">
191     <a href="[% script_name %]?template=pg_sel_c_customer&c_customer_id=[% row.c_customer_id %]">[% row.c_customer_name %]</a>
192     </td>
193     [% END %]
194    
195     [% IF (show_c_news_c_type == 1) %]
196     <td class="td[% loop.count mod 2 %]">
197     <a href="[% script_name %]?template=pg_sel_c_type&c_type_id=[% row.c_type_id %]">[% row.c_type_description %]</a>
198     </td>
199     [% END %]
200    
201    
202    
203    
204     [% IF (show_detail_c_news == 1) %]
205     <td class="td[% loop.count mod 2 %]">
206     <a href="[% script_name %]?template=pg_detail_c_news&c_news_id=[% row.c_news_id %]">detail</a>
207     </td>
208     [% END %]
209    
210     [% IF (show_update_c_news == 1) %]
211     <td class="td[% loop.count mod 2 %]">
212     <a href="[% script_name %]?template=pg_upd_c_news&c_news_id=[% row.c_news_id %]">update</a>
213     </td>
214     [% END %]
215    
216     </tr>
217     [% END %]
218    
219     [% IF (view_c_news.size == limit) %]
220     <tr>
221     <th colspan="2">
222     <a accesskey="m" href="[% script_name %]?template=pg_sel_c_news&limit=[% limit %]&offset=[% offset+limit %]&order_by=[% order_by %]">more</a>
223     </th>
224     </tr>
225     [% END %]
226    
227     </table>
228    
229     <UL>
230     [% IF (view_c_news.size == limit && show_limit_c_news == 1) %]
231     <LI> show
232     <a href="[% script_name %]?template=pg_sel_c_news&limit=20&offset=[% offset %]&order_by=[% order_by %]">20</a>,
233     <a href="[% script_name %]?template=pg_sel_c_news&limit=50&offset=[% offset %]&order_by=[% order_by %]">50</a>,
234     <a href="[% script_name %]?template=pg_sel_c_news&limit=100&offset=[% offset %]&order_by=[% order_by %]">100</a>,
235     <a href="[% script_name %]?template=pg_sel_c_news&limit=65536&offset=0&order_by=[% order_by %]">all</a><BR>
236     [% END %]
237     </UL>

  ViewVC Help
Powered by ViewVC 1.1.26