Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
236 lines (191 sloc) 4.5 KB
Variable UI_IMG /akopia/ui/
# Set the base for the UI pages
Variable UI_BASE admin
Variable UI_MENU_TABLE icmenu
Variable UI_STATE_TABLE state
Variable UI_COUNTRY_TABLE country
## This one is MV because used internally as well
Variable MV_OPTION_TABLE icmenu
Variable UI_STYLE <<EOV
BODY {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
TD {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}
.margin {
margin-top: 0px;
margin-left: 0px;
}
A:link {
text-decoration: none;
font-weight: normal;
color: __UI_C_LINK__;
font-size: 11pt;
}
A:hover {
text-decoration: underline;
font-weight: normal;
color: __UI_C_LINK__;
font-size: 11pt;
}
A:active {
text-decoration: none;
font-weight: normal;
color: __UI_C_ALINK__;
font-size: 11pt;
}
A:visited {
text-decoration: none;
font-weight: normal;
color: __UI_C_VLINK__;
font-size: 11pt;
}
.ctitle {
font-weight: bold;
color: white;
font-size: 11pt;
}
A:link.ctitle {
text-decoration: none;
font-weight: bold;
color: white;
font-size: 11pt;
}
A:hover.ctitle {
text-decoration: underline;
font-weight: bold;
color: yellow;
font-size: 11pt;
}
A:active.ctitle {
text-decoration: underline;
font-weight: bold;
color: yellow;
font-size: 11pt;
}
A:visited.ctitle {
text-decoration: none;
font-weight: bold;
color: white;
font-size: 11pt;
}
.cbreak {
font-weight: bold;
font-size: 11pt;
}
.cdata {
vertical-align: center;
font-size: 11pt;
}
.cerror {
color: red;
font-size: 11pt;
}
.cmessage {
color: green;
font-size: 11pt;
}
.chelp {
vertical-align: center;
font-size: 11pt;
}
.clabel {
text-align: left;
font-weight: bold;
font-size: 11pt;
}
.cwidget {
vertical-align: center;
font-size: 11pt;
}
.ralt {
background-color: __UI_T_ROW_ODD__;
}
.rbreak {
background-color: __UI_T_ROW_ODD__;
}
.rmarq {
background-color: __UI_C_TITLEBARBG__;
}
.rnorm {
background-color: __UI_T_ROW_EVEN__;
}
.rborder {
background-color: __UI_C_TOPBLOCKBAR__;
}
.rspacer {
background-color: __UI_C_TITLEBARBG__;
}
.rtitle {
background-color: __UI_C_TITLEBARBG__;
}
EOV
# localized strings
ifdef UI_LOCALE_DE
include lib/UI/locales/de_DE.cfg
endif
ifdef UI_LOCALE_FR
include lib/UI/locales/fr_FR.cfg
endif
ifdef UI_LOCALE_IT
include lib/UI/locales/it_IT.cfg
endif
ifdef UI_LOCALE_RU
include lib/UI/locales/ru_RU.cfg
endif
UserTag UI_initlocale Routine <<EOR
sub {
package Vend::Config;
sub parse_deflocparse {
# preserve locale information for UI
$C->{Locale_repository} = {} unless $C->{Locale_repository};
foreach my $key (keys %$Global::Locale_repository)
{
$C->{Locale_repository}{"MM_$key"} =
$Global::Locale_repository->{$key};
}
}
}
EOR
AddDirective MM_InitLocale deflocparse default
# instruct Interchange to use this directory as alternative
# for searching Interchange pages
TemplateDir lib/UI/pages
## This tag is here to initialize the imports
UserTag reconfigure Order table file
UserTag reconfigure Routine <<EOR
use UI::Primitive;
*ui_check_acl = \&UI::Primitive::ui_check_acl;
*ui_acl_enabled = \&UI::Primitive::ui_acl_enabled;
*get_ui_table_acl = \&UI::Primitive::get_ui_table_acl;
sub {
my ($table, $file) = @_;
my $recon = $CGI::script_name;
if($table and $file) {
$recon .= " $table $file";
}
Vend::Util::logData("$Global::ConfDir/reconfig", $recon)
and return "SUCCESS";
return "FAILED";
}
EOR
Variable UI_MENU_CONTENT <<EOV
code img_dn img_up img_sel page url alt name
[if-mm advanced order]2 B2.gif B2_b.gif B2_b.gif __UI_BASE__/order Order administration Orders
[/if-mm][if-mm advanced userdb]3 B3.gif B3_b.gif B3_b.gif __UI_BASE__/customer Customer administration Customers
[/if-mm][if-mm advanced items]4 B4.gif B4_b.gif B4_b.gif __UI_BASE__/item Item management Items
[/if-mm][if-mm advanced content]5 B5.gif B5_b.gif B5_b.gif __UI_BASE__/page Content edit Content
[/if-mm][if-mm advanced layout]6 B6.gif B6_b.gif B6_b.gif __UI_BASE__/layout Site design Design
[/if-mm][if-mm advanced items]7 B7.gif B7_b.gif B7_b.gif __UI_BASE__/merchandising merchandising Merchandising
[/if-mm][if-mm advanced stats]8 B8.gif B8_b.gif B8_b.gif __UI_BASE__/genreport Statistics and reports Reports
[/if-mm][if-mm advanced admin]9 B9.gif B9_b.gif B9_b.gif __UI_BASE__/genconfig System administration Admin
[/if-mm]
EOV
# user tags
include lib/UI/usertag/*.tag
include lib/UI/vars/*
Profiles lib/UI/profiles/*
Message ...UI is loaded....
Something went wrong with that request. Please try again.