[if session arg] [value scratch=1 name=mvc_data_table set="[data session arg]" hide=1] [/if] [if-mm !tables] [bounce href="[area @@MM_BASE@@/violation]"] [/if-mm] [if-mm !upload] [bounce href="[area @@MM_BASE@@/violation]"] [/if-mm] [if scratch mvc_data_table] [set name=mvc_data_file interpolate=1][dbinfo table="[value mvc_data_table]" attribute=file][/set] [/if]
[title-bar size=2][page index]__COMPANY__[/page][/title-bar] [if type=explicit compare="[value-extended name=upload_file test=isfile]"] [title-bar][L]Uploaded file[/L] [value mvc_data_file]: [value-extended name=upload_file outfile="upload/[value mvc_data_file]" yes=Succeeded no=FAILED ][/title-bar]

[/if] [title-bar][L]Table[/L] [value mv_data_table]: [L]Upload new ASCII source[/L][/title-bar] [title-bar][L]Restore or use new database text source file[/L][/title-bar] [rotate-database]
[check-upload file="[scratch mvc_data_file]"] [if type=file term="products/[scratch mvc_data_file]+"] [seti [L]Rotate in new database[/L]] mvc_rotate_database=[scratch mvc_data_file] mvc_rotate_direction=save [/seti] [else][L]No new files available[/L][/else] [/if]
[if type=file term="products/[scratch mvc_data_file]-"] [seti [L]Return to saved database[/L]] mvc_rotate_database=[scratch mvc_data_file] mvc_rotate_direction=unsave [/seti] [else][L]No saved files available[/L][/else] [/if]

[title-bar][L]Upload new database text source file[/L][/title-bar]
ASCII Binary [loop list="[value mv_data_table]"]

[title-bar 200 2][L]Database Configuration[/L][/title-bar] [if-mm upload] [L]Upload new ASCII source[/L] [/if-mm] [if-mm journal_update] [L]Upload partial update file[/L] [/if-mm] [if-mm export] [L]Export to ASCII file[/L] [/if-mm] [if-mm advanced add_delete] [L]Add or delete column[/L] [/if-mm] [L]Edit menu[/L] | [if-mm advanced search] [title-bar 200 2][L]Search by keyword for records[/L][/title-bar] [if type=explicit compare="[calc] q{[dbinfo table='[value mv_data_table]' attribute=type]} eq '8'; [/calc]"] [elsif type=file term="products/[value mv_data_table].ks"] [/elsif] [else] [/else] [/if] [/if-mm]
[scratch menu]

[/loop]