Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added new menu variables to catalog_before.cfg, fits new U.

  • Loading branch information...
commit ed44c7c4486d1bdbbde5f1679accdb26ee7ab1a8 1 parent feef808
@perusionmike perusionmike authored
Showing with 120 additions and 12 deletions.
  1. +23 −0 dist/catalog_after.cfg
  2. +97 −12 dist/catalog_before.cfg
View
23 dist/catalog_after.cfg
@@ -1,3 +1,4 @@
+#ifdef @UI
UserDB ui database access
UserDB ui crypt 1
UserDB ui time_field last_login
@@ -25,3 +26,25 @@ sub {
return $status;
}
EOR
+
+ActionMap ui_edit <<EOR
+sub {
+ my $deliverable = shift;
+ my $status;
+ $CGI->{mv_nextpage} =~ s:^ui_download/::;
+ $CGI->{mv_nextpage} .= $Session->{extension};
+ if($Tag->if_mm('files', $CGI->{mv_nextpage}) ) {
+ $Document->header("Content-type: application/octet-stream");
+ $Document->hot(1);
+ HTML ( $Tag->file($CGI->{mv_nextpage}) );
+ $status = 0;
+ }
+ else {
+ $Scratch->{ui_error} = "Not authorized for file $CGI->{mv_nextpage}";
+ $CGI->{mv_nextpage} = '__UI_BASE__/error';
+ $status = 1;
+ }
+ return $status;
+}
+EOR
+#endif
View
109 dist/catalog_before.cfg
@@ -1,4 +1,5 @@
ParseVariables Yes
+
#ifdef @UI_BASE
Variable UI_BASE @@UI_BASE@@
#endif
@@ -7,6 +8,7 @@ Variable UI_BASE @@UI_BASE@@
Variable UI_BASE admin
#endif
+#ifdef @UI
Variable UI_ACCESS_TABLE access
Variable UI_META_TABLE mv_metadata
Variable UI_OVERALL_WIDTH 750
@@ -15,6 +17,8 @@ Variable UI_LEFT_WIDTH 150
Variable UI_RIGHT_WIDTH 450
Variable UI_BOTTOMIMG poweredby.gif
Variable UI_T_BG beige
+Variable UI_T_ROW_EVEN #EEEEEE
+Variable UI_T_ROW_ODD #FFFFFF
Variable UI_C_BG #FFFFFF
Variable UI_C_LINK #000000
Variable UI_C_ALINK #000000
@@ -23,17 +27,99 @@ Variable UI_P_BG #FFFFFF
Variable UI_P_LINK #0000EE
Variable UI_P_ALINK #EE0000
Variable UI_P_VLINK #0000FF
-Variable UI_C_TITLEBARBG #336699
-Variable UI_C_TITLEBARTXT #CCCCCC
+Variable UI_C_TITLEBARBG #6699FF
+Variable UI_C_TITLEBARTXT #FFFFFF
+Variable UI_C_TITLEBARCONT #000000
Variable UI_C_HEADERTXT #333333
Variable UI_C_TOPBLOCKBAR #336699
Variable UI_C_INTBLOCK #CCCC99
-Variable UI_C_INTBLOCKBAR #999966
+Variable UI_C_INTBLOCKBAR #73f2d9
Variable UI_HELP_BASE_URL http://www.akopia.com/help/4.5.0
Variable UI_T_PROPERTIES cellpadding=3 cellspacing=0 width=90% border=0
-
Variable UI_SZ_LIST_CUSTOMER 50
Variable UI_SZ_LIST_ORDER 50
+
+Variable UI_SUBMENU_None <<EOV
+code next_line indicator depends_on page form name
+1 !nevairbe <font size="-1"><b>Welcome to Interchange</B> <small><i><b>Freedom to Mind Your Own Business&#153;</b></i></small></font>
+EOV
+
+Variable UI_SUBMENU_Merchandising <<EOV
+code next_line indicator depends_on page form name
+1 __UI_BASE__/affiliates Affiliates
+EOV
+
+Variable UI_SUBMENU_Reports <<EOV
+code next_line indicator depends_on page form name
+1 __UI_BASE__/orderstats Orders
+2 __UI_BASE__/trafficstats Traffic
+[if-mm super]3 __UI_BASE__/tablereport Custom
+[/if-mm]
+EOV
+
+Variable UI_SUBMENU_Orders <<EOV
+code next_line indicator depends_on page form name
+1 !showarchive __UI_BASE__/order showpending=1 Pending orders
+2 showarchive __UI_BASE__/order showarchive=1 Archived orders
+3 __UI_BASE__/entry Enter order
+EOV
+
+Variable UI_SUBMENU_Items <<EOV
+code next_line indicator depends_on page form name
+1 __UI_BASE__/item Item list
+9 __UI_BASE__/item_edit item_id=new &nbsp;&nbsp;&nbsp;&nbsp;Create new item
+2 item_id &nbsp;&nbsp;&nbsp;sku: [cgi item_id]
+3 1 item_id __UI_BASE__/item_edit item_id=[cgi item_id] Edit
+4 item_id __UI_BASE__/item_price item_id=[cgi item_id] Pricing
+5 item_id __UI_BASE__/item_up item_id=[cgi item_id] Up sell
+6 item_id __UI_BASE__/item_cross item_id=[cgi item_id] Cross sell
+7 item_id __UI_BASE__/item_feature item_id=[cgi item_id] Feature
+8 item_id __UI_BASE__/item_inventory item_id=[cgi item_id] Inventory
+EOV
+
+Variable UI_SUBMENU_Design <<EOV
+code next_line indicator depends_on page form name
+1 __UI_BASE__/layout Site layout
+2 __UI_BASE__/search_wizard Search builder
+3 __UI_BASE__/button_builder Button builder
+4 __UI_BASE__/regenerate Generate static
+5 __UI_BASE__/genupload File transfer
+6 __UI_BASE__/page Page edit
+EOV
+
+
+
+Variable UI_SUBMENU_Customers <<EOV
+code next_line indicator depends_on page form name
+1 showactive __UI_BASE__/customer showactive=1 Active customers
+2 showinactive __UI_BASE__/customer showinactive=1 Inactive customers
+3 __UI_BASE__/flex_editor page_title=Create new customer&mv_data_table=userdb&item_id=new&ui_return_to=__UI_BASE__/customer Create new customer
+4 1 customer __UI_BASE__/customer_ship customer=[cgi customer] Shipping
+5 customer __UI_BASE__/customer_bill customer=[cgi customer] Billing
+6 customer __UI_BASE__/customer_pref customer=[cgi customer] Preferences
+7 customer __UI_BASE__/entry customer=[cgi customer] Enter order
+EOV
+
+
+Variable UI_SUBMENU_Admin <<EOV
+code next_line indicator depends_on page form name
+1 __UI_BASE__/genconfig Info
+2 __UI_BASE__/tax Tax
+3 __UI_BASE__/ship Shipping
+4 __UI_BASE__/payment Payment
+5 __UI_BASE__/preferences Preferences
+6 __UI_BASE__/flex_select mv_data_table=variable&page_title=Knar editor&ui_meta_specific=1&help_name=knar.main&ui_description_fields=code&ui_return_to=__UI_BASE__/preferences Variable Knar
+7 __UI_BASE__/gentable Tables
+8 __UI_BASE__/reconfig ui_changes_made &nbsp;&nbsp;&nbsp;Apply changes
+9 1 mv_data_table __UI_BASE__/flex_select mv_data_table=[cgi mv_data_table] Edit
+10 mv_data_table __UI_BASE__/import_table mv_data_table=[cgi mv_data_table] Import data
+11 mv_data_table __UI_BASE__/export_table mv_data_table=[cgi mv_data_table] Export data
+12 mv_data_table __UI_BASE__/spread mv_data_table=[cgi mv_data_table] Spreadsheet
+13 mv_data_table __UI_BASE__/flex_editor mv_data_table=[cgi mv_data_table]&item_id=new New entry
+13 mv_data_table __UI_BASE__/gentable &nbsp;&nbsp;&nbsp;&nbsp;Re-select table
+EOV
+#endif
+
ParseVariables No
Sub <<EOR
@@ -126,13 +212,12 @@ sub bar_link {
}
return $url if ! $anchor;
return $anchor if ! $url;
- if($record->{link_template}) {
- my $tmp = $record->{link_template};
- $record->{ANCHOR} = $anchor;
- $record->{URL} = $url;
- $tmp =~ s/\$(\w+)\$/$record->{$1}/g;
- return $tmp;
- }
- return qq{<A HREF="$url" CLASS="barlink">$anchor</A>};
+ my $tmpl = $record->{link_template}
+ || $Variable->{BAR_LINK_TEMPLATE}
+ || q{<A HREF="$URL$" CLASS="barlink">$ANCHOR$</A>};
+ $record->{ANCHOR} = $anchor;
+ $record->{URL} = $url;
+ $tmpl =~ s/\$(\w+)\$/$record->{$1}/g;
+ return $tmpl;
}
EOR
Please sign in to comment.
Something went wrong with that request. Please try again.