#!/bin/bash

B1=B
B2=("SPECIFY LOGFILES")

function menuchoices2 {

    case $choice in

	A) inputbox "Type logfile with path"
	   FILE_01=${INPUT}
	   ;;

	B) inputbox "Type logfile with path"
	   FILE_02=${INPUT}
	   ;;

	C) inputbox "Type logfile with path"
	   FILE_03=${INPUT}
	   ;;

	D) inputbox "Type logfile with path"
	   FILE_04=${INPUT}
	   ;;

	E) inputbox "Type logfile with path"
	   FILE_05=${INPUT}
	   ;;

	F) inputbox "Type logfile with path"
	   FILE_06=${INPUT}
	   ;;

	G) inputbox "Type logfile with path"
	   FILE_07=${INPUT}
	   ;;

	H) inputbox "Type logfile with path"
	   FILE_08=${INPUT}
	   ;;

	I) inputbox "Type logfile with path"
	   FILE_09=${INPUT}
	   ;;

	J) inputbox "Type logfile with path"
	   FILE_10=${INPUT}
	   ;;

	K) inputbox "Type logfile with path"
	   FILE_11=${INPUT}
	   ;;

	L) inputbox "Type logfile with path"
	   FILE_12=${INPUT}
	   ;;

	M) inputbox "Type logfile with path"
	   FILE_13=${INPUT}
	   ;;

	N) inputbox "Type logfile with path"
	   FILE_14=${INPUT}
	   ;;

	O) inputbox "Type logfile with path"
	   FILE_15=${INPUT}
	   ;;

	P) inputbox "Type logfile with path"
	   FILE_16=${INPUT}
	   ;;

	Q) inputbox "Type logfile with path"
	   FILE_17=${INPUT}
	   ;;

	R) inputbox "Type logfile with path"
	   FILE_18=${INPUT}
	   ;;

	S) inputbox "Type logfile with path"
	   FILE_19=${INPUT}
	   ;;

	T) inputbox "Type logfile with path"
	   FILE_20=${INPUT}
	   ;;

	U) inputbox "Type logfile with path"
	   FILE_21=${INPUT}
	   ;;

	V) inputbox "Type logfile with path"
	   FILE_22=${INPUT}
	   ;;

	W) inputbox "Type logfile with path"
	   FILE_23=${INPUT}
	   ;;

	X) inputbox "Type logfile with path"
	   FILE_24=${INPUT}
	   ;;

	Y) inputbox "Type logfile with path"
	   FILE_25=${INPUT}
	   ;;

	Z) backup_conf --force ${RCFILE}
	   saverc
	   return
	   ;;

    esac

    configure_cmlog

}

function configure_cmlog {

    MENU="SPECIFY FILES"
    MENUCHOICES=menuchoices2

    LOGS_2=("A" "File [${FILE_01}]" \
	    "B" "File [${FILE_02}]" \
	    "C" "File [${FILE_03}]" \
	    "D" "File [${FILE_04}]" \
	    "E" "File [${FILE_05}]" \
	    "F" "File [${FILE_06}]" \
	    "G" "File [${FILE_07}]" \
	    "H" "File [${FILE_08}]" \
	    "I" "File [${FILE_09}]" \
	    "J" "File [${FILE_10}]" \
	    "K" "File [${FILE_11}]" \
	    "L" "File [${FILE_12}]" \
	    "M" "File [${FILE_13}]" \
	    "N" "File [${FILE_14}]" \
	    "O" "File [${FILE_15}]" \
	    "P" "File [${FILE_16}]" \
	    "Q" "File [${FILE_17}]" \
	    "R" "File [${FILE_18}]" \
	    "S" "File [${FILE_19}]" \
	    "T" "File [${FILE_20}]" \
	    "U" "File [${FILE_21}]" \
	    "V" "File [${FILE_22}]" \
	    "W" "File [${FILE_23}]" \
	    "X" "File [${FILE_24}]" \
	    "Y" "File [${FILE_25}]" \
	    "Z" "Save settings to \"${RCFILE}\"")

    menubox "${LOGS_2[@]}"
}
