Revision f7f03503
Von Sven Schöling vor mehr als 12 Jahren hinzugefügt
SL/Controller/Layout/Classic.pm | ||
---|---|---|
$self->add_sub_layouts([
|
||
SL::Controller::Layout::Top->new,
|
||
SL::Controller::Layout::MenuLeft->new,
|
||
SL::Controller::Layout::None->new,
|
||
]);
|
||
|
||
$self;
|
SL/Controller/Layout/Javascript.pm | ||
---|---|---|
use List::Util qw(max);
|
||
use URI;
|
||
|
||
sub new {
|
||
my ($class, @slurp) = @_;
|
||
|
||
my $self = $class->SUPER::new(@slurp);
|
||
|
||
$self->add_sub_layouts([
|
||
SL::Controller::Layout::None->new,
|
||
]);
|
||
|
||
$self;
|
||
}
|
||
|
||
sub pre_content {
|
||
&display
|
||
}
|
SL/Controller/Layout/None.pm | ||
---|---|---|
use strict;
|
||
use parent qw(SL::Controller::Layout::Base);
|
||
|
||
sub javascripts_inline {
|
||
$::form->parse_html_template('generic/javascript_setup')
|
||
}
|
||
|
||
1;
|
SL/Controller/Layout/V3.pm | ||
---|---|---|
|
||
use URI;
|
||
|
||
sub new {
|
||
my ($class, @slurp) = @_;
|
||
|
||
my $self = $class->SUPER::new(@slurp);
|
||
|
||
$self->add_sub_layouts([
|
||
SL::Controller::Layout::None->new,
|
||
]);
|
||
|
||
$self;
|
||
}
|
||
|
||
sub pre_content {
|
||
&render;
|
||
}
|
SL/Controller/Layout/V4.pm | ||
---|---|---|
my ($class, @slurp) = @_;
|
||
|
||
my $self = $class->SUPER::new(@slurp);
|
||
$self->add_sub_layouts(SL::Controller::Layout::Top->new);
|
||
$self->add_sub_layouts(
|
||
SL::Controller::Layout::Top->new
|
||
SL::Controller::Layout::None->new,
|
||
);
|
||
$self;
|
||
}
|
||
|
SL/Form.pm | ||
---|---|---|
print $::request->{layout}->post_content;
|
||
|
||
if (my @inline_scripts = $::request->{layout}->javascripts_inline) {
|
||
print "<script type='text/javascript'>$_</script>\n" for @inline_scripts;
|
||
print "<script type='text/javascript'>@inline_scripts</script>\n";
|
||
}
|
||
|
||
print <<EOL
|
bin/mozilla/ap.pl | ||
---|---|---|
'-default' => $form->{"globalproject_id"} ));
|
||
|
||
$form->header;
|
||
my $onload = qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
|
||
$onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
|
||
print qq|
|
||
<body onLoad="$onload">
|
||
|
bin/mozilla/ar.pl | ||
---|---|---|
qq|<script type="text/javascript" src="js/follow_up.js"></script>|;
|
||
|
||
$onload = qq|focus()|;
|
||
$onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
|
||
|
||
# $amount = $locale->text('Amount');
|
||
# $project = $locale->text('Project');
|
bin/mozilla/ca.pl | ||
---|---|---|
$::form->{title} = $::locale->text('List Transactions') . " - " . $::locale->text('Account') . " $::form->{accno}";
|
||
|
||
my $onload = qq|focus()|;
|
||
$onload .= qq|;setupDateFormat('$::myconfig{dateformat}', '|. $::locale->text("Falsches Datumsformat!") .qq|')|;
|
||
$onload .= qq|;setupPoints('$::myconfig{numberformat}', '|. $::locale->text("wrongformat") .qq|')|;
|
||
|
||
$::form->header;
|
||
print $::form->parse_html_template('ca/list', {
|
bin/mozilla/cp.pl | ||
---|---|---|
|
||
# Standard Konto für Umlaufvermögen
|
||
my $accno_arap = IS->get_standard_accno_current_assets(\%myconfig, \%$form);
|
||
# Entsprechend präventiv die Auswahlliste für Kontonummer
|
||
# Entsprechend präventiv die Auswahlliste für Kontonummer
|
||
# auch mit value= zusammenbauen (s.a. oben bugfix 1771)
|
||
# Wichtig: Auch das Template anpassen, damit hidden input korrekt die "
|
||
# escaped.
|
||
... | ... | |
$form->{defaultcurrency} = $form->{currency} = $form->{oldcurrency} =
|
||
$curr[0];
|
||
|
||
# Entsprechend präventiv die Auswahlliste für Währungen
|
||
# Entsprechend präventiv die Auswahlliste für Währungen
|
||
# auch mit value= zusammenbauen (s.a. oben bugfix 1771)
|
||
$form->{selectcurrency} = "";
|
||
map { $form->{selectcurrency} .= "<option value=\"$_\">$_</option>\n" } @curr;
|
||
... | ... | |
|
||
$arap = lc $form->{ARAP};
|
||
$onload = qq|focus()|;
|
||
$onload .= qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|;
|
||
$onload .= qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
|
||
|
||
print $::form->parse_html_template('cp/form_header', {
|
||
is_customer => $form->{vc} eq 'customer',
|
||
... | ... | |
$form->{customer_id} = $form->{AR}[0]{customer_id};
|
||
}
|
||
|
||
# search by invoicenumber,
|
||
if ($form->{invnumber}) {
|
||
# search by invoicenumber,
|
||
if ($form->{invnumber}) {
|
||
$form->{open} ='Y'; # only open invoices
|
||
if ($form->{ARAP} eq 'AR'){
|
||
# ar_transactions automatically searches by $form->{customer_id} or else
|
bin/mozilla/dn.pl | ||
---|---|---|
$form->header();
|
||
|
||
$form->{onload} = qq|focus()|
|
||
. qq|;setupDateFormat('|. $myconfig{dateformat} .qq|', '|. $locale->text("Falsches Datumsformat!") .qq|')|
|
||
. qq|;setupPoints('|. $myconfig{numberformat} .qq|', '|. $locale->text("wrongformat") .qq|')|;
|
||
|
||
print $form->parse_html_template("dunning/search");
|
||
|
bin/mozilla/gl.pl | ||
---|---|---|
$::form->{ALL_EMPLOYEES} = SL::DB::Manager::Employee->get_all(query => [ deleted => 0 ]);
|
||
|
||
my $onload = "focus()"
|
||
. qq|;setupDateFormat('|. $::myconfig{dateformat} . qq|', '| . $::locale->text("Falsches Datumsformat!") . qq|')|
|
||
. qq|;setupPoints('|. $::myconfig{numberformat} . qq|', '| . $::locale->text("wrongformat") . qq|')|;
|
||
|
||
$::form->header;
|
||
print $::form->parse_html_template('gl/search', {
|
templates/webpages/ap/search.html | ||
---|---|---|
<!--
|
||
$(document).ready(function(){
|
||
focus();
|
||
setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
|
||
setupPoints('[% numberformat | html %]','[% 'wrongformat' | $T8 %]');
|
||
})
|
||
//-->
|
||
</script>
|
templates/webpages/ar/search.html | ||
---|---|---|
<!--
|
||
$(document).ready(function(){
|
||
$('customer').focus();
|
||
setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
|
||
setupPoints('[% numberformat | html %]','[% 'wrongformat' | $T8 %]');
|
||
})
|
||
//-->
|
||
</script>
|
templates/webpages/do/form_header.html | ||
---|---|---|
<!--
|
||
function on_load() {
|
||
[% IF onload %][% onload %];[% END %]
|
||
setupDateFormat('[% myconfig_dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
|
||
setupPoints('[% myconfig_numberformat %]', '[% 'wrongformat' | $T8 %]');
|
||
}
|
||
-->
|
||
</script>
|
templates/webpages/dunning/add.html | ||
---|---|---|
<!--
|
||
function setup_controls() {
|
||
fokus();
|
||
setupDateFormat('[% myconfig_dateformat %]', '[% 'Wrong date format!' | $T8 %]');
|
||
setupPoints('[% myconfig_numberformat %]', '[% 'wrongformat' | $T8 %]');
|
||
}
|
||
-->
|
||
</script>
|
templates/webpages/generic/javascript_setup.html | ||
---|---|---|
[%- USE T8 %]
|
||
$(function() {
|
||
setupPoints('[% myconfig.numberformat %]', '[% 'wrongformat' | $T8 %]');
|
||
setupDateFormat('[% myconfig.dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
|
||
})
|
templates/webpages/ir/form_header.html | ||
---|---|---|
[% ELSE %]
|
||
focus();
|
||
[% END %]
|
||
setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
|
||
setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
|
||
});
|
||
function set_duedate() {
|
||
$.ajax({
|
templates/webpages/is/form_header.html | ||
---|---|---|
[% ELSE %]
|
||
focus();
|
||
[% END %]
|
||
setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
|
||
setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
|
||
});
|
||
function set_duedate() {
|
||
$.ajax({
|
templates/webpages/oe/form_footer.html | ||
---|---|---|
[% END %]
|
||
|
||
</form>
|
||
|
||
|
||
<script type="text/javascript">
|
||
<!--
|
||
$('document').ready(function(){
|
||
setupDateFormat('[% dateformat %]', '[% 'Falsches Datumsformat!' | $T8 %]');
|
||
setupPoints('[% numberformat %]', '[% 'wrongformat' | $T8 %]');
|
||
});
|
||
//-->
|
||
</script>
|
templates/webpages/vk/search_invoice.html | ||
---|---|---|
<th align="right">[% 'Item mode' | $T8 %]</th>
|
||
<td colspan="3" align=left><input name="l_parts" class=checkbox type=checkbox value=Y> ([%'Show items from invoices individually' | $T8 %]) </td>
|
||
</tr>
|
||
<tr>
|
||
<tr>
|
||
<th align="right">
|
||
[% 'Total sum' | $T8 %]
|
||
</th>
|
||
... | ... | |
<td align=left><input name="l_lastcost_total" class=checkbox type=checkbox value=Y checked>[% 'Purchase price total' | $T8 %]</td>
|
||
<td align=left><input name="l_marge_total" class=checkbox type=checkbox value=Y checked>[% 'Margetotal' | $T8 %]</td>
|
||
<td colspan="4"> ([% 'Single values in item mode, cumulated values in invoice mode' | $T8 %])
|
||
|
||
|
||
</tr>
|
||
<tr>
|
||
<td align=left><input name="l_sellprice" class=checkbox type=checkbox value=Y checked>[% 'Sales price' | $T8 %]</td>
|
||
... | ... | |
</th>
|
||
</tr>
|
||
[% CUSTOM_VARIABLES_INCLUSION_CODE_CT %]
|
||
|
||
|
||
<tr><td colspan="7"> </td></tr>
|
||
<tr>
|
||
<th colspan="4" align="left">
|
||
... | ... | |
<!--
|
||
$(document).ready(function(){
|
||
$('customer').focus();
|
||
setupDateFormat('[% dateformat | html %]','[% 'Falsches Datumsformat!' | $T8 %]');
|
||
setupPoints('[% numberformat | html %]','[% 'wrongformat' | $T8 %]');
|
||
})
|
||
//-->
|
||
</script>
|
Auch abrufbar als: Unified diff
setupPoints und setupDateFormat in ein partial Layout verschoben