'No', 'O' => 'Optional', 'Y' => 'Yes'); $Key=(!array_key_exists('k', $_GET) || empty($_GET['k']) ? 'none-found' : only_digits($_GET['k'], 20)); list($GoodAcct, $AcctName)=chk_acct($Key,'A'); $Action=(!array_key_exists('a', $_GET) || empty($_GET['a'])) ? 'u' : chk_str($_GET['a'], 1); $Action=in_array($Action, array('c', 'u')) ? $Action : 'u'; $Edit=($Action == 'u'); $Stage=(!array_key_exists('s', $_GET) || empty($_GET['s'])) ? '0' : only_digits($_GET['s'], 1); $Stage=in_array($Stage, array('0', '1')) ? $Stage : '0'; $TypeSeq=(!array_key_exists('t', $_GET) || empty($_GET['t'])) ? 'none-found' : only_digits($_GET['t'], 3); $GoodType=chkType($TypeSeq); if (!$GoodAcct) { $Page='0;url=failed.php'; } else { $Page=(!$Edit || $GoodType ? '90' : '').'0;url=type_list.php?k='.$Key; } // If Edit - // 0 - Use Record // 1 - Use POST ?> $row) { $type[$tag]=$type_row[$row]; } } else { foreach ($Map as $tag => $row) { $type[$tag]=""; } } $o_type=$type; } else { $type=GetTags($Len); $o_type=GetTags($Len, "_ORIG"); $e_type=ErrTags($E_Map); $e_str=ErrStr($e_type); } ?>


'."\n"; echo ''."\n"; echo ''."\n"; } ?> '."\n"; echo ''."\n"; echo ''."\n"; } ?> '."\n"; echo ''."\n"; echo ''."\n"; } ?> '."\n"; echo ''."\n"; echo ''."\n"; } ?> '."\n"; echo ''."\n"; echo ''."\n"; } ?> '."\n"; echo ''."\n"; echo ''."\n"; } ?>
Required fields are indicated in this way
'."\n"; if ($e_type['INSERT']) { echo 'Problem Creating Category Type Information - Please Try Again
'."\n"; } if ($e_type['UPDATE']) { echo 'Problem Updating Category Type Information - Please Try Again
'."\n"; } echo '
Category Type
'."\n"; if ($e_type['TYPE_C']) { echo 'Category Type changed before Update, please Reload and try again
'."\n"; } if ($e_type['TYPE_1']) { echo 'Category Type must be '.disp_type('B').', '.disp_type('M').', or '.disp_type('C').'
'."\n"; } if ($e_type['TYPE_R']) { echo 'Category Type is a Required entry
'."\n"; } echo '
Type Description
'."\n"; if ($e_type['TYPE_DESC_C']) { echo 'Type Description changed before Update, please Reload and try again
'."\n"; } echo '
Type Prefix
'."\n"; if ($e_type['TYPE_PREFIX_C']) { echo 'Type Prefix changed before Update, please Reload and try again
'."\n"; } if ($e_type['DUP_PREFIX']) { $query='select * from style_type where type_seq="'.$e_type['DUP_PREFIX'].'"'; $atype_res=mysqli_query($db, $query); $atype_row=mysqli_fetch_assoc($atype_res); echo 'Type Prefix duplicate of Type '.$atype_row['type_seq'].' — '.$atype_row['type_desc'].'
'."\n"; } echo '
Sort Order
'."\n"; if ($e_type['TYPE_SEQ_C']) { echo 'Sort Order changed before Update, please Reload and try again
'."\n"; } if ($e_type['TYPE_SEQ_1']) { echo 'Duplicate Sort Order, please choose a different value
'."\n"; } if ($e_type['TYPE_SEQ_2']) { echo 'Sort Order must be between 0 and 255.
'."\n"; } if ($e_type['TYPE_SEQ_R']) { echo 'Sort Order is a Required entry
'."\n"; } echo '
Offset
'."\n"; if ($e_type['TYPE_OFFSET_C']) { echo 'Offset changed before Update, please Reload and try again
'."\n"; } if ($e_type['TYPE_OFFSET_1']) { echo 'Offset must be a number.
'."\n"; } if ($e_type['TYPE_OFFSET_2']) { echo 'Offset must be between 0 and 255.
'."\n"; } if ($e_type['OFFSET1'] !== FALSE) { $query='select * from style_type where type_seq="'.$e_type['OFFSET1'].'"'; $atype_res=mysqli_query($db, $query); $atype_row=mysqli_fetch_assoc($atype_res); echo 'Offset overlaps with Type '.$atype_row['type_seq'].' — '.$atype_row['type_desc'].'
'."\n"; } if ($e_type['OFFSET2'] !== FALSE) { $query='select * from style_type where type_seq="'.$e_type['OFFSET2'].'"'; $atype_res=mysqli_query($db, $query); $atype_row=mysqli_fetch_assoc($atype_res); echo 'Offset runs into Type '.$atype_row['type_seq'].' — '.$atype_row['type_desc'].'
'."\n"; } echo '
'."\n"; echo ''."\n"; echo ''."\n"; } ?>