[interchange-cvs] interchange - heins modified 2 files

interchange-cvs at icdevgroup.org interchange-cvs at icdevgroup.org
Thu Jul 10 15:19:00 EDT 2003


User:      heins
Date:      2003-07-10 18:19:26 GMT
Modified:  dist/foundation/products mv_metadata.asc
Modified:  dist/lib/UI/pages/include/meta mv_metadata.asc
Log:
* Remove the "view_from" parameter undoubtedly messing up many product edits.

* Add ui_more_alpha definition.

Revision  Changes    Path
2.40      +3 -2      interchange/dist/foundation/products/mv_metadata.asc


rev 2.40, prev_rev 2.39
Index: mv_metadata.asc
===================================================================
RCS file: /var/cvs/interchange/dist/foundation/products/mv_metadata.asc,v
retrieving revision 2.39
retrieving revision 2.40
diff -u -r2.39 -r2.40
--- mv_metadata.asc	2 Jul 2003 04:05:51 -0000	2.39
+++ mv_metadata.asc	10 Jul 2003 18:19:26 -0000	2.40
@@ -40,6 +40,7 @@
 dbconfig::mv_metadata::code	hidden_text									Database table											
 dbconfig::mv_metadata::db	reverse_combo							tables					last_non_null								
 dbconfig::mv_metadata::display_filter	select							=Yes,
1=No		Backup select	If Yes, table should be checked by default in backup/download.										
+mv_metadata::extended.ui_more_alpha	select							0=No,1=Yes		Alpha more	Display alphabetical more list when sorting on this field										
 dbconfig::mv_metadata::field	move_combo	30	10					columns::		List on select page	Must have the key field (usually it is the first one)		null_to_comma								
 dbconfig::mv_metadata::filter	multiple		5					filesafe=Safe for file name,
    uc=Upper case,
    nullselect=First non-null (combo box),
    null_to_space=Translate null to space,
    null_to_comma=Translate null to comma,
    lc=Lower case,
    digits_dot=Decimal number (not negative),
    backslash=Remove backslashes,
    namecase=Name case,
    name=Turn LAST,FIRST into FIRST LAST,
    digits=Digits only,
    word=Word chars only (A-z0-9_),
    unix=DOS to UNIX,
    dos=UNIX to DOS,
    mac=UNIX to MAC,
    gate=Only allow if scratch set,
    no_white=No whitespace,
    strip=Strip leading/trailing whitespace,
    sql=Escape single quotes (SQL),
    text2html=Simple text to HTML,
    urlencode=URL encode (%20, etc),
    pagefile=Safe for Interchange page name,
    entities=HTML entities (& -> &), date_change=MM/DD/YYYY to YYYYMMDD					option_format								
 dbconfig::mv_metadata::height	text	4								Select page rows	Number of rows to display at selector page.		digits								
@@ -128,7 +129,7 @@
 mv_metadata::options	textarea	50	8							Options	Options for SELECT/COMBO types (if lookup, prepended). Entered in the
interchange option format:<P>
<blockquote>
value=label*</blockquote>One per line.		line2options		options2line						
 mv_metadata::outboard	text	30								Directory	Select directory for image listing widget.										
 mv_metadata::prepend	textarea	60	5							Prepend HTML	<SMALL>HTML to be prepended to the widget.
