示例#1
0
                echo '>', WT_Filter::escapeHtml($display), '</option>';
            }
            echo '</select>';
        }
        if (isset($input['lookup'])) {
            echo '<input type="hidden" name="type[', WT_Filter::escapeHtml($input['name']), ']" value="', WT_Filter::escapeHtml($input['lookup']), '">';
            if ($input['lookup'] == 'INDI') {
                echo print_findindi_link('pid');
            } elseif ($input['lookup'] == 'PLAC') {
                echo print_findplace_link($input['name']);
            } elseif ($input['lookup'] == 'FAM') {
                echo print_findfamily_link('famid');
            } elseif ($input['lookup'] == 'SOUR') {
                echo print_findsource_link($input['name']);
            } elseif ($input['lookup'] == 'DATE') {
                echo ' <a href="#" onclick="cal_toggleDate(\'div_', WT_Filter::EscapeJs($input['name']), '\', \'', WT_Filter::EscapeJs($input['name']), '\'); return false;" class="icon-button_calendar" title="', WT_I18N::translate('Select a date'), '"></a>';
                echo '<div id="div_', WT_Filter::EscapeHtml($input['name']), '" style="position:absolute;visibility:hidden;background-color:white;"></div>';
            }
        }
        echo '</td></tr>';
    }
    echo '<tr>
		<td colspan="2" class="optionbox">
		<div class="report-type">
		<div>
		<label for="PDF"><i class="icon-mime-application-pdf"></i></label>
		<p><input type="radio" name="output" value="PDF" id="PDF" checked="checked"></p>
		</div>
		<div>
		<label for="HTML"><i class="icon-mime-text-html"></i></label>
		<p><input type="radio" name="output" id="HTML" value="HTML"></p>