Location: PHPKode > projects > ARK > ark_0.7/examples/sample_setups/LP_single_context_recording/config/field_settings.php
<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
* config/field_settings.php
*
* stores settings for 'fields' for this ARK instance. This makes
* the fields available for use in any subform in any module
* anything module specific ought to be configured in that modules
* settings. Dues to parse order, you may re-use the names of fields
* and they will be overwritten by md specific settings.
*
* PHP versions 4 and 5
*
* LICENSE:
*    ARK - The Archaeological Recording Kit.
*    An open-source framework for displaying and working with archaeological data
*    Copyright (C) 2008  L - P : Partnership Ltd.
*    This program is free software: you can redistribute it and/or modify
*    it under the terms of the GNU General Public License as published by
*    the Free Software Foundation, either version 3 of the License, or
*    (at your option) any later version.
*    This program is distributed in the hope that it will be useful,
*    but WITHOUT ANY WARRANTY; without even the implied warranty of
*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
*    GNU General Public License for more details.
*    You should have received a copy of the GNU General Public License
*    along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
* @category   admin
* @package    ark
* @author     Henriette Roued <hide@address.com>
* @author     Stuart Eve <hide@address.com>
* @author     Guy Hunt <hide@address.com>
* @copyright  1999-2008 L - P : Partnership Ltd.
* @license    http://ark.lparchaeology.com/license
* @link       http://ark.lparchaeology.com/svn/php/config/field_settings.php
* @since      File available since Release 0.6
*/

// VALIDATION
include('vd_settings.php');

//CUSTOM VALIDATION

// this action is chained to a fragment not an item therefore
// it needs a special itemkey/value pair, not the standard one

$vd_chainkey =
    array(
        'rq_func' => 'reqManual',
        'vd_func' => 'chkSet',
        'var_name' => 'itemkey',
        'force_var' => 'cor_tbl_txt'
);
$vd_chainval =
    array(
        'rq_func' => 'reqMulti',
        'vd_func' => 'chkSet',
        'var_name' => 'itemval',
        'lv_name' => 'interp_id',
        'var_locn' => 'request'
);

$custom_action_add_vd =
    array(
        $vd_cre_on,
        $vd_log,
        $vd_ste_cd,
        $vd_cre_by,
        $action_vd_actor_itemkey,
        $action_vd_5,
        $action_vd_valid,
        $action_vd_6,
        $vd_chainkey,
        $vd_chainval
);

$custom_action_edt_vd =
    array(
        $vd_cre_on,
        $vd_log,
        $vd_ste_cd,
        $vd_cre_by,
        $action_vd_actor_itemkey,
        $action_vd_5,
        $action_vd_valid,
        $action_vd_6,
        $vd_chainval,
        $vd_frag_id,
        $vd_chainval
);

$custom_date_add_vd =
    array(
        $vd_cre_on,
        $vd_cre_by,
        $date_vd_datetype,
        $date_vd_date,
        $date_vd_dateset,
        $vd_chainkey,
        $vd_chainval
);

$custom_date_edt_vd =
    array(
        $vd_cre_on,
        $vd_log,
        $vd_ste_cd,
        $vd_cre_by,
        $date_vd_datetype,
        $date_vd_date,
        $vd_chainval,
        $vd_frag_id,
        $vd_chainval
);
/**
*
* FIELDS
*
* These arrays contains the info about each field
* Make one array for each field to display each field MUST have the following vars:
*
* VARIABLES FOR FIELD SETUP
* Optional:
* dataclass = the data type contained in this field (action, attribute, date, 
* file, number, span, txt)
* classtype = the type within the class (txttype)
* alias_tbl = look-up-table for type, used in alias call (cor_lut_txttype)
* alias_col = column for type, used in alias call (txttype)
* alias_src_key = value in the type column, used in alias call (desc)
* alias_type = the alias_type for the alias call (1 is normal, 2 is against)
* editable = set TRUE to process this field in forms set FALSE for display only
* hidden = set TRUE to make the field hidden
* add_validation = validation rules for this field when on an add routine
* edt_validation = validation rules for this field when on an edt routine
*
* Class - specific variables
* class='action' - actors_dd = the element of the actors to show in the dd
* class='action' - actors_tbl = the table in which the actors are held
* class='action' - actors_style = whether actor information is displayed in a
* list style ('list') or as a single actor/date pairing ('single') 
*/

