Revision 35182445
Von Sven Schöling vor fast 17 Jahren hinzugefügt
bin/mozilla/ct.pl | ||
---|---|---|
272 | 272 |
sub form_footer { |
273 | 273 |
$lxdebug->enter_sub(); |
274 | 274 |
|
275 |
$label = ucfirst $form->{db}; |
|
276 |
$quotation = |
|
277 |
($form->{db} eq 'customer') |
|
278 |
? $locale->text('Save and Quotation') |
|
279 |
: $locale->text('Save and RFQ'); |
|
280 |
$arap = |
|
281 |
($form->{db} eq 'customer') |
|
282 |
? $locale->text('Save and AR Transaction') |
|
283 |
: $locale->text('Save and AP Transaction'); |
|
284 |
|
|
285 |
##<input class=submit type=submit name=action value="|.$locale->text("Save and Quotation").qq|"> |
|
286 |
##<input class=submit type=submit name=action value="|.$locale->text("Save and RFQ").qq|"> |
|
287 |
##<input class=submit type=submit name=action value="|.$locale->text("Save and AR Transaction").qq|"> |
|
288 |
##<input class=submit type=submit name=action value="|.$locale->text("Save and AP Transaction").qq|"> |
|
289 |
|
|
290 |
print qq| |
|
291 |
<input name=id type=hidden id=cvid value=$form->{id}> |
|
292 |
<input name=business_save type=hidden value="$form->{selectbusiness}"> |
|
293 |
<input name=title_save type=hidden value="$form->{title}"> |
|
294 |
|
|
295 |
<input type=hidden name=login value=$form->{login}> |
|
296 |
<input type=hidden name=password value=$form->{password}> |
|
297 |
|
|
298 |
<input type=hidden name=callback value="$form->{callback}"> |
|
299 |
<input type=hidden name=db id=db value=$form->{db}> |
|
300 |
|
|
301 |
|
|
302 |
|
|
303 |
<br> |
|
304 |
<input class=submit type=submit name=action accesskey="s" value="| |
|
305 |
. $locale->text("Save") . qq|"> |
|
306 |
<input class=submit type=submit name=action accesskey="s" value="| |
|
307 |
. $locale->text("Save and Close") . qq|"> |
|
308 |
<input class=submit type=submit name=action value="$arap"> |
|
309 |
<input class=submit type=submit name=action value="| |
|
310 |
. $locale->text("Save and Invoice") . qq|"> |
|
311 |
<input class=submit type=submit name=action value="| |
|
312 |
. $locale->text("Save and Order") . qq|"> |
|
313 |
<input class=submit type=submit name=action value="$quotation"> |
|
314 |
|; |
|
315 |
|
|
316 |
if ($form->{id} && $form->{status} eq 'orphaned') { |
|
317 |
print qq|<input class=submit type=submit name=action value="| |
|
318 |
. $locale->text('Delete') |
|
319 |
. qq|">\n|; |
|
320 |
} |
|
321 |
|
|
322 |
# button for saving history |
|
323 |
if($form->{id} ne "") { |
|
324 |
print qq| |
|
325 |
<input type=button class=submit onclick=set_history_window(| |
|
326 |
. $form->{id} |
|
327 |
. qq|); name=history id=history value=| |
|
328 |
. $locale->text('history') |
|
329 |
. qq|>|; |
|
330 |
} |
|
331 |
# /button for saving history |
|
332 |
|
|
333 |
print qq| |
|
334 |
|
|
335 |
</form> |
|
336 |
<script type="text/javascript"> |
|
337 |
//Start Tab Content script for UL with id="maintab" Separate multiple ids each with a comma. |
|
338 |
initializetabcontent("maintab") |
|
339 |
</script> |
|
340 |
</body> |
|
341 |
</html> |
|
342 |
|; |
|
343 |
|
|
275 |
print $form->parse_html_template('ct/form_footer', { is_orphaned => $form->{status} eq 'orphaned', |
|
276 |
is_customer => $form->{db} eq 'customer' }); |
|
344 | 277 |
$lxdebug->leave_sub(); |
345 | 278 |
} |
346 | 279 |
|
Auch abrufbar als: Unified diff
CT form_footer auf Templates umgestellt