1 |
<!-- requires action=select_c_news --> |
2 |
|
3 |
|
4 |
[% DEFAULT |
5 |
show_insert_c_source = 1 |
6 |
show_insert_c_customer = 1 |
7 |
show_insert_c_type = 1 |
8 |
%] |
9 |
|
10 |
[% PROCESS js_c_news.tt2 %] |
11 |
|
12 |
<form method="post" action="[% script_name %]" onSubmit="return(Validation())"> |
13 |
<input type="hidden" name="action" value="[% frm_action %]"> |
14 |
<input type="hidden" name="template" value="[% frm_template %]"> |
15 |
<input type="hidden" name="c_news_id" value="[% select_c_news.first.c_news_id %]"> |
16 |
|
17 |
<table> |
18 |
|
19 |
<tr> |
20 |
<th class="frm">source</th> |
21 |
<td class="frm"> |
22 |
<!-- requires action=select_c_source --> |
23 |
<select name="c_source_fk"> |
24 |
<option value="">____________________</option> |
25 |
[% FOREACH row = select_c_source %] |
26 |
<option value="[% row.c_source_id %]" [% "selected" IF select_c_news.first.c_source_fk == row.c_source_id %]> [% row.c_source_description %] |
27 |
[% END %] |
28 |
</select> |
29 |
[% IF (show_insert_c_source == 1) %] |
30 |
<a href="[% script_name %]?template=pg_ins_c_source">insert</a> |
31 |
[% END %] |
32 |
</td> |
33 |
</tr> |
34 |
|
35 |
<tr> |
36 |
<th class="frm">customer</th> |
37 |
<td class="frm"> |
38 |
<!-- requires action=select_c_customer --> |
39 |
<select name="c_customer_fk"> |
40 |
<option value="">____________________</option> |
41 |
[% FOREACH row = select_c_customer %] |
42 |
<option value="[% row.c_customer_id %]" [% "selected" IF select_c_news.first.c_customer_fk == row.c_customer_id %]> [% row.c_customer_name %] |
43 |
[% END %] |
44 |
</select> |
45 |
[% IF (show_insert_c_customer == 1) %] |
46 |
<a href="[% script_name %]?template=pg_ins_c_customer">insert</a> |
47 |
[% END %] |
48 |
</td> |
49 |
</tr> |
50 |
|
51 |
<tr> |
52 |
<th class="frm">type</th> |
53 |
<td class="frm"> |
54 |
<!-- requires action=select_c_type --> |
55 |
<select name="c_type_fk"> |
56 |
<option value="">____________________</option> |
57 |
[% FOREACH row = select_c_type %] |
58 |
<option value="[% row.c_type_id %]" [% "selected" IF select_c_news.first.c_type_fk == row.c_type_id %]> [% row.c_type_description %] |
59 |
[% END %] |
60 |
</select> |
61 |
[% IF (show_insert_c_type == 1) %] |
62 |
<a href="[% script_name %]?template=pg_ins_c_type">insert</a> |
63 |
[% END %] |
64 |
</td> |
65 |
</tr> |
66 |
|
67 |
<tr> |
68 |
<th class="frm">section</th> |
69 |
<td class="frm"> |
70 |
<INPUT type="text" name="c_news_section" size="40" value="[% select_c_news.first.c_news_section %]"> |
71 |
</td> |
72 |
</tr> |
73 |
|
74 |
<tr> |
75 |
<th class="frm">page/url</th> |
76 |
<td class="frm"> |
77 |
<INPUT type="text" name="c_news_page" size="40" value="[% select_c_news.first.c_news_page %]"> |
78 |
</td> |
79 |
</tr> |
80 |
|
81 |
<tr> |
82 |
<th class="frm">title</th> |
83 |
<td class="frm"> |
84 |
<INPUT type="text" name="c_news_title" size="40" value="[% select_c_news.first.c_news_title %]"> |
85 |
</td> |
86 |
</tr> |
87 |
|
88 |
<tr> |
89 |
<th class="frm">abstract</th> |
90 |
<td class="frm"> |
91 |
<TEXTAREA name="c_news_abstract" rows="6" cols="40">[% select_c_news.first.c_news_abstract %]</TEXTAREA> |
92 |
</td> |
93 |
</tr> |
94 |
|
95 |
<tr> |
96 |
<th class="frm">full text (if available)</th> |
97 |
<td class="frm"> |
98 |
<TEXTAREA name="c_news_full_text" rows="6" cols="40">[% select_c_news.first.c_news_full_text %]</TEXTAREA> |
99 |
</td> |
100 |
</tr> |
101 |
|
102 |
|
103 |
<tr> |
104 |
<th class="frm"> </th> |
105 |
<th class="frm"> |
106 |
<INPUT type="submit"> |
107 |
</th> |
108 |
</tr> |
109 |
|
110 |
</table> |
111 |
</form> |