if ($submitForm == 'Batch Assign State') { if ($collid && $fieldName) { $fieldValue = array_key_exists('fieldvalue', $_POST) ? $_POST['fieldvalue'] : ''; if (!is_array($fieldValue)) { $fieldValue = array($fieldValue); } $stateID = array_key_exists('stateid', $_POST) ? $_POST['stateid'] : ''; $notes = $_POST['notes']; if (!is_array($stateID)) { $stateID = array($stateID); } if ($stateID && $fieldValue) { foreach ($fieldValue as $fValue) { foreach ($stateID as $id) { if (!$attrManager->submitBatchAttributes($collid, $id, $fieldName, $fValue, $notes, $SYMB_UID)) { $statusStr = $attrManager->getErrorMessage(); } } } } } } } $fieldArr = array('habitat' => 'Habitat', 'substrate' => 'Substrate', 'occurrenceremarks' => 'Occurrence Remarks (notes)', 'dynamicproperties' => 'Dynamic Properties', 'verbatimattributes' => 'Verbatim Attributes (description)', 'behavior' => 'Behavior', 'reproductivecondition' => 'Reproductive Condition', 'lifestage' => 'Life Stage', 'sex' => 'Sex'); ?> <html> <head> <title>Occurrence Attribute Mining Tool</title> <link href="../../css/base.css?<?php echo $CSS_VERSION; ?>