Will substitute in the macros _UI_TABLE_, _UI_COLUMN_,
_UI_KEY, and _UI_VALUE_, and will resolve relative links
with absolute links.</SMALL>										
-mv_metadata::type	select							text=Text entry*,
textarea=Textarea,
select=Select box,
yesno=Yes/No (Yes=1),
noyes=No/Yes (No=1),
yesno radio=Yes/No (radio),
noyes radio=No/Yes (radio),
multiple=Multiple Select,
combo=Combo Select,
reverse_combo=Reverse Combo,
move_combo=Combo move,
display=Text of option,
hidden_text=Hidden (show text),
radio=Radio box, 
radio_nbsp=Radio (nbsp),
checkbox=Checkbox,
check_nbsp=Checkbox (nbsp),
imagedir=Image listing,
imagehelper=Image upload,
date=Date selector,
value=Value,
option_format=Option formatter,
show=Show all options,gpg_keys=GPG key selector		Widget type	Select the basic display type for the field.										
+mv_metadata::type	select							text=Text entry*,
textarea=Textarea,
select=Select box,
yesno=Yes/No (Yes=1),
noyes=No/Yes (No=1),
yesno radio=Yes/No (radio),
noyes radio=No/Yes (radio),
multiple=Multiple Select,
combo=Combo Select,
reverse_combo=Reverse Combo,
move_combo=Combo move,
display=Text of option,
hidden_text=Hidden (show text),
radio=Radio box, 
radio_nbsp=Radio (nbsp),
checkbox=Checkbox,
check_nbsp=Checkbox (nbsp),
imagedir=Image listing,
imagehelper=Image upload,
date=Date selector,
date_time_ampm=Date selector w/ampm time,
date_time=Date selector w/24hr time,
value=Value,
option_format=Option formatter,
show=Show all options,gpg_keys=GPG key selector		Widget type	Select the basic display type for the field.										
 mv_metadata::width	text	4								Width	SIZE for TEXT<BR>
COLS for TEXTAREA<BR>
Label limit for SELECT		digits								
 optadd::mv_metadata::options	textarea	20	8							Options	Options in the format:<P>
<blockquote>
value=label*</blockquote>
		option_format								
 options	table			code
sku
o_group
o_master
description(30)
price		Product Options						options									
@@ -240,7 +241,7 @@
 pricing::w2	text	6								Qty 2											
 pricing::w25	text	6								Qty 25											
 pricing::w5	text	6								Qty 5											
