}
    foreach ($categories_RET as $type) {
        $categories_options[$type['ID']] = $type['TITLE'];
    }
    if ($_REQUEST['id'] == 'new') {
        $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['id'] . '][SORT_ORDER]', 'Sort Order', 'onkeydown="return numberOnly(event);"') . '</TD>';
    } else {
        $header .= '<TD>' . TextInput($RET['SORT_ORDER'], 'tables[' . $_REQUEST['id'] . '][SORT_ORDER]', 'Sort Order', 'onkeydown=\\"return numberOnly(event);\\"') . '</TD>';
    }
    $header .= '</TR><TR>';
    $colspan = 2;
    if ($RET['TYPE'] == 'autos' || $RET['TYPE'] == 'edits' || $RET['TYPE'] == 'select' || $RET['TYPE'] == 'codeds' || $RET['TYPE'] == 'multiple' || $_REQUEST['id'] == 'new') {
        $header .= '<TD colspan=2>' . TextAreaInput($RET['SELECT_OPTIONS'], 'tables[' . $_REQUEST['id'] . '][SELECT_OPTIONS]', 'Pull-Down/Auto Pull-Down/Coded Pull-Down/Select Multiple Choices<BR>* one per line', 'rows=7 cols=40') . '</TD>';
        $colspan = 1;
    }
    $header .= '<TD valign=bottom colspan=' . $colspan . '>' . TextInput_mod_a($RET['DEFAULT_SELECTION'], 'tables[' . $_REQUEST['id'] . '][DEFAULT_SELECTION]', 'Default') . '<small><BR>* for dates: YYYY-MM-DD,<BR> for checkboxes: Y<BR> for long text it will be ignored</small></TD>';
    $new = $_REQUEST['id'] == 'new';
    $header .= '<TD>' . CheckboxInput($RET['REQUIRED'], 'tables[' . $_REQUEST['id'] . '][REQUIRED]', 'Required', '', $new) . '</TD>';
    $header .= '</TR>';
    $header .= '</TABLE>';
}
if ($header) {
    DrawHeaderHome($header);
    echo '</FORM>';
}
if (!$_REQUEST['modfunc']) {
    $count = 0;
    $count++;
    $LO_options = array('save' => false, 'search' => false, 'add' => true);
    echo '<TABLE><TR>';
    echo '<TD valign=top>';
Example #2
0
function _makeTextInput($value, $name)
{
    global $THIS_RET;
    if ($THIS_RET['PERIOD_ID']) {
        $id = $THIS_RET['PERIOD_ID'];
    } else {
        $id = 'new';
    }
    if ($name != 'TITLE') {
        $extra = 'size=5 maxlength=10 class=cell_floating ';
    } else {
        # added else for the first textbox merlinvicki
        $extra = 'class=cell_floating';
    }
    return TextInput_mod_a($value, 'values[' . $id . '][' . $name . ']', '', $extra);
}