Form.display revision 7c478bd95313f5f23a4c958a745db2134aa03244
#ident "%Z%%M% %I% %E% SMI" /* SVr4.0 1.7 */
#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License, Version 1.0 only
# (the "License"). You may not use this file except in compliance
# with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#
form="Display Frames Form"
help=OPEN TEXT OBJECTS/Text.h "$TITLE" pref/T.hdisp"$ITEM"
framemsg="Press CHOICES to select a frame, then press SAVE when you complete the form."
done=`indicator -w;set LOGINWIN1="$F1" LOGINWIN2="$F2" LOGINWIN3="$F3" LOGINWIN4="$F4";
message "Display Frames have been updated.";sleep 3`
name=First Frame:
nrow=1
ncol=2
rows=1
columns=45
frow=1
fcol=16
scroll=true
lininfo=`set -l TITLE="First Frame" -l ITEM=1`
value=const $LOGINWIN1
rmenu=OPEN MENU OBJECTS/pref/Menu.frame
valid=`indicator -w;
if [ -z "${F1}" ];
then
echo true;
elif [ "${F1}" = "${F2}" -o "${F1}" = "${F3}" -o "${F1}" = "${F4}" ];
then
set -l IMSG="The frame was previously selected, please make a different selection.";
echo false;
elif echo "${F1}"|fmlgrep '^[^/].*$' > /dev/null;
then
set -l IMSG="The pathname specified must be a full pathname.";
echo false;
elif [ ! -s "${F1}" ];
then
set -l IMSG="The pathname specified does not exist or is empty.";
echo false;
elif [ -r "${F1}" ];
then
if [ -d "${F1}" ];
then
echo true;
elif fmlgrep -i '^menu=' "${F1}" > /dev/null;
then
echo true;
else
set -l IMSG="The pathname specified is not a valid frame.";
echo false;
fi;
else
set -l IMSG="The pathname specified is not readable.";
echo false;
fi`
invalidmsg="${IMSG}"
name=Second Frame:
nrow=3
ncol=2
frow=3
fcol=16
rows=1
columns=45
scroll=true
lininfo=`set -l TITLE="Second Frame" -l ITEM=2`
value=const $LOGINWIN2
rmenu=OPEN MENU OBJECTS/pref/Menu.frame
valid=`indicator -w;
if [ -z "${F2}" ];
then
echo true;
elif [ "${F2}" = "${F1}" -o "${F2}" = "${F3}" -o "${F2}" = "${F4}" ];
then
set -l IMSG="The frame was previously selected, please make a different selection.";
echo false;
elif echo "${F2}"|fmlgrep '^[^/].*$' > /dev/null;
then
set -l IMSG="The pathname specified must be a full pathname.";
echo false;
elif [ ! -s "${F2}" ];
then
set -l IMSG="The pathname specified does not exist or is empty.";
echo false;
elif [ -r "${F2}" ];
then
if [ -d "${F2}" ];
then
echo true;
elif fmlgrep -i '^menu=' "${F2}" > /dev/null;
then
echo true;
else
set -l IMSG="The pathname specified is not a valid frame.";
echo false;
fi;
else
set -l IMSG="The pathname specified is not readable.";
echo false;
fi`
invalidmsg="${IMSG}"
name=Third Frame:
nrow=5
ncol=2
frow=5
fcol=16
rows=1
columns=45
scroll=true
lininfo=`set -l TITLE="Third Frame" -l ITEM=3`
value=const $LOGINWIN3
rmenu=OPEN MENU OBJECTS/pref/Menu.frame
valid=`indicator -w;
if [ -z "${F3}" ];
then
echo true;
elif [ "${F3}" = "${F2}" -o "${F3}" = "${F1}" -o "${F3}" = "${F4}" ];
then
set -l IMSG="The frame was previously selected, please make a different selection.";
echo false;
elif echo "${F3}"|fmlgrep '^[^/].*$' > /dev/null;
then
set -l IMSG="The pathname specified must be a full pathname.";
echo false;
elif [ ! -s "${F3}" ];
then
set -l IMSG="The pathname specified does not exist or is empty.";
echo false;
elif [ -r "${F3}" ];
then
if [ -d "${F3}" ];
then
echo true;
elif fmlgrep -i '^menu=' "${F3}" > /dev/null;
then
echo true;
else
set -l IMSG="The pathname specified is not a valid frame.";
echo false;
fi;
else
set -l IMSG="The pathname specified is not readable.";
echo false;
fi`
invalidmsg="${IMSG}"
name=Fourth Frame:
nrow=7
ncol=2
frow=7
fcol=16
rows=1
columns=45
scroll=true
lininfo=`set -l TITLE="Fourth Frame" -l ITEM=4`
value=const $LOGINWIN4
rmenu=OPEN MENU OBJECTS/pref/Menu.frame
valid=`indicator -w;
if [ -z "${F4}" ];
then
echo true;
elif [ "${F4}" = "${F2}" -o "${F4}" = "${F3}" -o "${F4}" = "${F1}" ];
then
set -l IMSG="The frame was previously selected, please make a different selection.";
echo false;
elif echo "${F4}"|fmlgrep '^[^/].*$' > /dev/null;
then
set -l IMSG="The pathname specified must be a full pathname.";
echo false;
elif [ ! -s "${F4}" ];
then
set -l IMSG="The pathname specified does not exist or is empty.";
echo false;
elif [ -r "${F4}" ];
then
if [ -d "${F4}" ];
then
echo true;
elif fmlgrep -i '^menu=' "${F4}" > /dev/null;
then
echo true;
else
set -l IMSG="The pathname specified is not a valid frame.";
echo false;
fi;
else
set -l IMSG="The pathname specified is not readable.";
echo false;
fi`
invalidmsg="${IMSG}"
name=RESET
button=8
action=reset