-products	table		50			Product information	Qty price;pricing:q5:rn,Option;products:option_type:r,Promo;merchandising:featured:r,Inventory;inventory:quantity:rn					products									{'panel_shade' => "f",'spread_height' => "25",'spread_meta' => "comment nontaxable",'spread_textarea_rows' => "4",'include_form' => "<td class=clabel> Product images </td>
 <td class=cdata>

<script>
function get_images (sku) {
                var path = '[var IMAGE_DIR]';
  
                var el;
                var divit = document.getElementById('images_table');
                divit.style.display= 'none';
                el = document.getElementById('thumb_img');
                el.src = path + '/thumb/' + sku + '_b.gif';

                el = document.getElementById('item_img');
                el.src = path + '/items/' + sku + '.gif';     
                divit.style.display= 'block';
        }
</script>
    <table id=images_table>
        <tr class=rmarq>
             <td>Image</td>
             <td>Thumb</td>
        </tr>
        <tr>
             <td><a href=\"javascript:mvpan_tripTab(2)\">[image src=\"[var IMAGE_DIR]/items/[cgi item_id]\"  extra=\"border=0 id=item_img\"]</a></td>
             <td><a href=\"javascript:mvpan_tripTab(2)\">[image src=\"[var IMAGE_DIR]/thumb/[cgi item_id]_b\" extra=\"border=0 id=thumb_img\"]</a></td>
        </tr>
    </table>
 </td>
",'ui_data_fields' => "=General

sku
description
prod_group category
comment
inactive

=Pricing

price
wholesale

=Images

image
thumb
image_large

=Shipping/Tax/Other

weight
nontaxable gift_cert",'tabbed' => "1",'view_from' => "prod_group",'spread_width' => "8",'include_form_interpolate' => "1",'left_width' => "20%",'ui_more_decade' => "10",'include_before' => "price",'include_form_expand' => "1",'ui_show_fields' => "sku
description(30.)
prod_group
category
price(%.2f align=right)",'restrict_allow' => "area var page",'ui_special_add' => "Qty price;pricing:q5:rn,Promo;merchandising:featured:r,Inventory;inventory:quantity:rn",'file_upload' => "1",'spread_fields' => 
+products	table		50			Product information	Qty price;pricing:q5:rn,Option;products:option_type:r,Promo;merchandising:featured:r,Inventory;inventory:quantity:rn					products									{'panel_shade' => "f",'spread_height' => "25",'spread_meta' => "comment nontaxable",'spread_textarea_rows' => "4",'include_form' => "<td class=clabel> Product images </td>
 <td class=cdata>

<script>
function get_images (sku) {
                var path = '[var IMAGE_DIR]';
  
                var el;
                var divit = document.getElementById('images_table');
                divit.style.display= 'none';
                el = document.getElementById('thumb_img');
                el.src = path + '/thumb/' + sku + '_b.gif';

                el = document.getElementById('item_img');
                el.src = path + '/items/' + sku + '.gif';     
                divit.style.display= 'block';
        }
</script>
    <table id=images_table>
        <tr class=rmarq>
             <td>Image</td>
             <td>Thumb</td>
        </tr>
        <tr>
             <td><a href=\"javascript:mvpan_tripTab(2)\">[image src=\"[var IMAGE_DIR]/items/[cgi item_id]\"  extra=\"border=0 id=item_img\"]</a></td>
             <td><a href=\"javascript:mvpan_tripTab(2)\">[image src=\"[var IMAGE_DIR]/thumb/[cgi item_id]_b\" extra=\"border=0 id=thumb_img\"]</a></td>
        </tr>
    </table>
 </td>
",'ui_data_fields' => "=General

sku
description
prod_group category
comment
inactive

=Pricing

price
wholesale

=Images

image
thumb
image_large

=Shipping/Tax/Other

weight
nontaxable gift_cert",'tabbed' => "1",'spread_width' => "8",'include_form_interpolate' => "1",'left_width' => "20%",'ui_more_decade' => "10",'include_before' => "price",'include_form_expand' => "1",'ui_show_fields' => "sku
description(30.)
prod_group
category
price(%.2f align=right)",'restrict_allow' => "area var page",'ui_special_add' => "Qty price;pricing:q5:rn,Promo;merchandising:featured:r,Inventory;inventory:quantity:rn",'file_upload' => "1",'spread_fields' => "sku
description
price
comme
 products::artist	text	30								Artist											
 products::category	combo	20	1		products			=--none--		Category	Enter in box for new category.	category	nullselect		nullselect						
 products::color	textarea	70	2																		



1.10      +3 -2      interchange/dist/lib/UI/pages/include/meta/mv_metadata.asc


rev 1.10, prev_rev 1.9
Index: mv_metadata.asc
===================================================================
RCS file: /var/cvs/interchange/dist/lib/UI/pages/include/meta/mv_metadata.asc,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- mv_metadata.asc	2 Jul 2003 04:05:51 -0000	1.9
+++ mv_metadata.asc	10 Jul 2003 18:19:26 -0000	1.10
@@ -40,6 +40,7 @@
 dbconfig::mv_metadata::code	hidden_text									Database table											
 dbconfig::mv_metadata::db	reverse_combo							tables					last_non_null								
 dbconfig::mv_metadata::display_filter	select							=Yes,
1=No		Backup select	If Yes, table should be checked by default in backup/download.										
+mv_metadata::extended.ui_more_alpha	select							0=No,1=Yes		Alpha more	Display alphabetical more list when sorting on this field										
 dbconfig::mv_metadata::field	move_combo	30	10					columns::		List on select page	Must have the key field (usually it is the first one)		null_to_comma								
 dbconfig::mv_metadata::filter	multiple		5					filesafe=Safe for file name,
    uc=Upper case,
    nullselect=First non-null (combo box),
    null_to_space=Translate null to space,
    null_to_comma=Translate null to comma,
    lc=Lower case,
    digits_dot=Decimal number (not negative),
    backslash=Remove backslashes,
    namecase=Name case,
    name=Turn LAST,FIRST into FIRST LAST,
    digits=Digits only,
    word=Word chars only (A-z0-9_),
    unix=DOS to UNIX,
    dos=UNIX to DOS,
    mac=UNIX to MAC,
    gate=Only allow if scratch set,
    no_white=No whitespace,
    strip=Strip leading/trailing whitespace,
    sql=Escape single quotes (SQL),
    text2html=Simple text to HTML,
    urlencode=URL encode (%20, etc),
    pagefile=Safe for Interchange page name,
    entities=HTML entities (& -> &amp;), date_change=MM/DD/YYYY to YYYYMMDD					option_format								
 dbconfig::mv_metadata::height	text	4								Select page rows	Number of rows to display at selector page.		digits								
@@ -128,7 +129,7 @@
 mv_metadata::options	textarea	50	8							Options	Options for SELECT/COMBO types (if lookup, prepended). Entered in the
interchange option format:<P>
<blockquote>
value=label*</blockquote>One per line.		line2options		options2line						
 mv_metadata::outboard	text	30								Directory	Select directory for image listing widget.										
 mv_metadata::prepend	textarea	60	5							Prepend HTML	<SMALL>HTML to be prepended to the widget.
Will substitute in the macros _UI_TABLE_, _UI_COLUMN_,
_UI_KEY, and _UI_VALUE_, and will resolve relative links
with absolute links.</SMALL>										
-mv_metadata::type	select							text=Text entry*,
textarea=Textarea,
select=Select box,
yesno=Yes/No (Yes=1),
noyes=No/Yes (No=1),
yesno radio=Yes/No (radio),
noyes radio=No/Yes (radio),
multiple=Multiple Select,
combo=Combo Select,
reverse_combo=Reverse Combo,
move_combo=Combo move,
display=Text of option,
hidden_text=Hidden (show text),
radio=Radio box, 
radio_nbsp=Radio (nbsp),
checkbox=Checkbox,
check_nbsp=Checkbox (nbsp),
imagedir=Image listing,
imagehelper=Image upload,
date=Date selector,
value=Value,
option_format=Option formatter,
show=Show all options,gpg_keys=GPG key selector		Widget type	Select the basic display type for the field.										
+mv_metadata::type	select							text=Text entry*,
textarea=Textarea,
select=Select box,
yesno=Yes/No (Yes=1),
noyes=No/Yes (No=1),
yesno radio=Yes/No (radio),
noyes radio=No/Yes (radio),
multiple=Multiple Select,
combo=Combo Select,
reverse_combo=Reverse Combo,
move_combo=Combo move,
display=Text of option,
hidden_text=Hidden (show text),
radio=Radio box, 
radio_nbsp=Radio (nbsp),
checkbox=Checkbox,
check_nbsp=Checkbox (nbsp),
imagedir=Image listing,
imagehelper=Image upload,
date=Date selector,
date_time_ampm=Date selector w/ampm time,
date_time=Date selector w/24hr time,
value=Value,
option_format=Option formatter,
show=Show all options,gpg_keys=GPG key selector		Widget type	Select the basic display type for the field.										
 mv_metadata::width	text	4								Width	SIZE for TEXT<BR>
COLS for TEXTAREA<BR>
Label limit for SELECT		digits								
 optadd::mv_metadata::options	textarea	20	8							Options	Options in the format:<P>
<blockquote>
value=label*</blockquote>
		option_format								
 options	table			code
sku
o_group
o_master
description(30)
price		Product Options						options									
@@ -240,7 +241,7 @@
 pricing::w2	text	6								Qty 2											
 pricing::w25	text	6								Qty 25											
 pricing::w5	text	6								Qty 5											
-products	table		50			Product information	Qty price;pricing:q5:rn,Option;products:option_type:r,Promo;merchandising:featured:r,Inventory;inventory:quantity:rn					products									{'panel_shade' => "f",'spread_height' => "25",'spread_meta' => "comment nontaxable",'spread_textarea_rows' => "4",'include_form' => "<td class=clabel> Product images </td>
 <td class=cdata>

<script>
function get_images (sku) {
                var path = '[var IMAGE_DIR]';
  
                var el;
                var divit = document.getElementById('images_table');
                divit.style.display= 'none';
                el = document.getElementById('thumb_img');
                el.src = path + '/thumb/' + sku + '_b.gif';

                el = document.getElementById('item_img');
                el.src = path + '/items/' + sku + '.gif';     
                divit.style.display= 'block';
        }
</script>
    <table id=images_table>
        <tr class=rmarq>
             <td>Image</td>
             <td>Thumb</td>
        </tr>
        <tr>
             <td><a href=\"javascript:mvpan_tripTab(2)\">[image src=\"[var IMAGE_DIR]/items/[cgi item_id]\"  extra=\"border=0 id=item_img\"]</a></td>
             <td><a href=\"javascript:mvpan_tripTab(2)\">[image src=\"[var IMAGE_DIR]/thumb/[cgi item_id]_b\" extra=\"border=0 id=thumb_img\"]</a></td>
        </tr>
    </table>
 </td>
",'ui_data_fields' => "=General

sku
description
prod_group category
comment
inactive

=Pricing

price
wholesale

=Images

image
thumb
image_large

=Shipping/Tax/Other

weight
nontaxable gift_cert",'tabbed' => "1",'view_from' => "prod_group",'spread_width' => "8",'include_form_interpolate' => "1",'left_width' => "20%",'ui_more_decade' => "10",'include_before' => "price",'include_form_expand' => "1",'ui_show_fields' => "sku
description(30.)
prod_group
category
price(%.2f align=right)",'restrict_allow' => "area var page",'ui_special_add' => "Qty price;pricing:q5:rn,Promo;merchandising:featured:r,Inventory;inventory:quantity:rn",'file_upload' => "1",'spread_fields' => 
+products	table		50			Product information	Qty price;pricing:q5:rn,Option;products:option_type:r,Promo;merchandising:featured:r,Inventory;inventory:quantity:rn					products									{'panel_shade' => "f",'spread_height' => "25",'spread_meta' => "comment nontaxable",'spread_textarea_rows' => "4",'include_form' => "<td class=clabel> Product images </td>
 <td class=cdata>

<script>
function get_images (sku) {
                var path = '[var IMAGE_DIR]';
  
                var el;
                var divit = document.getElementById('images_table');
                divit.style.display= 'none';
                el = document.getElementById('thumb_img');
                el.src = path + '/thumb/' + sku + '_b.gif';

                el = document.getElementById('item_img');
                el.src = path + '/items/' + sku + '.gif';     
                divit.style.display= 'block';
        }
</script>
    <table id=images_table>
        <tr class=rmarq>
             <td>Image</td>
             <td>Thumb</td>
        </tr>
        <tr>
             <td><a href=\"javascript:mvpan_tripTab(2)\">[image src=\"[var IMAGE_DIR]/items/[cgi item_id]\"  extra=\"border=0 id=item_img\"]</a></td>
             <td><a href=\"javascript:mvpan_tripTab(2)\">[image src=\"[var IMAGE_DIR]/thumb/[cgi item_id]_b\" extra=\"border=0 id=thumb_img\"]</a></td>
        </tr>
    </table>
 </td>
",'ui_data_fields' => "=General

sku
description
prod_group category
comment
inactive

=Pricing

price
wholesale

=Images

image
thumb
image_large

=Shipping/Tax/Other

weight
nontaxable gift_cert",'tabbed' => "1",'spread_width' => "8",'include_form_interpolate' => "1",'left_width' => "20%",'ui_more_decade' => "10",'include_before' => "price",'include_form_expand' => "1",'ui_show_fields' => "sku
description(30.)
prod_group
category
price(%.2f align=right)",'restrict_allow' => "area var page",'ui_special_add' => "Qty price;pricing:q5:rn,Promo;merchandising:featured:r,Inventory;inventory:quantity:rn",'file_upload' => "1",'spread_fields' => "sku
description
price
comme
 products::artist	text	30								Artist											
 products::category	combo	20	1		products			=--none--		Category	Enter in box for new category.	category	nullselect		nullselect						
 products::color	textarea	70	2																		







More information about the interchange-cvs mailing list