Esempio n. 1
0
function form__render_select_lang($f)
{
    if ($f['include_none_option'] == 'y') {
        $incnone = true;
    } else {
        $incnone = false;
    }
    $out = language__selectfield_item($f['mysql_column_name'], $f['mysql_column_name'], $f['mysql_column_name'], $f['value'], $incnone, $f['order_select_lang_values']);
    return $out;
}
Esempio n. 2
0
			<table class="or_formtable">';
    if ($experiment_id) {
        $sessions = sessions__get_sessions($experiment_id);
        echo '<TR>
					<TD>
							' . lang('session') . ':
					</TD>
					<TD>' . select__sessions($upload['session_id'], 'session_id', $sessions) . '
					</TD>
			</TR>';
    }
    echo '	<TR>
				<TD>
						' . lang('upload_category') . ':
				</TD>
				<TD>' . language__selectfield_item('file_upload_category', '', 'upload_type', $upload['upload_type'], false, 'fixed_order') . '
				</TD>
			</TR>
			<TR>
				<TD>
					' . lang('upload_name') . ':
				</TD>
				<TD>
					<INPUT type="text" name="upload_name" size="30" maxlength="40" value="' . $upload['upload_name'] . '">
				</TD>
			</TR>
			<TR>
				<TD></TD>
				<TD>
					<input class="button" type="submit" name="edit" value="' . lang('save') . '">
					<BR><BR>
Esempio n. 3
0
		<TABLE class="or_formtable">
		<TR>
			<TD>' . lang('id') . ':</TD>
			<TD>' . $edit['event_id'] . '</TD>
		</TR>';
    echo '  <TR>
            <TD>' . lang('laboratory') . ':</TD>
            <TD>';
    laboratories__select_field("laboratory_id", $edit['laboratory_id']);
    echo '	</TD>
            </TR>';
    echo '	<TR>
				<TD>
						' . lang('event_category') . ':
				</TD>
				<TD>' . language__selectfield_item('events_category', '', 'event_category', $edit['event_category'], false, 'fixed_order') . '
				</TD>
			</TR>';
    echo '	<TR>
			<TD>
				' . lang('start_date_and_time') . ':
			</TD>
			<TD>';
    echo formhelpers__pick_date('event_start', $edit['event_start'], $settings['session_start_years_backward'], $settings['session_start_years_forward']);
    echo '&nbsp;&nbsp;';
    echo formhelpers__pick_time('event_start', $edit['event_start']);
    echo '</TD>
		</TR>';
    echo '  <TR><TD>' . lang('stop_date_and_time') . ':</TD>
            <TD>';
    echo formhelpers__pick_date('event_stop', $edit['event_stop'], $settings['session_start_years_backward'], $settings['session_start_years_forward']);