4 <body onload="[% onload %]" width=100%>
6 <div class="listtop">[% title %]</div>
8 <form action='letter.pl' method='POST'>
10 <input type="hidden" name="letter.id" value="[% letter.id | html %]">
11 <input type="hidden" name="letter.draft_id" value="[% letter.draft_id | html %]">
12 <input type="hidden" name="title" value="[% title | html %]">
13 <input type="hidden" name="type" value="[% type | html %]">
14 <input type="hidden" name="print_nextsub" value="print_letter">
19 [%- IF SAVED_MESSAGE %]
21 <td colspan=2>[% SAVED_MESSAGE %]</td>
23 <tr height=10px><td></td></tr>
27 <!-- upper left block -->
30 <th align='right'>[% 'Customer' | $T8 %]:</th>
32 [%- INCLUDE 'generic/multibox.html'
33 name = 'letter.customer',
39 limit = myconfig_vclimit,
41 force_textbox = limit_exceeded_all_customer
42 onChange = "document.getElementById('update_button').click();" -%]
43 [%- IF letter.customer_id %]
44 <input type="button" value="[% 'Details (one letter abbreviation)' | $T8 %]" onclick="show_vc_details('customer')">
46 <input type='hidden' name='letter.oldcustomer' value='[% letter.oldcustomer | html %]'>
47 <input type='hidden' name='letter.customer_id' value='[% letter.customer_id | html %]'>
48 <input type='hidden' name='customer_id' value='[% customer_id | html %]'>
49 [%- UNLESS myconfig_vclimit < ALL_CUSTOMERS.size %]
50 <input type="hidden" name="letter.select[% vc %]" value="1">
54 <th align='right'>[% 'Contact Person' | $T8 %]</th>
56 [%- INCLUDE 'generic/multibox.html'
57 name = 'letter.cp_id',
61 label_sub = 'ct_labels',
66 <th align='right'>[% 'Your Reference' | $T8 %]:</th>
67 <td><input name='letter.reference' style='width:70%' value='[% letter.reference %]'></td>
70 <!-- /upper left block -->
73 <!-- upper right block -->
74 <table align=center width=90%>
76 <th align='right'>[% 'Letternumber' | $T8 %]:</th>
77 <td><input name='letter.letternumber' style='width:70%' value='[% letter.letternumber %]'></td>
80 <th align='right'>[% 'Date' | $T8 %]:</th>
81 <td>[% L.date_tag('letter.date', letter.date, readonly=readonly) %]</td>
85 <!-- /upper right block -->
92 <td colspan=2 width=100%>
93 <!-- central block -->
96 <th align=right>[% 'Subject' | $T8 %]</th>
97 <td><textarea name='letter.subject' style='width:100%;font-weight:bold' rows=1>[% letter.subject %]</textarea></td>
99 <th align=right>[% 'Greeting' | $T8 %]</th>
100 <td><input name='letter.greeting' style='width:100%;font-weight:bold' value="[% letter.greeting | html %]"></td>
104 <th align=right>[% 'Body' | $T8 %]</th>
105 <td><textarea name='letter.body' style='width:100%' rows=20>[% letter.body | html %]</textarea></td>
108 <th align=right>[% 'Internal Notes' | $T8 %]</th>
109 <td><textarea name='letter.intnotes' style='width:100%' rows=4>[% letter.intnotes | html %]</textarea></td>
120 <td>[% 'Employee' | $T8 %]</td>
124 [%- INCLUDE 'generic/multibox.html'
125 name = 'letter.employee_id',
126 default = letter.employee_id,
127 style = 'width:70%;font-weight:bold',
128 DATA = ALL_EMPLOYEES,
134 force_textbox = limit_exceeded_ALL_EMPLOYEES
135 onChange = "document.getElementById('update_button').click();" -%]
138 <!-- tr><td><input name="employee_position" style=width:70% value='[% employee_position %]'></td></tr -->
144 <td>[% 'Salesman' | $T8 %]</td>
148 [%- INCLUDE 'generic/multibox.html'
149 name = 'letter.salesman_id',
150 default = letter.salesman_id,
151 style = 'width:70%;font-weight:bold',
158 force_textbox = limit_exceeded_ALL_SALESMAN
159 onChange = "document.getElementById('update_button').click();" -%]
171 <!-- /central block -->
175 <td colspan=3><hr size="3" noshade></td>
185 <input type="hidden" name="action" value="dispatcher">
186 <input class="submit" type="submit" name="action_update" id="update_button" value="[% 'Update' | $T8 %]">
188 [%- IF letter.letternumber %]
189 <input class="submit" type="submit" name="action_print" value="[% 'Print' | $T8 %]">
192 <input class="submit" type="submit" name="action_save" value="[% 'Save' | $T8 %]">
193 <input class="submit" type="submit" name="action_save_letter_draft" value="[% 'Save Draft' | $T8 %]">
197 <script type="text/javascript">
199 Calendar.setup({ inputField : "date", ifFormat :"[% myconfig_jsc_dateformat %]", align : "BL", button : "date_button" });
202 <script type="text/javascript" src="js/show_vc_details.js"></script>