// -- TEXT FIELDS -- //

// TXT field for contexts
$conf_field_desc =
    array(
        'dataclass' => 'txt',
        'classtype' => 'desc',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'desc',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);


$conf_field_name =
    array(
        'dataclass' => 'txt',
        'classtype' => 'name',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'name',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_initials =
    array(
        'dataclass' => 'txt',
        'classtype' => 'initials',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'initials',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_interp =
    array(
        'dataclass' => 'txt',
        'classtype' => 'interp',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'interp',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_short_desc =
    array(
        'dataclass' => 'txt',
        'classtype' => 'short_desc',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'short_desc',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

//TXT fields for fills

$conf_field_compac =
    array(
        'dataclass' => 'txt',
        'classtype' => 'compac',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'compac',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_colour =
    array(
        'dataclass' => 'txt',
        'classtype' => 'colour',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'colour',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_compo =
    array(
        'dataclass' => 'txt',
        'classtype' => 'compo',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'compo',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_inclusions =
    array(
        'dataclass' => 'txt',
        'classtype' => 'inclusions',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'inclusions',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_dims =
    array(
        'dataclass' => 'txt',
        'classtype' => 'dims',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'dims',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_observ =
    array(
        'dataclass' => 'txt',
        'classtype' => 'observ',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'observ',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_excavtech =
    array(
        'dataclass' => 'txt',
        'classtype' => 'excavtech',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'excavtech',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

//TXT fields for cuts

$conf_field_shape =
    array(
        'dataclass' => 'txt',
        'classtype' => 'shape',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'shape',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_corners =
    array(
        'dataclass' => 'txt',
        'classtype' => 'corners',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'corners',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_bostop =
    array(
        'dataclass' => 'txt',
        'classtype' => 'bostop',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'bostop',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_sides =
    array(
        'dataclass' => 'txt',
        'classtype' => 'sides',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'sides',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_bosbase =
    array(
        'dataclass' => 'txt',
        'classtype' => 'bosbase',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'bosbase',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_base =
    array(
        'dataclass' => 'txt',
        'classtype' => 'base',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'base',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_orient =
    array(
        'dataclass' => 'txt',
        'classtype' => 'orient',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'orient',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_inclination =
    array(
        'dataclass' => 'txt',
        'classtype' => 'inclination',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'inclination',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_truncation =
    array(
        'dataclass' => 'txt',
        'classtype' => 'truncation',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'truncation',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

//TXT fields for masonry

$conf_field_material =
    array(
        'dataclass' => 'txt',
        'classtype' => 'material',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'material',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_sizemat =
    array(
        'dataclass' => 'txt',
        'classtype' => 'sizemat',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'sizemat',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_finish =
    array(
        'dataclass' => 'txt',
        'classtype' => 'finish',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'finish',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_bond =
    array(
        'dataclass' => 'txt',
        'classtype' => 'bond',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'bond',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_form =
    array(
        'dataclass' => 'txt',
        'classtype' => 'form',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'form',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_dirface =
    array(
        'dataclass' => 'txt',
        'classtype' => 'dirface',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'dirface',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_bondmat =
    array(
        'dataclass' => 'txt',
        'classtype' => 'bondmat',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'bondmat',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_definition =
    array(
        'dataclass' => 'txt',
        'classtype' => 'definition',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'definition',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

//TXT fields for skeletons

$conf_field_abody =
    array(
        'dataclass' => 'txt',
        'classtype' => 'abody',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'abody',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_ahead =
    array(
        'dataclass' => 'txt',
        'classtype' => 'ahead',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'ahead',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_ararm =
    array(
        'dataclass' => 'txt',
        'classtype' => 'ararm',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'ararm',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_alarm =
    array(
        'dataclass' => 'txt',
        'classtype' => 'alarm',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'alarm',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_arleg =
    array(
        'dataclass' => 'txt',
        'classtype' => 'arleg',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'arleg',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_alleg =
    array(
        'dataclass' => 'txt',
        'classtype' => 'alleg',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'alleg',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_afeet =
    array(
        'dataclass' => 'txt',
        'classtype' => 'afeet',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'afeet',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_degen =
    array(
        'dataclass' => 'txt',
        'classtype' => 'degen',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'degen',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_state =
    array(
        'dataclass' => 'txt',
        'classtype' => 'state',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'state',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

//TXT fields for timber

$conf_field_type =
    array(
        'dataclass' => 'txt',
        'classtype' => 'type',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'type',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_setting =
    array(
        'dataclass' => 'txt',
        'classtype' => 'setting',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'setting',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_cross =
    array(
        'dataclass' => 'txt',
        'classtype' => 'cross',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'cross',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_cond =
    array(
        'dataclass' => 'txt',
        'classtype' => 'cond',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'cond',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_conv =
    array(
        'dataclass' => 'txt',
        'classtype' => 'conv',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'conv',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_tmarks =
    array(
        'dataclass' => 'txt',
        'classtype' => 'tmarks',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'tmarks',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_jfit =
    array(
        'dataclass' => 'txt',
        'classtype' => 'jfit',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'jfit',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_imarks =
    array(
        'dataclass' => 'txt',
        'classtype' => 'imarks',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'imarks',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_streat =
    array(
        'dataclass' => 'txt',
        'classtype' => 'streat',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'streat',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_reusetxt =
    array(
        'dataclass' => 'txt',
        'classtype' => 'reusetxt',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'reusetxt',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);    
    
//TXT fields for samples


$conf_field_statusnotes =
    array(
        'dataclass' => 'txt',
        'classtype' => 'statusnotes',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'statusnotes',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);

$conf_field_typenotes =
    array(
        'dataclass' => 'txt',
        'classtype' => 'typenotes',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'typenotes',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);    
    
$conf_field_actionnotes =
    array(
        'dataclass' => 'txt',
        'classtype' => 'actionnotes',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'actionnotes',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);
    
$conf_field_samplequestions =
    array(
        'dataclass' => 'txt',
        'classtype' => 'smpques',
        'alias_tbl' => 'cor_lut_txttype',
        'alias_col' => 'txttype',
        'alias_src_key' => 'smpques',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $txt_add_validation,
        'edt_validation' => $txt_edt_validation
);    
    
// -- ATTRIBUTE FIELDS -- //

//ATTRIBUTE fields for timber

$conf_field_bark =
    array(
        'dataclass' => 'attr',
        'classtype' => 'tmbrxsec',
        'attribute' => 'bark',
        'alias_tbl' => 'cor_lut_attribute',
        'alias_col' => 'attribute',
        'alias_src_key' => 'bark',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation,
);
    
$conf_field_sapwood =
    array(
        'dataclass' => 'attr',
        'classtype' => 'tmbrxsec',
        'attribute' => 'sapwood',
        'alias_tbl' => 'cor_lut_attribute',
        'alias_col' => 'attribute',
        'alias_src_key' => 'sapwood',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);
    
$conf_field_knotty =
    array(
        'dataclass' => 'attr',
        'classtype' => 'tmbrxsec',
        'attribute' => 'knotty',
        'alias_tbl' => 'cor_lut_attribute',
        'alias_col' => 'attribute',
        'alias_src_key' => 'knotty',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);
    
$conf_field_strgrain =
    array(
        'dataclass' => 'attr',
        'classtype' => 'tmbrxsec',
        'attribute' => 'strgrain',
        'alias_tbl' => 'cor_lut_attribute',
        'alias_col' => 'attribute',
        'alias_src_key' => 'strgrain',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);
    
$conf_field_reuseattr =
    array(
        'dataclass' => 'attr',
        'classtype' => 'reuseattr',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'reuseattr',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'op_display_mode'=> 'radio',
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

//ATTRIBUTE fields for samples


$conf_field_sampletype =
    array(
        'dataclass' => 'attr',
        'classtype' => 'sampletype',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'sampletype',
        'alias_type' => '1',
        //'alias_classtype' => 'Condition',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_flotrec =
    array(
        'dataclass' => 'attr',
        'classtype' => 'smpflag',
        'attribute' => 'lghfrac_rec',
        'alias_tbl' => 'cor_lut_attribute',
        'alias_col' => 'attribute',
        'alias_src_key' => 'lghfrac_rec',
        'alias_type' => '1',
        'editable' => TRUE,
        'field_op_hidden' => FALSE,
        'op_show_bv_aliases' => 1,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);
    
$conf_field_hfass =
    array(
        'dataclass' => 'attr',
        'classtype' => 'smpflag',
        'attribute' => 'hfass',
        'alias_tbl' => 'cor_lut_attribute',
        'alias_col' => 'attribute',
        'alias_src_key' => 'hfass',
        'alias_type' => '1',
        'editable' => TRUE,
        'field_op_hidden' => FALSE,
        'op_show_bv_aliases' => 1,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);
    
$conf_field_hfextrac =
    array(
        'dataclass' => 'attr',
        'classtype' => 'hfextrac',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'hfextrac',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'op_display_mode' => 'checkbox',
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_lflocn =
    array(
        'dataclass' => 'attr',
        'classtype' => 'lflocn',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'lflocn',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_samplecondition =
    array(
        'dataclass' => 'attr',
        'classtype' => 'samplecondition',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'sampleconditions',
        'alias_type' => '1',
        //'alias_classtype' => 'Condition',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_samplestatus =
    array(
        'dataclass' => 'attr',
        'classtype' => 'samplestatus',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'samplestatus',
        'alias_type' => '1',
        //'alias_classtype' => 'Condition',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_sampleaction =
    array(
        'dataclass' => 'attr',
        'classtype' => 'sampleaction',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'sampleaction',
        'alias_type' => '1',
        //'alias_classtype' => 'Condition',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_priority =
    array(
        'dataclass' => 'attr',
        'classtype' => 'priority',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'priority',
        'alias_type' => '1',
        //'alias_classtype' => 'Condition',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_hf_status =
    array(
        'dataclass' => 'attr',
        'classtype' => 'hf_status',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'hf_status',
        'alias_type' => '1',
        'op_display_mode' => 'radio',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_lf_status =
    array(
        'dataclass' => 'attr',
        'classtype' => 'lf_status',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'lf_status',
        'op_display_mode' => 'radio',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_contamination =
    array(
        'dataclass' => 'attr',
        'classtype' => 'contamination',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'contamination',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_samplesize =
    array(
        'dataclass' => 'attr',
        'classtype' => 'samplesize',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'samplesize',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_subsamples =
    array(
        'dataclass' => 'attr',
        'classtype' => 'subsamples',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'subsamples',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);

$conf_field_botanictype =
    array(
        'dataclass' => 'attr',
        'classtype' => 'botanictype',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'botanictype',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);


$conf_field_recflag =
    array(
        'dataclass' => 'attr',
        'classtype' => 'recflag',
        'alias_tbl' => 'cor_lut_attributetype',
        'alias_col' => 'attributetype',
        'alias_src_key' => 'recflag',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $attr_add_validation,
        'edt_validation' => $attr_edt_validation
);
    
// -- NUMBER FIELDS -- //

// NUMBER fields for samples
$conf_field_total =
    array(
        'dataclass' => 'number',
        'classtype' => 'total',
        'alias_tbl' => 'cor_lut_numbertype',
        'alias_col' => 'numbertype',
        'alias_src_key' => 'total',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $number_add_validation,
        'edt_validation' => $number_edt_validation
);
    
$conf_field_volume =
    array(
        'dataclass' => 'number',
        'classtype' => 'volume',
        'alias_tbl' => 'cor_lut_numbertype',
        'alias_col' => 'numbertype',
        'alias_src_key' => 'volume',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $number_add_validation,
        'edt_validation' => $number_edt_validation
);

$conf_field_hf_numofbags =
    array(
        'dataclass' => 'number',
        'classtype' => 'hf_numofbags',
        'alias_tbl' => 'cor_lut_numbertype',
        'alias_col' => 'numbertype',
        'alias_src_key' => 'hf_numofbags',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $number_add_validation,
        'edt_validation' => $number_edt_validation
);

$conf_field_lf_numofbags =
    array(
        'dataclass' => 'number',
        'classtype' => 'lf_numofbags',
        'alias_tbl' => 'cor_lut_numbertype',
        'alias_col' => 'numbertype',
        'alias_src_key' => 'lf_numofbags',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $number_add_validation,
        'edt_validation' => $number_edt_validation
);


// -- SPAN FIELD -- //

$conf_field_sameas =
   array(
       'dataclass' => 'span',
       'classtype' => 'sameas',
       'alias_tbl' => 'cor_lut_spantype',
       'alias_col' => 'spantype',
       'alias_src_key' => 'sameas',
       'alias_type' => '1',
       'editable' => TRUE,
       'hidden' => FALSE,
       'add_validation' => $span_add_validation,
       'edt_validation' => $span_edt_validation
);

// -- FILE FIELDS -- //

$conf_field_file =
  array(
      'dataclass' => 'file',
      'classtype' => 'file',
      'alias_tbl' => 'cor_tbl_col',
      'alias_col' => 'id',
      'alias_src_key' => '6',
      'alias_type' => '1',
      'editable' => TRUE,
      'hidden' => FALSE,
      'add_validation' => $file_add_validation,
      'edt_validation' => $file_edt_validation
);
   
// -- ACTION and DATE FIELDS -- //

$conf_field_issuedto = 
    array(
        'dataclass' => 'action',
        'classtype' => 'issuedto',
        'alias_tbl' => 'cor_lut_actiontype',
        'alias_col' => 'actiontype',
        'alias_src_key' => 'issuedto',
        'actors_mod' => 'abk',
        'actors_type' => 'people',
        'actors_element' => 'name',
        'actors_style' => 'single',
        'actors_elementclass' => 'txt',
        'actors_grp' => FALSE,
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $action_add_validation,
        'edt_validation' => $action_edt_validation
);

$conf_field_issuedon =
    array(
        'dataclass' => 'date',
        'datestyle' => 'dd,mm,yr',
        'classtype' => 'issuedon',
        'alias_tbl' => 'cor_lut_datetype',
        'alias_col' => 'datetype',
        'alias_src_key' => 'issuedon',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $date_add_validation,
        'edt_validation' => $date_edt_validation
);

$conf_field_drawnby = 
    array(
        'dataclass' => 'action',
        'classtype' => 'drawnby',
        'alias_tbl' => 'cor_lut_actiontype',
        'alias_col' => 'actiontype',
        'alias_src_key' => 'drawnby',
        'actors_mod' => 'abk',
        'actors_type' => 'people',
        'actors_element' => 'name',
        'actors_style' => 'single',
        'actors_elementclass' => 'txt',
        'actors_grp' => FALSE,
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $action_add_validation,
        'edt_validation' => $action_edt_validation
);

$conf_field_drawnon =
    array(
        'dataclass' => 'date',
        'datestyle' => 'dd,mm,yr',
        'classtype' => 'drawnon',
        'alias_tbl' => 'cor_lut_datetype',
        'alias_col' => 'datetype',
        'alias_src_key' => 'drawnon',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $date_add_validation,
        'edt_validation' => $date_edt_validation
);

$conf_field_takenby = 
    array(
        'dataclass' => 'action',
        'classtype' => 'takenby',
        'alias_tbl' => 'cor_lut_actiontype',
        'alias_col' => 'actiontype',
        'alias_src_key' => 'takenby',
        'actors_mod' => 'abk',
        'actors_type' => 'people',
        'actors_element' => 'name',
        'actors_style' => 'single',
        'actors_elementclass' => 'txt',
        'actors_grp' => FALSE,
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $action_add_validation,
        'edt_validation' => $action_edt_validation
);

$conf_field_takenon =
    array(
        'dataclass' => 'date',
        'datestyle' => 'dd,mm,yr',
        'classtype' => 'takenon',
        'alias_tbl' => 'cor_lut_datetype',
        'alias_col' => 'datetype',
        'alias_src_key' => 'takenon',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $date_add_validation,
        'edt_validation' => $date_edt_validation
);


$conf_field_compiledby = 
    array(
        'dataclass' => 'action',
        'classtype' => 'compiledby',
        'alias_tbl' => 'cor_lut_actiontype',
        'alias_col' => 'actiontype',
        'alias_src_key' => 'compiledby',
        'actors_mod' => 'abk',
        'actors_element' => 'name',
        'actors_style' => 'list',
        'actors_type' => 'people',
        'actors_elementclass' => 'txt',
        'actors_grp' => FALSE,
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $action_add_validation,
        'edt_validation' => $action_edt_validation
);
$conf_field_compiledon =
    array(
        'dataclass' => 'date',
        'datestyle' => 'dd,mm,yr',
        'classtype' => 'compiledon',
        'alias_tbl' => 'cor_lut_datetype',
        'alias_col' => 'datetype',
        'alias_src_key' => 'compiledon',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $date_add_validation,
        'edt_validation' => $date_edt_validation
);
    
$conf_field_checkedby = 
    array(
        'dataclass' => 'action',
        'classtype' => 'checkedby',
        'alias_tbl' => 'cor_lut_actiontype',
        'alias_col' => 'actiontype',
        'alias_src_key' => 'checkedby',
        'actors_mod' => 'abk',
        'actors_element' => 'name',
        'actors_style' => 'list',
        'actors_type' => 'people',
        'actors_elementclass' => 'txt',
        'actors_grp' => FALSE,
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $action_add_validation,
        'edt_validation' => $action_edt_validation
);



$conf_field_interpretedby = 
    array(
        'dataclass' => 'action',
        'classtype' => 'interpretedby',
        'alias_tbl' => 'cor_lut_actiontype',
        'alias_col' => 'actiontype',
        'alias_src_key' => 'interpretedby',
        'actors_mod' => 'abk',
        'actors_element' => 'name',
        'actors_style' => 'list',
        'actors_type' => 'people',
        'actors_elementclass' => 'txt',
        'actors_grp' => FALSE,
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $custom_action_add_vd,
        'edt_validation' => $custom_action_edt_vd
);

$conf_field_interpretedon =
    array(
        'dataclass' => 'date',
        'datestyle' => 'dd,mm,yr',
        'classtype' => 'interpretedon',
        'alias_tbl' => 'cor_lut_datetype',
        'alias_col' => 'datetype',
        'alias_src_key' => 'interpretedon',
        'alias_type' => '1',
        'editable' => TRUE,
        'hidden' => FALSE,
        'add_validation' => $custom_date_add_vd,
        'edt_validation' => $custom_date_edt_vd
);

    // -- OTHER FIELDS -- //
$conf_reg_op =
    array(
        'dataclass' => 'op',
        'classtype' => 'none',
        'options' => 'view,enter,qed',
        'editable' => FALSE,
        'hidden' => FALSE
);
$conf_reg_op_no_qed = 
 array(
        'dataclass' => 'op',
        'classtype' => 'none',
        'options' => 'view,enter',
        'editable' => FALSE,
        'hidden' => FALSE
);
 
 $conf_reg_op_no_enter = 
 array(
        'dataclass' => 'op',
        'classtype' => 'none',
        'options' => 'view,qed',
        'editable' => FALSE,
        'hidden' => FALSE
);

    
// add custom rule to make these required texts
$conf_field_definition['add_validation'][] = $txt_vd_requiredtxt;
$conf_field_definition['edt_validation'][] = $txt_vd_requiredtxt;

/** EVENT FIELDS 
* Event fields are effectively wrappers for action/date fields.  All fields
* must be set up above.
*
* One can also use actions and dates without having the event wrapper, but this
* allows one to group multiple events into a single subform.
*/

$conf_event_compiled = 
    array(
        'type' => 'compiled',
        'date' => $conf_field_compiledon,
        'action' => $conf_field_compiledby
);

$conf_event_taken = 
    array(
        'type' => 'compiled',
        'date' => $conf_field_takenon,
        'action' => $conf_field_takenby
);

$conf_event_checked = 
    array(
        'type' => 'checked',
        'date' => $conf_field_checkedby,
        'action' => FALSE
);

$conf_event_issued = 
    array(
        'type' => 'issued',
        'date' => $conf_field_issuedon,
        'action' => $conf_field_issuedto
);


    

/** DELETE FIELD
*
* For the delete frag routine, the following validation vars are required
* DO NOT PUT THIS INTO A SUBFORM
*
*/

$conf_field_delete = 
    array(
        'dataclass' => 'delete',
        'classtype' => 'delete',
        'editable' => TRUE,
        'hidden' => TRUE,
        'del_validation' => $del_validation
);

?>
Return current item: ARK