[interchange-cvs] interchange - racke modified dist/lib/UI/pages/admin/import_table.html

interchange-core@interchange.redhat.com interchange-core@interchange.redhat.com
Fri May 24 16:57:01 2002


User:      racke
Date:      2002-05-24 20:56:58 GMT
Modified:  dist/lib/UI/pages/admin import_table.html
Log:
merged changes 2.0.2.2 vs 2.0.2.3
+++ 2.0.2.3 +++
added option to replace items in the database

Revision  Changes    Path
2.3       +15 -0     interchange/dist/lib/UI/pages/admin/import_table.html


rev 2.3, prev_rev 2.2
Index: import_table.html
===================================================================
RCS file: /anon_cvs/repository/interchange/dist/lib/UI/pages/admin/import_table.html,v
retrieving revision 2.2
retrieving revision 2.3
diff -u -r2.2 -r2.3
--- import_table.html	19 Sep 2001 19:25:10 -0000	2.2
+++ import_table.html	24 May 2002 20:56:58 -0000	2.3
@@ -93,6 +93,20 @@
 					table="[cgi mv_data_table]"
 	]
 	[/elsif]
+	[elsif cgi ui_upload_ext eq cleanse]
+	[import-fields
+	                add=1
+					convert="[cgi ui_import_convert]"
+					cleanse=1
+					delete="[cgi ui_allow_delete]"
+					dir=backup
+					file="upload/[cgi ui_upload_filename]"
+					move=1
+					multiple="[cgi ui_allow_multiple]"
+					quiet="[cgi ui_import_quiet]"
+					table="[cgi mv_data_table]"
+	]
+	[/elsif]
 	[/if]
 [/if]
 
@@ -119,6 +133,7 @@
 <hr>
 <SELECT NAME=ui_upload_ext>
 	<OPTION VALUE=add> [L]Add new items if present[/L]
+	<OPTION VALUE=cleanse> [L]Replace existing items[/L]
 	<OPTION VALUE=update> [L]Ignore new items[/L]
 </SELECT>&nbsp;&nbsp;&nbsp;<SMALL><INPUT TYPE=checkbox NAME=ui_allow_delete VALUE=1> [L]Allow delete[/L]
 &nbsp;&nbsp;<INPUT TYPE=checkbox NAME=ui_autonumber VALUE=1 CHECKED> [L]Autonumber if no key[/L]</SMALL>